/**
 * Mkart Ireland Storefront Design System
 * Primary Visual Identity extracted from mkart.ie mobile reference
 * Client: Jebin Vincent | HAAZAT SOLUTIONS LLP
 */

:root {
    --color-primary-dark: #381B06;
    --color-primary-darker: #241103;
    --color-gold: #E5A017;
    --color-gold-light: #F5B838;
    --color-gold-soft: #FDE8BA;
    --color-cream-bg: #FAF7F2;
    --color-card-bg: #FFF8EC;
    --color-card-border: #EAD9BD;
    --color-leaf-green: #388E3C;
    --color-badge-red: #D32F2F;
    --color-text-main: #241103;
    --color-text-muted: #6B5B52;
    --color-text-white: #FFFFFF;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --shadow-subtle: 0 4px 12px rgba(56, 27, 6, 0.08);
    --shadow-elevated: 0 8px 24px rgba(56, 27, 6, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-cream-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    padding-bottom: 75px; /* Space for mobile bottom nav dock */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

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

/* Announcement Header Strip */
.announcement-strip {
    background: linear-gradient(90deg, #D48B06 0%, #F5B838 50%, #D48B06 100%);
    color: #241103;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    text-align: center;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Header */
.main-header {
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary-darker) 100%);
    color: var(--color-text-white);
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .main-header {
        padding: 8px 12px;
    }

    .header-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .mobile-menu-toggle {
        order: 1;
        margin-right: 0;
    }

    .brand-logo {
        order: 2;
        margin-right: auto;
        padding-left: 2px;
    }

    .header-logo-img {
        height: 32px;
    }

    .header-actions {
        order: 3;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Hide permanent desktop search bar in top row on mobile */
    .desktop-search {
        display: none !important;
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--color-gold-light);
    letter-spacing: -0.5px;
}

.brand-logo .logo-leaf {
    color: var(--color-leaf-green);
    position: relative;
    top: -2px;
}

.brand-logo span.kart {
    color: var(--color-text-white);
    font-weight: 600;
}

/* Search Bar (Rounded Pill matching reference) */
.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 18px 10px 42px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-card-border);
    background-color: #FFFDF8;
    color: var(--color-text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
    box-shadow: 0 0 0 3px rgba(245, 184, 56, 0.4);
    background-color: #FFFFFF;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: #8C786E;
    pointer-events: none;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--color-card-border);
    max-height: 380px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #F0E6D8;
    transition: background 0.15s ease;
}

.autocomplete-item:hover {
    background: #FFF8EC;
}

.autocomplete-thumb {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #F5EFE6;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.desktop-user-name {
    display: none;
}

@media (min-width: 768px) {
    .desktop-user-name {
        display: inline;
    }
}

.action-link {
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* MOBILE SEARCH LENS & FULL-WIDTH EXPANDABLE DRAWER                          */
/* -------------------------------------------------------------------------- */
.mobile-search-toggle {
    background: transparent;
    border: none;
    color: var(--color-text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-search-toggle:hover,
.mobile-search-toggle.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-gold);
}

@media (min-width: 769px) {
    .mobile-search-toggle {
        display: none !important;
    }
}

.mobile-search-drawer {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.25s ease;
    padding: 0 12px;
    background: var(--color-primary-darker, #241103);
    position: relative;
    z-index: 150;
}

@media (max-width: 768px) {
    .mobile-search-drawer {
        display: block;
    }

    .mobile-search-drawer.is-open {
        max-height: 90px;
        opacity: 1;
        padding: 8px 12px 12px 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }
}

@media (min-width: 769px) {
    .mobile-search-drawer {
        display: none !important;
    }
}

.mobile-search-form {
    width: 100%;
    margin: 0;
}

.mobile-search-drawer .search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.mobile-search-drawer .search-input-wrapper input {
    width: 100%;
    padding: 9px 38px 9px 36px;
    border-radius: 9999px;
    border: 1px solid #D5C7B7;
    background: #FFFFFF;
    font-size: 0.88rem;
    color: #241103;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.mobile-search-drawer .search-input-wrapper input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(229, 160, 23, 0.3);
}

.mobile-search-close-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.08);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #64748B;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-search-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #0F172A;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Navigation Bar for Desktop & Mega Menu Engine */
.desktop-nav {
    display: none;
    background-color: var(--color-header-bg, #381B06);
    border-top: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 100;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    position: relative;
}

.nav-item-wrapper {
    position: relative;
}

.nav-item-wrapper.has-mega {
    position: static;
}

.nav-badge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 9999px;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease, transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    white-space: nowrap;
}

.nav-badge-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-link {
    color: var(--color-header-text, #F8EFE4);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover, .nav-item-wrapper:hover .nav-link {
    color: #FCD34D !important;
}

.nav-chevron {
    transition: transform 0.2s ease;
}

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

/* Jamoona Reference Mega Dropdown Panel */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    max-width: 1208px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 30px -5px rgba(0,0,0,0.25), 0 10px 15px -5px rgba(0,0,0,0.15);
    border: 1px solid #E2E8F0;
    padding: 28px 32px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.nav-item-wrapper:hover .mega-dropdown,
.nav-item-wrapper:focus-within .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.mega-col {
    display: flex;
    flex-direction: column;
}

.mega-col-heading {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #F1F5F9;
    letter-spacing: 0.2px;
}

.mega-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-col-link {
    font-size: 0.86rem;
    color: #475569;
    text-decoration: none;
    padding: 3px 0;
    display: block;
    transition: color 0.15s ease, transform 0.15s ease;
}

.mega-col-link:hover {
    color: #B45309;
    transform: translateX(3px);
    font-weight: 600;
}

/* Mobile Hamburger & Slide-out Drawer */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-header-text, #FFFFFF);
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    background: var(--color-header-bg, #2C1802);
    color: #FFFFFF;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.drawer-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #FFFFFF;
    font-size: 1.2rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-menu-accordion {
    display: flex;
    flex-direction: column;
}

.mobile-menu-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    color: #F8EFE4;
}

.mobile-accordion-toggle:hover {
    background: rgba(255,255,255,0.04);
}

.mobile-accordion-panel {
    background: rgba(0,0,0,0.25);
    padding: 8px 16px 14px 22px;
}

.mobile-group-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    color: var(--color-accent, #E5A017);
    font-weight: 700;
    margin: 12px 0 6px 0;
    letter-spacing: 0.5px;
}

.mobile-sub-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-sub-link {
    display: block;
    padding: 5px 0;
    font-size: 0.86rem;
    color: #D1D5DB;
    text-decoration: none;
}

.mobile-sub-link:hover {
    color: #FCD34D;
}

.mobile-direct-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #F8EFE4;
    text-decoration: none;
}

.mobile-pill-badge {
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFFFFF;
}

.drawer-footer-links {
    padding: 20px 18px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-footer-link {
    display: block;
    font-size: 0.82rem;
    color: #9CA3AF;
    text-decoration: none;
}

.drawer-footer-link:hover {
    color: #F3F4F6;
}

/* Main Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 600px) {
    .page-container {
        padding: 12px 10px;
    }
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE TABLE & CARDS SYSTEM                                            */
/* -------------------------------------------------------------------------- */
.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 520px;
}

.admin-table, .data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .data-table th {
    background-color: #F8FAFD;
    color: #475569;
    font-weight: 700;
    padding: 10px 12px;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}

.admin-table td, .data-table td {
    padding: 12px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-badge.status-paid, .status-badge.status-delivered {
    background: #DCFCE7;
    color: #166534;
}

.status-badge.status-pending, .status-badge.status-processing {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.status-cancelled, .status-badge.status-failed {
    background: #FEE2E2;
    color: #991B1B;
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE CART SYSTEM                                                     */
/* -------------------------------------------------------------------------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.cart-item-row {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #F0E6D8;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.cart-item-thumb {
    flex-shrink: 0;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #FFFDF8;
    border-radius: 8px;
    border: 1px solid #EAE3D8;
    display: block;
}

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

.cart-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #241103;
    display: block;
    margin-bottom: 4px;
    word-break: break-word;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid #D5C7B7;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #FFFFFF;
}

.cart-item-qty button {
    width: 32px;
    height: 32px;
    border: none;
    background: #F8FAFD;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    color: #241103;
    transition: background 0.15s;
}

.cart-item-qty button:hover {
    background: #E2E8F0;
}

.cart-item-qty span {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #241103;
}

.cart-item-total {
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.cart-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: #381B06;
}

.cart-remove-btn {
    border: none;
    background: none;
    color: #C62828;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    padding: 2px 4px;
}

@media (max-width: 600px) {
    .cart-item-row {
        display: grid;
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "thumb info"
            "qty total";
        gap: 12px;
        align-items: center;
        padding: 14px 0;
    }

    .cart-item-thumb {
        grid-area: thumb;
    }

    .cart-item-img {
        width: 60px;
        height: 60px;
    }

    .cart-item-info {
        grid-area: info;
    }

    .cart-item-qty {
        grid-area: qty;
    }

    .cart-item-total {
        grid-area: total;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        text-align: right;
    }

    .cart-remove-btn {
        margin-top: 0;
    }
}

/* -------------------------------------------------------------------------- */
/* CUSTOMER ACCOUNT TABS & EXPANDABLE ACCORDION SYSTEM                        */
/* -------------------------------------------------------------------------- */
.account-tabs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.account-tabs-nav::-webkit-scrollbar {
    display: none;
}

.account-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: #FFFFFF;
    border: 1px solid #EAD9BD;
    color: #381B06;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.account-tab-btn:hover {
    background: #FFF8EC;
    border-color: #D4AF37;
}

.account-tab-btn.active {
    background: linear-gradient(135deg, #381B06 0%, #1A0D03 100%);
    color: #FFFFFF;
    border-color: #D4AF37;
    box-shadow: 0 4px 12px rgba(56, 27, 6, 0.2);
}

.account-tab-badge {
    background: #E5A017;
    color: #241103;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
}

.account-tab-btn.active .account-tab-badge {
    background: #FFAE00;
    color: #241103;
}

.account-card-section {
    background: #FFFFFF;
    border: 1px solid #EAD9BD;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    transition: all 0.25s ease;
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    background: #FFFFFF;
    transition: background 0.15s ease;
}

.account-card-header:hover {
    background: #FFFDF8;
}

.account-card-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #381B06;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.accordion-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F8FAFD;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #64748B;
    transition: transform 0.25s ease;
}

.account-card-section.collapsed .accordion-chevron {
    transform: rotate(-90deg);
}

.account-card-body {
    padding: 0 20px 20px 20px;
    transition: max-height 0.3s ease;
}

.account-card-section.collapsed .account-card-body {
    display: none;
}

/* Mobile Order Cards */
.mobile-order-card {
    background: #FAF7F2;
    border: 1px solid #EAD9BD;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.mobile-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F0E6D8;
}

.mobile-order-id {
    font-weight: 800;
    color: #1E62D0;
    font-size: 0.95rem;
}

.mobile-order-date {
    font-size: 0.8rem;
    color: #8C786E;
}

.mobile-order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mobile-order-total {
    font-size: 1.15rem;
    font-weight: 900;
    color: #381B06;
}

.mobile-order-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mobile-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed #E2D9CC;
    font-size: 0.8rem;
}

.mobile-order-tracking {
    color: #6B5B52;
    font-family: monospace;
}

.mobile-order-link {
    font-weight: 700;
    color: #1E62D0;
    text-decoration: underline;
}

/* Mobile Ledger Cards */
.mobile-ledger-item {
    background: #FAF7F2;
    border: 1px solid #EAD9BD;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.mobile-ledger-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.mobile-ledger-points {
    font-weight: 900;
    font-size: 1rem;
}

.mobile-ledger-row2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6B5B52;
}

@media (min-width: 769px) {
    .mobile-only-orders {
        display: none !important;
    }
    .desktop-only-orders {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .mobile-only-orders {
        display: block !important;
    }
    .desktop-only-orders {
        display: none !important;
    }
}

/* Hero Banner (Matching mobile reference) */
.hero-card {
    background: linear-gradient(135deg, #381B06 0%, #1A0D03 100%);
    border: 1px solid #D4AF37;
    border-radius: var(--radius-lg);
    color: var(--color-text-white);
    padding: 24px 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.hero-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0; width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(245,184,56,0.15) 0%, transparent 70%);
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 184, 56, 0.15);
    border: 1px solid var(--color-gold);
    color: var(--color-gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero-headline {
    color: #FFFFFF !important;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-headline span.highlight {
    color: #FFAE00 !important;
    text-shadow: 0 2px 12px rgba(255, 174, 0, 0.4);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #E6A117 0%, #F5B838 100%);
    color: #2C1405;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(230, 161, 23, 0.4);
    transition: transform 0.15s ease;
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

/* Social Proof Strip */
.social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    font-size: 0.85rem;
    color: #E2D4C8;
}

.avatar-group {
    display: flex;
    margin-right: 4px;
}

.avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #381B06;
    margin-left: -8px;
    background-color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.avatar-circle:first-child {
    margin-left: 0;
}

.rating-stars {
    color: #F5B838;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 16px 0;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: -0.2px;
}

.section-link {
    color: var(--color-gold);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Category Grid (Matching 4-card layout on mobile reference) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-bottom: 28px;
    }
}

.category-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 8px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    min-height: 140px;
}

@media (min-width: 768px) {
    .category-card {
        padding: 14px 10px;
        min-height: 175px;
    }
}
    min-height: 175px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-subtle);
    border-color: var(--color-gold);
}

.category-icon {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

@media (min-width: 768px) {
    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }
}

.category-name {
    font-size: 0.72rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .category-name {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
}

.category-image-wrap {
    width: 100%;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
}

@media (min-width: 768px) {
    .category-image-wrap {
        height: 95px;
    }
}

.category-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Product Card Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.product-card {
    background-color: #FFFFFF;
    border: 1px solid #EAE3D8;
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.2s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-subtle);
    border-color: var(--color-gold);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--color-badge-red);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #EAE3D8;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.15s ease;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.product-image-container {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #FFFDF8;
    border-radius: var(--radius-sm);
}

.product-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.3;
    margin: 4px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.product-pricing {
    margin-bottom: 10px;
}

.price-current {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-left: 4px;
}

.add-cart-btn {
    width: 100%;
    background-color: var(--color-primary-dark);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.add-cart-btn:hover {
    background-color: #4A2306;
}

/* Floating Bottom Navigation Bar for Mobile */
.mobile-bottom-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
    z-index: 150;
    justify-content: space-around;
    padding: 8px 12px;
}

@media (min-width: 992px) {
    .mobile-bottom-dock {
        display: none;
    }
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #E6D8C8;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.dock-item.active {
    background: linear-gradient(90deg, #E6A117 0%, #F5B838 100%);
    color: #2C1405;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(245, 184, 56, 0.4);
}

/* Footer */
.main-footer {
    background-color: var(--color-primary-darker);
    color: #D6C7B8;
    padding: 40px 16px 20px 16px;
    margin-top: 40px;
    border-top: 1px solid rgba(245,184,56,0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    color: var(--color-gold-light);
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #C0B0A0;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #9E8E80;
}


/* -------------------------------------------------------------------------- */
/* INTERACTIVE HERO SLIDER (ADMIN ANIMATION & TIMER CONTROLLED)               */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* INTERACTIVE HERO SLIDER (ADMIN ANIMATION & TIMER CONTROLLED)               */
/* -------------------------------------------------------------------------- */
.hero-slider-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-elevated);
    background: #381B06;
}

.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slider-track.fade-mode {
    position: relative;
    transition: none;
}

.hero-slider-track.fade-mode .hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

.hero-slider-track.fade-mode .hero-slide-item.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-slide-item {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #381B06 0%, #1A0D03 100%);
    border: 1px solid #D4AF37;
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    min-height: 185px;
    max-height: 215px;
}

/* Metallic gold corner accents matching client reference */
.hero-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 65px;
    height: 38px;
    background: radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.45) 0%, rgba(212, 175, 55, 0.15) 50%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.hero-slide-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 75px;
    height: 42px;
    background: radial-gradient(ellipse at bottom right, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.1) 50%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.hero-slide-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-slide-content .hero-badge {
    display: inline-block;
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    margin-bottom: 4px;
    border-radius: 9999px;
    border: 1px solid rgba(229, 160, 23, 0.7);
    background: rgba(45, 20, 5, 0.75);
    color: #FCE196;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-slide-content .hero-headline {
    color: #FFFFFF !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
    font-size: 0.90rem;
    font-weight: 900;
    line-height: 1.22;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.hero-slide-content .hero-headline .highlight {
    color: #FFAE00 !important;
}

/* Subtitle is hidden on mobile to match the client reference compact ~195px card */
.hero-slide-content .hero-subtitle {
    display: none;
    font-size: 0.95rem;
    color: #F8FAFC !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 16px;
    max-width: 520px;
    line-height: 1.5;
}

.hero-slide-content .hero-btn {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-top: 2px;
    background: linear-gradient(180deg, #FFB81C 0%, #E5A017 100%);
    color: #241103;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(229, 160, 23, 0.4);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-slide-content .hero-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(229, 160, 23, 0.6);
}

.hero-slide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    z-index: 2;
}

.hero-slide-visual img {
    max-width: 100%;
    max-height: 175px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.55));
    transition: transform 0.4s ease;
}

.hero-slider-container:hover .hero-slide-visual img {
    transform: scale(1.03);
}

/* Slider Controls */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(56, 27, 6, 0.85);
    border: 2px solid #E5A017;
    color: #FFF8EC;
    font-size: 1.4rem;
    line-height: 1;
    display: none; /* Hidden on mobile */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.slider-nav-btn:hover {
    background: #E5A017;
    color: #241103;
    box-shadow: 0 0 12px rgba(229, 160, 23, 0.6);
}

.slider-nav-btn.prev {
    left: 8px;
}

.slider-nav-btn.next {
    right: 8px;
}

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

.slider-dot-item {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
}

.slider-dot-item.active {
    width: 16px;
    border-radius: 4px;
    background: #E5A017;
    box-shadow: 0 0 6px rgba(229, 160, 23, 0.8);
}

/* Desktop Expansion (>= 769px) */
@media (min-width: 769px) {
    .hero-slider-container {
        margin-bottom: 20px;
    }

    .hero-slide-item {
        grid-template-columns: 1.25fr 0.85fr;
        gap: 28px;
        padding: 32px 36px;
        min-height: 320px;
        max-height: 380px;
    }

    .hero-slide-content .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    .hero-slide-content .hero-headline {
        font-size: 1.85rem !important;
        margin-bottom: 12px !important;
    }

    .hero-slide-content .hero-subtitle {
        display: block !important;
    }

    .hero-slide-content .hero-btn {
        font-size: 0.95rem !important;
        padding: 10px 24px !important;
    }

    .hero-slide-visual img {
        max-height: 270px;
    }

    .slider-nav-btn {
        display: flex; /* Shown on desktop */
    }

    .slider-dots-container {
        bottom: 12px;
        gap: 8px;
    }

    .slider-dot-item {
        width: 10px;
        height: 10px;
    }

    .slider-dot-item.active {
        width: 26px;
    }
}

/* -------------------------------------------------------------------------- */
/* SOCIAL PROOF TRUST BAR (OUTSIDE & DIRECTLY BELOW HERO SLIDER)              */
/* -------------------------------------------------------------------------- */
.home-social-proof-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    margin: 10px 0 22px 0;
    color: var(--color-primary-dark);
}

@media (min-width: 600px) {
    .home-social-proof-bar {
        flex-direction: row;
        gap: 16px;
    }
}

.home-social-proof-bar .social-proof-customers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #241103;
    letter-spacing: 0.3px;
}

.home-social-proof-bar .social-proof-rating {
    font-size: 0.82rem;
    color: #5C4A3E;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.home-social-proof-bar .rating-stars {
    color: #E5A017;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* -------------------------------------------------------------------------- */
/* PRODUCT DETAIL MEDIA GALLERY CAROUSEL                                      */
/* -------------------------------------------------------------------------- */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

@media (min-width: 860px) {
    .product-detail-layout {
        grid-template-columns: 440px 1fr;
    }
}

.product-gallery-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-main-viewport {
    position: relative;
    width: 100%;
    height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFDF8;
    border-radius: 12px;
    border: 1px solid #F0E6D8;
    overflow: hidden;
    padding: 16px;
}

.gallery-main-img {
    max-width: 90%;
    max-height: 280px;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #D5C7B7;
    color: #381B06;
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.gallery-arrow-btn:hover {
    background: #E5A017;
    color: #241103;
    border-color: #E5A017;
}

.gallery-arrow-btn.prev {
    left: 10px;
}

.gallery-arrow-btn.next {
    right: 10px;
}

.gallery-thumbnails-strip {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 4px 2px;
}

.gallery-thumb-btn {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    border: 2px solid #E2E8F0;
    background: #FFF;
    padding: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb-btn.active {
    border-color: #E5A017;
    box-shadow: 0 0 0 1px #E5A017;
    transform: scale(1.05);
}

.gallery-thumb-btn img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
