/* ============================================
   SILANO PERFUME - Enhanced Navigation & UI
   ============================================ */

/* === CSS Variables === */
:root {
    --x-primary: #cca14c;
    --x-primary-dark: #b08a3a;
    --x-primary-light: #e8c874;
    --x-dark: #0f1f33;
    --x-dark-2: #172c44;
    --x-dark-3: #1f3554;
    --x-dark-4: #2a4a6b;
    --x-light: rgba(255,255,255,0.04);
    --x-gold-gradient: linear-gradient(135deg, #cca14c 0%, #e8c874 50%, #cca14c 100%);
    --x-dark-gradient: linear-gradient(180deg, #0f1f33 0%, #172c44 100%);
    --x-shadow-sm: 0 2px 8px rgba(0,0,0,0.12);
    --x-shadow-md: 0 4px 20px rgba(0,0,0,0.15);
    --x-shadow-lg: 0 8px 40px rgba(0,0,0,0.2);
    --x-shadow-gold: 0 4px 15px rgba(204,161,76,0.3);
    --x-radius: 12px;
    --x-radius-sm: 8px;
    --x-radius-lg: 16px;
    --x-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --x-font: 'Cairo', sans-serif;
}

/* === Overlay === */
.x-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 51, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    animation: x-fadeIn 0.2s ease;
}

/* === Header === */
.x-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--x-dark);
    box-shadow: var(--x-shadow-md);
}

/* Top bar */
.x-topbar {
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 6px 0;
    font-size: 12px;
}

.x-topbar-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--x-transition);
    font-family: var(--x-font);
}

.x-topbar-link:hover {
    color: var(--x-primary);
    text-decoration: none;
}

.x-topbar-divider {
    color: rgba(255,255,255,0.2);
    margin: 0 2px;
}

/* Main nav */
.x-main-nav {
    padding: 10px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* Centered logo layout */
.x-nav-centered {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.x-nav-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.x-nav-side-start {
    justify-content: flex-start;
}

.x-nav-side-end {
    justify-content: flex-end;
}

/* Center logo */
.x-logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 12px;
}

.x-logo-center:hover {
    text-decoration: none;
}

.x-logo-img-lg {
    height: 90px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--x-transition);
    filter: brightness(1.1) drop-shadow(0 2px 10px rgba(204,161,76,0.25));
}

.x-logo-center:hover .x-logo-img-lg {
    filter: brightness(1.2) drop-shadow(0 4px 12px rgba(204,161,76,0.3));
    transform: scale(1.05);
}

.x-logo-text-lg {
    font-size: 28px;
    font-weight: 800;
    color: var(--x-primary);
    font-family: var(--x-font);
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(204,161,76,0.2);
}

/* Legacy logo classes */
.x-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.x-logo:hover {
    text-decoration: none;
}

.x-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: var(--x-transition);
    filter: brightness(1.1);
}

.x-logo:hover .x-logo-img {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.x-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--x-primary);
    font-family: var(--x-font);
    letter-spacing: 1px;
}

/* Alpine x-cloak */
[x-cloak] { display: none !important; }

/* Nav links */
.x-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.x-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--x-font);
    border-radius: var(--x-radius-sm);
    transition: var(--x-transition);
    white-space: nowrap;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.x-nav-link:hover,
.x-nav-link.active {
    color: var(--x-primary);
    background: rgba(204,161,76,0.08);
    text-decoration: none;
}

.x-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--x-primary);
    border-radius: 2px;
}

.x-nav-flash {
    color: var(--x-primary) !important;
    animation: x-pulse 2s infinite;
}

.x-chevron {
    transition: transform 0.2s;
}

/* Nav actions */
.x-nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.x-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: var(--x-transition);
    position: relative;
    text-decoration: none;
}

.x-action-btn:hover {
    background: rgba(204,161,76,0.15);
    color: var(--x-primary);
    text-decoration: none;
    transform: scale(1.05);
}

.x-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--x-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--x-font);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: x-popIn 0.3s ease;
}

/* === Hamburger === */
.x-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.x-hamburger-line,
.x-hamburger-line::before,
.x-hamburger-line::after {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: var(--x-transition);
    position: relative;
}

.x-hamburger-line::before,
.x-hamburger-line::after {
    content: '';
    position: absolute;
    left: 0;
}

.x-hamburger-line::before { top: -7px; }
.x-hamburger-line::after { top: 7px; }

.x-hamburger-line.active {
    background: transparent;
}

.x-hamburger-line.active::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--x-primary);
}

.x-hamburger-line.active::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--x-primary);
}

/* === Mega Menu === */
.x-nav-dropdown {
    position: relative;
}

.x-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 700px;
    background: #0f1f33;
    border-radius: 0 0 var(--x-radius-lg) var(--x-radius-lg);
    box-shadow: var(--x-shadow-lg);
    z-index: 1050;
    overflow: hidden;
}

[dir="rtl"] .x-mega-menu {
    left: auto;
    right: 0;
}

.x-mega-inner {
    display: flex;
    min-height: 350px;
}

.x-mega-sidebar {
    width: 240px;
    background: var(--x-light);
    border-right: 1px solid rgba(0,0,0,0.06);
    padding: 8px 0;
    overflow-y: auto;
    max-height: 400px;
}

[dir="rtl"] .x-mega-sidebar {
    border-right: none;
    border-left: 1px solid rgba(0,0,0,0.06);
}

.x-mega-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--x-dark-3);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--x-font);
    transition: var(--x-transition);
}

.x-mega-cat-link:hover,
.x-mega-cat-link.active {
    background: rgba(204,161,76,0.08);
    color: #cca14c;
    text-decoration: none;
    padding-inline-start: 20px;
}

.x-mega-cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--x-primary);
    flex-shrink: 0;
}

.x-mega-cat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.x-mega-arrow {
    margin-inline-start: auto;
    opacity: 0.4;
}

.x-mega-cat-link:hover .x-mega-arrow,
.x-mega-cat-link.active .x-mega-arrow {
    opacity: 1;
    color: var(--x-primary);
}

.x-mega-all {
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 4px;
    padding-top: 12px;
    color: #cca14c;
    font-weight: 600;
    font-size: 12px;
}

.x-mega-content {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 400px;
}

.x-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.x-mega-group-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: white;
    font-family: var(--x-font);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--x-primary);
    text-decoration: none;
    transition: var(--x-transition);
}

.x-mega-group-title:hover {
    color: #cca14c;
    text-decoration: none;
}

.x-mega-child-link {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    padding: 4px 0;
    text-decoration: none;
    font-family: var(--x-font);
    transition: var(--x-transition);
}

.x-mega-child-link:hover {
    color: #cca14c;
    padding-inline-start: 6px;
    text-decoration: none;
}

.x-mega-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255,255,255,0.45);
    font-family: var(--x-font);
    font-size: 14px;
    text-align: center;
    gap: 12px;
}

/* === Search Panel === */
.x-search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--x-dark);
    z-index: 1050;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.35s;
    padding: 24px 0;
    box-shadow: var(--x-shadow-lg);
    visibility: hidden;
}

.x-search-panel.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.x-search-inner {
    max-width: 640px;
    margin: 0 auto;
}

.x-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--x-radius);
    padding: 12px 16px;
    transition: var(--x-transition);
}

.x-search-input-wrap:focus-within {
    background: rgba(255,255,255,0.12);
    border-color: var(--x-primary);
    box-shadow: 0 0 0 3px rgba(204,161,76,0.15);
}

.x-search-input-wrap svg {
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.x-search-input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-family: var(--x-font);
    outline: none;
}

.x-search-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.x-search-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--x-transition);
    flex-shrink: 0;
}

.x-search-close:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.x-search-results {
    margin-top: 16px;
    background: #0f1f33;
    border-radius: var(--x-radius);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--x-shadow-md);
}

.x-search-section {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.x-search-section:last-child {
    border-bottom: none;
}

.x-search-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
    font-family: var(--x-font);
}

.x-search-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: var(--x-dark-3);
    text-decoration: none;
    font-size: 14px;
    font-family: var(--x-font);
    border-radius: var(--x-radius-sm);
    transition: var(--x-transition);
}

.x-search-cat-item:hover {
    background: var(--x-light);
    color: #cca14c;
    text-decoration: none;
}

.x-search-products {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.x-search-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--x-radius-sm);
    text-decoration: none;
    transition: var(--x-transition);
}

.x-search-product:hover {
    background: var(--x-light);
    text-decoration: none;
}

.x-search-product-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--x-radius-sm);
    background: var(--x-light);
    flex-shrink: 0;
}

.x-search-product-info {
    flex: 1;
    min-width: 0;
}

.x-search-product-name {
    font-size: 14px;
    color: white;
    font-weight: 500;
    font-family: var(--x-font);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x-search-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.x-price-old {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-decoration: line-through;
}

.x-price-new {
    font-size: 14px;
    color: #cca14c;
    font-weight: 700;
    font-family: var(--x-font);
}

.x-search-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    color: #cca14c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--x-font);
    border-top: 1px solid rgba(0,0,0,0.06);
    transition: var(--x-transition);
}

.x-search-view-all:hover {
    background: var(--x-light);
    color: #cca14c;
    text-decoration: none;
}

/* === Cart Sidebar === */
/* LTR: slides from RIGHT | RTL: slides from LEFT */
.x-cart-sidebar {
    position: fixed;
    top: 0;
    right: 0 !important;
    left: auto !important;
    width: 400px;
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    background: #0f1f33;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* RTL: anchor to left, slide from left */
[dir="rtl"] .x-cart-sidebar {
    right: auto !important;
    left: 0 !important;
    transform: translateX(-100%);
    box-shadow: 8px 0 40px rgba(0,0,0,0.2);
}

.x-cart-sidebar.open {
    transform: translateX(0) !important;
}

.x-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--x-dark) 0%, var(--x-dark-2) 100%);
    border-bottom: 2px solid var(--x-primary);
}

.x-cart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--x-font);
    margin: 0;
}

.x-cart-count {
    background: rgba(204,161,76,0.15);
    color: var(--x-primary);
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.x-cart-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--x-transition);
}

.x-cart-close:hover {
    background: rgba(204,161,76,0.15);
    border-color: var(--x-primary);
    color: var(--x-primary);
}

.x-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.x-cart-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: var(--x-radius);
    transition: var(--x-transition);
    position: relative;
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.04);
    background: #0f1f33;
}

.x-cart-item:hover {
    background: var(--x-light);
    border-color: rgba(204,161,76,0.12);
    box-shadow: var(--x-shadow-sm);
}

.x-cart-item-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--x-radius-sm);
    background: var(--x-light);
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.06);
}

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

.x-cart-item-name {
    font-size: 13px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    font-family: var(--x-font);
    display: block;
    line-height: 1.3;
}

.x-cart-item-name:hover {
    color: #cca14c;
    text-decoration: none;
}

.x-cart-item-variant {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    display: block;
    margin-top: 2px;
}

.x-cart-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.x-cart-item-qty {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-family: var(--x-font);
}

.x-cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #cca14c;
    font-family: var(--x-font);
}

.x-cart-item-remove {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--x-transition);
}

.x-cart-item-remove:hover {
    color: #e74c3c;
    background: rgba(231,76,60,0.08);
}

.x-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
    text-align: center;
    padding: 60px 24px;
}

.x-cart-empty svg {
    color: var(--x-primary);
    opacity: 0.2;
}

.x-cart-empty p {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    font-family: var(--x-font);
    margin: 0;
}

.x-cart-footer {
    padding: 20px 24px;
    border-top: 2px solid rgba(204,161,76,0.15);
    background: linear-gradient(180deg, #fafaf8 0%, #f5f3ef 100%);
}

.x-cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-family: var(--x-font);
    font-size: 15px;
    color: white;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.x-cart-subtotal-price {
    font-weight: 700;
    font-size: 20px;
    color: #cca14c;
}

/* === Mobile Menu === */
/* LTR: slides from LEFT | RTL: slides from RIGHT */
.x-mobile-menu {
    position: fixed;
    top: 0;
    left: 0 !important;
    right: auto !important;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, var(--x-dark) 0%, #0a1628 100%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 8px 0 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

/* RTL: anchor to right, slide from right */
[dir="rtl"] .x-mobile-menu {
    left: auto !important;
    right: 0 !important;
    transform: translateX(100%);
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}

.x-mobile-menu.open {
    transform: translateX(0) !important;
}

.x-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(204,161,76,0.15);
    background: rgba(0,0,0,0.15);
}

.x-mobile-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(204,161,76,0.2));
}

.x-mobile-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--x-transition);
}

.x-mobile-close:hover {
    background: rgba(204,161,76,0.15);
    border-color: var(--x-primary);
    color: var(--x-primary);
}

.x-mobile-body {
    padding: 16px 20px;
    flex: 1;
    overflow-y: auto;
}

.x-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--x-font);
    border-radius: var(--x-radius-sm);
    transition: var(--x-transition);
    position: relative;
}

.x-mobile-link::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--x-primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}

.x-mobile-link:hover {
    background: rgba(255,255,255,0.04);
    color: var(--x-primary);
    text-decoration: none;
    padding-inline-start: 20px;
}

.x-mobile-link:hover::before {
    height: 24px;
}

.x-mobile-link svg {
    opacity: 0.6;
    transition: var(--x-transition);
    flex-shrink: 0;
}

.x-mobile-link:hover svg {
    opacity: 1;
    color: var(--x-primary);
}

.x-mobile-link-accent {
    color: var(--x-primary) !important;
    font-weight: 600;
}

.x-mobile-link-danger {
    color: #e74c3c !important;
}

.x-mobile-link-danger:hover {
    background: rgba(231,76,60,0.08);
}

.x-mobile-link-danger:hover::before {
    background: #e74c3c;
}

.x-mobile-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.3);
    padding: 16px 14px 6px;
    font-family: var(--x-font);
}

.x-mobile-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 14px;
}

/* === Buttons === */
.x-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--x-font);
    border-radius: var(--x-radius-sm);
    text-decoration: none;
    transition: var(--x-transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.x-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.x-btn-primary {
    background: var(--x-gold-gradient);
    color: white;
    border-color: var(--x-primary);
}

.x-btn-primary:hover {
    box-shadow: var(--x-shadow-gold);
    color: white;
}

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

.x-btn-outline:hover {
    background: rgba(204,161,76,0.08);
    color: var(--x-primary);
}

.x-btn-block {
    width: 100%;
    text-align: center;
}

/* === Utility === */
.gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; }

/* === Alpine transitions === */
.x-transition-enter { transition: all 0.2s ease; }
.x-transition-enter-start { opacity: 0; transform: translateY(-8px); }
.x-transition-enter-end { opacity: 1; transform: translateY(0); }
.x-transition-leave { transition: all 0.15s ease; }
.x-transition-leave-start { opacity: 1; transform: translateY(0); }
.x-transition-leave-end { opacity: 0; transform: translateY(-8px); }

/* Overlay fade */
.x-fade-enter { transition: opacity 0.25s ease; }
.x-fade-enter-start { opacity: 0; }
.x-fade-enter-end { opacity: 1; }
.x-fade-leave { transition: opacity 0.2s ease; }
.x-fade-leave-start { opacity: 1; }
.x-fade-leave-end { opacity: 0; }

/* === Animations === */
@keyframes x-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes x-popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes x-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .x-mega-menu {
        display: none !important;
    }

    .x-main-nav > .container {
        gap: 12px;
    }

    .x-logo-img {
        height: 36px;
    }
}

@media (max-width: 575.98px) {
    .x-topbar {
        padding: 4px 0;
        font-size: 11px;
    }

    .x-main-nav {
        min-height: 56px;
    }

    .x-main-nav > .container {
        min-height: 56px;
    }

    .x-action-btn {
        width: 36px;
        height: 36px;
    }

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

    .x-cart-sidebar {
        width: 100%;
        max-width: 100vw;
    }
}

/* === Scrollbar styling === */
.x-cart-body::-webkit-scrollbar,
.x-mega-sidebar::-webkit-scrollbar,
.x-mega-content::-webkit-scrollbar,
.x-search-results::-webkit-scrollbar {
    width: 4px;
}

.x-cart-body::-webkit-scrollbar-track,
.x-mega-sidebar::-webkit-scrollbar-track,
.x-mega-content::-webkit-scrollbar-track,
.x-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.x-cart-body::-webkit-scrollbar-thumb,
.x-mega-sidebar::-webkit-scrollbar-thumb,
.x-mega-content::-webkit-scrollbar-thumb,
.x-search-results::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
}

/* === Mega menu product preview === */
.x-mega-products-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.x-mega-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    font-family: var(--x-font);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--x-primary);
}

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

.x-mega-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border-radius: var(--x-radius-sm);
    text-decoration: none;
    transition: var(--x-transition);
    border: 1px solid transparent;
}

.x-mega-product-card:hover {
    background: var(--x-light);
    border-color: rgba(204,161,76,0.2);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--x-shadow-sm);
}

.x-mega-product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--x-radius-sm);
    background: var(--x-light);
    margin-bottom: 8px;
}

.x-mega-product-name {
    font-size: 12px;
    color: white;
    font-family: var(--x-font);
    font-weight: 500;
    margin: 0 0 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.x-mega-product-price {
    font-size: 13px;
    font-weight: 700;
    color: #cca14c;
    font-family: var(--x-font);
}

.x-mega-view-cat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    margin-top: 12px;
    color: #cca14c;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    font-family: var(--x-font);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-radius: 0 0 var(--x-radius-sm) var(--x-radius-sm);
    transition: var(--x-transition);
}

.x-mega-view-cat:hover {
    background: var(--x-light);
    color: #cca14c;
    text-decoration: none;
}

/* === Header spacer to offset sticky header === */
.x-header-spacer {
    height: 0;
}

/* === Responsive centered logo === */
@media (max-width: 991.98px) {
    .x-nav-centered {
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }

    .x-logo-center {
        flex: 1;
        justify-content: center;
    }

    .x-logo-img-lg {
        height: 60px;
    }

    .x-main-nav {
        min-height: 72px;
    }

    .x-nav-side-start {
        flex: 0;
    }

    .x-nav-side-end {
        flex: 0;
    }
}

@media (max-width: 575.98px) {
    .x-logo-img-lg {
        height: 50px;
    }

    .x-main-nav {
        min-height: 64px;
        padding: 6px 0;
    }

    .x-nav-centered {
        gap: 4px;
    }

    .x-mobile-menu {
        width: 100%;
        max-width: 100vw;
    }

    .x-cart-sidebar {
        width: 100%;
        max-width: 100vw;
    }
}
