/* =================================================================
   🎨 PROFESSIONAL UI/UX ENHANCEMENTS v5.6 — Ajwat Bakkah
   ================================================================= */

/* --- Phase 5: Elite Micro-Interactions & Shimmers --- */
@keyframes shimmerPulse {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-box {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmerPulse 1.5s infinite linear;
    border-radius: 8px;
}

@keyframes actionBreathe {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.08); filter: brightness(1.1); box-shadow: 0 10px 30px rgba(184, 118, 44, 0.4); }
    100% { transform: scale(1); filter: brightness(1); }
}

.action-hub-toggle.breathe {
    animation: actionBreathe 4s ease-in-out infinite;
}

/* ==================== HEADER REFINEMENTS ==================== */


.main-header {
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

/* Icon Buttons Enhancement */
.icon-btn {
    position: relative;
    border-radius: 10px;
    padding: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover {
    background: rgba(184, 118, 44, 0.08);
    color: var(--accent-color);
    opacity: 1;
    transform: translateY(-1px);
}

.icon-btn svg {
    transition: transform 0.3s ease;
}

.icon-btn:hover svg {
    transform: scale(1.08);
}

/*
 * FORCE MOBILE NAVBAR (Emergency Recovery V2)
 * Ensures the bottom navigation is ALWAYS visible on small screens
 * regardless of drawer state to prevent the user from being locked out.
 */
@media (max-width: 767.98px) {
    .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
        bottom: 0 !important;
        z-index: 999999 !important;
    }
}

/* Cart Badge Enhancement */
.cart-badge {
    background: linear-gradient(135deg, #B8762C, #D4A66E);
    font-size: 10px;
    font-weight: 800;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(184, 118, 44, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==================== PRODUCT CARD ENHANCEMENTS ==================== */

.product-card-pro {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-pro:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
    transform: translateY(-6px);
}

/* Pro Image Box Enhancement */
.pro-img-box {
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
}

.pro-img-box img {
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card-pro:hover .pro-img-box img {
    transform: scale(1.08);
}

/* No Image Placeholder */
.no-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f0eb 0%, #e8e0d8 100%);
    color: #b8a090;
    gap: 10px;
}

.no-image-placeholder i {
    font-size: 48px;
    opacity: 0.5;
    animation: floatIcon 3s ease-in-out infinite;
}

.no-image-placeholder span {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}


/* 
 * MOBILE BOTTOM NAVBAR (Total Stability Recovery V3)
 * Explicitly forcing visibility with maximum specificity 
 */
@media screen and (max-width: 767.98px) {
    body .mobile-bottom-nav,
    html body .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 0 !important;
        z-index: 2147483647 !important;
        pointer-events: auto !important;
    }
}

/* End of Enhancements */

/* Badges Enhancement */
.badge-pro {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.badge-pro.sale {
    background: linear-gradient(135deg, #FF3D00, #FF6E40);
}

.badge-pro.new {
    background: linear-gradient(135deg, #00C853, #69F0AE);
}

/* Wishlist Button Enhancement */
.wishlist-btn-pro {
    width: 36px;
    height: 36px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    border: none;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.92);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wishlist-btn-pro:hover {
    background: #FF3D00;
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 16px rgba(255, 61, 0, 0.35);
}

.wishlist-btn-pro.active {
    animation: heartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Category Tag */
.pro-card-category-tag {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price Enhancement */
.price-current {
    font-size: 19px;
    font-weight: 800;
    color: #2d2d2d;
    letter-spacing: -0.3px;
}

.price-current small {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    margin-right: 2px;
}

.price-old {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
    text-decoration-color: #e74c3c;
    text-decoration-thickness: 1.5px;
}

/* Action Buttons Enhancement */
.btn-add-cart {
    background: linear-gradient(135deg, #235d64, #1a464b);
    border-radius: 10px;
    padding: 11px 15px;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(35, 93, 100, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #1a464b, #0f3338);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 93, 100, 0.35);
}

.btn-add-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(35, 93, 100, 0.2);
}

.btn-quick-view {
    width: 42px;
    height: 42px;
    border: 1.5px solid #e8e8e8;
    background: #fafafa;
    border-radius: 10px;
    color: #777;
    transition: all 0.3s ease;
}

.btn-quick-view:hover {
    border-color: #235d64;
    color: #235d64;
    background: rgba(35, 93, 100, 0.05);
    transform: translateY(-2px);
}

/* ==================== SECTION HEADERS ENHANCEMENT ==================== */

.section-header {
    position: relative;
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2d2d2d;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to left, var(--accent-color), transparent);
    border-radius: 3px;
}

/* Section Control Bar Enhancement */
.section-controls-bar {
    margin-top: 25px;
    padding-top: 15px;
}

.btn-view-all-salla {
    padding: 9px 28px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #e0e0e0;
    color: #555;
    transition: all 0.3s ease;
}

.btn-view-all-salla:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(184, 118, 44, 0.05);
    transform: translateY(-1px);
}

.nav-btn-salla {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    transition: all 0.3s ease;
}

.nav-btn-salla:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(184, 118, 44, 0.05);
}

/* ==================== HERO SLIDER ENHANCEMENT ==================== */

.hero-slider {
    border-radius: 0 0 24px 24px;
}

.slider-content .btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #D4A66E) !important;
    border: none !important;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(184, 118, 44, 0.45);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
}

.slider-content .btn-primary:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 40px rgba(184, 118, 44, 0.6);
    background: linear-gradient(135deg, #D4A66E, var(--accent-color)) !important;
}

/* ==================== PREMIUM ACTION HUB (V18-FINAL) ==================== */
.action-hub-container {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-hub-container.visible {
    pointer-events: auto;
}

/* Action Hub Animation States - Forced & Atomic */
.hub-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(20px) scale(0.85);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-hub-container.active .hub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1);
}

.hub-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #B8762C, #D4A66E) !important;
    border: none !important;
    color: white !important;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(184, 118, 44, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
}

.action-hub-container.visible .hub-main-btn {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hub-main-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 35px rgba(184, 118, 44, 0.6);
}

.hub-icon-rotate {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-hub-container.active .hub-icon-rotate {
    transform: rotate(45deg);
}

.hub-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hub-item.whatsapp-i { background: #25D366; }
.hub-item.chat-i { background: #B8762C; position: relative; }
.hub-item.scroll-i { background: #fff; color: #333; }

.hub-item:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* ==================== CART DRAWER ENHANCEMENT ==================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer-side {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 1070;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-drawer-side.active {
    transform: translateX(-400px);
}

@media (max-width: 500px) {
    .cart-drawer-side {
        width: 100%;
        right: -100%;
    }
    .cart-drawer-side.active {
        transform: translateX(-100%);
    }
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-drawer-body {
    padding: 20px;
    overflow-y: auto;
}

.cart-drawer-footer {
    padding: 24px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.skeleton-box {
    height: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 15px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== FOOTER ENHANCEMENT ==================== */

.footer-logo img {
    height: 70px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

/* Footer Section Headings */
.main-footer h4 {
    font-size: 17px;
    font-weight: 800;
    color: #3D2914;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.main-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2.5px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Footer Links Enhancement */
.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    font-size: 14px;
    color: #5D4037;
    position: relative;
    padding-right: 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 8px;
}

.footer-links a:hover::before {
    width: 100%;
}

/* Contact List Enhancement */
.contact-list li {
    padding: 8px 0;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.contact-list li:hover {
    background: rgba(93, 64, 55, 0.05);
    padding-right: 10px;
    padding-left: 10px;
}

.contact-list i {
    color: var(--accent-color);
    width: 22px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.contact-list li:hover i {
    transform: scale(1.15);
}

/* Social Links Enhancement */
.social-links {
    gap: 14px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
    background: rgba(93, 64, 55, 0.08);
    border: 1px solid rgba(93, 64, 55, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background: #5D4037;
    color: #fff;
    border-color: #5D4037;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(93, 64, 55, 0.3);
}

/* Newsletter Enhancement */
.newsletter-form-modern {
    margin-top: 18px;
}

.input-group-modern {
    border-radius: 12px;
    border: 1.5px solid #d5d0c8;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.input-group-modern:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 118, 44, 0.1);
}

.input-group-modern input {
    padding: 12px 16px;
    font-size: 14px;
}

.input-group-modern button {
    width: 44px;
    height: 44px;
    color: var(--accent-color);
    border-right: 1px solid #eee;
    transition: all 0.3s ease;
}

.input-group-modern button:hover {
    background: var(--accent-color);
    color: white;
}

/* Legal Info Enhancement */
.footer-legal-info {
    border-top: 1px solid rgba(93, 64, 55, 0.1);
    padding: 25px 0;
    margin: 30px 0 20px;
}

.legal-badge-item {
    padding: 10px 18px;
    background: rgba(93, 64, 55, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(93, 64, 55, 0.08);
    transition: all 0.3s ease;
}

.legal-badge-item:hover {
    background: rgba(93, 64, 55, 0.08);
    transform: translateY(-2px);
}

.legal-badge-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(93, 64, 55, 0.1);
    padding-top: 22px;
}

.copyright p {
    font-size: 13px;
    color: #8D7B6E;
    letter-spacing: 0.3px;
}

/* ==================== TESTIMONIALS ENHANCEMENT ==================== */

.testimonials-section {
    background: linear-gradient(180deg, #f8f8f8 0%, #f2f0eb 100%) !important;
}

.testimonials-section .section-header .text-primary {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.testimonial-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: transparent;
}

.testimonial-card .quote-icon i {
    color: var(--accent-color) !important;
    opacity: 0.3 !important;
}

.testimonial-card .stars i {
    font-size: 18px;
}

.testimonial-card .user-info h5 {
    color: #2d2d2d;
}

/* ==================== FEATURES SECTION ENHANCEMENT ==================== */

.features-section {
    background: linear-gradient(180deg, #fff 0%, #fdfcfa 100%) !important;
}

.feature-box {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 30px 25px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.feature-box:hover {
    box-shadow: 0 12px 35px rgba(184, 118, 44, 0.12);
    border-color: rgba(184, 118, 44, 0.15);
}

.feature-box .icon-wrapper {
    width: 65px !important;
    height: 65px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(184, 118, 44, 0.08), rgba(184, 118, 44, 0.03)) !important;
}

.feature-box:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--accent-color), #D4A66E) !important;
    border-radius: 16px !important;
    transform: rotateY(180deg);
}

/* ==================== BANNER CARD ENHANCEMENT ==================== */

.banner-card {
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.banner-card:hover {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

/* ==================== FOOTER CURVE ==================== */

.footer-curve svg {
    height: 100px;
    filter: drop-shadow(0 -4px 10px rgba(0, 0, 0, 0.02));
}

/* ==================== PRODUCTS SECTION BACKGROUNDS ==================== */

.products-section.bg-light {
    background: linear-gradient(180deg, #f7f8fa 0%, #f0f2f5 100%) !important;
}

.products-section.bg-white {
    background: #fff !important;
}

/* ==================== DRAWER ENHANCEMENT ==================== */

.nav-drawer {
    border-radius: 0 24px 24px 0;
}

.drawer-header {
    padding: 25px 20px;
}

.drawer-menu li a {
    border-radius: 8px;
    margin: 2px 10px;
    padding: 12px 15px;
}

.drawer-menu li a:hover {
    background: rgba(184, 118, 44, 0.06);
}

/* ==================== MOBILE REFINEMENTS ==================== */

@media (max-width: 768px) {
    .logo-img {
        height: 42px;
    }

    .main-footer h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-links a::before {
        display: none;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .section-header h2::after {
        right: 0;
    }

    .badge-pro {
        font-size: 10px;
        padding: 4px 8px;
    }

    .no-image-placeholder i {
        font-size: 36px;
    }

    .no-image-placeholder span {
        font-size: 11px;
    }

    .product-card-pro:hover {
        transform: translateY(-3px);
    }

    .pro-actions {
        gap: 8px;
    }

    .btn-add-cart {
        padding: 9px 10px;
        font-size: 12px;
    }

    .btn-quick-view {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        gap: 35px;
    }

    .footer-section {
        border-bottom: 1px solid rgba(93, 64, 55, 0.08);
        padding-bottom: 25px;
    }

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

    .contact-list li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .main-footer h4 {
        text-align: center;
    }
}

/* ==================== SMOOTH SCROLLBAR ==================== */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #f0f0f0;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), #D4A66E);
    border-radius: 4px;
}

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

/* ==================== SELECTION STYLE ==================== */
::selection {
    background: rgba(184, 118, 44, 0.15);
    color: #333;
}

/* ==================== FOCUS VISIBLE ==================== */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==================== WISH-LIST & HEADER LAYOUT FIXES ==================== */
/* Wishlist heart hover fix */
.wishlist-btn-pro:hover i {
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .icon-btn.search-trigger { display: flex !important; }
}
/* ==================== PREMIUM GLASS & EFFECTS ==================== */

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 999998 !important;
}

/* Global Scroll Progress Bar Logic */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color, #12463F), #B8762C);
    width: 0;
    z-index: 10003;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(184, 118, 44, 0.5);
}


/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Modal & Drawer Glass Overwrites */
.modal-content, .offcanvas, .nav-drawer-content {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Immersive Search Overlay blur (Handled in modern.css) */

/* ==================== ACTION HUB (FAB) REFINEMENT ==================== */
.action-hub-container {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    top: auto !important;
    left: auto !important;
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* ==================== GLOBAL GRID DEFENSE (Anti-Collapse) ==================== */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 25px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}
 
/* ==================== CART DRAWER REFINEMENT (Premium Glass) ==================== */
.cart-drawer-side {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
    z-index: 999999 !important;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 999998 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 
 * UI RESTORATION (100% Availability)
 * Only hide floating/clashing elements when drawer is open.
 */
body.drawer-open .action-hub-container {
    opacity: 0.1 !important;
    pointer-events: none !important;
    transition: all 0.3s ease;
}


.cart-drawer-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 24px 20px !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header .btn-close {
    background-size: 14px;
    padding: 12px;
    background-color: rgba(0,0,0,0.03);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-drawer-header .btn-close:hover {
    background-color: rgba(0,0,0,0.08);
    transform: rotate(90deg);
}

.cart-drawer-body::-webkit-scrollbar { width: 4px; }
.cart-drawer-body::-webkit-scrollbar-thumb { background: #eee; border-radius: 10px; }

/* Cart Item in Drawer */
.cart-dt-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    transition: opacity 0.3s ease;
}

.cart-dt-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    background: #f9f9f9;
}

.cart-dt-info h6 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #333; }
.cart-dt-info small { color: #888; font-size: 12px; }
.cart-dt-price { font-weight: 800; color: #B8762C; font-size: 14px; margin-top: 5px; }

/* Skeleton Pattern */
.skeleton-box {
    height: 100px;
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== GLOBAL INTERACTIVE POLISH ==================== */
.heart-pop {
    animation: heartPopEffect 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPopEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.cart-bounce {
    animation: cartBounceEffect 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBounceEffect {
    0% { transform: scale(1); }
    30% { transform: scale(1.2) rotate(-5deg); }
    60% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1); }
}

/* ==================== PREMIUM CHECKOUT REFINEMENT ==================== */
.checkout-skeleton {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.checkout-skeleton .sk-img { width: 50px; height: 50px; background: #f0f0f0; border-radius: 8px; }
.checkout-skeleton .sk-text { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.checkout-skeleton .sk-line { height: 10px; background: #f0f0f0; border-radius: 4px; }
.checkout-skeleton .sk-line.short { width: 40%; }

@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Pulse for CTA */
.s-btn.primary-btn.pulse-btn {
    animation: cta-pulse 2s infinite;
}

@keyframes cta-pulse {
    0% { box-shadow: 0 0 0 0 rgba(29, 168, 81, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(29, 168, 81, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 168, 81, 0); }
}

/* Pay Opt Enhancement */
.pay-opt input:checked + .pay-content {
    border-color: var(--primary-color);
    background: rgba(29, 168, 81, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 168, 81, 0.1);
}

.pay-opt .pay-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #eee;
}

/* ==================== FINAL EXPERT POLISH ==================== */
/* 1. Scroll Progress Bar (De-duplicated) */

/* 2. Product Card Glint Effect */
.product-card-pro::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: none;
    pointer-events: none;
}

.product-card-pro:hover::after {
    left: 120%;
    transition: all 0.6s ease-in-out;
}

/* 3. Staggered Menu Animation */
.nav-drawer.active .drawer-menu li {
    animation: menu-stagger 0.4s ease forwards;
    opacity: 0;
    transform: translateX(20px);
}

.nav-drawer.active .drawer-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-drawer.active .drawer-menu li:nth-child(2) { animation-delay: 0.15s; }
.nav-drawer.active .drawer-menu li:nth-child(3) { animation-delay: 0.2s; }
.nav-drawer.active .drawer-menu li:nth-child(4) { animation-delay: 0.25s; }
.nav-drawer.active .drawer-menu li:nth-child(5) { animation-delay: 0.3s; }

@keyframes menu-stagger {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ==================== MOBILE NAVIGATION BAR (STICKY BOTTOM) ==================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1050;
    display: flex;
    align-items: center;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.04);
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8D99AE;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-nav .nav-item .nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item .nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary);
    transform: translateY(-2px);
}

.mobile-bottom-nav .nav-item.active .nav-icon {
    color: var(--accent-color);
}

/* Badge for Cart in Nav */
.cart-badge-q {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid white;
}

/* Adjusting Footer Spacing for Sticky Nav */
@media (max-width: 768px) {
    body { padding-bottom: 65px; }
    .action-hub-container { bottom: 80px; } /* Bump up hub on mobile */
}

/* ==================== SKELETON PULSE ANIMATION ==================== */
@keyframes skeletonPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.skeleton-box {
    background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 50%, #f2f2f2 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* Final Elite Polish - Global Page Entrance */
.standard-wrapper, .home-wrapper {
    animation: pageFade entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* 
 * MOBILE BOTTOM NAVBAR (Total Stability Recovery V4)
 * Explicitly forcing visibility with maximum specificity 
 */
@media screen and (max-width: 767.98px) {
    body .mobile-bottom-nav,
    html body .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 0 !important;
        z-index: 2147483647 !important;
        pointer-events: auto !important;
    }
}

/* End of Enhancements */
