/* SIMPLE INDIAN FIXES - MINIMAL, NO BREAKING */

/* Only fix what's broken - don't touch the menu! */

/* 1. Slider - Desktop 300px, Mobile 280px (matches css-slider.php) */
.indian-festival-slider .slider-container {
    max-height: 300px !important;
    height: 300px !important;
}

.indian-festival-slider,
.css-slider,
.slider-container {
    margin-top: 0 !important;
    clear: both !important;
}

/* Ensure slider content is below menu */
.indian-festival-slider .slider-item,
.css-slider .slider-item {
    padding-top: 10px !important;
}

/* 2. Products - Grid layout (without breaking WooCommerce) */
@media (min-width: 992px) {
    .woocommerce ul.products[class*="columns-"],
    .woocommerce ul.products,
    ul.products,
    .products-grid,
    .ethnic-products-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 30px !important;
    }

    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-5,
    .woocommerce ul.products.columns-6 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .woocommerce ul.products[class*="columns-"] li.product,
    .woocommerce ul.products li.product,
    ul.products li.product,
    .product-item {
        width: auto !important;
        margin: 0 !important;
        float: none !important;
    }
}

/* 3. Responsive - 3 columns on tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .woocommerce ul.products[class*="columns-"],
    .woocommerce ul.products,
    ul.products,
    .products-grid,
    .ethnic-products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

/* 4. Mobile - 2 columns */
@media (max-width: 767px) {
    .woocommerce ul.products[class*="columns-"],
    .woocommerce ul.products,
    ul.products,
    .products-grid,
    .ethnic-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

/* That's it! No menu changes, no header changes, no logo changes */

/* 5. Logo z-index fix - bring to front */
.site-branding,
.custom-logo-link,
.site-logo,
.custom-logo {
    position: relative !important;
    z-index: 100 !important;
}

/* 6. Ensure logo is fully visible */
.site-header .site-branding {
    z-index: 100 !important;
}

/* 15. CRITICAL FIXES - Top Banner Above Everything */
/* 15. top-messages-banner rules consolidated in MASTER-OVERRIDE.css */

/* 16. Header below banner */
/* .site-header / #masthead positioning consolidated in rule 7 below */

/* 17. User panel INSIDE banner - force visibility */
/* Disabled for mobile clarity: user panel stays at bottom */

/* 18. Body padding - controlled by MASTER-OVERRIDE.css (140px desktop, 110px mobile) */
/* body { padding-top: 130px !important; } - DISABLED */

/* 19. Slider on mobile - below header */
@media (max-width: 768px) {
    body {
        padding-top: 110px !important;
    }
    
    .indian-festival-slider,
    .css-slider {
        margin-top: 10px !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

/* 7. Make header (logo + hamburger) stay fixed on scroll - COMPACT */
/* .site-header positioning consolidated - duplicate of rule in MASTER-OVERRIDE.css removed */

/* 8. DISABLED - Do not hide nav on scroll - header stays fixed and fully visible */
/* body.scrolled .main-navigation,
body.scrolled .primary-menu,
body.scrolled #site-navigation {
    display: none !important;
} */

/* 9. DISABLED - No compact on scroll - header stays same size */
/* body.scrolled .site-header,
body.scrolled #masthead {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
} */

/* 10. Add padding to body so content doesn't hide under fixed header - overridden by MASTER-OVERRIDE.css */
/* body { padding-top: 80px !important; } - DISABLED, MASTER-OVERRIDE.css controls this */

/* 9. Make sure golden panel (if any) stays above header */
.header-top,
.page-header {
    position: fixed !important;
    top: 0 !important;
    z-index: 100 !important;
}

/* 10. Adjust header position if golden panel exists - DISABLED */
/* .header-top + .site-header,
.page-header + .site-header {
    top: 40px !important;
} */
/* Using MASTER-OVERRIDE.css for header positioning instead */

/* Adjust body padding if golden panel exists */
body.has-header-top {
    padding-top: 160px !important;
}

/* 11. Golden Thread Divider below header - DISABLED (conflicts with ::before spacer) */
/* .site-header::after,
#masthead::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #C9A961 10%, 
        #D4AF37 50%, 
        #C9A961 90%, 
        transparent 100%) !important;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6) !important;
} */

/* 12. Move logo down with padding */
.site-branding {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

/* 13. Rotating Messages Container with Hologram Effect */
.rotating-messages-container {
    position: relative;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rotating-message-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    filter: blur(10px);
    text-shadow: 0 0 20px currentColor;
}

.rotating-message-item.active {
    opacity: 1;
    filter: blur(0);
    animation: hologram-pulse 3s ease-in-out infinite;
}

@keyframes hologram-pulse {
    0%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        text-shadow: 
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor,
            0 0 40px currentColor;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.rotating-message-item.exiting {
    opacity: 0;
    filter: blur(15px);
    transform: translate(-50%, -50%) scale(0.8);
}

.rotating-message-item.entering {
    opacity: 0;
    filter: blur(15px);
    transform: translate(-50%, -50%) scale(1.2);
}

/* 14. User Panel - Deep Purple/Navy with Magical Sparkles - 25% SMALLER */
.user-account-panel-wrapper {
    /* DISABLED - Using professional white style from FORCE-VISIBILITY.css */
    /* background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important; */
}

.user-account-panel {
    /* DISABLED - Using professional white style from FORCE-VISIBILITY.css */
    /* background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 50%, #1a0033 100%) !important;
    padding: 6px 15px !important;
    border-radius: 22px !important;
    box-shadow: 
        0 3px 15px rgba(42, 27, 78, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(212, 175, 55, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    font-size: 13px !important; */
}

.user-account-panel a,
.user-account-panel span {
    font-size: 12px !important;
    padding: 3px 8px !important;
}

/* DISABLED - No sparkles for professional look */
/* .user-account-panel-wrapper::before,
.user-account-panel::before {
    content: '✦' !important;
    position: absolute !important;
    top: -10px !important;
    left: 10% !important;
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    animation: sparkle1 3s ease-in-out infinite !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}

.user-account-panel-wrapper::after,
.user-account-panel::after {
    content: '✧' !important;
    position: absolute !important;
    bottom: -5px !important;
    right: 15% !important;
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    animation: sparkle2 2.5s ease-in-out infinite !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6) !important;
} */

@keyframes sparkle1 {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes sparkle2 {
    0%, 100% {
        opacity: 0;
        transform: scale(0.3) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(-180deg);
    }
}

/* DISABLED - Using dark text from FORCE-VISIBILITY.css for professional white background */
/* .user-account-panel a,
.user-account-panel span,
.user-account-panel-wrapper a,
.user-account-panel-wrapper span {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    font-weight: 600 !important;
} */

/* DISABLED - No sparkles */
/* .user-account-panel a::before,
.user-account-panel-wrapper a::before {
    content: '✨' !important;
    font-size: 10px !important;
    margin-right: 3px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.user-account-panel a:hover::before,
.user-account-panel-wrapper a:hover::before {
    opacity: 1 !important;
    animation: twinkle 0.6s ease-in-out !important;
} */

@keyframes twinkle {
    0%, 100% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* DISABLED - No more magical sparkles */
/* .user-account-panel-wrapper::before,
.user-account-panel::before {
    content: '✨' !important;
    position: absolute !important;
    top: 5px !important;
    left: 15% !important;
    font-size: 16px !important;
    color: #FFD700 !important;
    animation: sparkle-magic1 2s ease-in-out infinite !important;
    filter: drop-shadow(0 0 8px #FFD700) !important;
}

.user-account-panel-wrapper::after,
.user-account-panel::after {
    content: '⭐' !important;
    position: absolute !important;
    bottom: 8px !important;
    right: 20% !important;
    font-size: 12px !important;
    color: #FFF !important;
    animation: sparkle-magic2 3s ease-in-out infinite !important;
    filter: drop-shadow(0 0 6px #FFF) !important;
}

.user-account-panel-wrapper {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 80%),
        linear-gradient(135deg, #1a0033 0%, #2d1b4e 50%, #1a0033 100%) !important;
} */

/* Starburst animations */
@keyframes sparkle-magic1 {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.4) rotate(180deg);
    }
}

@keyframes sparkle-magic2 {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.6) rotate(0deg);
    }
    33% {
        opacity: 1;
        transform: scale(1.2) rotate(120deg);
    }
    66% {
        opacity: 0.7;
        transform: scale(1) rotate(240deg);
    }
}

/* DISABLED - No glowing dots */
/* .user-account-panel a {
    position: relative !important;
}

.user-account-panel a:hover::after {
    content: '💫' !important;
    position: absolute !important;
    top: -15px !important;
    right: -10px !important;
    font-size: 14px !important;
    animation: float-sparkle 1s ease-out forwards !important;
} */

@keyframes float-sparkle {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(1.2);
    }
}

/* Magical shimmer effect */
@keyframes magical-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* DISABLED - No shimmer animation */
/* .user-account-panel-wrapper:hover {
    animation: magical-shimmer 3s linear infinite !important;
    background-size: 200% 100% !important;
} */

/* 15. Fix Logo Position - DISABLED - Using MASTER-OVERRIDE.css instead */
/* .site-branding,
.custom-logo-link {
    margin-top: 10px !important;
    padding-top: 5px !important;
}

.site-header {
    padding-top: 10px !important;
} */

/* 16. Fix Slider - Bring to front and proper spacing */
.indian-festival-slider,
.css-slider {
    position: relative !important;
    z-index: 5 !important;
    margin-top: 0 !important;
}

/* 17. Product Grid - Force 4 columns on desktop */
.woocommerce ul.products,
ul.products,
.products-list,
.ethnic-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
}

.woocommerce ul.products li.product,
ul.products li.product,
.product-item {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}

/* 18. Mobile Responsive Fixes */
@media (max-width: 768px) {
    /* 2 columns on mobile */
    .woocommerce ul.products,
    ul.products,
    .products-list,
    .ethnic-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4,
    .woocommerce ul.products.columns-5,
    .woocommerce ul.products.columns-6 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .woocommerce ul.products li.product,
    ul.products li.product {
        margin-bottom: 18px !important;
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    .woocommerce ul.products li.product img,
    ul.products li.product img {
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        min-height: 2.6em;
    }

    .woocommerce ul.products li.product .price {
        font-size: 0.95rem !important;
    }

    /* Single product layout */
    .single-product div.product {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .single-product div.product .woocommerce-product-gallery,
    .single-product div.product .summary {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    .single-product div.product .summary {
        padding: 0 4px !important;
    }

    .single-product .product_title {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 8px;
    }

    .single-product .price {
        font-size: 1.15rem !important;
    }

    .single-product .woocommerce-product-details__short-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .single-product .woocommerce-product-details__short-description p {
        margin-bottom: 10px;
    }

    .single-product .product_meta {
        font-size: 0.9rem;
    }

    .single-product form.cart {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .single-product form.cart .quantity,
    .single-product form.cart .single_add_to_cart_button {
        width: 100% !important;
    }

    .single-product .woocommerce-tabs {
        margin-top: 20px;
    }

    .single-product .woocommerce-tabs .tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .single-product .woocommerce-tabs .tabs li {
        flex: 1 1 auto;
        text-align: center;
    }

    /* Cart/checkout adjustments */
    .woocommerce-cart table.shop_table,
    .woocommerce-checkout table.shop_table {
        font-size: 0.9rem;
        width: 100% !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .woocommerce-cart table.shop_table td,
    .woocommerce-cart table.shop_table th,
    .woocommerce-checkout table.shop_table td,
    .woocommerce-checkout table.shop_table th {
        padding: 10px !important;
        white-space: nowrap;
    }

    .woocommerce-cart .coupon,
    .woocommerce-checkout .coupon {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .woocommerce-cart .coupon input,
    .woocommerce-checkout .coupon input {
        width: 100% !important;
    }

    .woocommerce-cart .coupon button,
    .woocommerce-checkout .coupon button,
    .woocommerce-cart .button,
    .woocommerce-checkout .button,
    .woocommerce-cart .checkout-button,
    .woocommerce-checkout #place_order {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
    }

    .woocommerce-cart .cart-collaterals,
    .woocommerce-checkout .woocommerce-checkout-review-order {
        margin-top: 16px;
    }

    .woocommerce-checkout .form-row,
    .woocommerce-checkout .form-row-wide,
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        margin-bottom: 12px !important;
    }

    .woocommerce-checkout .form-row input,
    .woocommerce-checkout .form-row textarea,
    .woocommerce-checkout .form-row select {
        padding: 12px !important;
        font-size: 0.95rem !important;
    }

    /* Hide top user panel on mobile */
    .top-messages-banner .user-account-panel-wrapper,
    .top-messages-banner .user-account-panel {
        display: none !important;
    }

    /* Move user panel to bottom on mobile */
    .user-account-panel-wrapper {
        position: fixed !important;
        bottom: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 999999 !important;
    }

    .user-account-panel {
        padding: 6px 12px !important;
        font-size: 11px !important;
        border-radius: 22px !important;
        background: rgba(255,255,255,0.95) !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
    }

    .user-account-panel a,
    .user-account-panel span {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

    /* Logo smaller on mobile */
    .site-branding .custom-logo {
        max-width: 120px !important;
        max-height: 50px !important;
    }

    /* Slider height on mobile */
    .indian-festival-slider .slider-container {
        height: 280px !important;
        max-height: 280px !important;
    }

    /* Body padding on mobile - handled by MASTER-OVERRIDE.css */
    /* .site-header position handled by MASTER-OVERRIDE.css (fixed, top:76px) */

    .site-main {
        margin-top: 10px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* 3 columns on tablet */
    .woocommerce ul.products,
    ul.products,
    .products-list,
    .ethnic-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }

    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4,
    .woocommerce ul.products.columns-5,
    .woocommerce ul.products.columns-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
