

a:not(.btn-primary):not(.btn-secondary):not(.social-icon) {
    position: relative;
}

/* ===== PRINT STYLES ===== */

@media print {
    .no-print {
        display: none !important;
    }
}

/* ===== ACCESSIBILITY ===== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== CANVA-LIKE CURSOR STYLES ===== */

.cursor-default {
    cursor: default !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.cursor-move {
    cursor: move !important;
}

.cursor-grab {
    cursor: grab !important;
}

.cursor-grabbing {
    cursor: grabbing !important;
}

.cursor-text {
    cursor: text !important;
}

.cursor-crosshair {
    cursor: crosshair !important;
}

/* Resize cursors */

.cursor-nw-resize {
    cursor: nw-resize !important;
}

.cursor-ne-resize {
    cursor: ne-resize !important;
}

.cursor-sw-resize {
    cursor: sw-resize !important;
}

.cursor-se-resize {
    cursor: se-resize !important;
}

.cursor-n-resize {
    cursor: n-resize !important;
}

.cursor-s-resize {
    cursor: s-resize !important;
}

.cursor-e-resize {
    cursor: e-resize !important;
}

.cursor-w-resize {
    cursor: w-resize !important;
}

/* Selection box */

.selection-box {
    position: absolute;
    border: 2px solid #2563eb;
    background: rgba(37, 99, 235, 0.1);
    pointer-events: none;
    z-index: var(--z-editor-handle-knob, 1000);
}

/* Resize handles */

.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border: 2px solid #2563eb;
    border-radius: 50%;
    z-index: var(--z-editor-handle-knob, 1000);
}

.rotate-handle {
    position: absolute;
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid #2563eb;
    border-radius: 50%;
    z-index: var(--z-editor-handle-knob, 1000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.rotate-handle:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
    cursor: grab;
}

body.app-page #resize-handles {
    z-index: var(--z-editor-handles, 120) !important;
}

body.app-page #resize-handles .selection-box,
body.app-page #resize-handles .resize-handle,
body.app-page #resize-handles .rotate-handle {
    z-index: var(--z-editor-handle-knob, 1) !important;
}

.rotate-handle:active {
    cursor: grabbing;
}

.resize-handle:hover {
    background: #2563eb;
    transform: scale(1.2);
}

.resize-handle.nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

.resize-handle.ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.resize-handle.sw {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.resize-handle.se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

.resize-handle.n {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: n-resize;
}

.resize-handle.s {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: s-resize;
}

.resize-handle.e {
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    cursor: e-resize;
}

.resize-handle.w {
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    cursor: w-resize;
}

/* Element wrapper for selection */

.element-wrapper {
    position: relative;
    display: inline-block;
}

.element-wrapper.selected {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

@media (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Container padding */
    .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Navigation - Fixed */
    nav {
        padding: 0 !important;
    }

    nav .flex.justify-between {
        padding: 0 1rem !important;
    }

    nav .hidden.md\:flex {
        display: none !important;
    }

    nav .text-2xl {
        font-size: 1.25rem !important;
    }

    /* Mobile menu button */
    #mobile-menu-btn {
        display: flex !important;
    }

    .mobile-header-actions,
    .md\:hidden.flex.items-center.gap-2 {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.35rem !important;
        flex: 0 0 5.05rem !important;
        min-width: 5.05rem !important;
    }

    #cart-btn-mobile,
    #mobile-menu-btn {
        width: 2.35rem !important;
        height: 2.35rem !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0.55rem !important;
        line-height: 1 !important;
    }

    #cart-btn-mobile .lucide,
    #mobile-menu-btn .lucide,
    #cart-btn-mobile svg,
    #mobile-menu-btn svg {
        width: 1.2rem !important;
        height: 1.2rem !important;
        display: block !important;
        flex-shrink: 0 !important;
    }

    /* Hero section */
    .hero-section {
        padding: 2rem 0 !important;
    }

    .hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hero-section p {
        font-size: 1rem !important;
    }

    .hero-image-container {
        display: none !important;
    }

    /* Product grid */
    .grid.grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    .grid.grid-cols-2:not(.catalog-grid-two):not(.catalog-toolbar-grid) {
        grid-template-columns: 1fr !important;
    }

    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .product-landing-title {
        width: 100%;
        max-width: none;
        margin-inline: auto;
        margin-bottom: 0.45rem;
        display: block;
        padding-inline: 0.35rem;
        text-align: center;
        font-size: clamp(1.08rem, 5.8vw, 1.45rem) !important;
        line-height: 1.05 !important;
        letter-spacing: -0.04em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
    }

    .product-landing-description {
        display: none !important;
    }

    .catalog-compact-summary {
        margin-top: 0 !important;
        padding: 0.12rem 0 0 !important;
        border-top: 1px solid rgba(148, 163, 184, 0.18);
    }

    .catalog-compact-summary > p {
        font-size: 0.8125rem !important;
        letter-spacing: 0.22em !important;
    }

    .catalog-toolbar-grid {
        gap: 0.18rem !important;
    }

    .catalog-toolbar-grid label {
        font-size: 0.8125rem !important;
        letter-spacing: 0.18em !important;
    }

    .catalog-toolbar-grid select {
        min-height: 34px !important;
        padding-top: 0.32rem !important;
        padding-bottom: 0.32rem !important;
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
        font-size: 0.8125rem !important;
        line-height: 1 !important;
    }

    .products-page main > section:first-child {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .products-page main > section:first-child .max-w-3xl {
        margin-bottom: 0 !important;
    }

    .products-page main > section:nth-of-type(2) {
        padding-top: 0 !important;
        margin-top: -0.9rem;
        padding-bottom: 0.3rem !important;
    }

    .products-page #products-grid {
        gap: 0.34rem !important;
    }

    /* Product cards */
    .product-card {
        margin-bottom: 1rem;
        min-height: 10.9rem;
        border-radius: 1.2rem;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    }

    .homepage #products-container .product-card {
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    }

    .homepage #products-container .product-card:hover {
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
    }

    #products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.55rem !important;
    }

    .catalog-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .catalog-toolbar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.35rem !important;
    }

    .product-card-image > img {
        padding: 0.65rem;
    }

    .product-card-body {
        padding: 0.5rem;
        gap: 0.18rem;
        min-height: 36%;
    }

    .product-card-content {
        gap: 0.25rem;
    }

    .product-card-meta {
        font-size: 0.8125rem;
        letter-spacing: 0.08em;
    }

    .product-card-title {
        font-size: 0.8125rem;
        line-height: 1.08;
        -webkit-line-clamp: 2;
        max-height: 2.16em;
        min-height: 2.16em;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .catalog-grid-two h2,
    .catalog-grid-two .product-card-title {
        font-size: 0.8125rem !important;
        line-height: 1.08 !important;
    }

    [data-fit-card-title] {
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .catalog-grid-two [data-fit-card-title] {
        max-height: 2.16em;
        min-height: 2.16em;
    }

    .product-related-card [data-fit-card-title] {
        font-size: 0.8125rem !important;
        line-height: 1.15 !important;
        max-height: 2.3em;
        min-height: 2.3em;
    }

    .product-card-cta {
        width: auto;
        min-width: 5.3rem;
        min-height: 2rem;
        padding: 0.18rem 0.42rem;
        font-size: 0.8125rem;
        border-radius: 0.72rem;
        justify-content: center;
        gap: 0.24rem;
    }

    .product-card-cta-icon {
        width: 0.78rem;
        height: 0.78rem;
    }

    .product-card-cta-label {
        display: inline;
        font-size: 0.8125rem;
        line-height: 1;
    }

    .product-badge {
        display: none;
    }

    /* Forms */
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* Tables */
    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    /* Admin panel */
    .admin-sidebar {
        width: 100% !important;
        position: relative !important;
    }

    .admin-content {
        margin-left: 0 !important;
    }

    /* Customizer - Improved */
    /* Customizer layout is handled in personalizar.html <style> block */

    /* Resize handles smaller on mobile */
    .resize-handle {
        width: 16px;
        height: 16px;
    }

    /* Tool tabs */
    .tool-tab {
        flex: 1;
        font-size: 0.8125rem !important;
        padding: 0.5rem !important;
    }

    .tool-tab span {
        display: none;
    }

    /* Checkout */
    .lg\:col-span-2 {
        grid-column: span 1 !important;
    }

    .lg\:col-span-1 {
        grid-column: span 1 !important;
    }

    /* Footer */
    footer .grid.md\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    footer .col-span-2 {
        grid-column: span 1 !important;
    }

    /* Buttons */
    /* Buttons (homepage/marketing pages only — editor overrides in personalizar.html) */
    .homepage .flex.gap-3 button,
    .checkout-page .flex.gap-3 button {
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
    }

    /* Modal */
    .modal-content {
        width: 95% !important;
        max-height: 90vh !important;
        overflow-y: auto;
    }

    /* Stats cards */
    .stat-card {
        position: relative !important;
        margin: 1rem 0 !important;
    }

    /* Trust badges */
    .trust-badge {
        padding: 1rem !important;
    }

    /* Feature cards */
    .feature-card {
        padding: 1.5rem !important;
    }

    /* Spacing */
    section {
        padding: 2rem 0 !important;
    }

    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-12 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Hide on mobile */
    .hidden-mobile {
        display: none !important;
    }
}