/* =============================================
   TAPPO MARKET – Global Design System
   Czech Republic B2C E-commerce Platform
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ─── CSS Variables ─── */
:root {
    --primary: #1a56db;
    --primary-dark: #1241b0;
    --primary-light: #e8f0fe;
    --accent: #f97316;
    --accent-light: #fff7ed;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --navy: #0f172a;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all .25s cubic-bezier(.4,0,.2,1);
    --font-base: 'Inter', system-ui, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --container: 1280px;
    --header-h: 110px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
}

/* ─── Utility ─── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(26,86,219,.35);
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(26,86,219,.45);
    }

.btn-accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(249,115,22,.35);
}

    .btn-accent:hover {
        background: #ea6c0a;
        transform: translateY(-1px);
    }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

    .btn-outline:hover {
        background: var(--primary);
        color: var(--white);
    }

.btn-ghost {
    background: var(--slate-100);
    color: var(--slate-700);
}

    .btn-ghost:hover {
        background: var(--slate-200);
    }

.btn-sm {
    padding: 7px 14px;
    font-size: .8125rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-accent {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-success {
    background: #d1fae5;
    color: var(--success);
}

.badge-danger {
    background: #fee2e2;
    color: var(--danger);
}

/* ─── Section Headings ─── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

    .section-label::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 3px;
        border-radius: 2px;
        background: var(--primary);
    }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.25;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--slate-500);
    max-width: 560px;
}

/* ─── Cards ─── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    transition: var(--transition);
}

    .card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-3px);
    }

/* ─── Form Inputs ─── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--slate-700);
}

    .form-label .required {
        color: var(--danger);
    }

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: .9375rem;
    color: var(--slate-800);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26,86,219,.12);
    }

    .form-control::placeholder {
        color: var(--slate-400);
    }

    .form-control.error {
        border-color: var(--danger);
    }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ─── Divider ─── */
.divider {
    border: none;
    border-top: 1px solid var(--slate-200);
}

/* ─── Star Rating ─── */
.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 14px;
    height: 14px;
    fill: var(--warning);
}

    .star.empty {
        fill: var(--slate-200);
    }

/* ─── Pagination ─── */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: .875rem;
    font-weight: 600;
    color: var(--slate-600);
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    transition: var(--transition);
}

    .page-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .page-btn.active {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }

    .page-btn.dots {
        border: none;
        background: none;
        cursor: default;
    }

/* ─── Breadcrumb ─── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: var(--slate-500);
    padding: 16px 0;
}

    .breadcrumb a:hover {
        color: var(--primary);
    }

.breadcrumb-sep {
    color: var(--slate-400);
}

.breadcrumb .current {
    color: var(--slate-800);
    font-weight: 500;
}

/* ─── Toast Notification ─── */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary);
    max-width: 340px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn .35s cubic-bezier(.4,0,.2,1);
    font-size: .875rem;
    font-weight: 500;
}

    .toast.success {
        border-color: var(--success);
    }

    .toast.error {
        border-color: var(--danger);
    }

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ─── HEADER ─── */
.order-success-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

    .order-success-modal-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }

.order-success-modal {
    position: relative;
    width: min(420px, 100%);
    padding: 30px 28px 26px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.order-success-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--slate-100);
    color: var(--slate-600);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.order-success-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--success);
    background: rgba(16, 185, 129, .12);
}

    .order-success-icon svg {
        width: 34px;
        height: 34px;
    }

.order-success-modal h2 {
    margin: 0 0 10px;
    color: var(--slate-900);
    font-size: 1.35rem;
}

.order-success-modal p {
    margin: 0 0 22px;
    color: var(--slate-600);
    line-height: 1.6;
}

#main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Top bar */
.header-topbar {
    background: var(--navy);
    color: #94a3b8;
    font-size: .8125rem;
    padding: 8px 0;
}

    .header-topbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-link {
    color: #94a3b8;
    transition: color .2s;
}

    .topbar-link:hover {
        color: var(--white);
    }

.topbar-divider {
    width: 1px;
    height: 14px;
    background: #334155;
}

/* Main nav bar */
.header-main {
    padding: 14px 0;
    background: var(--white);
}

    .header-main .container {
        display: flex;
        align-items: center;
        gap: 24px;
    }

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26,86,219,.3);
}

    /* Khi có logo động từ ContactDetails: chỉ hiển thị ảnh, bỏ nền */
    .logo-icon.logo-icon-img {
        background: none;
        box-shadow: none;
    }

    .logo-icon svg {
        width: 24px;
        height: 24px;
        fill: var(--white);
    }

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1;
    letter-spacing: -.02em;
}

.logo-tagline {
    font-size: .6875rem;
    color: var(--slate-500);
    font-weight: 500;
    letter-spacing: .04em;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}

    .header-search input {
        width: 100%;
        padding: 11px 20px 11px 44px;
        border: 1.5px solid var(--slate-200);
        border-radius: var(--radius-full);
        font-size: .9375rem;
        color: var(--slate-800);
        background: var(--slate-50);
        outline: none;
        transition: var(--transition);
    }

        .header-search input:focus {
            border-color: var(--primary);
            background: var(--white);
            box-shadow: 0 0 0 3px rgba(26,86,219,.1);
        }

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    width: 19px;
    height: 19px;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 5px 14px;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .search-btn:hover {
        background: var(--primary-dark);
    }

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-700);
    transition: var(--transition);
    cursor: pointer;
}

    .header-action-btn svg {
        width: 22px;
        height: 22px;
    }

    .header-action-btn:hover {
        background: var(--primary-light);
        border-color: var(--primary);
        color: var(--primary);
        z-index: 10000;
    }

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--white);
    font-size: .625rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    line-height: 1;
}

/* Cart Popup */
.cart-popup {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--slate-200);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .25s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}

    .cart-popup.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.cart-popup-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--slate-50);
}

    .cart-popup-header h4 {
        font-size: .9375rem;
        font-weight: 700;
        color: var(--slate-800);
    }

.cart-popup-items {
    max-height: 280px;
    overflow-y: auto;
    padding: 12px 0;
}

    .cart-popup-items::-webkit-scrollbar {
        width: 4px;
    }

    .cart-popup-items::-webkit-scrollbar-thumb {
        background: var(--slate-200);
        border-radius: 4px;
    }

.cart-popup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    transition: background .2s;
    cursor: pointer;
}

    .cart-popup-item:hover {
        background: var(--slate-50);
    }

.cart-item-img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--slate-100);
    flex-shrink: 0;
    border: 1px solid var(--slate-200);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: .875rem;
    font-weight: 600;
    color: var(--slate-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: .8125rem;
    color: var(--slate-500);
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 2px;
}

.cart-item-price {
    font-size: .875rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-popup-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--slate-200);
    background: var(--slate-50);
}

.cart-popup-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .cart-popup-total span:first-child {
        font-size: .875rem;
        color: var(--slate-600);
    }

    .cart-popup-total strong {
        font-size: 1rem;
        font-weight: 800;
        color: var(--slate-900);
    }

.cart-popup-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--slate-400);
}

    .cart-popup-empty svg {
        width: 48px;
        height: 48px;
        margin: 0 auto 12px;
        opacity: .4;
    }

/* Account Dropdown */
.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 200px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-200);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .25s;
    overflow: hidden;
}

    .account-dropdown.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

#account-btn-wrap:hover .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#account-btn-wrap.account-logged-in #account-btn {
    width: auto;
    max-width: 190px;
    padding: 4px 10px 4px 5px;
    gap: 8px;
    justify-content: flex-start;
    border-radius: var(--radius-full);
}

    #account-btn-wrap.account-logged-in #account-btn > svg {
        display: none;
    }

.account-header-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--slate-700);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1;
}

#account-btn-wrap.account-logged-in #account-btn:hover .account-header-name {
    color: var(--primary);
}

.account-dropdown > .account-dropdown-item,
.account-dropdown > .account-dropdown-divider {
    display: none;
}

.account-logged-in .account-dropdown > .account-dropdown-item {
    display: flex;
}

.account-logged-in .account-dropdown > .account-dropdown-divider {
    display: block;
}

.account-auth-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .account-auth-list li {
        border-bottom: 1px solid var(--slate-100);
    }

        .account-auth-list li:last-child {
            border-bottom: 0;
        }

    .account-auth-list a {
        display: block;
        padding: 12px 16px;
        color: var(--slate-700);
        font-size: .9rem;
        font-weight: 600;
        transition: background .2s, color .2s;
    }

        .account-auth-list a:hover {
            background: var(--primary-light);
            color: var(--primary);
        }

.account-avatar-img,
.account-avatar-fallback {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.account-avatar-img {
    object-fit: cover;
}

.account-avatar-fallback {
    display: grid;
    place-items: center;
    background: var(--primary);
    color: var(--white);
    font-size: .9rem;
    font-weight: 700;
}

.account-dropdown-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--slate-100);
}

.account-dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.account-dropdown-avatar-fallback {
    display: grid;
    place-items: center;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.account-dropdown-name {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .9rem;
    font-weight: 700;
    color: var(--slate-800);
}

.account-dropdown-email {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
    font-size: .75rem;
    color: var(--slate-500);
}

.account-logout-btn {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: .9rem;
    color: var(--slate-700);
    transition: background .2s;
}

    .account-dropdown-item:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

    .account-dropdown-item svg {
        width: 18px;
        height: 18px;
    }

.account-dropdown-divider {
    border: none;
    border-top: 1px solid var(--slate-100);
}

/* ─── BOTTOM NAV ─── */
.header-nav {
    background: var(--white);
    border-top: 1px solid var(--slate-100);
}

    .header-nav .container {
        display: flex;
        align-items: center;
    }

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 13px 16px;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--slate-700);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 16px;
        right: 16px;
        height: 3px;
        border-radius: 2px 2px 0 0;
        background: var(--primary);
        opacity: 0;
        transform: scaleX(0);
        transition: all .25s;
    }

    .nav-link:hover, .nav-link.active {
        color: var(--primary);
    }

        .nav-link:hover::after, .nav-link.active::after {
            opacity: 1;
            transform: scaleX(1);
        }

    .nav-link.active {
        font-weight: 600;
    }

.nav-caret {
    width: 16px;
    height: 16px;
    transition: transform .2s;
}

.nav-item:hover .nav-caret {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 760px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--slate-200);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: flex;
}

.mega-menu-sidebar {
    width: 200px;
    background: var(--slate-50);
    padding: 20px 0;
    border-right: 1px solid var(--slate-200);
    flex-shrink: 0;
}

.mega-cat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 18px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--slate-700);
    background: none;
    border: none;
    cursor: pointer;
    transition: background .15s;
    text-align: left;
}

    .mega-cat-btn:hover, .mega-cat-btn.active {
        background: var(--white);
        color: var(--primary);
    }

    .mega-cat-btn .cat-icon {
        width: 28px;
        height: 28px;
        background: var(--primary-light);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .mega-cat-btn .cat-icon svg {
            width: 16px;
            height: 16px;
            color: var(--primary);
        }

        .mega-cat-btn .cat-icon img {
            width: 18px;
            height: 18px;
            object-fit: cover;
            border-radius: 5px;
        }

.mega-menu-grid {
    flex: 1;
    padding: 20px 24px;
}

    .mega-menu-grid h5 {
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--slate-400);
        margin-bottom: 12px;
    }

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mega-sublink {
    display: block;
    padding: 8px 10px;
    font-size: .875rem;
    color: var(--slate-600);
    border-radius: var(--radius-sm);
    transition: background .15s;
}

    .mega-sublink:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

/* ─── HERO SLIDER ─── */
.hero-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .65s ease;
}

    .hero-slider .slide.active {
        opacity: 1;
        z-index: 1;
    }

    .hero-slider .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,20,40,.72) 0%, rgba(10,20,40,.2) 60%, transparent 100%);
    z-index: 2;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: var(--container);
    width: 100%;
    padding: 0 24px;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    color: var(--white);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius-full);
    padding: 5px 14px;
    font-size: .8125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.slide-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 600px;
}

.slide-desc {
    font-size: 1.125rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 32px;
    max-width: 480px;
}

.slide-actions {
    display: flex;
    gap: 14px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

    .slider-arrow:hover {
        background: rgba(255,255,255,.3);
        transform: translateY(-50%) scale(1.05);
    }

    .slider-arrow.prev {
        left: 24px;
    }

    .slider-arrow.next {
        right: 24px;
    }

    .slider-arrow svg {
        width: 24px;
        height: 24px;
    }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .3s;
}

    .slider-dot.active {
        width: 28px;
        background: var(--white);
    }

/* ─── CATEGORY ICONS STRIP ─── */
.category-strip {
    padding: 48px 0 32px;
    background: var(--white);
}

.cat-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .25s;
}

    .cat-item:hover {
        transform: translateY(-4px);
    }

.cat-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid transparent;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

.cat-item:hover .cat-icon-circle {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(26,86,219,.2);
}

.cat-icon-circle img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 16px;
}

.cat-name {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--slate-700);
    text-align: center;
}

/* ─── PRODUCT SECTION ─── */
.products-section {
    padding: 60px 0;
    background: var(--slate-50);
}

    .products-section:nth-child(even) {
        background: var(--white);
    }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.product-slider-wrap {
    position: relative;
}

.product-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
}

.product-cards-track {
    display: flex;
    gap: 20px;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    width: 100%;
}

.product-cards-track .product-card {
    min-width: calc((100% - 60px) / 4);
    max-width: calc((100% - 60px) / 4);
}

/* Product Card */
.product-card {
    min-width: 290px;
    max-width: 290px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

    .product-card:hover {
        box-shadow: var(--shadow-xl);
        transform: translateY(-4px);
        border-color: transparent;
    }

.product-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: var(--slate-100);
}

.product-card-body {
    padding: 16px;
}

.product-card-cat {
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.product-card-name {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

    .product-card-rating span {
        font-size: .75rem;
        color: var(--slate-500);
    }

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.product-price {
    display: flex;
    flex-direction: column;
}

    .product-price .price-current {
        font-size: 1.125rem;
        font-weight: 800;
        color: var(--slate-900);
    }

    .product-price .price-old {
        font-size: .8125rem;
        color: var(--slate-400);
        text-decoration: line-through;
    }

.add-to-cart-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

    .add-to-cart-btn:hover {
        background: var(--primary-dark);
        transform: scale(1.08);
    }

    .add-to-cart-btn svg {
        width: 18px;
        height: 18px;
    }

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.product-slider-nav {
    display: flex;
    gap: 8px;
}

.product-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .product-group-title img {
        width: 42px;
        height: 42px;
        object-fit: cover;
        border-radius: 12px;
        background: var(--slate-100);
    }

.slider-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-600);
    transition: var(--transition);
}

    .slider-nav-btn:hover {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }

    .slider-nav-btn svg {
        width: 18px;
        height: 18px;
    }

.view-more-wrap {
    text-align: center;
    margin-top: 28px;
}

/* ─── BENEFITS ─── */
.benefits-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    transition: var(--transition);
}

    .benefit-card:hover {
        background: rgba(255,255,255,.1);
        transform: translateY(-3px);
    }

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(26,86,219,.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(26,86,219,.4);
}

    .benefit-icon svg {
        width: 28px;
        height: 28px;
        color: #60a5fa;
    }

.benefit-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.benefit-desc {
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
}

/* ─── NEWS SECTION ─── */
.news-section {
    padding: 60px 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 30px;
}

.news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    transition: var(--transition);
    background: var(--white);
}

    .news-card:hover {
        box-shadow: var(--shadow-xl);
        transform: translateY(-4px);
        border-color: transparent;
    }

.news-card-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    background: var(--slate-100);
}

.news-card-body {
    padding: 20px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.news-tag {
    font-size: .75rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.news-date {
    font-size: .75rem;
    color: var(--slate-400);
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card-excerpt {
    font-size: .875rem;
    color: var(--slate-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap .2s;
}

    .news-read-more:hover {
        gap: 8px;
    }

    .news-read-more svg {
        width: 16px;
        height: 16px;
    }

/* ─── FOOTER ─── */
.main-footer {
    background: var(--navy);
    color: rgba(255,255,255,.65);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.8;
    margin: 16px 0 24px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    transition: var(--transition);
}

    .social-link:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: var(--white);
        transform: translateY(-2px);
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

.footer-col h5 {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: .875rem;
    color: rgba(255,255,255,.6);
    transition: color .2s;
}

    .footer-link:hover {
        color: var(--white);
    }

.footer-contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .875rem;
    margin-bottom: 12px;
}

    .footer-contact-item svg {
        width: 16px;
        height: 16px;
        color: var(--primary);
        flex-shrink: 0;
        margin-top: 3px;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8125rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

    .footer-bottom-links a {
        color: rgba(255,255,255,.5);
        transition: color .2s;
    }

        .footer-bottom-links a:hover {
            color: var(--white);
        }

.payment-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-icon {
    background: rgba(255,255,255,.1);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: .7rem;
    font-weight: 700;
    color: rgba(255,255,255,.8);
}

/* ─── PAGE HERO ─── */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
    padding: 60px 0;
    text-align: center;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
}

.page-hero-desc {
    font-size: 1.125rem;
    color: rgba(255,255,255,.7);
    max-width: 540px;
    margin: 0 auto;
}

/* ─── ABOUT PAGE ─── */
.about-intro {
    padding: 80px 0 60px;
}

.about-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-tag {
    display: inline-flex;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    padding: 5px 16px;
    font-size: .8125rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.25;
    margin-bottom: 20px;
}

.about-body {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
}

    .about-body + .about-body {
        margin-top: 14px;
    }

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.about-stat {
    text-align: center;
    padding: 24px;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
}

.about-stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.about-stat-label {
    font-size: .8125rem;
    color: var(--slate-500);
    margin-top: 6px;
    font-weight: 500;
}

.about-img-wrap img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.about-values {
    padding: 60px 0;
    background: var(--slate-50);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--slate-200);
    transition: var(--transition);
}

    .value-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: transparent;
        transform: translateY(-3px);
    }

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.value-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 10px;
}

.value-desc {
    font-size: .9rem;
    color: var(--slate-500);
    line-height: 1.7;
}

.about-team {
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    border: 1px solid var(--slate-200);
    transition: var(--transition);
}

    .team-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: transparent;
        transform: translateY(-3px);
    }

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 3px solid var(--primary-light);
}

.team-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-800);
}

.team-role {
    font-size: .8125rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 4px;
}

/* ─── PRODUCTS PAGE ─── */
.products-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 40px 0;
}

.filter-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.filter-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--slate-200);
    background: var(--slate-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .filter-header h3 {
        font-size: .9375rem;
        font-weight: 700;
        color: var(--slate-800);
    }

.filter-section {
    padding: 20px;
    border-bottom: 1px solid var(--slate-100);
}

.filter-section-title {
    font-size: .875rem;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .filter-section-title svg {
        width: 16px;
        height: 16px;
        color: var(--primary);
    }

.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: .8125rem;
    color: var(--slate-600);
    margin-bottom: 10px;
}

.range-slider {
    width: 100%;
    accent-color: var(--primary);
    height: 4px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, var(--slate-200) 50%, var(--slate-200) 100%);
    outline: none;
}

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--primary);
        cursor: pointer;
        border: 3px solid var(--white);
        box-shadow: 0 1px 4px rgba(0,0,0,.2);
    }

.filter-check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: .9rem;
    color: var(--slate-700);
}

    .filter-check input[type=checkbox] {
        accent-color: var(--primary);
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

.filter-check-count {
    margin-left: auto;
    font-size: .75rem;
    color: var(--slate-400);
}

.filter-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 0;
}

    .filter-rating-row:hover .stars .star {
        fill: var(--warning);
    }

.products-grid-area {
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
}

.products-count {
    font-size: .9rem;
    color: var(--slate-500);
}

    .products-count strong {
        color: var(--slate-800);
        font-weight: 700;
    }

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-select {
    padding: 8px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: .875rem;
    color: var(--slate-700);
    background: var(--white);
    outline: none;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    border: 1px solid var(--slate-200);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

    .view-btn.active, .view-btn:hover {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }

    .view-btn svg {
        width: 18px;
        height: 18px;
    }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

    .products-grid .product-card .product-card-img {
        height: 180px;
    }

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.product-price-filter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.page-btn.disabled {
    opacity: .45;
    pointer-events: none;
}

.product-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--slate-500);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
}

/* ─── CART PAGE ─── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    padding: 40px 0;
}

.cart-table-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
}

.cart-table-header {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(130px, .9fr) minmax(110px, .8fr) minmax(110px, .8fr) minmax(120px, .9fr) 40px;
    gap: 16px;
    padding: 14px 24px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    font-size: .8125rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cart-item-row {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(130px, .9fr) minmax(110px, .8fr) minmax(110px, .8fr) minmax(120px, .9fr) 40px;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--slate-100);
    transition: background .15s;
}

    .cart-item-row:hover {
        background: var(--slate-50);
    }

    .cart-item-row:last-child {
        border-bottom: none;
    }

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-product-img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--slate-200);
    flex-shrink: 0;
    background: var(--slate-100);
}

.cart-product-details .product-name {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 4px;
}

.cart-product-details .product-variant {
    font-size: .8125rem;
    color: var(--slate-400);
}

.cart-unit-cell {
    min-width: 0;
}

.cart-unit-select {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 0 10px;
    color: var(--slate-800);
    background: var(--white);
    font: inherit;
    outline: none;
}

    .cart-unit-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
    }

.cart-unit-name {
    color: var(--slate-700);
    font-size: .9375rem;
    font-weight: 600;
}

.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-50);
    color: var(--slate-600);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background .15s;
}

    .qty-btn:hover {
        background: var(--slate-200);
    }

.qty-input {
    width: 44px;
    height: 34px;
    border: none;
    border-left: 1px solid var(--slate-200);
    border-right: 1px solid var(--slate-200);
    text-align: center;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--slate-800);
    outline: none;
}

.cart-unit-price {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--slate-700);
}

.cart-row-total {
    font-size: 1rem;
    font-weight: 800;
    color: var(--slate-900);
}

.cart-remove-btn {
    color: var(--slate-400);
    transition: color .2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    border-radius: var(--radius-sm);
}

    .cart-remove-btn:hover {
        color: var(--danger);
        background: #fee2e2;
    }

    .cart-remove-btn svg {
        width: 18px;
        height: 18px;
    }

.cart-table-footer {
    padding: 16px 24px;
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.summary-header {
    padding: 18px 22px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
}

    .summary-header h3 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--slate-800);
    }

.summary-body {
    padding: 22px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9375rem;
    color: var(--slate-600);
    margin-bottom: 12px;
}

    .summary-row.total {
        font-size: 1.125rem;
        font-weight: 800;
        color: var(--slate-900);
        margin-top: 16px;
        padding-top: 16px;
        border-top: 2px solid var(--slate-200);
    }

    .summary-row.discount {
        color: var(--success);
    }

.summary-divider {
    border: none;
    border-top: 1px solid var(--slate-100);
    margin: 14px 0;
}

.coupon-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

    .coupon-row input,
    .coupon-row select {
        flex: 1;
        min-width: 0;
    }

        .coupon-row input[list] {
            margin-left: -2px;
            padding-right: 14px;
        }

            .coupon-row input[list]::-webkit-calendar-picker-indicator {
                display: none !important;
            }

.policy-list {
    margin-top: 16px;
}

.policy-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8125rem;
    color: var(--slate-500);
    margin-bottom: 8px;
}

    .policy-item svg {
        width: 15px;
        height: 15px;
        color: var(--success);
        flex-shrink: 0;
    }

/* ─── CHECKOUT PAGE ─── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    padding: 40px 0;
}

.checkout-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
}

.checkout-card-header {
    padding: 18px 28px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-step-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.checkout-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-800);
}

.checkout-form {
    padding: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.address-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    margin-bottom: 16px;
}

    .address-flag img {
        width: 22px;
        height: 15px;
        border-radius: 2px;
    }

    .address-flag span {
        font-size: .875rem;
        color: var(--slate-600);
        font-weight: 500;
    }

.phone-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .9rem;
    font-weight: 700;
    color: var(--slate-700);
    pointer-events: none;
}

.phone-input-wrap {
    position: relative;
}

    .phone-input-wrap .form-control {
        padding-left: 56px;
    }

.form-group {
    margin-bottom: 18px;
}

.checkout-order-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    position: sticky;
    top: 120px;
}

.checkout-products {
    padding: 16px 20px;
    max-height: 320px;
    overflow-y: auto;
}

.checkout-product-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--slate-100);
}

    .checkout-product-row:last-child {
        border-bottom: none;
    }

.checkout-prod-img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--slate-100);
    flex-shrink: 0;
}

.checkout-prod-name {
    font-size: .875rem;
    font-weight: 600;
    color: var(--slate-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.checkout-prod-qty {
    font-size: .8125rem;
    color: var(--slate-400);
    margin-top: 2px;
}

.checkout-prod-price {
    margin-left: auto;
    font-size: .9rem;
    font-weight: 700;
    color: var(--slate-800);
    white-space: nowrap;
}

.checkout-summary {
    padding: 16px 20px;
    border-top: 1px solid var(--slate-200);
}

/* ─── PROFILE / DASHBOARD ─── */
.profile-layout {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 32px;
    padding: 40px 0;
}

.profile-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
}

.profile-user-card {
    padding: 28px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.3);
    object-fit: cover;
    margin: 0 auto 12px;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.profile-user-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.profile-user-email {
    font-size: .8125rem;
    color: rgba(255,255,255,.7);
    margin-top: 4px;
}

.profile-sidebar-nav {
    padding: 12px 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    font-size: .9375rem;
    color: var(--slate-600);
    cursor: pointer;
    transition: background .15s;
    font-weight: 500;
}

    .sidebar-nav-item:hover, .sidebar-nav-item.active {
        background: var(--primary-light);
        color: var(--primary);
    }

    .sidebar-nav-item.active {
        font-weight: 600;
        border-right: 3px solid var(--primary);
    }

    .sidebar-nav-item svg {
        width: 19px;
        height: 19px;
    }

.sidebar-nav-divider {
    border: none;
    border-top: 1px solid var(--slate-100);
    margin: 8px 0;
}

.profile-main {
}

.profile-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.widget-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

    .widget-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: transparent;
    }

.widget-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .widget-icon svg {
        width: 26px;
        height: 26px;
    }

.widget-label {
    font-size: .8125rem;
    color: var(--slate-500);
    font-weight: 500;
}

.widget-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.2;
}

.widget-sub {
    font-size: .75rem;
    color: var(--success);
    font-weight: 600;
    margin-top: 2px;
}

.profile-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    margin-bottom: 28px;
}

.profile-card-header {
    padding: 16px 24px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .profile-card-header h3 {
        font-size: .9375rem;
        font-weight: 700;
        color: var(--slate-800);
    }

.profile-card-body {
    padding: 24px;
}

.profile-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.orders-table-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
}

.order-history-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--slate-200);
    background: var(--white);
}

.order-history-tab {
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    color: var(--slate-700);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all .18s;
}

    .order-history-tab span {
        min-width: 24px;
        height: 24px;
        border-radius: var(--radius-full);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--white);
        color: var(--slate-600);
        font-size: .75rem;
    }

    .order-history-tab:hover,
    .order-history-tab.active {
        border-color: var(--primary);
        color: var(--primary);
        background: #ecfdf5;
    }

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

    .orders-table th {
        padding: 13px 18px;
        background: var(--slate-50);
        font-size: .8125rem;
        font-weight: 700;
        color: var(--slate-500);
        text-align: left;
        text-transform: uppercase;
        letter-spacing: .06em;
        border-bottom: 1px solid var(--slate-200);
    }

    .orders-table td {
        padding: 14px 18px;
        font-size: .9rem;
        color: var(--slate-700);
        border-bottom: 1px solid var(--slate-100);
    }

    .orders-table tr:last-child td {
        border-bottom: none;
    }

    .orders-table tr:hover td {
        background: var(--slate-50);
    }

.order-row {
    cursor: pointer;
}

.text-right {
    text-align: right !important;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

    .order-status.delivered {
        background: #d1fae5;
        color: #065f46;
    }

    .order-status.pending {
        background: #fef3c7;
        color: #92400e;
    }

    .order-status.processing {
        background: #dbeafe;
        color: #1e40af;
    }

    .order-status.cancelled {
        background: #fee2e2;
        color: #991b1b;
    }

.order-link {
    color: var(--primary);
    font-weight: 600;
    font-size: .875rem;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

    .order-link:hover {
        text-decoration: underline;
    }

.order-detail-panel {
    margin: 18px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.order-detail-header {
    padding: 18px 20px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.order-detail-eyebrow {
    color: var(--slate-500);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.order-detail-header h4 {
    margin: 0;
    color: var(--slate-900);
    font-size: 1.125rem;
    font-weight: 800;
}

.order-detail-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--slate-500);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

    .order-detail-close:hover {
        color: var(--danger);
        background: #fee2e2;
    }

.order-detail-content {
    padding: 20px;
}

.order-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

    .order-detail-summary > div {
        border: 1px solid var(--slate-200);
        border-radius: var(--radius-md);
        padding: 12px;
        background: var(--slate-50);
    }

    .order-detail-summary span,
    .order-detail-note span,
    .order-detail-totals span {
        display: block;
        color: var(--slate-500);
        font-size: .75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-bottom: 4px;
    }

    .order-detail-summary strong,
    .order-detail-totals strong {
        color: var(--slate-900);
        font-size: .9375rem;
    }

.order-detail-table {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 18px;
}

.order-detail-product {
    color: var(--slate-500);
    font-size: .8125rem;
    margin-top: 2px;
}

.order-detail-footer {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start;
}

.order-detail-note {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 14px;
    min-height: 120px;
    background: var(--slate-50);
}

    .order-detail-note p {
        margin: 0;
        color: var(--slate-700);
    }

.order-detail-totals {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

    .order-detail-totals > div {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--slate-100);
    }

        .order-detail-totals > div:last-child {
            border-bottom: none;
        }

    .order-detail-totals .grand-total {
        background: #ecfdf5;
    }

        .order-detail-totals .grand-total strong {
            color: var(--primary);
            font-size: 1.1rem;
        }

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .product-card {
        min-width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 1024px) {
    .about-two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-page-layout {
        grid-template-columns: 240px 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-card {
        position: static;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-order-card {
        position: static;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-menu {
        width: 600px;
    }
}

@media (max-width: 1024px) {
    .product-cards-track .product-card {
        min-width: calc((100% - 40px) / 3);
        max-width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 70px;
    }

    .header-topbar {
        display: none;
    }

    .header-search {
        max-width: 100%;
        order: 3;
        flex-basis: 100%;
        margin-top: 10px;
    }

    .header-main .container {
        flex-wrap: wrap;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .header-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-list {
        flex-wrap: nowrap;
    }

    .nav-link {
        white-space: nowrap;
        padding: 12px 14px;
        font-size: .875rem;
    }

    .hero-slider {
        height: 380px;
    }

    .slide-content {
        left: 0;
        transform: translateY(-50%);
        padding: 0 24px;
    }

    .slide-title {
        font-size: 1.75rem;
        max-width: 100%;
    }

    .slide-desc {
        display: none;
    }

    .products-page-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .cart-table-header {
        display: none;
    }

    .cart-item-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .order-history-tabs {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
    }

    .order-detail-summary {
        grid-template-columns: 1fr 1fr;
    }

    .order-detail-footer {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu {
        display: none;
    }

    .profile-field-grid {
        grid-template-columns: 1fr;
    }

    .profile-widgets {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-icon-circle {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    /* ── Language switcher: above browser chrome on mobile ── */
    .mvc-language-switcher {
        bottom: 80px !important;
        right: 12px !important;
    }

    .mvc-language-switcher .language-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 10px !important;
        touch-action: manipulation;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-cards-track .product-card {
        min-width: calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 430px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .products-grid .product-card {
        min-width: auto;
        max-width: 100%;
    }
    .product-cards-track .product-card {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-card .product-card-img {
        height: 140px;
    }

    .hero-slider {
        height: 280px;
    }

    .slide-actions .btn-outline {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cat-grid {
        gap: 12px;
    }

    /* ── Header: compact 2-row layout ── */
    .header-main {
        padding: 10px 0;
    }

    .header-main .container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo-wrap {
        flex: 1;
        min-width: 0;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .logo-icon svg {
        width: 20px;
        height: 20px;
    }

    .logo-name {
        font-size: 1.05rem;
    }

    .header-actions {
        margin-left: auto;
        gap: 6px;
    }

    .header-action-btn {
        width: 38px;
        height: 38px;
    }

    .header-action-btn svg {
        width: 20px;
        height: 20px;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 0;
    }

    .header-search input {
        padding: 9px 16px 9px 38px;
        font-size: .875rem;
    }

    .search-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    .search-btn {
        padding: 4px 12px;
        font-size: .75rem;
    }

    /* ── Navigation: horizontal scroll, no wrap ── */
    .header-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .header-nav::-webkit-scrollbar {
        display: none;
    }

    .header-nav .container {
        padding: 0 12px;
    }

    .nav-list {
        flex-wrap: nowrap;
        gap: 0;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: .8125rem;
        white-space: nowrap;
    }

    .nav-link::after {
        left: 12px;
        right: 12px;
    }

    .nav-caret {
        width: 14px;
        height: 14px;
    }

    /* ── Hero slider: left-aligned content ── */
    .slide-content {
        left: 0;
        transform: translateY(-50%);
        padding: 0 20px;
    }

    .slide-title {
        font-size: 1.25rem;
        max-width: 100%;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .slide-desc {
        font-size: .8125rem;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .slide-actions .btn {
        padding: 8px 18px;
        font-size: .8125rem;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-arrow svg {
        width: 18px;
        height: 18px;
    }

    .slider-arrow.prev {
        left: 8px;
    }

    .slider-arrow.next {
        right: 8px;
    }

    /* ── Benefits: 2x2 grid ── */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .benefit-card {
        padding: 16px 12px;
    }

    .benefit-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }

    .benefit-icon svg {
        width: 22px;
        height: 22px;
    }

    .benefit-title {
        font-size: .8125rem;
    }

    .benefit-desc {
        font-size: .75rem;
    }

    /* ── Container padding ── */
    .container {
        padding: 0 16px;
    }

    /* ── Language switcher: above browser chrome ── */
    .mvc-language-switcher {
        right: 10px !important;
        bottom: 80px !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }

    .mvc-language-switcher .language-btn {
        padding: 8px 10px !important;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
}

/* ─── Product Slider overflow fix ─── */
.product-slider {
    overflow: hidden;
}

.product-cards-track {
    will-change: transform;
}

/* ─── Add to cart "added" feedback ─── */
.add-to-cart-btn.added {
    background: var(--success) !important;
    transform: scale(1.12) !important;
}

/* ─── Section subtitle centred ─── */
.section-subtitle.centered {
    margin: 0 auto;
}

/* ─── About two-col: mobile stack ─── */
@media (max-width: 900px) {
    .about-two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

        .about-two-col > div:last-child {
            order: -1;
        }
}

/* ─── Profile grid mobile ─── */
@media (max-width: 640px) {
    .profile-field-grid {
        grid-template-columns: 1fr;
    }

    .profile-widgets {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    #recommended-products {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ─── Checkout responsive ─── */
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-order-card {
        position: static;
    }
}

/* ─── Wishlist/team grid at mobile ─── */
@media (max-width: 640px) {
    #wishlist-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =============================================
   PRODUCT CAROUSEL – Bootstrap 5 compatible
   Multi-item, 1-card-per-slide, infinite loop
   ============================================= */

.product-carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px; /* space for indicators */
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* Safety net: never let external CSS hide the carousel */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.product-carousel.is-dragging {
    cursor: grabbing;
}

.product-carousel.is-dragging .carousel-inner {
    transition: none !important;
}

.product-carousel .product-card-img {
    -webkit-user-drag: none;
}

.product-carousel .carousel-inner {
    display: flex;
    gap: 20px;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.product-carousel .carousel-item {
    display: block !important;
    flex: 0 0 var(--pcard-w, calc((100% - 60px) / 4));
    min-width: 0;
    /* Override any Bootstrap absolute positioning */
    position: relative !important;
    width: auto !important;
    margin-right: 0;
    /* Remove Bootstrap's default transform */
    transform: none !important;
    opacity: 1 !important;
}

/* Card fills its carousel-item slot */
.product-carousel .carousel-item .product-card {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
}

/* ── Indicators (dots) ── */
.pcarousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 0;
    z-index: 5;
}

.pcarousel-indicators .pcarousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--slate-300, #cbd5e1);
    cursor: pointer;
    padding: 0;
    transition: background .25s ease, transform .25s ease, width .25s ease;
}

.pcarousel-indicators .pcarousel-dot:hover {
    background: var(--slate-400);
    transform: scale(1.25);
}

.pcarousel-indicators .pcarousel-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ── Hide carousel when not enough items ── */
.product-carousel.pcarousel-static .carousel-inner {
    transition: none;
}

.product-carousel.pcarousel-static {
    cursor: default;
    touch-action: auto;
    user-select: auto;
    -webkit-user-select: auto;
}

.product-carousel.pcarousel-static .pcarousel-indicators {
    display: none;
}

/* ── Responsive card widths ── */
@media (max-width: 1199px) {
    .product-carousel .carousel-item {
        flex: 0 0 var(--pcard-w, calc((100% - 40px) / 3));
    }
}

@media (max-width: 899px) {
    .product-carousel .carousel-item {
        flex: 0 0 var(--pcard-w, calc((100% - 20px) / 2));
    }
}

@media (max-width: 599px) {
    .product-carousel .carousel-item {
        flex: 0 0 var(--pcard-w, 100%);
    }

    .product-carousel .carousel-inner {
        gap: 16px;
    }

    .pcarousel-indicators {
        gap: 6px;
    }
}

/* ─── Hero min-height on small screens ─── */
@media (max-width: 480px) {
    .hero-slider {
        height: 260px;
    }

    .slide-title {
        font-size: 1.25rem;
    }

    .slide-badge {
        display: none;
    }
}

/* ─── Form errors ─── */
.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp .5s ease forwards;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--slate-400);
    }

/* ─── Sticky header shadow on scroll ─── */
#main-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* ─── Back to top button ─── */
#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all .25s;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

    #back-to-top.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    #back-to-top:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

    #back-to-top svg {
        width: 20px;
        height: 20px;
    }

/* ─── Mobile: stack back-to-top above language switcher ─── */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 130px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    #back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* ─── Cookie notice ─── */
#cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--slate-900);
    color: rgba(255,255,255,.85);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 900;
    font-size: .875rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,.2);
    transform: translateY(100%);
    transition: transform .4s ease;
}

    #cookie-notice.visible {
        transform: translateY(0);
    }

    #cookie-notice a {
        color: #60a5fa;
    }
