@import "tailwindcss";

@source "../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php";
@source "../../storage/framework/views/*.php";
@source "../**/*.blade.php";
@source "../**/*.js";

/* ─── Reset & base ─────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

:root {
    /* ── Brand palette ── */
    --brown:        #a57857;   /* primary brand — buttons, accents        */
    --brown-dark:   #8a6244;   /* hover / active                          */
    --brown-light:  #f0e6d8;   /* tinted bg, hover states, active pills   */
    --brown-xlight: #faf4ee;   /* very pale tint                          */

    /* ── Legacy aliases (kept so existing classes still resolve) ── */
    --babyblue:     #a57857;   /* was warm-tan, now mapped to brown       */
    --babyblue-light: #f0e6d8;
    --softblue:     #a57857;
    --iceblue:      #f8f2e9;   /* page / section background               */
    --mintgreen:    #a57857;   /* primary button                          */
    --skyblue:      #8a6244;   /* button hover                            */
    --deepskyblue:  #8a6244;   /* button active / links                   */
    --deepblue:     #8a6244;   /* links & accents                         */
    --navhover:     #f0e6d8;
    --navactive:    #a57857;
    --verylightblue: #f0e6d8;
    --white:        #ffffff;
    --softwhite:    #f0e6d8;
    --lightblue:    #a57857;
    --softgray:     #ffffff;
    --teal:         #a57857;
    --teal-light:   #f0e6d8;
    --pink:         #a57857;
    --pink-light:   #f0e6d8;
    --salesbadge:   #f0e6d8;
    --lavender:     #f0e6d8;
    --paleyellow:   #fff7e0;

    /* ── Neutrals ── */
    --text:         #1a1a2e;
    --text-muted:   #6b7280;
    --border:       #ddd0c0;   /* warm-tinted border                      */
    --bg:           #f8f2e9;   /* page background                         */
    --bg-soft:      #f0e6d8;   /* card / section soft bg                  */

    /* ── Tokens ── */
    --radius:    10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(120, 80, 40, .08);
    --shadow:    0 4px 16px rgba(120, 80, 40, .10);
}

body {
    /* font-family: 'Inter', system-ui, sans-serif; */
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-family: "PT Sans", sans-serif;
    font-weight: 900;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
}

/* ─── Buttons ───────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brown);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 500;
    transition: background .2s, transform .1s;
}

.btn-primary:hover {
    background: var(--brown-dark);
}

.btn-primary:active {
    transform: scale(.80);
}

.btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s, background .2s;
}

.btn-outline:hover {
    border-color: var(--babyblue);
    background: var(--babyblue-light);
}

.btn-outline-sm {
    background: var(--bg-soft);
    color: var(--deepskyblue);
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 16px;
    transition: transform .6s;
    font-weight: 500;
}

.btn-outline-sm:hover {
    transform: scale(1.1);
}

.btn-outline-light {
    background: transparent;
    border: 1.5px solid #fff;
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .15);
}

.btn-lg {
    padding: 13px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
}

.btn-ghost:hover {
    color: var(--text);
}

.mt-2 {
    margin-top: 8px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    transition: background .15s;
}

.btn-xs:hover {
    background: var(--bg-soft);
}

.btn-xs.btn-danger {
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-xs.btn-danger:hover {
    background: #fef2f2;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    padding: 4px;
}

.btn-remove:hover {
    color: #dc2626;
}

/* ─── Forms ─────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    transition: border-color .2s;
    background: var(--bg);
}

.form-input:focus {
    outline: none;
    border-color: var(--babyblue);
}

.form-input-file {
    font-size: 13px;
    color: var(--text-muted);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.col-span-2 {
    grid-column: span 2;
}

.field-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 3px;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
}

.required {
    color: #dc2626;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.link {
    color: var(--babyblue);
    text-decoration: underline;
}

.link-sm {
    font-size: 13px;
    color: var(--babyblue);
}

.link-danger {
    color: #dc2626;
}

.link-danger:hover {
    text-decoration: underline;
}

.w-auto {
    width: auto;
}

/* ─── Alerts / Toasts ───────────────────────────── */
.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    box-shadow: var(--shadow);
    pointer-events: none;
}

.toast-success {
    background: #166534;
    color: #fff;
}

.toast-error {
    background: #dc2626;
    color: #fff;
}

[x-cloak] {
    display: none !important;
}

/* ─── Badges ─────────────────────────────────────── */
.badge-status,
.badge-payment {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.badge-pending {
    background: #fef9c3;
    color: #854d0e;
}

.badge-processing {
    background: #dbeafe;
    color: #1e40af;
}

.badge-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-delivered {
    background: #dcfce7;
    color: #166534;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-paid {
    background: #dcfce7;
    color: #166534;
}

.badge-failed {
    background: #fee2e2;
    color: #991b1b;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.badge-inactive {
    background: #f3f4f6;
    color: #6b7280;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.badge-default {
    background: var(--babyblue-light);
    color: #be185d;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.badge-new {
    background: #dbeafe;
    color: #1e40af;
    border-radius: 10px;
    padding: 2px 10px;
}

.badge-best-seller {
    background: #fef9c3;
    color: #854d0e;
    border-radius: 10px;
    padding: 2px 10px;
}

.badge-limited-edition {
    background: #f3e8ff;
    color: #6b21a8;
    border-radius: 10px;
    padding: 2px 10px;
}

.badge-hot-deal {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    padding: 2px 10px;
}

.badge-primary-img {
    background: var(--babyblue-light);
    color: #be185d;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

    /* ─── Navbar base ──────────────────────────────────────────── */
    .navbar {
        background:rgb(255, 255, 255);
        border-bottom: 2px solid var(--brown-light);
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
    }

    .navbar-inner {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 20px;
        height: 64px;
        display: flex;
        align-items: center;
        gap: 16px;
        position: relative;
    }

    /* ─── Logo ─────────────────────────────────────────────────── */
    .navbar-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 25px;
        color: var(--text);
        white-space: nowrap;
        letter-spacing: 1.5px;
        flex-shrink: 0;
        text-decoration: none;
        font-family: "Montserrat", sans-serif !important;
        font-weight: 500;
    }

    /* ─── Desktop links ────────────────────────────────────────── */
    .navbar-links {
        display: flex;
        gap: 2px;
        list-style: none;
        flex: 1;
        min-width: 0;
    }

    .nav-link {
        display: block;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 14px;
        color: var(--text);
        white-space: nowrap;
        font-weight: 500;
        transition: background 0.2s, color 0.2s;
        text-decoration: none;
    }

    .nav-link:hover {
        background: var(--brown-light);
        color: var(--brown-dark);
    }

    .nav-link-active {
        background: var(--brown-light);
        color: var(--brown);
    }

    /* ─── Right actions ────────────────────────────────────────── */
    .navbar-actions {
        display: flex;
        align-items: center;
        gap: 2px;
        margin-left: auto;
        flex-shrink: 0;
    }

    .icon-btn {
        background: none;
        border: none;
        padding: 8px;
        border-radius: 8px;
        color: var(--text);
        position: relative;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background 0.2s, transform 0.2s;
    }

    .icon-btn:hover {
        background: var(--brown-light);
        border-color: var(--brown);
        transform: scale(1.08);
    }

    /* ─── Cart badge ───────────────────────────────────────────── */
    .cart-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        background: #ef4444;
        color: var(--text);
        font-size: 10px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        padding: 0 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    /* ─── Search dropdown ──────────────────────────────────────── */
    .search-wrap {
        position: relative;
    }

    .search-dropdown {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 320px;
        background: #fff;
        border: 1.5px solid var(--border);
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 200;
    }

    .search-dropdown-inner {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .search-input {
        flex: 1;
        padding: 9px 14px;
        border: 1.5px solid var(--border);
        border-radius: 10px;
        font-size: 14px;
        color: var(--text);
        min-width: 0;
        transition: border-color 0.2s;
    }

    .search-input:focus {
        outline: none;
        border-color: #f0e6d8;
    }

    .search-btn {
        padding: 9px 12px;
        background: var(--brown);
        color: #fff;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background 0.2s;
    }

    .search-btn:hover {
        background: var(--softblue);
    }

    /* ─── Account dropdown ─────────────────────────────────────── */
    .account-menu {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 210px;
        background: #fff;
        border: 1.5px solid var(--border);
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        overflow: hidden;
        z-index: 300;
    }

    .dropdown-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        font-size: 14px;
        font-weight: 600;
        border-bottom: 1px solid var(--border);
        background: var(--iceblue);
        color: var(--text);
    }

    .dropdown-avatar {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--babyblue);
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .dropdown-item {
        display: flex;
        align-items: center;
        gap: 9px;
        width: 100%;
        text-align: left;
        padding: 10px 16px;
        font-size: 14px;
        background: none;
        border: none;
        color: var(--text);
        transition: background 0.15s;
        cursor: pointer;
        text-decoration: none;
    }

    .dropdown-item:hover {
        background: var(--iceblue);
    }

    .dropdown-item-admin {
        color: var(--deepskyblue);
    }

    .dropdown-item-danger {
        color: #dc2626;
    }

    .dropdown-item-danger:hover {
        background: #fef2f2;
    }

    .dropdown-divider {
        height: 1px;
        background: var(--border);
    }

    /* ─── Log in button ────────────────────────────────────────── */
    .btn-outline-sm {
        background: rgba(255, 255, 255, 0.15);
        color: var(--text);
        border: 2.5px solid var(--text-muted);
        padding: 7px 16px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        transition: background 0.2s, border-color 0.2s;
        text-decoration: none;
    }

    .btn-outline-sm:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: var(--text);
    }

    /* ─── Hamburger button ─────────────────────────────────────── */
    .mobile-menu-btn {
        display: none !important;
    }

    /* ─── Mobile nav drawer ────────────────────────────────────── */
    .mobile-nav {
        flex-direction: column;
        position: fixed;
        top: 64px;
        right: 0;
        width: 70%;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        background: #fff;
        border-top: 3px solid var(--babyblue);
        z-index: 9999;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    }

    .mobile-nav[style*="display: block"],
    .mobile-nav[style*="display:block"],
    .mobile-nav[style*="display: flex"],
    .mobile-nav[style*="display:flex"] {
        display: flex !important;
        flex-direction: column;
    }


    /* Fallback for when Alpine adds inline style */
    .mobile-nav[style*="display: block"],
    .mobile-nav[style*="display: flex"] {
        display: flex !important;
    }

    /* Mobile search */
    .mobile-search-row {
        padding: 14px 16px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
    }

    .mobile-search-wrap {
        position: relative;
        display: flex;
        align-items: center;
    }

    .mobile-search-icon {
        position: absolute;
        left: 12px;
        color: var(--text-muted);
        pointer-events: none;
        flex-shrink: 0;
    }

    .mobile-search-input {
        width: 100%;
        padding: 10px 14px 10px 38px;
        border: 1.5px solid var(--border);
        border-radius: 10px;
        font-size: 14px;
        background: #fff;
        color: var(--text);
        transition: border-color 0.2s;
    }

    .mobile-search-input:focus {
        outline: none;
        border-color: var(--babyblue);
    }

    /* Mobile nav sections */
    .mobile-nav-section {
        padding: 6px 0;
        border-bottom: 1px solid var(--border);
    }

    .mobile-nav-section:last-child {
        border-bottom: none;
    }

    .mobile-nav-section-label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-muted);
        padding: 10px 20px 4px;
        margin: 0;
    }

    /* Mobile nav links */
    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 20px;
        font-size: 15px;
        font-weight: 500;
        color: var(--text);
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
        cursor: pointer;
    }

    .mobile-nav-link:hover {
        background: var(--iceblue);
        color: var(--deepskyblue);
    }

    .mobile-nav-link svg {
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .mobile-nav-link:hover svg {
        color: var(--deepskyblue);
    }

    .mobile-nav-link-admin {
        color: var(--deepskyblue);
    }

    .mobile-nav-link-admin svg {
        color: var(--deepskyblue);
    }

    .mobile-nav-link-danger {
        color: #dc2626;
    }

    .mobile-nav-link-danger svg {
        color: #dc2626;
    }

    .mobile-nav-link-danger:hover {
        background: #fef2f2;
        color: #b91c1c;
    }

    .mobile-nav-link-register {
        color: var(--mintgreen);
    }

    .mobile-nav-link-register svg {
        color: var(--mintgreen);
    }

    .mobile-nav-link-register:hover {
        background: #f0fdf4;
        color: #15803d;
    }

    /* ─── Responsive ───────────────────────────────────────────── */
    @media (max-width: 768px) {
        .navbar-links {
            display: none !important;
        }

        .mobile-menu-btn {
            display: flex !important;
        }

        .navbar-inner {
            padding: 0 12px;
            gap: 8px;
        }

        .navbar-actions {
            gap: 0;
        }

        body {
            overflow-x: hidden;
        }

    }

    @media (min-width: 769px) {
        .mobile-menu-btn {
            display: none !important;
        }

        .mobile-nav {
            display: none !important;
        }
    }

    @media (max-width: 500px) {
        .search-dropdown {
            width: min(80vw, 360px);
            /* nice balance */
            left: 50%;
            right: auto;
            transform: translateX(-50%);
        }
    }

    /* Hide wishlist on very small screens */
    @media (max-width: 360px) {
        .navbar-actions .icon-btn:not(.cart-btn):not(.mobile-menu-btn) {
            display: none;
        }
    }

    .contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.contact-form-col {}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-success {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 48px 24px;
    background: var(--bg-soft, #fdf6f9);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px; gap: 10px;
}
.contact-success h3 { font-size: 20px; font-weight: 700; }
.contact-success p  { color: var(--text-muted, #6b7280); }
.contact-info-col { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
    background: var(--bg-soft, #fdf6f9);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px; padding: 22px;
}
.contact-info-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.contact-info-item {
    display: flex; gap: 12px; align-items: flex-start;
    margin-bottom: 14px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item svg { flex-shrink: 0; color: var(--text-muted, #a57857); margin-top: 2px; }
.contact-info-item strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.contact-info-item a, .contact-info-item span { font-size: 14px; color: var(--deepblue, #6b7280); }
.contact-info-item a { color: var(--deepblue, #a57857); }
.contact-quick-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.contact-quick-links a { font-size: 14px; color: var(--text-muted, #6b7280); transition: color .15s; }
.contact-quick-links a:hover { color: var(--deepblue, #a57857); }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .2s;
}
.faq-item-open { border-color: var(--softblue, #a57857); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 18px 20px; background: none; border: none; text-align: left;
    font-size: 15px; font-weight: 500; cursor: pointer; gap: 16px;
    color: var(--text, #1a1a2e);
}
.faq-question:hover { background: var(--bg-soft, #fdf6f9); }
.faq-chevron { flex-shrink: 0; transition: transform .25s; }
.faq-chevron-open { transform: rotate(180deg); }
.faq-answer {
    padding: 0 20px 18px;
    font-size: 15px;
    color: var(--text-muted, #6b7280);
    line-height: 1.75;
}
.policy-wrap {
    max-width: 780px;
    margin: 0 auto;
}
.policy-intro {
    background: var(--iceblue);
    border-left: 4px solid var(--babyblue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin-bottom: 32px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
}
.policy-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}
.policy-section:last-child { border-bottom: none; }
.policy-section h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}
.policy-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 18px 0 8px;
}
.policy-section p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}
.policy-section ul {
    padding-left: 20px;
    margin-bottom: 12px;
}
.policy-section ul li {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 6px;
}
.policy-table-wrap {
    overflow-x: auto;
    margin: 12px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.policy-code {
    background: var(--bg-soft);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 13px;
    color: var(--text);
    font-family: monospace;
}
.policy-contact-box {
    margin-top: 12px;
    line-height: 2;
}
.policy-contact-box p { margin: 0; font-size: 14px; color: var(--text-muted); }
.policy-wrap {
    max-width: 780px;
    margin: 0 auto;
}
.policy-intro {
    background: var(--iceblue);
    border-left: 4px solid var(--babyblue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin-bottom: 32px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
}
.policy-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}
.policy-section:last-child { border-bottom: none; }
.policy-section h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}
.policy-section p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}
.policy-section ul {
    padding-left: 20px;
    margin-bottom: 12px;
}
.policy-section ul li {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 6px;
}
.policy-contact-box {
    margin-top: 12px;
    line-height: 2;
}
.policy-contact-box p { margin: 0; font-size: 14px; color: var(--text-muted); }
   .cart-guest-banner {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1e40af;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cart-guest-banner a {
        color: var(--deepblue);
        text-decoration: underline;
    }

    .cart-row-img-wrap {
        flex-shrink: 0;
    }

    .cart-row-img {
        width: 88px;
        height: 88px;
        object-fit: cover;
        border-radius: 10px;
        border: 1px solid var(--border, #e5e7eb);
    }

    .cart-row-variant {
        font-size: 12px;
        color: var(--text-muted, #6b7280);
        margin-top: 3px;
    }

    .cart-row-price {
        font-size: 13px;
        color: var(--text-muted, #6b7280);
        margin-top: 4px;
    }

    .cart-guest-checkout-note {
        background: var(--iceblue, #fdf6f9);
        border-radius: 6px;
        padding: 10px 12px;
        font-size: 13px;
        color: var(--text-muted, #6b7280);
        margin-top: 10px;
    }

    .cart-guest-checkout-note a {
        color: var(--deepblue, #f9a8c9);
    }

    .alert-error {
        background: #fef2f2;
        border: 1px solid #fca5a5;
        color: #dc2626;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 14px;
    }

    .mb-4 {
        margin-bottom: 16px;
    }
    .shipping-zone-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: italic;
}
.tracking-page {
    min-height: 60vh;
    padding: 48px 20px;
    background: var(--bg-soft, #fdf6f9);
}
.tracking-wrap {
    max-width: 560px;
    margin: 0 auto;
}
.tracking-header {
    text-align: center;
    margin-bottom: 28px;
}
.tracking-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.tracking-header h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
}
.tracking-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}
.tracking-result-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 24px;
    margin-top: 8px;
}
.tracking-not-found {
    text-align: center;
    padding: 32px 24px;
}
.tracking-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    margin-bottom: 4px;
}
.tracking-order-number {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}
.tracking-section {
    padding: 16px 0;
    border-top: 1px solid var(--border, #e5e7eb);
    margin-top: 4px;
}
.tracking-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted, #6b7280);
    margin: 0 0 12px;
}
.tracking-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
}
.tracking-item-row:last-child { border-bottom: none; }
.tracking-item-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 3px;
}
.tracking-item-price {
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}
.tracking-cancelled-notice {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin: 16px 0;
}
.tracking-account-nudge {
    background: var(--iceblue, #eff6ff);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}
.tracking-account-nudge a {
    color: var(--deepblue);
    text-decoration: underline;
}
/* Active filter chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--softblue, #fce4ef);
    color: var(--bg-soft, #1a1a2e);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}
.chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bg-soft);
    font-size: 12px;
    padding: 0;
    line-height: 1;
}
.clear-all-btn {
    background: none;
    border: none;
    color: var(--softblue, #f9a8c9);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 4px;
}

/* Search in sidebar */
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted, #6b7280);
    pointer-events: none;
}
.filter-search-input {
    width: 100%;
    padding: 8px 32px 8px 32px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg, #fff);
}
.filter-search-input:focus {
    outline: none;
    border-color: var(--softblue, #f9a8c9);
}
.search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    font-size: 13px;
}

/* Price range */
.price-slider-wrap { display: flex; flex-direction: column; gap: 10px; }
.price-display { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; }
.range-track-wrap { position: relative; height: 24px; }
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--softblue, #e5e7eb);
    outline: none;
    position: absolute;
    top: 10px;
    pointer-events: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--softblue, #f9a8c9);
    cursor: pointer;
    pointer-events: all;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.range-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--border, #f9a8c9);
    cursor: pointer;
    pointer-events: all;
    border: 2px solid #fff;
}
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-text-input {
    width: 70px;
    padding: 6px 8px;
    border: 1.5px solid var(--bg-soft, #e5e7eb);
    border-radius: 6px;
    font-size: 13px;
}
.price-text-input:focus { outline: none; border-color: var(--softblue, #f9a8c9); }
.filter-select { width: 100%; padding: 8px 10px; border: 1.5px solid var(--softblue, #e5e7eb); border-radius: 8px; font-size: 14px; background: #fff; }

/* Products loading state */
.products-loading { opacity: 0.5; pointer-events: none; transition: opacity .2s; }

/* Mobile toolbar */
.shop-toolbar-mobile { display: none; }
.filter-badge {
    background: #fff;
    color:  var(--softblue, blue);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}
.filters-text{
    background-color: var(--softblue, #f9a8c9);
}

@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-toolbar-mobile { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
    .shop-sidebar { display: none; background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 16px; }
    .shop-sidebar.sidebar-open { display: block; }
    .sort-select-mobile { padding: 8px 12px; border: 1.5px solid var(--border, #e5e7eb); border-radius: 8px; font-size: 14px; }
}
.footer-bottom-links {
        display: flex;
        gap: 16px;
    }

    .footer-bottom-links a {
        font-size: 12px;
        color: var(--text);
        transition: color .15s;
    }

    .footer-bottom-links a:hover {
        color: var(--text-muted);
    }

    @media (max-width: 768px) {
        .footer-bottom {
            flex-direction: column;
            gap: 10px;
            text-align: center;
        }

        .footer-bottom-links {
            justify-content: center;
        }
    }
    /* ─── Product card ────────────────────────────────────────────────── */
.product-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .25s, transform .2s;
    cursor: default;
    position: relative;
}
.product-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

/* ─── Image container ─────────────────────────────────────────────── */
.product-card-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-soft, #fdf6f9);
}
.product-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Both images fill the same space */
.product-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
                opacity  0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Primary — sits at 0,0 normally, exits on hover */
.product-card-img-primary       { transform: translate(0, 0); z-index: 2; }

.img-exit-right  { transform: translateX(-100%) !important; }
.img-exit-left   { transform: translateX(100%)  !important; }
.img-exit-top    { transform: translateY(100%)  !important; }
.img-exit-bottom { transform: translateY(-100%) !important; }

/* Secondary — hidden off-screen, comes in on hover */
.product-card-img-secondary { z-index: 1; }

/*
 * Direction-based starting position for the secondary image.
 * We use data passed from PHP through the x-data string.
 * The class is set inline below with the direction variable.
 */
[x-data*="direction: 'right'"]  .product-card-img-secondary { transform: translateX(100%);  }
[x-data*="direction: 'left'"]   .product-card-img-secondary { transform: translateX(-100%); }
[x-data*="direction: 'top'"]    .product-card-img-secondary { transform: translateY(-100%); }
[x-data*="direction: 'bottom'"] .product-card-img-secondary { transform: translateY(100%);  }

/* When hovered, secondary image slides to 0,0 */
.product-card-img-secondary.img-enter-active { transform: translate(0, 0) !important; }

/* ─── Add to cart overlay ─────────────────────────────────────────── */
.product-card-atc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 100%);
}

.atc-overlay-visible {
    transform: translateY(0) !important;
}

.product-card-atc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    background: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: background .18s, color .18s, transform .12s;
    white-space: nowrap;
}
.product-card-atc-btn:hover:not(:disabled) {
    background: var(--softblue, #f9a8c9);
    color: #fff;
}
.product-card-atc-btn.atc-btn-added {
    background: #22c55e;
    color: #fff;
    transform: scale(0.97);
    pointer-events: none;
}
.atc-label { display: flex; align-items: center; gap: 7px; }
.atc-label-added { display: flex; align-items: center; gap: 7px; }

.product-card-oos-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 100%);
}
.oos-label {
    display: block;
    text-align: center;
    background: rgba(255,255,255,.85);
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

/* ─── Tags & wishlist ─────────────────────────────────────────────── */
.product-card-tags {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 5;
}

/* ─── Card body ───────────────────────────────────────────────────── */
.product-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.product-card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text, #1a1a2e);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}
.product-card-name:hover { color: var(--babyblue, #f9a8c9); }

.product-rating { display: flex; align-items: center; gap: 2px; font-size: 13px; }
.rating-count   { font-size: 11px; color: var(--text-muted, #6b7280); margin-left: 3px; }

.product-card-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-main  { font-size: 16px; font-weight: 700; color: var(--text, #1a1a2e); }
.price-sale  { font-size: 16px; font-weight: 700; color: var(--text, #1a1a2e); }
.price-was   { font-size: 13px; color: var(--text-muted, #6b7280); text-decoration: line-through; }
.price-discount-pct {
    font-size: 11px; font-weight: 600;
    background: #dcfce7; color: #166534;
    padding: 1px 6px; border-radius: 4px;
}

.low-stock-label { font-size: 11px; color: #b45309; font-weight: 500; }

/* ─── Wishlist position ───────────────────────────────────────────── */
.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s, color .18s;
    color: var(--text-muted, #6b7280);
}
.wishlist-btn:hover, .wishlist-btn-active {
    background: var(--teal-light, #fce4ef);
    color: var(--babyblue, #f9a8c9);
}

/* ─── Touch / mobile ──────────────────────────────────────────────── */
@media (hover: none) {
    /* On touch devices, the overlay is always partially visible
       so users can discover the add-to-cart button */
    .product-card-atc-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,.3) 0%, transparent 80%);
    }
    .product-card-atc-btn {
        background: rgba(255,255,255,.92);
    }
}

/* ─── Stars ──────────────────────────────────────── */
.star-on {
    color: #f59e0b;
}

.star-off {
    color: #d1d5db;
}

.review-stars-sm {
    font-size: 12px;
}

/* ─── Layout ─────────────────────────────────────── */
.app-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1;
}

.logo-icon {
    font-size: 16px;
}

.logo-img {
    height: 40px;
    width: auto;
}


/* ─── Cart drawer ────────────────────────────────── */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 400;
}

.cart-drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    max-width: 100vw;
    background: #fff;
    z-index: 500;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.drawer-title {
    font-size: 18px;
    font-weight: 600;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    text-align: center;
}

.cart-empty-icon {
    color: var(--text-muted);
    opacity: .4;
}

.cart-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-variant {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 14px;
    color: var(--babyblue);
    font-weight: 500;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 2px;
}

.cart-item-remove:hover {
    color: #dc2626;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--babyblue);
}

.qty-value {
    font-size: 14px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.cart-total-amount {
    font-weight: 700;
    color: var(--babyblue);
}

.cart-shipping-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ─── Home page ──────────────────────────────────── */
.home-page {}

.home-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.home-section-tinted {
    background: var(--bg-soft);
    max-width: 100%;
}

.home-section-tinted>* {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    border-bottom: 3px solid var(--border);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
}

.view-all-link {
    font-size: 16px;
    color: var(--deepskyblue);
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Hero */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, .55) 0%, transparent 70%);
}

.hero-slide-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

.hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 560px;
}

.hero-fallback {
    min-height: 520px;
    background: linear-gradient(135deg, var(--babyblue-light), var(--teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fallback-content {
    text-align: center;
    padding: 40px;
}

.hero-fallback-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-fallback-sub {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow-left {
    left: 20px;
}

.hero-arrow-right {
    right: 20px;
}

.hero-arrow:hover {
    background: #fff;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .7);
    background: transparent;
    padding: 0;
}

.hero-dot-active {
    background: #fff;
    border-color: #fff;
}

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 60px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.category-card-img-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--babyblue-light);
    background: var(--bg-soft);
    transition: 1s transform ease-in-out;
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.category-card-name {
    font-size: 16px;
    font-weight: 500;
}

.category-card-img-wrap {
    transition: border-color .5s ease, transform .5s ease;
}

.category-card:hover .category-card-img-wrap:hover {
    border-color: var(--babyblue);
    border-style: solid;
    border-width: 4px;
    transform: scale(1.05);
}


/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .2s;
}

.product-card:hover {
    box-shadow: var(--shadow);
}

.product-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-soft);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.product-card:hover .product-card-img {
    transform: scale(1.04);
}

.product-card-tags {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.product-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.product-card-name:hover {
    color: var(--babyblue);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-muted);
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price-main {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.price-sale {
    font-size: 16px;
    font-weight: 700;
    color: var(--babyblue);
}

.price-was {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-add-cart-sm {
    padding: 6px 12px;
    font-size: 12px;
    background: var(--babyblue);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background .2s;
}

.btn-add-cart-sm:hover {
    background: #f082b0;
}

.btn-add-cart-sm:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Wishlist button */
.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, .9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color .2s, background .2s;
}

.wishlist-btn:hover,
.wishlist-btn-active {
    color: var(--babyblue);
    background: var(--babyblue-light);
}

/* Promo / promotion banners */
.promo-banner {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.promo-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
}

.promo-banner-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

.promo-banner-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.promotion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.promotion-card {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.promotion-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.promotion-card-content {
    position: relative;
    z-index: 1;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.promotion-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .promotion-grid {
        grid-template-columns: 1fr;
    }
}

/* Trust strip */
.trust-strip {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    border-right: 1px solid var(--border);
}

.trust-item:last-child {
    border-right: none;
}

.trust-item svg {
    color: var(--babyblue);
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.trust-item span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Reviews strip */
.reviews-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.review-strip-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-strip-stars {
    font-size: 16px;
}

.review-strip-comment {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    font-style: italic;
}

.review-strip-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.reviewer-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 13px;
    font-weight: 600;
}

.review-product-name {
    font-size: 12px;
    color: var(--text-muted);
}

/* Newsletter */
.newsletter-section {
    background: #d4e9d8;
    padding: 64px 24px;
    text-align: center;
}

.newsletter-inner {
    max-width: 540px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.newsletter-sub {
    font-size: 15px;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: none;
    font-size: 14px;
    background-color: white;
}

.newsletter-input:focus {
    outline: 2px solid rgba(255, 255, 255, .6);
}

.newsletter-privacy {
    font-size: 12px;
    margin-top: 10px;
}

.newsletter-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.newsletter-success svg {
    opacity: .9;
}

.newsletter-success h3 {
    font-size: 22px;
    font-weight: 700;
}

.newsletter-success p {
    opacity: .85;
}

/* ─── Shop page ──────────────────────────────────── */
.shop-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.shop-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.shop-count {
    font-size: 14px;
    color: var(--text-muted);
}

.shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

.shop-sidebar {
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 80px;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    transition: background .15s;
}

.filter-item:hover {
    background: var(--skyblue);
}

.filter-item-active {
    background: var(--babyblue);
    color: var(--bg);
    font-weight: 500;
}

.shop-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.search-field:focus {
    outline: none;
    border-color: var(--babyblue);
}

.sort-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: #fff;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    width: 90px;
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
}

.price-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.shop-main {}

.pagination-wrap {
    margin-top: 24px;
}

.empty-state {
    text-align: center;
    padding: 64px 0;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }

}

/* ─── Category hero ──────────────────────────────── */
.category-hero {
    position: relative;
    height: 280px;
    background: var(--bg-soft);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.category-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.category-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

.category-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}

.category-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, .8);
    margin-top: 8px;
}

.breadcrumb {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.breadcrumb-light span,
.breadcrumb-light a {
    color: rgba(255, 255, 255, .7);
}

.breadcrumb a:hover {
    color: var(--babyblue);
}

.subcategory-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.subcategory-pill {
    padding: 6px 16px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    transition: border-color .2s;
}

.subcategory-pill:hover {
    border-color: var(--babyblue);
    color: var(--babyblue);
}

/* ─── Product detail ─────────────────────────────── */
.product-detail-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 24px;
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
}

.gallery-main-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    background: none;
    padding: 0;
}

.gallery-thumb:hover,
.thumb-active {
    border-color: var(--babyblue);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.rating-label {
    font-size: 13px;
    color: var(--text-muted);
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-price-main {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.product-price-was {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-discount-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.product-short-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-label {
    font-size: 14px;
    font-weight: 500;
}

.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
}

.color-swatch-active {
    border-color: var(--text);
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: #fff;
}

.size-btn:hover,
.size-btn-active {
    border-color: var(--babyblue);
    background: var(--babyblue-light);
}

.add-to-cart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 12px;
}

.stock-warning {
    font-size: 13px;
    color: #b45309;
    background: #fef9c3;
    padding: 8px 12px;
    border-radius: var(--radius);
}

.stock-out {
    font-size: 13px;
    color: #dc2626;
}

.product-description h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-description-body {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.product-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.reviews-section {
    margin-top: 56px;
}

.reviews-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.review-form-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.review-form-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

.star-picker {
    display: flex;
    gap: 6px;
    font-size: 28px;
    margin-bottom: 12px;
}

.star-pick {
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.review-success {
    background: #f0fdf4;
    color: #166534;
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.review-prompt {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-date {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.review-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.no-reviews {
    color: var(--text-muted);
    font-size: 14px;
}

.related-section {
    margin-top: 56px;
}

.related-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ─── Cart page ──────────────────────────────────── */
.cart-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-top: 24px;
    align-items: start;
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-row-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cart-row-info {
    flex: 1;
}

.cart-row-name {
    font-size: 15px;
    font-weight: 500;
}

.cart-row-variant {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-row-price {
    font-size: 14px;
    color: var(--text-muted);
}

.cart-row-subtotal {
    font-size: 16px;
    font-weight: 600;
    min-width: 90px;
    text-align: right;
}

.cart-summary-col {}

.cart-summary-card {
    background: var(--verylightblue);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 80px;
}

.cart-summary-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
}

.summary-row-total {
    font-size: 16px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 6px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.summary-meta {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.free-shipping-hint {
    font-size: 12px;
    color: #166534;
    padding: 6px 10px;
    border-radius: var(--radius);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* ─── Auth pages ──────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: var(--bg-soft);
}

.auth-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--babyblue);
    margin-bottom: 16px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ─── Checkout ───────────────────────────────────── */
.checkout-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 24px 0 32px;
}

.text-danger {
    color: #dc2626;
}

.stripe-checkout-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin: 16px 0;
    line-height: 1.5;
}

.stripe-checkout-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.tax-rate-badge {
    display: inline-block;
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.tax-loading-indicator {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 4px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.mb-4 {
    margin-bottom: 16px;
}

.flex-1 {
    flex: 1;
}

.font-medium {
    font-weight: 500;
}

.checkout-trust {
    background: var(--bg-soft, #fdf6f9);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius);
}

.step span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-active {
    color: var(--babyblue);
}

.step-active span {
    background: var(--babyblue);
    color: #fff;
}

.step-divider {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.checkout-form-col {}

.checkout-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.checkout-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.checkout-summary-col {}

.saved-addresses {
    margin-bottom: 16px;
}

.address-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
}

.address-option-selected {
    border-color: var(--babyblue);
    background: var(--babyblue-light);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.payment-option-selected {
    border-color: var(--babyblue);
    background: var(--babyblue-light);
}

.payment-option strong {
    font-size: 14px;
}

.payment-option p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.order-review-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.order-review-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.order-review-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.delivery-summary,
.payment-summary {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 12px;
    font-size: 14px;
    margin-bottom: 12px;
}

.delivery-summary h4,
.payment-summary p {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* ─── Account pages ──────────────────────────────── */
.account-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

.account-header {
    margin-bottom: 28px;
}

.account-welcome {
    font-size: 14px;
    color: var(--text-muted);
}

.account-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.account-nav {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 80px;
}

.account-nav-link {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    transition: background .15s;
}

.account-nav-link:hover {
    background: var(--babyblue-light);
    color: var(--babyblue);
}

.account-nav-active {
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-weight: 500;
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.account-section {}

.section-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.address-card {
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.address-card-default {
    border-color: var(--babyblue);
}

.addr-name {
    font-weight: 600;
}

.addr-line {
    color: var(--text-muted);
}

.addr-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: background .15s;
}

.filter-tab:hover,
.filter-tab-active {
    background: var(--babyblue-light);
    border-color: var(--babyblue);
    color: var(--babyblue);
}

.order-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.order-number {
    font-size: 14px;
    font-weight: 600;
    font-family: monospace;
}

.order-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.order-badges {
    display: flex;
    gap: 6px;
}

.order-card-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.order-item-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.order-item-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.order-total {
    font-size: 14px;
}

.back-link {
    font-size: 14px;
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 12px;
}

.back-link:hover {
    color: var(--babyblue);
}

.order-tracker {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.tracker-step-done {
    color: var(--babyblue);
}

.tracker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
}

.tracker-step-done .tracker-dot {
    background: var(--babyblue);
}

.tracker-line {
    flex: 1;
    height: 2px;
    background: var(--border);
}

.tracker-line-done {
    background: var(--babyblue);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}


.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.order-action-bar {
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-action-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #854d0e;
    line-height: 1.55;
}

.order-action-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.order-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .48);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.modal-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-danger:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .order-action-buttons {
        flex-direction: column;
    }

    .order-action-buttons .btn-primary,
    .order-action-buttons .btn-outline {
        width: 100%;
    }
}

.order-card-attention {
    border-color: #fde68a;
    background: #fffdf0;
}

.order-card-notice {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    line-height: 1.5;
    padding: 9px 13px;
    border-radius: 7px;
    margin-bottom: 12px;
}

.order-card-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.order-card-notice-warning {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde68a;
}

.order-card-notice-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ── Modal ────────────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}

.order-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 820px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    margin: auto;
}

.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px 28px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.order-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 2px;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #6b7280);
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background .15s;
}

.modal-close:hover {
    background: #f3f4f6;
}

.order-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.order-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.order-modal-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.cancel-confirm-box {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius, 8px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border: none;
}

.btn-outline-sm.special-case {
    color: var(--text);
    border: 1px solid var(--text);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .order-modal {
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
        margin-top: auto;
    }

    .modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .order-modal-grid {
        grid-template-columns: 1fr;
    }
}

.payment-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid #e5e7eb;
    border-top-color: var(--pink, #f9a8c9);
    border-radius: 50%;
    animation: pspin 0.75s linear infinite;
    margin: 0 auto 24px;
}

@keyframes pspin {
    to {
        transform: rotate(360deg);
    }
}

.payment-success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #166534;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.payment-failed-icon {
    width: 64px;
    height: 64px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.payment-success-summary {
    background: var(--bg-soft, #fdf6f9);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-success-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.payment-success-summary-row strong {
    color: var(--text);
}

/* ── Filter bar ──────────────────────────────────────────── */
.tax-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
}

.tax-filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 3px;
}

.tax-filter-tab {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: none;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .15s;
    font-weight: 500;
}

.tax-filter-tab-active {
    background: green;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.tax-filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Summary cards ───────────────────────────────────────── */
.tax-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 0;
}

.tax-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.tax-stat-primary {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.tax-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.tax-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -.5px;
}

.tax-stat-primary .tax-stat-value {
    color: #166534;
}

.tax-stat-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Filing notice ───────────────────────────────────────── */
.tax-filing-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
    margin-top: 20px;
}

.tax-filing-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d97706;
}

.tax-filing-notice a {
    color: #d97706;
    font-weight: 500;
}

/* ── Bar chart ───────────────────────────────────────────── */
.tax-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
    padding: 8px 0 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.tax-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.tax-bar-amount {
    font-size: 10px;
    color: var(--text-muted);
    min-height: 14px;
    text-align: center;
}

.tax-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.tax-bar-fill {
    width: 100%;
    background: var(--pink, #f9a8c9);
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height .3s ease;
}

.tax-bar-current .tax-bar-fill {
    background: #166534;
}

.tax-bar-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.tax-bar-count {
    font-size: 10px;
}

/* ── Table helpers ───────────────────────────────────────── */
.tr-highlight td {
    background: #f0fdf4;
}

.tr-total td {
    background: var(--bg-soft);
    border-top: 2px solid var(--border);
    font-size: 14px;
}

.badge-current {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-page-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .tax-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tax-summary-grid {
        grid-template-columns: 1fr;
    }

    .tax-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tax-bar-amount {
        display: none;
    }
}


.reset-success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
}
.reset-success p {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    line-height: 1.65;
}
.reset-invalid {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
}
.reset-invalid p {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    line-height: 1.65;
}

.order-detail-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.order-detail-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.order-detail-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
}

.order-item-price {
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Admin layout ───────────────────────────────── */
.admin-body {
    background: #f8fafc;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--babyblue);
    border-bottom: 1px solid var(--border);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    flex: 1;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}

.admin-nav-link:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.admin-nav-active {
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-weight: 500;
}

.admin-nav-link-btn {
    width: 100%;
}

.admin-sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 12px;
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.admin-user {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.admin-main {
    padding: 28px 28px;
    flex: 1;
}

.admin-page {}

.admin-page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.admin-search {
    flex: 1;
    max-width: 360px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.admin-search:focus {
    outline: none;
    border-color: var(--babyblue);
}

.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.admin-card-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.admin-card-section-title {
    font-size: 15px;
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: #f9fafb;
}

.admin-table td {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--bg-soft);
}

.table-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.table-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.table-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-actions {
    display: flex;
    gap: 6px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-form-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-form-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-form-panel-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.admin-side-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-orders-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}

.admin-card-half {
    grid-column: 1;
}

.order-detail-panel {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.stat-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-sub-warn {
    color: #b45309;
}

.status-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 20px;
}

.status-bar-label {
    width: 90px;
    font-size: 13px;
}

.status-bar-track {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--babyblue);
    transition: width .4s;
}

.status-bar-pending {
    background: #f59e0b;
}

.status-bar-processing {
    background: #3b82f6;
}

.status-bar-shipped {
    background: #8b5cf6;
}

.status-bar-delivered {
    background: #22c55e;
}

.status-bar-cancelled {
    background: #ef4444;
}

.status-bar-count {
    width: 30px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
}

.low-stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.low-stock-row:last-child {
    border-bottom: none;
}

.low-stock-name {
    font-size: 13px;
}

.low-stock-qty {
    font-size: 13px;
    font-weight: 600;
}

.text-danger {
    color: #dc2626;
}

.text-warn {
    color: #b45309;
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.font-mono {
    font-family: monospace;
}

.row-selected {
    background: #d5deee !important;
}

.status-select {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    background: #fff;
}

.status-select-pending {
    border-color: #f59e0b;
    color: #854d0e;
}

.status-select-processing {
    border-color: #3b82f6;
    color: #1e40af;
}

.status-select-shipped {
    border-color: #8b5cf6;
    color: #3730a3;
}

.status-select-delivered {
    border-color: #22c55e;
    color: #166534;
}

.status-select-cancelled {
    border-color: #ef4444;
    color: #991b1b;
}

.status-select-paid {
    border-color: #22c55e;
    color: #166534;
}

.status-select-failed {
    border-color: #ef4444;
    color: #991b1b;
}

.image-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.image-preview-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.existing-img-wrap {
    position: relative;
}

.existing-img-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-direction: column;
}
.promotion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promotion-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 240px;
}
.promotion-card {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    border-radius: 16px;
    display: flex; align-items: flex-end;
    min-height: 240px;
}
.promotion-card-initial { position: relative !important; }
.promotion-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
    border-radius: 16px;
}
.promotion-card-content {
    position: relative; z-index: 2;
    padding: 24px;
    width: 100%;
}
.promotion-card-title {
    font-size: 20px; font-weight: 700; color: #fff;
    margin-bottom: 12px; text-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.promo-card-dots {
    position: absolute;
    bottom: 12px; right: 16px;
    display: flex; gap: 6px; z-index: 10;
}
@media (max-width: 640px) {
    .promotion-grid { grid-template-columns: 1fr; }
}
.promo-carousel {
            position: relative;
            width: 100%;
            overflow: hidden;
        }

        .promo-slides-wrap {
            position: relative;
            min-height: 200px;
            height: 350px;
        }

        .promo-slide {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            min-height: 200px;
        }

        .promo-slide-initial {
            position: relative !important;
        }

        .promo-slide-content {
            position: relative;
            z-index: 2;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 48px;
            width: 100%;
        }

        .promo-title {
            font-size: 28px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 16px;
            text-shadow: 0 2px 6px rgba(0, 0, 0, .3);
        }

        .promo-subtitle {
            font-size: 16px;
            color: rgba(255, 255, 255, .9);
            margin-bottom: 14px;
        }
.banner-preview {
    max-height: 120px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.banner-table-thumb {
    width: 80px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.toggle-btn {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: none;
}

.toggle-on {
    background: #dcfce7;
    color: #166534;
}

.toggle-off {
    background: #f3f4f6;
    color: #6b7280;
}

.review-comment-truncate {
    font-size: 13px;
    color: var(--text-muted);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--babyblue-light);
    color: var(--babyblue);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.customer-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.customer-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.customer-address-row {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.p-4 {
    padding: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mt-3 {
    margin-top: 12px;
}

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
    background-color: rgb(230, 209, 182);
    color: var(--text);
    margin-top: 0px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;

    background-color: rgb(230, 209, 182);
    color: var(--text);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 900;
}
.footer-logo-img{
    width: auto;
    height: 50px;
    object-fit: cover;
}
.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--text);
    color: var(--text);
    transition: border-color .2s, color .2s;
}

.social-link:hover {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text);
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 24px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text);
}

.footer-payment-icons {
    display: flex;
    gap: 8px;
}

.payment-badge {
    background-color: 2px solid var(--brown);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text);
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ── Policy / help pages ──────────────────────────────────────────────── */

/* Page hero banner */
.page-hero {
    background: var(--bg-soft, #fdf6f9);
    border-bottom: 1px solid var(--border, #e5e7eb);
    padding: 48px 24px 40px;
}

.page-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin: 10px 0 12px;
    line-height: 1.15;
}

.page-hero-sub {
    font-size: 17px;
    color: var(--text-muted, #6b7280);
    max-width: 580px;
    line-height: 1.6;
}

/* Page outer wrapper */
.policy-page {}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* Prose body */
.policy-body {
    max-width: 720px;
}

.policy-body h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 36px 0 12px;
    color: var(--text, #1a1a2e);
}

.policy-body h2:first-child {
    margin-top: 0;
}

.policy-body p {
    font-size: 15px;
    color: var(--text-muted, #6b7280);
    line-height: 1.75;
    margin-bottom: 14px;
}

.policy-body a {
    color: var(--softblue, #f9a8c9);
    text-decoration: underline;
}

.policy-body strong {
    color: var(--text, #1a1a2e);
}

/* Bullet lists */
.policy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
}

.policy-list li {
    font-size: 15px;
    color: var(--text-muted, #6b7280);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.policy-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--softblue, #f9a8c9);
    flex-shrink: 0;
    margin-top: 8px;
}

/* Tables */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0 28px;
}

.policy-table th {
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 16px;
    background: var(--bg-soft, #fdf6f9);
    border-bottom: 2px solid var(--border, #e5e7eb);
    color: var(--text, #1a1a2e);
}

.policy-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    color: var(--text-muted, #6b7280);
    vertical-align: top;
}

.policy-table tbody tr:last-child td {
    border-bottom: none;
}

.policy-table tbody tr:hover td {
    background: var(--bg-soft, #fdf6f9);
}

/* Steps (returns page) */
.policy-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0 28px;
}

.policy-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--softblue, #f9a8c9);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.policy-step strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text, #1a1a2e);
}

.policy-step p {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    line-height: 1.6;
    margin: 0;
}

/* Info box */
.policy-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.65;
    margin: 20px 0 28px;
}

.policy-info-box a {
    color: var(--softblue, #f9a8c9);
}

/* Highlight cards (shipping & returns) */
.policy-highlight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.policy-highlight-card {
    background: var(--bg-soft, #fdf6f9);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-highlight-card svg {
    color: var(--softblue, #f9a8c9);
}

.policy-highlight-card strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #1a1a2e);
}

.policy-highlight-card span {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
}

/* "Still need help" block (FAQ) */
.policy-still-need-help {
    background: var(--bg-soft, #fdf6f9);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 36px;
    text-align: center;
    margin-top: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.policy-still-need-help h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.policy-still-need-help p {
    font-size: 15px;
    color: var(--text-muted, #6b7280);
    margin-bottom: 20px;
}






/* ═══════════════════════════════════════════════════════════════
   APPEND THIS ENTIRE FILE TO THE BOTTOM OF resources/css/app.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── Admin layout — responsive ──────────────────────────────── */

/* Sidebar backdrop on mobile */
.admin-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 199;
}

/* Hamburger button in admin topbar */
.admin-hamburger {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}

.admin-hamburger:hover {
    background: var(--bg-soft);
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 16px 0 8px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* hamburger left, user right */
    gap: 12px;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 20px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    display: none;
    /* shown on mobile only */
}

.sidebar-close-btn:hover {
    background: var(--bg-soft);
}

/* Desktop (≥ 1024px): sidebar always visible, no overlay */
@media (min-width: 1024px) {
    .admin-layout {
        display: flex;
        min-height: 100vh;
    }

    .admin-sidebar {
        width: 240px;
        flex-shrink: 0;
        background: #fff;
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        /* on desktop we use CSS, not Alpine classes, for open/close */
        transform: none !important;
        transition: none;
    }

    .admin-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .admin-backdrop {
        display: none !important;
    }

    .sidebar-close-btn {
        display: none !important;
    }
}

/* Mobile / tablet (< 1024px): sidebar is an off-canvas drawer */
@media (max-width: 1023px) {
    .admin-layout {
        display: block;
        /* stacked, not flex */
        min-height: 100vh;
    }

    .admin-content {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        background: #fff;
        border-right: 1px solid var(--border);
        z-index: 200;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        /* transition drives the slide-in/out */
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Alpine sets these classes via :class binding */
    .admin-sidebar-open {
        transform: translateX(0);
    }

    .admin-sidebar-closed {
        transform: translateX(-100%);
    }

    .sidebar-close-btn {
        display: flex;
    }

    .admin-main {
        padding: 20px 16px;
    }

    /* Stack stat cards to 2-column on tablet, 1-column on phone */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tables: allow horizontal scroll rather than breaking layout */
    .admin-card {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 600px;
    }

    /* Stack two-column admin forms */
    .admin-two-col,
    .admin-orders-layout {
        grid-template-columns: 1fr;
    }

    /* Form grids collapse to single column */
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .col-span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-toolbar {
        flex-wrap: wrap;
    }

    .admin-search {
        max-width: 100%;
        width: 100%;
    }
}

/* ─── Shop page — responsive ─────────────────────────────────── */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px;
    align-items: start;
}

.shop-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-count {
    font-size: 14px;
    color: var(--text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .shop-sidebar {
        /* Hidden by default on mobile, toggled by the Filters button */
        display: none;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 16px;
    }

    .shop-sidebar.sidebar-open {
        display: block;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .shop-header {
        padding: 16px 16px 0;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ─── Empty state ─────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    gap: 8px;
}

/* ─── Filter section (sidebar) ────────────────────────────────── */
.filter-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.filter-item:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.filter-item-active {
    background: var(--pink-light);
    color: var(--pink);
    font-weight: 500;
}

/* ─── Page hero (help pages) ──────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--pink);
}

/* ─── qty controls (cart) ─────────────────────────────────────── */
.qty-control {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 16px;
    cursor: pointer;
    color: var(--text);
    transition: background .15s;
    line-height: 1;
}

.qty-btn:hover:not(:disabled) {
    background: var(--bg-soft);
}

.qty-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    padding: 0 4px;
}

.tax-label-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    margin-bottom: 4px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tax-info-tooltip {
    cursor: help;
    color: var(--text-muted);
    font-style: normal;
}

/* ── Slide-over section blocks ───────────────────────────────────── */
.slideover-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.slideover-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.slideover-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 0 10px;
}

/* ── Table helpers ───────────────────────────────────────────────── */
.table-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.table-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-soft);
}

.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.table-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Small buttons ───────────────────────────────────────────────── */
.btn-xs {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}

.btn-xs:hover {
    background: var(--bg-soft);
    border-color: var(--pink);
    color: var(--pink);
}

.btn-xs.btn-danger {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
    padding: 5px 12px;
    font-size: 12px;
}

.btn-xs.btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.btn-xs-active {
    background: var(--pink-light);
    border-color: var(--pink);
    color: var(--pink);
}

/* ── Status badges ───────────────────────────────────────────────── */
.badge-active {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
}

.badge-inactive {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
}

.badge-payment,
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-paid {
    background: #dcfce7;
    color: #166534;
}

.badge-pending {
    background: #fef9c3;
    color: #854d0e;
}

.badge-failed {
    background: #fee2e2;
    color: #dc2626;
}

.badge-cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-refunded {
    background: #ede9fe;
    color: #6d28d9;
}

.badge-processing {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-shipped {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-delivered {
    background: #dcfce7;
    color: #166534;
}

/* ── Price display ───────────────────────────────────────────────── */
.price-sale {
    color: var(--pink);
    font-weight: 700;
    margin-right: 4px;
}

.price-was {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: line-through;
}

.text-danger {
    color: #dc2626;
    font-weight: 600;
}

/* ── Image upload previews ───────────────────────────────────────── */
.form-input-file {
    display: block;
    width: 100%;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
}

.image-preview-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.image-preview-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid var(--border);
}

.existing-img-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.existing-img-actions {
    display: flex;
    gap: 4px;
}

.badge-primary-img {
    font-size: 10px;
    background: var(--pink);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* ── Form helpers ────────────────────────────────────────────────── */
.required {
    color: #dc2626;
    margin-left: 2px;
}

.optional {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

/* ── Pagination ──────────────────────────────────────────────────── */
.pagination-wrap {
    padding: 16px 0 4px;
}

/* ── Admin page structure ────────────────────────────────────────── */
.admin-page {
    padding: 24px 28px;
    max-width: 1300px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.admin-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-search {
    flex: 1;
    min-width: 200px;
    max-width: 380px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.admin-search:focus {
    outline: none;
    border-color: var(--pink);
}

.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.admin-card-header h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 700;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--bg-soft);
}

.text-sm {
    font-size: 13px;
}

.text-muted {
    color: var(--text-muted);
}

/* ── Admin sidebar ───────────────────────────────────────────────── */
.admin-body {
    margin: 0;
    background: var(--bg-soft);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.admin-nav {
    flex: 1;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: background .15s, color .15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.admin-nav-link:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.admin-nav-active {
    background: var(--pink-light) !important;
    color: var(--pink) !important;
    font-weight: 600;
}

.admin-nav-link-btn {
    font-size: 14px;
}

.admin-sidebar-footer {
    padding: 10px 8px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 20px 0 12px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.admin-hamburger {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.admin-hamburger:hover {
    background: var(--bg-soft);
}

.admin-main {
    flex: 1;
    overflow-y: auto;
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.admin-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 199;
}

/* Mobile admin sidebar */
@media (max-width: 1023px) {
    .admin-layout {
        display: block;
    }

    .admin-content {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 200;
    }

    .admin-sidebar-open {
        transform: translateX(0);
    }

    .admin-sidebar-closed {
        transform: translateX(-100%);
    }

    .sidebar-close-btn {
        display: flex;
    }

    .admin-page {
        padding: 16px;
    }
}

@media (min-width: 1024px) {
    .admin-sidebar {
        transform: none !important;
    }

    .admin-backdrop {
        display: none !important;
    }

    .sidebar-close-btn {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-toolbar {
        gap: 8px;
    }

    .admin-search {
        max-width: 100%;
    }

    .admin-card {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 600px;
    }
}

.admin-modal-backdrop,
.admin-slideover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.admin-modal-overlay,
.admin-slideover-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ── Modal panel ─────────────────────────────────────────────────── */
.admin-modal-panel {
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* ── Slide-over panel ────────────────────────────────────────────── */
.admin-slideover-backdrop {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}

.admin-slideover-panel {
    position: relative;
    z-index: 10;
    background: #fff;
    height: 100%;
    max-width: 100%;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Shared header ───────────────────────────────────────────────── */
.admin-modal-header,
.admin-slideover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    flex-shrink: 0;
    background: #fff;
}

.admin-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text, #1a1a2e);
    margin: 0;
}

.admin-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-soft, #f8fafc);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted, #6b7280);
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.admin-modal-close:hover {
    background: var(--border, #e5e7eb);
    color: var(--text, #1a1a2e);
}

/* ── Shared body (scrollable) ────────────────────────────────────── */
.admin-modal-body,
.admin-slideover-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border, #e5e7eb) transparent;
}

.admin-modal-body::-webkit-scrollbar,
.admin-slideover-body::-webkit-scrollbar {
    width: 6px;
}

.admin-modal-body::-webkit-scrollbar-track,
.admin-slideover-body::-webkit-scrollbar-track {
    background: transparent;
}

.admin-modal-body::-webkit-scrollbar-thumb,
.admin-slideover-body::-webkit-scrollbar-thumb {
    background: var(--border, #e5e7eb);
    border-radius: 3px;
}

/* ── Modal footer (sticky at bottom) ────────────────────────────── */
.admin-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border, #e5e7eb);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    background: #fff;
}

/* ── Toast / success notification ───────────────────────────────── */
/* Shown briefly after save — replaces the old page-scroll alert */
.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a2e;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    max-width: 360px;
}

.admin-toast-success {
    background: #166534;
}

.admin-toast-error {
    background: #dc2626;
}

.admin-toast svg {
    flex-shrink: 0;
}

/* ── Table row hover + action reveal ────────────────────────────── */
/* Actions are always visible but highlighted on row hover */
.admin-table tbody tr {
    transition: background 0.1s;
}

.admin-table tbody tr:hover {
    background: var(--bg-soft, #fdf6f9);
}

/* ── Danger button (reusable) ────────────────────────────────────── */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius, 8px);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .admin-modal-panel {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        align-self: flex-end;
    }

    .admin-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .admin-slideover-panel {
        width: 100% !important;
    }
}

.tax-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
}

.tax-filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 3px;
}

.tax-filter-tab {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: none;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .15s;
    font-weight: 500;
}

.tax-filter-tab-active {
    background: var(--babyblue);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.tax-filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Summary cards ───────────────────────────────────────── */
.tax-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 0;
}

.tax-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.tax-stat-primary {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.tax-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.tax-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -.5px;
}

.tax-stat-primary .tax-stat-value {
    color: #166534;
}

.tax-stat-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Filing notice ───────────────────────────────────────── */
.tax-filing-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
    margin-top: 20px;
}

.tax-filing-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d97706;
}

.tax-filing-notice a {
    color: #d97706;
    font-weight: 500;
}

/* ── Bar chart ───────────────────────────────────────────── */
.tax-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
    padding: 8px 0 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.tax-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.tax-bar-amount {
    font-size: 10px;
    color: var(--text-muted);
    min-height: 14px;
    text-align: center;
}

.tax-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.tax-bar-fill {
    width: 100%;
    background: var(--pink, #f9a8c9);
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height .3s ease;
}

.tax-bar-current .tax-bar-fill {
    background: #166534;
}

.tax-bar-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.tax-bar-count {
    font-size: 10px;
}

/* ── Table helpers ───────────────────────────────────────── */
.tr-highlight td {
    background: #f0fdf4;
}

.tr-total td {
    background: var(--bg-soft);
    border-top: 2px solid var(--border);
    font-size: 14px;
}

.badge-current {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-page-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .tax-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tax-summary-grid {
        grid-template-columns: 1fr;
    }

    .tax-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tax-bar-amount {
        display: none;
    }
}

/* ── Pagination ──────────────────────────────────────────────────── */

.my-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
}

.my-pagination-info {
    font-size: 13px;
    color: #6b7280;
}

.my-pagination-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.my-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    user-select: none;
}

.my-page-btn:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.my-page-active {
    background: #dbeafe;
    border-color: #dbeafe;
    color: #1d4ed8;
    pointer-events: none;
}

.my-page-active:hover {
    background: var(--pink, #f9a8c9);
    color: #ffffff;
}

.my-page-disabled {
    color: #d1d5db;
    border-color: #f3f4f6;
    background: #f9fafb;
    pointer-events: none;
    cursor: default;
}

.my-page-dots {
    border-color: transparent;
    background: transparent;
    color: #9ca3af;
    pointer-events: none;
    letter-spacing: 1px;
}

@media (max-width: 640px) {
    .my-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}