/* =====================================================================
   GHAFAR TAJHIZ — Storefront "Friendly" theme (RTL / Persian)

   Same visual language as admin-friendly.css so both sides feel related:
   - Lilac-tinted canvas, aubergine ink, coral as the single loud colour.
   - Tactile "sticker" buttons with a solid edge that presses down.
   - Radius follows hierarchy: pills for actions and status, 14px inputs,
     22px cards, bigger organic shapes for hero imagery.
   - Soft, ink-tinted shadows instead of neutral grey.

   Every class name from the previous stylesheet is kept, so markup and
   JavaScript need no changes.
   ===================================================================== */


/* =========================================================
   1. FONT
   ========================================================= */

@font-face {
    font-family: "myFont";
    src: url("../asstes/fonts/vazir-font-v16.1.0/Vazir-Medium.ttf");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   2. TOKENS
   ========================================================= */

:root {
    /* Brand */
    --brand: #ff6b4a;
    --brand-dark: #e8512f;
    --brand-edge: #d9472a;
    --brand-soft: rgba(255, 107, 74, 0.11);
    /* Ink and surfaces */
    --dark: #2b2340;
    --dark-2: #3a3052;
    --text: #2b2340;
    --text-soft: #6b6580;
    --muted: #968fab;
    --bg: #f7f5fb;
    --tint: #faf8fe;
    --white: #fff;
    --border: #ece8f3;
    --border-dark: #ddd6ea;
    /* Feedback */
    --success: #1f9d7a;
    --success-ink: #17795d;
    --success-soft: #e3f7ef;
    --warning: #a96c00;
    --warning-soft: #fff4d9;
    --danger: #c0364a;
    --danger-soft: #ffedf0;
    --info: #3d7099;
    --info-soft: #e6f1fa;
    --lilac: #efeaff;
    --lilac-ink: #6a4fd6;
    --sun: #ffd35c;
    /* Shape */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --pill: 999px;
    /* Depth */
    --shadow-sm: 0 4px 16px rgba(60, 40, 110, 0.06);
    --shadow-md: 0 10px 30px rgba(60, 40, 110, 0.09);
    --shadow-lift: 0 16px 36px rgba(60, 40, 110, 0.14);
    --focus: rgba(255, 107, 74, 0.28);
    --ease: cubic-bezier(0.34, 1.4, 0.64, 1);
}


/* =========================================================
   3. GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "myFont", Tahoma, sans-serif;
    direction: rtl;
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    background: radial-gradient(ellipse 36rem 24rem at 100% 0%, rgba(255, 107, 74, 0.07), transparent 70%), radial-gradient(ellipse 30rem 22rem at 0% 100%, rgba(106, 79, 214, 0.06), transparent 70%), var(--bg);
    background-attachment: fixed;
}

img {
    max-width: 100%;
}

ul {
    margin: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

    a:hover {
        text-decoration: none;
    }

::selection {
    background: #ffd9cf;
    color: #4a1d12;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 8px;
}

.pb-3 {
    padding-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-danger {
    color: #c62828;
    font-size: 11px;
}


/* =========================================================
   4. SITE NAVBAR
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-nav {
    position: relative;
    width: 100%;
    background: linear-gradient(110deg, var(--dark) 0%, var(--dark-2) 100%);
    box-shadow: 0 8px 24px rgba(43, 35, 64, 0.18);
}

    /* Three-colour ribbon: the one playful flourish in the header */
    .site-nav::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brand) 0 55%, var(--sun) 55% 80%, #5fd3b0 80% 100%);
    }

.nav-container {
    width: min(1200px, calc(100% - 35px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.desktopnavbar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.desktopnavbar .logo {
    display: block;
    width: auto;
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
}

.nav-item {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    background: transparent;
    border: none;
    border-radius: var(--pill);
    color: #e9e5f5 !important;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease);
}

    .nav-item i {
        color: #b3aacd;
        font-size: 13px;
        transition: color 0.2s ease;
    }

    /* A small dot replaces the old underline bar */
    .nav-item::after {
        content: "";
        position: absolute;
        bottom: 3px;
        left: 50%;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--brand);
        transform: translateX(-50%) scale(0);
        transition: transform 0.25s var(--ease);
    }

    .nav-item:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.09);
        transform: translateY(-1px);
    }

        .nav-item:hover i {
            color: var(--sun);
        }

        .nav-item:hover::after {
            transform: translateX(-50%) scale(1);
        }

.nav-cart {
    padding-left: 36px;
}

.cart-badge {
    position: absolute;
    top: 3px;
    left: 8px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    background: var(--brand);
    border-radius: var(--pill);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--dark);
}

    .cart-badge[data-count="0"] {
        display: none;
    }

.logout-form {
    margin: 0;
    padding: 0;
}

.nav-logout {
    min-height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.mobile-navbar {
    display: none;
}

.mobile-menu-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}

    .mobile-menu-btn:hover {
        color: var(--brand);
        border-color: rgba(255, 107, 74, 0.6);
        transform: scale(1.06);
    }

.mobile-logo-link {
    display: flex;
    align-items: center;
}

.mobile-logo {
    display: block;
    height: 42px;
    width: auto;
}


/* =========================================================
   5. SHARED BUTTON LOOK ("sticker" buttons)
   Primary buttons across the storefront share this treatment.
   ========================================================= */

.home-primary-btn,
.btnProduct,
.products-search-btn,
.product-card-btn,
.products-empty-btn,
.product-add-btn,
.btn-submit,
.modal-view-product-btn,
.filter-action button,
.resubmit-btn,
.btn-register,
.about-hero-btn,
.about-cta-btn {
    background: var(--brand);
    color: #fff !important;
    border: 1.5px solid transparent;
    border-radius: var(--pill);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 0 var(--brand-edge), 0 8px 16px rgba(255, 107, 74, 0.2);
    transition: transform 0.2s var(--ease), box-shadow 0.15s ease, background-color 0.2s ease;
}

    .home-primary-btn:hover,
    .btnProduct:hover,
    .products-search-btn:hover,
    .product-card-btn:hover,
    .products-empty-btn:hover,
    .product-add-btn:hover:not(:disabled),
    .btn-submit:hover,
    .modal-view-product-btn:hover,
    .filter-action button:hover,
    .resubmit-btn:hover,
    .btn-register:hover,
    .about-hero-btn:hover,
    .about-cta-btn:hover {
        background: #ff7a5b;
        color: #fff !important;
        transform: translateY(-2px);
    }

    .home-primary-btn:active,
    .btnProduct:active,
    .products-search-btn:active,
    .product-card-btn:active,
    .products-empty-btn:active,
    .product-add-btn:active:not(:disabled),
    .btn-submit:active,
    .modal-view-product-btn:active,
    .filter-action button:active,
    .resubmit-btn:active,
    .btn-register:active,
    .about-hero-btn:active,
    .about-cta-btn:active {
        transform: translateY(2px);
        box-shadow: 0 1px 0 var(--brand-edge);
    }


/* =========================================================
   6. COMMON — STOCK / QUANTITY
   ========================================================= */

.stock-message {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.quantity-input {
    width: 50px;
    padding: 6px;
    margin: 0;
    border: 1.5px solid var(--border-dark);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    direction: ltr;
}

    .quantity-input:disabled {
        background: #f1eff5;
        cursor: not-allowed;
    }

.btnProduct.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}


/* =========================================================
   7. HOME PAGE
   ========================================================= */

.home-page {
    width: 100%;
    overflow: hidden;
}

.home-hero {
    position: relative;
    padding: 70px 0 85px;
    background: linear-gradient(180deg, #fff 0%, #fff6f2 100%);
}

    /* Organic blobs behind the hero */
    .home-hero::before {
        content: "";
        position: absolute;
        width: 440px;
        height: 440px;
        top: -190px;
        right: -140px;
        border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
        background: rgba(255, 107, 74, 0.10);
        pointer-events: none;
    }

    .home-hero::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        bottom: -150px;
        left: -100px;
        border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
        background: rgba(106, 79, 214, 0.08);
        pointer-events: none;
    }

.home-hero-container {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 50px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 65px;
    align-items: center;
}

.home-hero-content {
    min-width: 0;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    margin-bottom: 18px;
    color: var(--brand-dark);
    background: #fff;
    border: 1.5px solid #ffd3c6;
    border-radius: var(--pill);
    font-size: 12px;
    font-weight: 700;
}

.home-hero-content h1 {
    max-width: 650px;
    margin: 0 0 18px;
    color: var(--text);
    font-size: 42px;
    line-height: 1.55;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.home-hero-content p {
    max-width: 620px;
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 2.25;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.home-primary-btn,
.home-secondary-btn {
    min-height: 46px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

.home-secondary-btn {
    background: #fff;
    color: #5a5470 !important;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--pill);
    box-shadow: 0 3px 0 var(--border-dark);
    transition: transform 0.2s var(--ease), box-shadow 0.15s ease, color 0.2s ease, border-color 0.2s ease;
}

    .home-secondary-btn:hover {
        color: var(--brand-dark) !important;
        border-color: #ffb9a6;
        transform: translateY(-2px);
    }

    .home-secondary-btn:active {
        transform: translateY(2px);
        box-shadow: 0 1px 0 var(--border-dark);
    }

.home-hero-features {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.home-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 11px;
}

.home-feature-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-soft);
    color: var(--success);
    border-radius: 50%;
    font-size: 10px;
}

.home-hero-visual {
    position: relative;
    min-width: 0;
    padding: 10px;
}

.home-hero-image-wrapper {
    position: relative;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 36px 36px 36px 10px;
    background: #fff;
    box-shadow: 0 6px 0 rgba(221, 214, 234, 0.7), 0 24px 50px rgba(60, 40, 110, 0.16);
}

.home-hero-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 650;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-hero-image-wrapper:hover .home-hero-image {
    transform: scale(1.03);
}

.home-image-badge {
    position: absolute;
    right: -8px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px 20px 20px 6px;
    box-shadow: var(--shadow-lift);
}

    .home-image-badge > i {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--brand-soft);
        color: var(--brand);
        border-radius: 12px;
        font-size: 14px;
    }

    .home-image-badge strong {
        display: block;
        margin-bottom: 2px;
        color: var(--text);
        font-size: 11px;
    }

    .home-image-badge span {
        display: block;
        color: var(--muted);
        font-size: 10px;
    }

.home-products-section {
    padding: 45px 0 10px;
}


/* =========================================================
   8. LEGACY PRODUCT COMPONENT
   ========================================================= */

.productsContainer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 20px;
}

.productsItems {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 14px;
    margin: 0;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.2s ease, border-color 0.2s ease;
}

    .productsItems:hover {
        cursor: pointer;
        transform: translateY(-6px) rotate(-0.5deg);
        border-color: #ffd0c2;
        box-shadow: var(--shadow-lift);
    }

.productsImage {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.82;
    object-fit: cover;
    border-radius: 16px;
}

.productsInfo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 4px 2px;
    flex: 1;
}

    .productsInfo > div {
        gap: 8px;
    }

    .productsInfo h5 {
        margin: 0;
        color: var(--text);
        font-size: 14px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .productsInfo p {
        margin: auto 0 0;
        color: var(--brand-dark);
        font-size: 14px;
        font-weight: 700;
    }

    .productsInfo .openModal {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        border: 1.5px solid var(--border);
        outline: none;
        background: #fff;
        border-radius: 50%;
        cursor: pointer;
        line-height: 1;
        appearance: none;
        -webkit-appearance: none;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

    .productsInfo .infoBtn {
        display: block;
        color: var(--brand);
        font-size: 1.2rem;
        line-height: 1;
        transition: color 0.25s ease, transform 0.3s var(--ease);
    }

    .productsInfo .openModal:hover {
        background: var(--brand-soft);
        border-color: #ffc2b1;
    }

        .productsInfo .openModal:hover .infoBtn {
            color: var(--brand-dark);
            transform: scale(1.15);
        }

    .productsInfo .openModal:focus-visible {
        outline: 3px solid var(--focus);
        outline-offset: 3px;
    }

.btnProduct {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-size: 11px;
    text-align: center;
}


/* =========================================================
   9. PRODUCT LIST PAGE
   ========================================================= */

.product-list-page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 70px;
}

.product-list-header {
    margin-bottom: 25px;
}

.product-list-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-radius: var(--pill);
    font-size: 11px;
    font-weight: 700;
}

.product-list-header h1 {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.product-list-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.products-search-card {
    padding: 12px;
    margin-bottom: 15px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--pill);
    box-shadow: var(--shadow-sm);
}

.products-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.products-search-input {
    position: relative;
    flex: 1;
    min-width: 0;
}

    .products-search-input i {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #a9a3bd;
        font-size: 13px;
    }

    .products-search-input input {
        width: 100%;
        min-height: 44px;
        padding: 9px 42px 9px 14px;
        border: 1.5px solid transparent;
        border-radius: var(--pill);
        background: var(--tint);
        color: var(--text);
        font-size: 12px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

        .products-search-input input:focus {
            outline: none;
            background: #fff;
            border-color: #ff9d85;
            box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.12);
        }

.products-search-btn {
    min-width: 100px;
    min-height: 44px;
    padding: 0 20px;
    font-size: 11px;
}

.products-clear-search {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    color: var(--muted) !important;
    font-size: 10px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

    .products-clear-search:hover {
        color: var(--brand-dark) !important;
    }

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 2px;
    margin-bottom: 18px;
    border-bottom: 2px dotted var(--border);
}

.products-toolbar-title {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    position: relative;
    padding: 6px 15px;
    color: var(--text-soft) !important;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--pill);
    font-size: 11px;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}

    .filter-btn:hover {
        color: var(--brand-dark) !important;
        border-color: #ffc2b1;
        transform: translateY(-1px);
    }

    .filter-btn.active {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff !important;
        font-weight: 700;
        box-shadow: 0 3px 0 var(--brand-edge);
    }

.products-container {
    width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.2s ease, border-color 0.2s ease;
}

    .product-card:hover {
        transform: translateY(-6px) rotate(-0.4deg);
        border-color: #ffd0c2;
        box-shadow: var(--shadow-lift);
    }

.product-card-image-link {
    display: block;
    margin: 10px 10px 0;
    aspect-ratio: 1 / 0.82;
    background: var(--tint);
    border-radius: 16px;
    overflow: hidden;
}

.product-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-image {
    transform: scale(1.04);
}

.product-card-image-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(145deg, #fff3ee, #f4f1f8);
    color: #b3a8c9;
    font-size: 10px;
}

    .product-card-image-empty i {
        color: #d3c8e4;
        font-size: 26px;
    }

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
}

.product-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

    .product-card-title-row h2 {
        min-width: 0;
        margin: 0;
        color: var(--text);
        font-size: 14px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

.product-info-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    color: var(--brand);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease);
}

    .product-info-btn:hover {
        background: var(--brand-soft);
        border-color: #ffc2b1;
        color: var(--brand-dark);
        transform: scale(1.1);
    }

.product-card-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-top: 13px;
    margin-top: auto;
    margin-bottom: 14px;
    border-top: 2px dotted var(--border);
}

    .product-card-price span {
        color: var(--muted);
        font-size: 10px;
    }

    .product-card-price strong {
        color: var(--brand-dark);
        font-size: 16px;
        font-weight: 800;
    }

.product-card-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
}

.products-empty {
    width: 100%;
    padding: 70px 20px;
    margin: 0;
    text-align: center;
    background: #fff;
    border: 2px dashed #ddd2f0;
    border-radius: 26px;
}

.products-empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: var(--brand-soft);
    border-radius: 22px 22px 22px 7px;
    color: var(--brand);
    font-size: 23px;
}

.products-empty h2 {
    margin: 0 0 6px;
    color: #3a3350;
    font-size: 16px;
}

.products-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.products-empty-btn {
    min-height: 40px;
    margin-top: 18px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.pagination-number,
.pagination-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--pill);
    color: var(--text-soft) !important;
    font-size: 10px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease);
}

    .pagination-number:hover,
    .pagination-btn:hover {
        border-color: #ffb9a6;
        color: var(--brand-dark) !important;
        transform: translateY(-2px);
    }

    .pagination-number.active {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff !important;
        cursor: default;
        box-shadow: 0 3px 0 var(--brand-edge);
    }

.pagination-btn {
    gap: 6px;
    padding: 0 14px;
}

.pagination-dots {
    width: 20px;
    text-align: center;
    color: #b3adc4;
    font-size: 11px;
}


/* =========================================================
   10. PRODUCT DETAILS PAGE
   ========================================================= */

.product-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 70px;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 11px;
}

    .product-breadcrumb a {
        color: var(--text-soft) !important;
        transition: color 0.2s ease;
    }

        .product-breadcrumb a:hover {
            color: var(--brand) !important;
        }

    .product-breadcrumb i {
        color: #cfc9de;
    }

    .product-breadcrumb span {
        color: #a39cb8;
        overflow-wrap: anywhere;
    }

.product-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 55px;
    align-items: start;
}

.product-gallery {
    min-width: 0;
}

.product-image-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 20px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 32px 32px 32px 10px;
    box-shadow: var(--shadow-md);
}

.product-main-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    border-radius: 18px;
}

.product-image-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 400px;
    color: #b3a8c9;
    font-size: 13px;
}

    .product-image-empty i {
        color: #d3c8e4;
        font-size: 42px;
    }

.product-information {
    min-width: 0;
    padding-top: 10px;
}

.product-label {
    display: inline-block;
    margin-bottom: 9px;
    padding: 3px 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-radius: var(--pill);
    font-size: 11px;
    font-weight: 700;
}

.product-heading h1 {
    margin: 0;
    color: var(--text);
    font-size: 31px;
    line-height: 1.65;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.product-description {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 2px dotted var(--border);
}

    .product-description h2 {
        margin: 0 0 10px;
        color: #3a3350;
        font-size: 15px;
    }

    .product-description p {
        margin: 0;
        color: var(--text-soft);
        font-size: 13px;
        line-height: 2.15;
        white-space: pre-line;
    }

.product-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.product-summary-item {
    padding: 14px 16px;
    background: var(--tint);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
}

    .product-summary-item span {
        display: block;
        margin-bottom: 5px;
        color: var(--muted);
        font-size: 10px;
    }

    .product-summary-item strong {
        display: block;
        color: #3a3350;
        font-size: 12px;
    }

.product-stock {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

    .product-stock.available {
        color: var(--success-ink) !important;
    }

    .product-stock.unavailable {
        color: var(--danger) !important;
    }

.purchase-box {
    margin-top: 20px;
    padding: 24px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.purchase-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 2px dotted var(--border);
}

    .purchase-price span {
        color: var(--muted);
        font-size: 12px;
    }

    .purchase-price strong {
        color: var(--brand-dark);
        font-size: 23px;
        font-weight: 800;
    }

.purchase-controls {
    padding: 18px 0;
}

.product-quantity-input {
    width: 100px;
    min-height: 44px;
    padding: 8px 10px;
    background: #fff;
    border: 1.5px solid var(--border-dark);
    border-radius: 14px;
    color: var(--text);
    font-size: 13px;
    text-align: center;
    direction: ltr;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .product-quantity-input:focus {
        outline: none;
        border-color: #ff9d85;
        box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.13);
    }

.product-stock-message {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.product-add-btn {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    font-size: 12px;
}

    .product-add-btn.disabled,
    .product-add-btn:disabled {
        background: #d9d4e4;
        color: #fff !important;
        cursor: not-allowed;
        box-shadow: 0 3px 0 #c5bfd3;
        transform: none;
    }

.out-of-stock-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 17px 0;
    padding: 12px 14px;
    background: var(--danger-soft);
    border: 1.5px solid #ffc9d0;
    border-radius: var(--radius-md);
    color: var(--danger);
    font-size: 11px;
}


/* =========================================================
   11. COMMENTS
   ========================================================= */

.comments-section {
    margin: 55px auto 0;
    padding: 30px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.comments-eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    padding: 2px 10px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-radius: var(--pill);
    font-size: 10px;
    font-weight: 700;
}

.comments-title {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
}

.comments-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: var(--lilac);
    border-radius: var(--pill);
    color: var(--lilac-ink);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

    .comments-count-badge i {
        color: var(--lilac-ink);
    }

.comment-form-card {
    margin-bottom: 24px;
    padding: 20px;
    background: #fff6f2;
    border: 1.5px solid #ffe0d4;
    border-radius: 22px;
}

.comment-form-header h3 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 14px;
}

.comment-form-header p {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 11px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

    .comment-form > label {
        color: #4a4460;
        font-size: 11px;
        font-weight: 700;
    }

    .comment-form textarea {
        width: 100%;
        min-height: 105px;
        padding: 12px 15px;
        resize: vertical;
        background: #fff;
        border: 1.5px solid var(--border-dark);
        border-radius: 16px;
        color: var(--text);
        font-size: 12px;
        line-height: 1.9;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .comment-form textarea:focus {
            outline: none;
            border-color: #ff9d85;
            box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.13);
        }

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 2px;
}

    .comment-form-footer > span {
        color: var(--muted);
        font-size: 10px;
    }

.btn-submit {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 20px;
    font-size: 11px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    padding: 18px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px 20px 20px 6px;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lilac);
    border-radius: 50%;
    color: var(--lilac-ink);
    font-size: 12px;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px #ddd2fa;
}

.comment-user strong {
    color: var(--text);
    font-size: 12px;
}

.comment-date {
    color: #a39cb8;
    font-size: 10px;
    white-space: nowrap;
}

    .comment-date i {
        margin-left: 3px;
        color: var(--brand);
    }

.comment-body p {
    margin: 0;
    color: #5a5470;
    font-size: 12px;
    line-height: 2;
    white-space: pre-line;
}

.comments-empty {
    padding: 45px 20px;
    text-align: center;
    background: var(--tint);
    border: 2px dashed #ddd2f0;
    border-radius: 22px;
}

.comments-empty-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    background: #fff;
    border-radius: 20px 20px 20px 6px;
    color: var(--lilac-ink);
    font-size: 21px;
    box-shadow: var(--shadow-sm);
}

.comments-empty h3 {
    margin: 0 0 5px;
    color: #3a3350;
    font-size: 14px;
}

.comments-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}


/* =========================================================
   12. PRODUCT MODAL
   ========================================================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 25px;
    background: rgba(43, 35, 64, 0.62);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: min(700px, 100%);
    max-height: calc(100vh - 50px);
    margin: 25px auto;
    padding: 28px;
    overflow-y: auto;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 6px 0 rgba(221, 214, 234, 0.8), 0 28px 60px rgba(43, 35, 64, 0.3);
    animation: modalFadeIn 0.3s var(--ease);
}

.close {
    position: absolute;
    top: 14px;
    left: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--lilac);
    border: none;
    border-radius: 50%;
    color: var(--lilac-ink);
    font-size: 22px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s var(--ease);
}

    .close:hover {
        background: var(--brand);
        color: #fff;
        transform: rotate(90deg);
    }

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-product {
    padding: 8px;
}

.modal-product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 2px dotted var(--border);
}

.modal-product-image-wrapper {
    width: 98px;
    height: 98px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--tint);
    border: 3px solid #fff;
    border-radius: 22px;
    box-shadow: 0 4px 14px rgba(60, 40, 110, 0.15);
}

.modal-product-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-product-image-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff3ee, #f4f1f8);
    color: #c4b6d6;
    font-size: 24px;
}

.modal-product-heading {
    min-width: 0;
}

    .modal-product-heading span {
        display: inline-block;
        margin-bottom: 6px;
        padding: 2px 10px;
        background: var(--brand-soft);
        color: var(--brand-dark);
        border-radius: var(--pill);
        font-size: 10px;
        font-weight: 700;
    }

    .modal-product-title,
    .modal-product-heading h2 {
        margin: 0;
        color: var(--text);
        font-size: 19px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

.modal-product-description {
    padding: 18px 0;
}

    .modal-product-description h3 {
        margin: 0 0 8px;
        color: #3a3350;
        font-size: 13px;
    }

    .modal-product-description p {
        margin: 0;
        color: var(--text-soft);
        font-size: 12px;
        line-height: 2;
        white-space: pre-line;
    }

.modal-product-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 15px;
    border-top: 2px dotted var(--border);
}

.modal-meta-item {
    padding: 13px 15px;
    background: var(--tint);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
}

    .modal-meta-item span {
        display: block;
        margin-bottom: 5px;
        color: var(--muted);
        font-size: 10px;
    }

    .modal-meta-item strong {
        display: block;
        color: #3a3350;
        font-size: 12px;
    }

.modal-stock {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

    .modal-stock.available {
        color: var(--success-ink) !important;
    }

    .modal-stock.unavailable {
        color: var(--danger) !important;
    }

.modal-product-action {
    margin-top: 18px;
}

.modal-view-product-btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
}


/* =========================================================
   13. CART / BASKET
   ========================================================= */

.cart-container {
    width: min(1200px, calc(100% - 40px));
    margin: 40px auto;
    padding: 0;
}

.cart-header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text);
}

    .cart-header h1,
    .cart-header h2 {
        margin: 0 0 8px;
        font-weight: 800;
    }

.cart-table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

    .cart-table th {
        padding: 15px;
        background: #fff6f2;
        color: #6b6580;
        text-align: center;
        border-bottom: 2px dotted #ffe0d4;
        font-weight: 700;
        font-size: 12px;
    }

    .cart-table td {
        padding: 15px;
        text-align: center;
        border-bottom: 1.5px solid #f3f0f8;
        font-size: 12px;
    }

    .cart-table tr:last-child td {
        border-bottom: none;
    }

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 18px;
    box-shadow: 0 3px 10px rgba(60, 40, 110, 0.14);
}

.quantity-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--lilac);
    border: none;
    border-radius: 50%;
    color: var(--lilac-ink);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease);
}

    .quantity-btn:hover {
        background: var(--brand);
        color: #fff;
        transform: scale(1.12);
    }

.remove-btn {
    padding: 8px 14px;
    background: #e5485d;
    color: #fff;
    border: none;
    border-radius: var(--pill);
    cursor: pointer;
    box-shadow: 0 3px 0 #bc3347;
    transition: transform 0.2s var(--ease), background-color 0.2s ease;
}

    .remove-btn:hover {
        background: #ee5a6e;
        transform: translateY(-1px);
    }

    .remove-btn:active {
        transform: translateY(2px);
        box-shadow: 0 1px 0 #bc3347;
    }

.cart-summary {
    padding: 22px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px dotted var(--border);
    font-size: 13px;
}

.summary-total {
    font-weight: 800;
    font-size: 1.2em;
    color: var(--text);
}

.checkout-btn {
    width: 100%;
    min-height: 50px;
    margin-top: 20px;
    padding: 0 30px;
    background: var(--success);
    color: #fff;
    border: none;
    border-radius: var(--pill);
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    box-shadow: 0 3px 0 #167a5d, 0 8px 16px rgba(31, 157, 122, 0.2);
    transition: transform 0.2s var(--ease), background-color 0.2s ease;
}

    .checkout-btn:hover {
        background: #26b08b;
        transform: translateY(-2px);
    }

    .checkout-btn:active {
        transform: translateY(2px);
        box-shadow: 0 1px 0 #167a5d;
    }

.empty-cart {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border: 2px dashed #ddd2f0;
    border-radius: 28px;
}

    .empty-cart p {
        margin-bottom: 20px;
        color: var(--text-soft);
        font-size: 1.1em;
    }

.continue-shopping {
    min-height: 44px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--lilac-ink) !important;
    border: 1.5px solid #cfc2f5;
    border-radius: var(--pill);
    font-weight: 700;
    box-shadow: 0 3px 0 #cfc2f5;
    transition: transform 0.2s var(--ease), background-color 0.2s ease;
}

    .continue-shopping:hover {
        background: var(--lilac);
        transform: translateY(-2px);
    }


/* =========================================================
   14. CHECKOUT FORM
   ========================================================= */

.checkout-form {
    width: min(760px, 100%);
    margin: 30px auto;
    padding: 28px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
}

    .checkout-form .form-group {
        margin-bottom: 17px;
    }

    .checkout-form label,
    .checkout-form .form-label {
        display: block;
        margin-bottom: 7px;
        color: #4a4460;
        font-size: 12px;
        font-weight: 700;
    }

    .checkout-form input[type="text"],
    .checkout-form input[type="tel"],
    .checkout-form input[type="file"],
    .checkout-form textarea,
    .checkout-form select {
        width: 100%;
        min-height: 46px;
        padding: 9px 15px;
        border: 1.5px solid var(--border-dark);
        border-radius: 14px;
        background: #fff;
        font-size: 12px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .checkout-form input[type="file"] {
        border-style: dashed;
        background: var(--tint);
    }

    .checkout-form textarea {
        min-height: 110px;
        resize: vertical;
    }

        .checkout-form input:focus,
        .checkout-form textarea:focus,
        .checkout-form select:focus {
            outline: none;
            border-color: #ff9d85;
            box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.13);
        }


/* =========================================================
   15. PROFILE PAGE
   ========================================================= */

.profile-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 70px;
}

.profile-page-header {
    margin-bottom: 30px;
}

.profile-page-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-radius: var(--pill);
    font-size: 12px;
    font-weight: 700;
}

.profile-page-header h1 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.profile-page-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.user-dashboard {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.user-info {
    width: auto;
    position: sticky;
    top: 100px;
}

.user-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 28px 28px 28px 10px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lilac);
    color: var(--lilac-ink);
    border-radius: 50%;
    font-size: 20px;
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px #ddd2fa;
}

.user-card-header h3 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 16px;
}

.user-card-header span {
    color: var(--muted);
    font-size: 12px;
}

.user-card-divider {
    height: 0;
    margin: 20px 0;
    border-top: 2px dotted var(--border);
    background: transparent;
}

.user-detail {
    margin-bottom: 18px;
}

    .user-detail:last-child {
        margin-bottom: 0;
    }

.user-detail-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
}

.user-detail strong {
    display: block;
    color: #3a3350;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.user-detail-address strong {
    text-align: right;
}

.user-orders {
    min-width: 0;
}

.orders-section-header {
    margin-bottom: 18px;
}

    .orders-section-header h2 {
        margin: 0 0 5px;
        color: var(--text);
        font-size: 21px;
        font-weight: 800;
    }

    .orders-section-header p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
    }

.orders-filter-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.filter-header {
    margin-bottom: 15px;
}

    .filter-header h3 {
        margin: 0;
        color: #3a3350;
        font-size: 14px;
    }

.orders-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin: 0;
}

.filter-field {
    min-width: 0;
}

    .filter-field label {
        display: block;
        margin-bottom: 7px;
        color: #4a4460;
        font-size: 12px;
        font-weight: 700;
    }

    .filter-field input,
    .filter-field select {
        width: 100%;
        min-height: 44px;
        padding: 9px 14px;
        background: #fff;
        border: 1.5px solid var(--border-dark);
        border-radius: 14px;
        font-size: 12px;
        color: var(--text);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .filter-field input:focus,
        .filter-field select:focus {
            outline: none;
            border-color: #ff9d85;
            box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.13);
        }

.filter-action button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 22px;
    font-size: 12px;
}

.profile-empty-state {
    padding: 55px 25px;
    text-align: center;
    background: #fff;
    border: 2px dashed #ddd2f0;
    border-radius: 28px;
}

.empty-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 22px 22px 22px 7px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 22px;
}

.profile-empty-state h3 {
    margin: 0 0 7px;
    color: #3a3350;
    font-size: 16px;
}

.profile-empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.order-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}

    .order-card:hover {
        border-color: #ddd2f0;
        box-shadow: var(--shadow-lift);
        transform: translateY(-2px);
    }

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 22px;
    background: var(--tint);
    border-bottom: 2px dotted var(--border);
}

.order-number {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .order-number span {
        color: var(--muted);
        font-size: 12px;
    }

    .order-number strong {
        color: var(--text);
        font-size: 15px;
    }

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--pill);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

    .order-status.pending {
        background: var(--warning-soft);
        color: var(--warning);
    }

    .order-status.paid {
        background: var(--success-soft);
        color: var(--success-ink);
    }

    .order-status.rejected {
        background: var(--danger-soft);
        color: var(--danger);
    }

    .order-status.shipped {
        background: var(--info-soft);
        color: var(--info);
    }

    .order-status.cancelled {
        background: #f1eff5;
        color: #7b7590;
    }

.order-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5px;
    background: var(--border);
    border-bottom: 1.5px solid var(--border);
}

.order-meta-item {
    min-width: 0;
    padding: 14px 18px;
    background: #fff;
}

    .order-meta-item span {
        display: block;
        margin-bottom: 5px;
        color: var(--muted);
        font-size: 11px;
    }

        .order-meta-item span i {
            width: 15px;
            text-align: center;
            margin-left: 3px;
            color: var(--brand);
        }

    .order-meta-item strong {
        display: block;
        color: #3a3350;
        font-size: 12px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

.order-address {
    grid-column: 1 / -1;
}

.rejected-payment-box {
    margin: 18px;
    padding: 18px;
    background: #fff6f7;
    border: 1.5px solid #ffc9d0;
    border-right: 5px solid #e5485d;
    border-radius: 20px;
}

.rejection-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rejection-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--danger-soft);
    color: #e5485d;
    font-size: 15px;
}

.rejection-header h3 {
    margin: 0 0 5px;
    color: #a82a3d;
    font-size: 14px;
}

.rejection-header p {
    margin: 0;
    color: #7b6070;
    font-size: 12px;
    line-height: 1.8;
}

.rejection-reason {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fff;
    border: 1.5px solid #ffdde1;
    border-radius: 14px;
}

    .rejection-reason span {
        display: block;
        margin-bottom: 5px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
    }

    .rejection-reason p {
        margin: 0;
        color: #3a3350;
        font-size: 12px;
        line-height: 1.9;
    }

.resubmit-receipt {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px dotted #ffcbd2;
}

.resubmit-header h4 {
    margin: 0 0 5px;
    color: #3a3350;
    font-size: 14px;
}

.resubmit-header p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 11px;
}

.resubmit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.receipt-upload-group {
    min-width: 0;
}

.receipt-file-label {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 2px dashed #f2b8c0;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

    .receipt-file-label:hover {
        border-color: var(--brand);
        background: #fffaf8;
    }

.receipt-file-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 13px;
    font-size: 15px;
}

.receipt-file-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .receipt-file-text strong {
        color: #3a3350;
        font-size: 12px;
    }

    .receipt-file-text small {
        color: var(--muted);
        font-size: 10px;
        line-height: 1.5;
    }

.receipt-upload-group input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.resubmit-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 22px;
    font-size: 12px;
    white-space: nowrap;
}

.order-items {
    padding: 20px 22px;
}

.order-items-header {
    margin-bottom: 14px;
}

    .order-items-header h3 {
        margin: 0;
        color: #3a3350;
        font-size: 14px;
    }

.order-item {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) 1fr 0.7fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1.5px solid #f3f0f8;
}

    .order-item:last-of-type {
        border-bottom: none;
    }

.order-product-name,
.order-item-detail {
    min-width: 0;
}

    .item-label,
    .order-item-detail span {
        display: block;
        margin-bottom: 5px;
        color: #a39cb8;
        font-size: 10px;
    }

    .order-product-name strong,
    .order-item-detail strong {
        display: block;
        color: #3a3350;
        font-size: 12px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

.order-item-detail {
    text-align: center;
}

.order-product-name {
    text-align: right;
}

.item-total {
    text-align: left;
}

.order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 12px;
    padding: 15px 18px;
    background: #fff3ee;
    border-radius: 18px;
}

    .order-total span {
        color: var(--text-soft);
        font-size: 13px;
        font-weight: 700;
    }

    .order-total strong {
        color: var(--brand-dark);
        font-size: 18px;
        font-weight: 800;
    }

.order-no-items {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    background: var(--tint);
    border-radius: 16px;
    font-size: 12px;
}


/* =========================================================
   16. REGISTER / LOGIN
   ========================================================= */

.register-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
    background: radial-gradient(circle at 12% 18%, rgba(255, 107, 74, 0.16), transparent 22rem), radial-gradient(circle at 88% 82%, rgba(106, 79, 214, 0.14), transparent 24rem), radial-gradient(circle at 85% 12%, rgba(255, 211, 92, 0.20), transparent 12rem);
}

.register-card {
    width: 100%;
    max-width: 410px;
    background: #fff;
    border-radius: 30px;
    border: 1.5px solid #fff;
    box-shadow: 0 6px 0 rgba(221, 214, 234, 0.7), 0 28px 60px rgba(60, 40, 110, 0.14);
    overflow: hidden;
}

.register-header {
    padding: 16px 18px;
    text-align: center;
    background: var(--brand);
    color: #fff;
    box-shadow: inset 0 -4px 0 var(--brand-edge);
}

    .register-header h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 800;
    }

.register-body {
    padding: 24px 22px 22px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #4a4460;
    font-size: 12px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1.5px solid var(--border-dark);
    font-size: 13px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #ff9d85;
        box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.13);
    }

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .toggle-password:hover {
        background: var(--lilac);
    }

.terms {
    font-size: 13px;
}

    .terms a,
    .login-link a {
        color: var(--brand-dark) !important;
        font-weight: 700;
    }

.btn-register {
    width: 100%;
    min-height: 46px;
    padding: 0 10px;
    font-size: 13px;
    margin-top: 8px;
}

.login-link {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
}


/* =========================================================
   17. ABOUT PAGE
   ========================================================= */

.about-page {
    width: 100%;
}

.about-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.about-hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 70px 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #2b2340 0%, #3a3052 100%);
    overflow: hidden;
}

    .about-hero::before {
        content: "";
        position: absolute;
        width: 440px;
        height: 440px;
        top: -160px;
        right: -140px;
        border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
        background: rgba(255, 107, 74, 0.20);
    }

    .about-hero::after {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        bottom: -150px;
        left: -120px;
        border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
        background: rgba(255, 211, 92, 0.14);
    }

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.10);
    border: 1.5px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--pill);
    color: #ffd0c3;
    font-size: 12px;
    font-weight: 700;
}

.about-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 42px;
    line-height: 1.55;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-hero p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: #d9d4e8;
    font-size: 16px;
    line-height: 2.1;
}

.about-hero-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 26px;
    font-size: 13px;
}

.about-section-title {
    margin-bottom: 45px;
}

    .about-section-title > span,
    .about-section-label,
    .about-small-title,
    .about-cta-label {
        display: inline-block;
        padding: 3px 12px;
        background: var(--brand-soft);
        color: var(--brand-dark);
        border-radius: var(--pill);
        font-size: 12px;
        font-weight: 700;
    }

    .about-section-title h2 {
        margin: 10px 0 10px;
        color: var(--text);
        font-size: 28px;
        line-height: 1.6;
        font-weight: 800;
    }

    .about-section-title p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.9;
    }

    .about-section-title.center {
        text-align: center;
    }

.about-introduction {
    padding: 85px 0;
    background: #fff;
}

.about-introduction-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 70px;
    align-items: center;
}

.about-introduction-text h2 {
    margin: 10px 0 22px;
    color: var(--text);
    font-size: 31px;
    line-height: 1.65;
    font-weight: 800;
}

.about-introduction-text p {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 2.15;
}

    .about-introduction-text p:last-child {
        margin-bottom: 0;
    }

.about-introduction-highlight {
    position: relative;
    padding: 32px 28px;
    background: #fff6f2;
    border: 1.5px solid #ffe0d4;
    border-radius: 32px 32px 32px 10px;
}

    .about-introduction-highlight::before {
        content: "";
        position: absolute;
        width: 6px;
        height: 55px;
        right: 0;
        top: 32px;
        background: var(--brand);
        border-radius: 6px 0 0 6px;
    }

.about-highlight-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    background: #fff;
    border-radius: 18px 18px 18px 6px;
    color: var(--brand);
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.about-introduction-highlight h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
}

.about-introduction-highlight p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 2;
}

.about-values {
    padding: 85px 0;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.about-value-card {
    position: relative;
    min-height: 250px;
    padding: 28px 22px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 26px;
    text-align: right;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.2s ease, border-color 0.2s ease;
}

    .about-value-card::after {
        content: "";
        position: absolute;
        width: 100px;
        height: 100px;
        left: -35px;
        bottom: -40px;
        border-radius: 58% 42% 55% 45%;
        background: rgba(106, 79, 214, 0.07);
    }

    .about-value-card:nth-child(even)::after {
        background: rgba(255, 107, 74, 0.08);
    }

    .about-value-card:hover {
        transform: translateY(-6px) rotate(-0.5deg);
        border-color: #ffd0c2;
        box-shadow: var(--shadow-lift);
    }

.about-value-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: var(--brand-soft);
    border-radius: 18px 18px 18px 6px;
    color: var(--brand);
    font-size: 21px;
}

.about-value-number {
    margin-bottom: 6px;
    color: #d3cde0;
    font-size: 11px;
    font-weight: 700;
    direction: ltr;
}

.about-value-card h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 16px;
}

.about-value-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 2;
}

.about-mission {
    padding: 90px 0;
    background: #fff;
}

.about-mission-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 70px;
    align-items: center;
}

.about-mission-text h2 {
    margin: 10px 0 20px;
    color: var(--text);
    font-size: 30px;
    line-height: 1.6;
    font-weight: 800;
}

.about-mission-text p {
    margin: 0 0 13px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 2.15;
}

.about-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.3s var(--ease);
}

    .about-text-link:hover {
        color: var(--brand) !important;
        transform: translateX(-5px);
    }

.about-mission-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-mission-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    background: var(--tint);
    border: 1.5px solid var(--border);
    border-radius: 22px;
    transition: border-color 0.2s ease, transform 0.3s var(--ease), background-color 0.2s ease;
}

    .about-mission-item:hover {
        background: #fff6f2;
        border-color: #ffd0c2;
        transform: translateX(-4px);
    }

.mission-item-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 15px;
    color: var(--brand);
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.about-mission-item strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 13px;
}

.about-mission-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.about-cta {
    position: relative;
    padding: 85px 20px;
    text-align: center;
    background: linear-gradient(135deg, #2b2340 0%, #3a3052 100%);
    color: #fff;
    overflow: hidden;
}

    .about-cta::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        top: -160px;
        right: -90px;
        border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
        background: rgba(255, 107, 74, 0.20);
    }

    .about-cta::after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        bottom: -130px;
        left: -80px;
        border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
        background: rgba(255, 211, 92, 0.14);
    }

.about-cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.about-cta-label {
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffd0c3;
}

.about-cta h2 {
    margin: 0 0 13px;
    color: #fff;
    font-size: 29px;
    line-height: 1.6;
    font-weight: 800;
}

.about-cta p {
    margin: 0 auto 25px;
    max-width: 550px;
    color: #cdc7de;
    font-size: 13px;
    line-height: 2;
}

.about-cta-actions {
    display: flex;
    justify-content: center;
}

.about-cta-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 28px;
    font-size: 13px;
}


/* =========================================================
   18. FOOTER
   ========================================================= */

.site-footer {
    position: relative;
    margin-top: 70px;
    background: linear-gradient(180deg, var(--dark) 0%, #241d36 100%);
    color: #fff;
}

    .site-footer::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brand) 0 55%, var(--sun) 55% 80%, #5fd3b0 80% 100%);
    }

.footer-container {
    width: min(1150px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
    gap: 45px;
}

.footer-section {
    min-width: 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 17px;
}

    .footer-logo img {
        height: 48px;
        width: auto;
    }

.footer-section h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 14px;
}

.footer-section p {
    margin: 0;
    color: #b5aecb;
    font-size: 12px;
    line-height: 2.1;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .footer-links li {
        color: #a39cb8;
        font-size: 12px;
        line-height: 1.8;
    }

    .footer-links a {
        position: relative;
        color: #b5aecb !important;
        padding-right: 0;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: var(--sun) !important;
        }

        .footer-links a::before {
            content: "←";
            opacity: 0;
            margin-left: 5px;
            color: var(--sun);
            transition: opacity 0.2s ease, margin-left 0.25s var(--ease);
        }

        .footer-links a:hover::before {
            opacity: 1;
            margin-left: 9px;
        }

.footer-social-description {
    max-width: 230px;
    margin-bottom: 18px !important;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease);
}

    .social-icon:hover {
        background: rgba(255, 107, 74, 0.22);
        border-color: rgba(255, 107, 74, 0.5);
        transform: translateY(-3px) rotate(-6deg);
    }

    .social-icon img {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

.footer-bottom {
    border-top: 2px dotted rgba(255, 255, 255, 0.12);
}

.footer-bottom-container {
    width: min(1150px, calc(100% - 40px));
    min-height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

    .footer-bottom-container span {
        color: #8f88a5;
        font-size: 10px;
    }


/* =========================================================
   19. RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .products-grid,
    .productsContainer {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-main {
        gap: 35px;
    }
}

@media (max-width: 1000px) {
    .home-hero {
        padding: 55px 0 65px;
    }

    .home-hero-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
        gap: 40px;
    }

    .home-hero-content h1 {
        font-size: 34px;
    }

    .home-hero-content p {
        font-size: 13px;
    }

    .home-image-badge {
        right: 0;
        bottom: 20px;
    }

    .user-dashboard {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .orders-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .filter-action {
        grid-column: 1 / -1;
    }

        .filter-action button {
            width: 100%;
        }

    .order-item {
        grid-template-columns: minmax(180px, 1.5fr) 1fr 0.7fr 1fr;
    }

    .about-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-introduction-grid,
    .about-mission-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-introduction-highlight {
        max-width: 600px;
    }

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }
}

@media (max-width: 850px) {
    .product-page,
    .product-list-page {
        width: calc(100% - 30px);
    }

    .product-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-image-card {
        min-height: 400px;
    }

    .product-information {
        padding-top: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 760px) {

    /* Navbar becomes a drop-down panel */
    .nav-container {
        width: 100%;
        min-height: 68px;
        padding: 0 15px;
    }

    .mobile-navbar {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .desktopnavbar {
        position: absolute;
        top: 68px;
        right: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 12px 14px;
        background: rgba(43, 35, 64, 0.98);
        border-radius: 0 0 26px 26px;
        box-shadow: 0 16px 30px rgba(43, 35, 64, 0.28);
    }

        .desktopnavbar.active {
            display: flex;
        }

    .nav-logo-link {
        display: none;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
    }

    .nav-item,
    .nav-logout {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        padding: 0 16px;
        border-radius: 16px;
        font-size: 12px;
    }

        .nav-item::after {
            display: none;
        }

        .nav-item:hover {
            background: rgba(255, 107, 74, 0.16);
            transform: none;
        }

    .nav-cart {
        padding-left: 16px;
    }

    .cart-badge {
        position: static;
        margin-right: auto;
        margin-left: 6px;
        box-shadow: none;
    }

    .logout-form {
        width: 100%;
    }

    /* Home */
    .home-hero {
        padding: 45px 0 55px;
    }

    .home-hero-container {
        width: min(100% - 30px, 620px);
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .home-hero-content {
        text-align: center;
    }

        .home-hero-content h1 {
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            font-size: 31px;
        }

        .home-hero-content p {
            margin-left: auto;
            margin-right: auto;
            font-size: 13px;
        }

    .home-hero-actions,
    .home-hero-features {
        justify-content: center;
    }

    .home-hero-visual {
        padding: 0;
    }

    .home-image-badge {
        right: 12px;
        bottom: 18px;
    }

    .products-grid,
    .productsContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-breadcrumb {
        font-size: 10px;
    }

    .comments-section {
        margin-top: 35px;
    }

    /* Profile */
    .user-dashboard {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .user-info {
        position: static;
    }

    .user-card {
        padding: 18px;
    }

    .orders-filter-form {
        grid-template-columns: 1fr;
    }

    .filter-search,
    .filter-action {
        grid-column: auto;
    }

    .order-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-status {
        align-self: flex-start;
    }

    .order-meta {
        grid-template-columns: 1fr;
    }

    .order-address {
        grid-column: auto;
    }

    .resubmit-form {
        grid-template-columns: 1fr;
    }

    .resubmit-btn {
        width: 100%;
    }

    .order-item {
        grid-template-columns: 1fr 1fr;
        gap: 12px 15px;
        padding: 15px 0;
    }

    .order-product-name {
        grid-column: 1 / -1;
    }

    .order-item-detail,
    .item-total {
        text-align: right;
    }

    /* About */
    .about-container {
        width: min(100% - 28px, 600px);
    }

    .about-hero {
        min-height: 430px;
        padding: 55px 18px;
    }

        .about-hero h1 {
            font-size: 30px;
            line-height: 1.55;
        }

        .about-hero p {
            font-size: 13px;
        }

    .about-introduction,
    .about-values,
    .about-mission {
        padding: 60px 0;
    }

    .about-section-title {
        margin-bottom: 32px;
    }

        .about-section-title h2 {
            font-size: 23px;
        }

    .about-introduction-text h2,
    .about-mission-text h2 {
        font-size: 25px;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-value-card {
        min-height: auto;
    }

    .about-cta {
        padding: 65px 18px;
    }

        .about-cta h2 {
            font-size: 23px;
        }

    /* Footer */
    .footer-container {
        width: calc(100% - 30px);
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 42px 0 30px;
    }

    .footer-social-description {
        max-width: none;
    }

    .footer-bottom-container {
        width: calc(100% - 30px);
        min-height: 65px;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }
}

@media (max-width: 600px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        width: 100%;
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        padding: 22px 16px;
        border-radius: 24px;
    }

    .modal-product-header {
        align-items: flex-start;
    }

    .modal-product-image-wrapper {
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }

    .modal-product-title,
    .modal-product-heading h2 {
        font-size: 16px;
    }

    .modal-product-meta {
        grid-template-columns: 1fr;
    }

    .product-page,
    .product-list-page,
    .cart-container {
        width: calc(100% - 20px);
    }

    .product-page,
    .product-list-page {
        padding-top: 25px;
    }

    .product-heading h1 {
        font-size: 25px;
    }

    .product-image-card {
        min-height: 300px;
        padding: 12px;
        border-radius: 24px 24px 24px 8px;
    }

    .product-summary {
        grid-template-columns: 1fr;
    }

    .purchase-box {
        padding: 17px;
    }

    .purchase-price strong {
        font-size: 19px;
    }

    .comments-section {
        margin-top: 35px;
        padding: 18px;
        border-radius: 22px;
    }

    .comments-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .comments-title {
        font-size: 18px;
    }

    .comment-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .comment-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-submit {
        width: 100%;
    }

    .products-search-card {
        border-radius: 26px;
    }

    .products-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .products-search-btn {
        width: 100%;
    }

    .products-clear-search {
        justify-content: center;
        padding: 6px;
    }

    .products-grid,
    .productsContainer {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card-image-link,
    .productsImage {
        aspect-ratio: 1 / 0.72;
    }

    .products-pagination {
        gap: 5px;
    }

    .pagination-number,
    .pagination-btn {
        min-width: 34px;
        height: 34px;
        font-size: 9px;
    }

    .pagination-btn {
        padding: 0 10px;
    }

    .cart-container {
        margin-top: 25px;
    }

    .cart-table {
        display: block;
        overflow-x: auto;
    }

        .cart-table th,
        .cart-table td {
            padding: 10px 7px;
        }

    .cart-item-image {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .profile-page {
        padding: 25px 14px 50px;
    }

    .profile-page-header {
        margin-bottom: 22px;
    }

        .profile-page-header h1 {
            font-size: 24px;
        }

    .orders-section-header h2 {
        font-size: 18px;
    }

    .orders-filter-card {
        padding: 15px;
    }

    .order-card {
        border-radius: 22px;
    }

    .order-header {
        padding: 15px;
    }

    .order-items {
        padding: 15px;
    }

    .rejected-payment-box {
        margin: 12px;
        padding: 14px;
    }

    .rejection-header {
        gap: 9px;
    }

    .rejection-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .rejection-header h3 {
        font-size: 12px;
    }

    .rejection-header p {
        font-size: 11px;
    }

    .order-total strong {
        font-size: 15px;
    }

    .about-hero {
        min-height: 400px;
    }

        .about-hero h1 {
            font-size: 25px;
        }

        .about-hero p {
            font-size: 12px;
            line-height: 2;
        }

    .about-hero-btn,
    .about-cta-btn {
        width: 100%;
        max-width: 260px;
    }

    .about-introduction-highlight {
        padding: 25px 20px;
    }

    .about-mission-item {
        padding: 14px;
    }

    .mission-item-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 500px) {
    .home-hero {
        padding: 35px 0 45px;
    }

    .home-hero-container {
        width: calc(100% - 20px);
    }

    .home-hero-badge {
        font-size: 11px;
    }

    .home-hero-content h1 {
        font-size: 26px;
        line-height: 1.6;
    }

    .home-hero-content p {
        font-size: 12px;
        line-height: 2.1;
    }

    .home-primary-btn,
    .home-secondary-btn {
        width: 100%;
        max-width: 280px;
    }

    .home-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .home-hero-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 25px;
    }

    .home-image-badge {
        position: static;
        width: calc(100% - 20px);
        margin: 12px auto 0;
        justify-content: center;
    }

    .home-hero-image-wrapper {
        border-radius: 26px 26px 26px 8px;
    }

    .home-products-section {
        padding-top: 30px;
    }

    .purchase-price {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 400px) {
    .product-heading h1 {
        font-size: 22px;
    }

    .product-breadcrumb {
        font-size: 9px;
    }

    .product-quantity-input {
        width: 80px;
    }
}


/* =========================================================
   20. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .productsItems:hover,
    .product-card:hover,
    .about-value-card:hover,
    .order-card:hover,
    .nav-item:hover,
    .social-icon:hover {
        transform: none;
    }
}
