/*
Theme Name: Astra Child Ruby - Enhanced Mega Menu
Template: astra
Version: 4.2.0
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --ruby-base: #9f1239;
    --ruby-bright: #e11d48;
    --ruby-soft: #fb7185;
    --ruby-light: #fff1f2;
    --ruby-accent: #f59e0b;
    --ruby-dark: #4c0519;
    
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
}

/* ============================================
   GLOBAL RESETS
   ============================================ */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

.no-scroll { 
    overflow: hidden !important; 
}

/* ============================================
   PROMO BAR (Static Redesign)
   ============================================ */
.promo-bar { 
    background: linear-gradient(135deg, var(--ruby-base) 0%, var(--ruby-bright) 50%, var(--ruby-dark) 100%);
    color: white; 
    text-align: center; 
    padding: 10px 0; 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 50;
}

.promo-header-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-item i {
    color: var(--ruby-accent);
    font-size: 14px;
}

.promo-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .promo-header-items {
        flex-direction: column; /* Stack on mobile if needed, or allow wrap */
        gap: 8px;
    }
    .promo-divider {
        display: none;
    }
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(159, 18, 57, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
}

.header-container {
    max-width: 1920px;
    width: 95%;
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: static !important; 
}

/* ============================================
   LOGO
   ============================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ruby-base) 0%, var(--ruby-bright) 50%, var(--ruby-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 10px 30px rgba(159, 18, 57, 0.2);
    transform: rotate(3deg);
    transition: transform 0.4s ease;
}

.logo:hover .logo-icon {
    transform: rotate(12deg) scale(1.05);
}

.logo-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--ruby-accent);
    border-radius: 50%;
    top: 4px;
    right: 4px;
}

.logo-text-wrapper {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--ruby-base) 0%, var(--ruby-bright) 40%, var(--ruby-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-weight: 800;
}

.logo-subtext {
    font-weight: 500;
    font-style: italic;
    margin-left: 2px;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */
.desktop-nav { 
    display: flex;
    align-items: center;
    height: 100%;
    position: static !important; 
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    position: static !important;
}

.nav-links li {
    display: flex;
    align-items: center;
    position: static !important; 
    height: 100%;
}

.nav-links li a {
    color: var(--ruby-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Red Line for Main Nav Only (Using > to stop inheritance) */
.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--ruby-base), var(--ruby-bright));
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--ruby-bright);
}

.nav-links > li > a:hover::after {
    width: 100%;
}

/* ============================================
   SIMPLIFIED MEGA MENU
   ============================================ */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 95%;
    max-width: 1400px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25),
                0 30px 60px -30px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(159, 18, 57, 0.1);
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

/* Active State */
.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Menu Arrow */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border-top: 1px solid rgba(159, 18, 57, 0.1);
    border-left: 1px solid rgba(159, 18, 57, 0.1);
    transform: rotate(45deg) translateX(-50%);
    z-index: 1;
}

.mega-menu-wrapper {
    width: 100%;
}

.mega-menu-container {
    padding: 40px;
}

/* Simple Grid Layout - FIXED: 4 Columns ensures 2 rows for 7 items */
.mega-simple-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.mega-simple-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    text-decoration: none;
    background: var(--neutral-50);
    transition: all 0.3s ease;
    position: relative;
    /* BORDER REMOVED */
}

/* Hover Effect - Border Removed */
.mega-simple-item:hover {
    background: white;
    /* Removed border-color */
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(159, 18, 57, 0.1);
}

.mega-simple-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--ruby-base) 0%, var(--ruby-bright) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    transition: all 0.3s ease;
}

.mega-simple-content {
    flex: 1;
}

.mega-simple-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ruby-dark);
    margin-bottom: 4px;
}

.mega-simple-content p {
    font-size: 13px;
    color: var(--neutral-600);
    margin: 0;
}

.mega-simple-item i.fa-arrow-right {
    color: var(--neutral-400);
    font-size: 14px;
    transition: all 0.3s ease;
}

.mega-simple-item:hover i.fa-arrow-right {
    color: var(--ruby-base);
    transform: translateX(6px);
}

/* ============================================
   IMAGE SUPPORT FOR MEGA MENU
   ============================================ */
.mega-simple-icon.image-mode {
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.mega-simple-icon.image-mode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.mega-simple-item:hover .mega-simple-icon.image-mode img {
    transform: scale(1.2);
}

/* Disable rotation for images */
.mega-simple-item:hover .mega-simple-icon.image-mode {
    transform: none; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Simple Footer */
.mega-simple-footer {
    padding-top: 30px;
    border-top: 1px solid rgba(159, 18, 57, 0.08);
    text-align: center;
}

/* View All Products Button - ULTRA SPECIFIC TO OVERRIDE THEME */
.mega-menu-container .mega-simple-footer a.mega-simple-view-all {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--ruby-base) 0%, var(--ruby-bright) 100%) !important;
    color: white !important; /* Force white text */
    text-decoration: none !important; /* Force no underline */
    padding: 15px 50px !important; /* Increased padding as requested */
    border-radius: 50px !important; /* Pill shape */
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(159, 18, 57, 0.25) !important;
    border: none !important;
    width: auto !important; /* Reset Astra full width */
    height: auto !important;
    line-height: normal !important;
}

.mega-menu-container .mega-simple-footer a.mega-simple-view-all:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(159, 18, 57, 0.35) !important;
    background: linear-gradient(135deg, var(--ruby-bright) 0%, var(--ruby-base) 100%) !important;
    gap: 14px;
}

/* ============================================
   HEADER ACTIONS & ACCOUNT DROPDOWN
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Wrapper for Actions having dropdowns */
.header-action-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.action-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(159, 18, 57, 0.04) 0%, rgba(225, 29, 72, 0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(159, 18, 57, 0.05);
}

.action-icon:hover {
    background: linear-gradient(135deg, rgba(159, 18, 57, 0.08) 0%, rgba(225, 29, 72, 0.08) 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(159, 18, 57, 0.15);
    border-color: rgba(159, 18, 57, 0.1);
}

.action-icon i {
    font-size: 18px;
    color: var(--ruby-base);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.action-icon:hover i {
    color: var(--ruby-bright);
    transform: scale(1.1);
}

/* ACCOUNT DROPDOWN STYLES */
.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.15);
    border: 1px solid rgba(159, 18, 57, 0.08);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    margin-top: 10px; /* Small gap from icon */
}

/* Hover Bridge: Prevents dropdown from closing when moving mouse */
.account-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Show on Hover */
.header-action-item:hover .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 8px 12px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--neutral-400);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Style the links clearly to override theme defaults */
.account-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none !important;
    color: var(--neutral-700) !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: var(--neutral-50);
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.account-dropdown a:last-child {
    margin-bottom: 0;
}

.account-dropdown a i {
    color: var(--ruby-base);
    width: 20px;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 16px;
}

.account-dropdown a:hover {
    background: white;
    color: var(--ruby-base) !important;
    border-color: var(--ruby-soft);
    box-shadow: 0 4px 12px rgba(159, 18, 57, 0.1);
    transform: translateX(4px);
}

.account-dropdown a:hover i {
    transform: scale(1.1);
}

/* Cart Badge */
.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, var(--ruby-base) 0%, var(--ruby-bright) 100%);
    color: white;
    font-size: 11px;
    font-weight: 900;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(159, 18, 57, 0.4);
    border: 2px solid white;
    z-index: 20; /* Fixed: Increased z-index to be above buttons */
    pointer-events: none; /* Fixed: Ensure clicks pass through */
}

/* Fixed: Hide badge when empty using class instead of DOM removal */
.cart-count-badge.hidden {
    display: none;
}

.action-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neutral-900);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.action-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--neutral-900);
}

.action-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid rgba(159, 18, 57, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--neutral-50);
    padding: 16px 24px;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    background: white;
    border-color: var(--ruby-soft);
    box-shadow: 0 0 0 4px rgba(159, 18, 57, 0.1);
}

.search-form i {
    color: var(--ruby-base);
    font-size: 20px;
}

.search-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: var(--neutral-800);
    outline: none;
}

.search-field::placeholder {
    color: var(--neutral-400);
}

/* Updated Search Submit Button - MATCHING VIEW ALL BUTTON STYLE */
.search-form .search-submit {
    /* Use !important to override theme defaults */
    width: auto !important;
    height: auto !important;
    padding: 15px 50px !important; /* MATCHING PADDING FROM VIEW ALL BTN */
    border-radius: 50px !important;
    background: linear-gradient(135deg, var(--ruby-base) 0%, var(--ruby-bright) 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(159, 18, 57, 0.25) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Enforce white icon inside the button */
.search-form .search-submit i {
    color: white !important;
    font-size: 16px !important; /* Consistent size */
}

.search-form .search-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(159, 18, 57, 0.35) !important;
}

.search-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--neutral-100);
    border: none;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: var(--neutral-200);
    color: var(--neutral-900);
}

/* ============================================
   LIVE SEARCH RESULTS
   ============================================ */
.ruby-live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 16px 16px;
    z-index: 998;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(159, 18, 57, 0.05);
    border-top: none;
}

.ruby-live-search-results.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ruby-live-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.live-search-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--neutral-100);
}

.live-search-item:hover {
    background: var(--neutral-50);
}

.item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
    border: 1px solid var(--neutral-200);
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-title {
    font-weight: 600;
    color: var(--ruby-dark);
    font-size: 14px;
    line-height: 1.4;
}

.item-price {
    font-size: 13px;
    color: var(--ruby-base);
    margin-top: 4px;
}

.live-search-loading,
.live-search-no-results,
.live-search-error {
    padding: 24px;
    text-align: center;
    color: var(--neutral-500);
    font-size: 14px;
}

.live-search-footer {
    padding: 12px;
    text-align: center;
    background: var(--neutral-50);
}

.live-search-footer a {
    color: var(--ruby-base);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.live-search-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   ANNOUNCEMENT BAR (Removed but styles kept just in case)
   ============================================ */
.announcement-bar {
    background: var(--ruby-light);
    border-bottom: 1px solid rgba(159, 18, 57, 0.05);
    padding: 12px 0;
    display: none; /* Explicitly hide it */
}

/* ============================================
   CART & MOBILE SIDEBARS
   ============================================ */
.cart-sidebar, .mobile-menu {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 420px;
    background: white;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.cart-sidebar {
    right: 0;
    transform: translateX(100%);
}

.mobile-menu {
    left: 0;
    transform: translateX(-100%);
    width: 340px;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.mobile-menu.active {
    transform: translateX(0);
}

.cart-header, .mobile-menu-header {
    padding: 32px;
    border-bottom: 1px solid var(--neutral-100);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--ruby-light) 0%, white 100%);
}

.cart-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--ruby-dark);
    margin: 0;
}

.cart-subtitle {
    color: var(--neutral-500);
    font-size: 13px;
    margin: 4px 0 0 0;
}

.cart-close, .mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(159, 18, 57, 0.05);
    border: none;
    color: var(--ruby-base);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover, .mobile-menu-close:hover {
    background: rgba(159, 18, 57, 0.1);
    transform: rotate(90deg);
}

.cart-items, .mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* Shipping Progress */
.shipping-progress {
    padding: 24px 32px;
    border-top: 1px solid var(--neutral-100);
    background: var(--neutral-50);
}

.progress-info p {
    font-size: 13px;
    color: var(--neutral-700);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-info p.success {
    color: #059669;
}

.progress-info i {
    font-size: 14px;
}

.progress-bar {
    height: 6px;
    background: var(--neutral-200);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--ruby-base), var(--ruby-bright));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Mobile Nav Links */
.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 8px;
}

.mobile-nav-links a {
    color: var(--ruby-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 20px;
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--neutral-50);
}

.mobile-nav-links a:hover {
    color: var(--ruby-bright);
    background: var(--ruby-light);
    transform: translateX(8px);
}

.mobile-menu-cta {
    padding: 32px 0 0;
    border-top: 1px solid var(--neutral-100);
    margin-top: 32px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--ruby-base) 0%, var(--ruby-bright) 100%);
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(159, 18, 57, 0.3);
}

/* ============================================
   OVERLAY
   ============================================ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MOBILE MENU BUTTON
   ============================================ */
.mobile-menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(159, 18, 57, 0.04) 0%, rgba(225, 29, 72, 0.04) 100%);
    border: 1px solid rgba(159, 18, 57, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-btn:hover {
    background: linear-gradient(135deg, rgba(159, 18, 57, 0.08) 0%, rgba(225, 29, 72, 0.08) 100%);
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--ruby-base);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .mega-simple-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mega-menu {
        width: calc(100% - 32px);
        left: 16px;
        transform: translateY(20px);
        border-radius: 16px;
    }
    
    .mega-menu::before {
        left: 30px;
    }
    
    .mega-menu.active {
        transform: translateY(0);
    }
    
    .mega-menu-container {
        padding: 24px;
    }
    
    .mega-simple-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .mega-simple-item {
        padding: 20px;
    }
    
    .header-container {
        padding: 0 16px;
        height: 70px;
    }
    
    .logo-text-wrapper {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .action-icon {
        width: 44px;
        height: 44px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .cart-sidebar {
        width: 100%;
    }
    
    .mobile-menu {
        width: 90%;
        max-width: 340px;
    }
    
    .announcement-content {
        gap: 12px;
        justify-content: center;
    }
    
    /* Disable account hover on mobile, rely on link click */
    .account-dropdown {
        display: none;
    }
}

@media (max-width: 480px) {
    .mega-menu-container {
        padding: 16px;
    }
    
    .mega-simple-item {
        gap: 16px;
        padding: 16px;
    }
    
    .mega-simple-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .mega-simple-content h4 {
        font-size: 16px;
    }
    
    .mega-simple-content p {
        font-size: 12px;
    }
    
    .announcement-item {
        font-size: 11px;
    }
    
    .announcement-item i {
        font-size: 12px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--ruby-bright);
    outline-offset: 2px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(159, 18, 57, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(159, 18, 57, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(159, 18, 57, 0);
    }
}

.bounce {
    animation: bounce 0.6s ease;
}

.pulse {
    animation: pulse 0.6s ease;
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.ruby-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid var(--ruby-base);
    max-width: 300px;
}

.ruby-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.ruby-notification i {
    color: var(--ruby-base);
    font-size: 18px;
}

.ruby-notification.success {
    border-left-color: #10b981;
}

.ruby-notification.success i {
    color: #10b981;
}

.ruby-notification.error {
    border-left-color: #ef4444;
}

.ruby-notification.error i {
    color: #ef4444;
}

.ruby-notification.warning {
    border-left-color: #f59e0b;
}

.ruby-notification.warning i {
    color: #f59e0b;
}

/* ============================================
   STICKY HEADER EFFECTS
   ============================================ */
.main-header.sticky {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

.main-header.loaded {
    animation: fadeIn 0.5s ease forwards;
}


/* ============================================
   ENHANCED CART SIDEBAR STYLES (Ver 4.0)
   ============================================ */

/* 1. Sidebar Container & Scrollbar */
#cartSidebar {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

#cartSidebar .widget_shopping_cart_content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 32px;
}

/* Custom Scrollbar for Cart Items */
#cartSidebar .widget_shopping_cart_content::-webkit-scrollbar {
    width: 5px;
}
#cartSidebar .widget_shopping_cart_content::-webkit-scrollbar-track {
    background: var(--neutral-100);
}
#cartSidebar .widget_shopping_cart_content::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 10px;
}

/* 2. Cart Item Row Layout */
.woocommerce-mini-cart {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.woocommerce-mini-cart-item {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--neutral-100);
    position: relative;
    transition: all 0.3s ease;
}

.woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

/* Thumbnail Styling */
.woocommerce-mini-cart-item img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 !important;
    border: 1px solid var(--neutral-100);
    flex-shrink: 0;
}

/* Product Info */
.woocommerce-mini-cart-item a:not(.remove) {
    font-size: 14px;
    font-weight: 700;
    color: var(--ruby-dark) !important;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

/* Hide default qty, we use our custom one */
.woocommerce-mini-cart-item .quantity {
    display: block;
    font-size: 13px;
    color: var(--neutral-500);
}

.woocommerce-mini-cart-item .amount {
    color: var(--ruby-base);
    font-weight: 700;
    font-size: 15px;
}

/* Remove Button Styling */
.woocommerce-mini-cart-item .remove {
    position: absolute !important;
    top: 15px;
    right: 0;
    width: 24px !important;
    height: 24px !important;
    background: var(--neutral-100) !important;
    color: var(--neutral-500) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    transition: all 0.2s ease;
}

.woocommerce-mini-cart-item .remove:hover {
    background: var(--ruby-bright) !important;
    color: white !important;
}

/* 3. Subtotal Section */
.woocommerce-mini-cart__total {
    margin-top: 20px;
    padding: 20px 0;
    border-top: 2px dashed var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.woocommerce-mini-cart__total strong {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--ruby-dark);
}

.woocommerce-mini-cart__total .amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--ruby-base);
}

/* 4. Cart Action Buttons */
.woocommerce-mini-cart__buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
    padding-bottom: 20px;
}

.woocommerce-mini-cart__buttons a {
    text-align: center;
    padding: 14px 10px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
}

/* View Cart Button */
.woocommerce-mini-cart__buttons a.button.wc-forward:not(.checkout) {
    background: white !important;
    color: var(--ruby-base) !important;
    border: 2px solid var(--ruby-base) !important;
}

.woocommerce-mini-cart__buttons a.button.wc-forward:not(.checkout):hover {
    background: var(--ruby-light) !important;
}

/* Checkout Button */
.woocommerce-mini-cart__buttons a.button.checkout {
    background: linear-gradient(135deg, var(--ruby-base) 0%, var(--ruby-bright) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(159, 18, 57, 0.2) !important;
}

.woocommerce-mini-cart__buttons a.button.checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(159, 18, 57, 0.3) !important;
}

/* 5. Enhanced Shipping Progress Bar */
.shipping-progress {
    margin: 0 32px 32px;
    padding: 20px !important;
    border-radius: 16px;
    background: var(--ruby-light) !important;
    border: 1px solid rgba(159, 18, 57, 0.1);
}

.progress-info p {
    font-weight: 600;
    margin-bottom: 10px !important;
}

.progress-bar {
    height: 8px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(159, 18, 57, 0.05);
}

.progress-fill {
    box-shadow: 0 0 10px rgba(159, 18, 57, 0.2);
    position: relative;
}

/* Add a small pulse effect to the shipping bar if not full */
.progress-fill:not([style*="width: 100%"]) {
    animation: progressPulse 2s infinite;
}

@keyframes progressPulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Removing Animation */
.woocommerce-mini-cart-item.removing {
    transform: translateX(100%);
    opacity: 0;
}

/* --------------------------------------------
   NEW: QUANTITY BUTTONS STYLES
   -------------------------------------------- */
.ruby-qty-control {
    display: inline-flex;
    align-items: center;
    justify-content: space-between; /* Ensure spacing distribution */
    background: var(--neutral-100);
    border-radius: 8px;
    padding: 4px; /* Increased padding */
    margin-top: 8px;
    border: 1px solid var(--neutral-200);
    gap: 10px; /* Added gap between buttons and number */
    min-width: 120px; /* Ensure container is wide enough */
}

.ruby-qty-control .qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    color: var(--ruby-base);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0; /* Prevent button shrinking */
}

.ruby-qty-control .qty-btn:hover {
    background: var(--ruby-base);
    color: white;
}

.ruby-qty-control .qty-input {
    width: 45px; /* Increased width to display number clearly */
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px; /* Slightly larger font */
    font-weight: 700;
    color: var(--ruby-dark);
    -moz-appearance: textfield;
    padding: 0;
}

.ruby-qty-control .qty-input::-webkit-outer-spin-button,
.ruby-qty-control .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ruby-qty-control.processing {
    opacity: 0.6;
    pointer-events: none;
}

.ruby-cart-item-price {
    margin-top: 4px;
    font-size: 13px;
    color: var(--neutral-500);
    font-weight: 500;
}