/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent unwanted touch behaviors on text elements */
h1, h2, h3, h4, h5, h6, p, span, div, a, button {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overflow-x: hidden;
}

/* Mobile-first responsive design */
.container {
    max-width: 375px;
    margin: 0 auto;
    background: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    touch-action: pan-y;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px 20px;
    background: linear-gradient(135deg, #1A4D2A, #2d5a3d);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #D4AF37;
    box-shadow: 0 2px 10px rgba(26, 77, 42, 0.3);
}

.nav-left, .nav-right {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-cart-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon {
    position: relative;
    color: #8b4513;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: #654321;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #1A4D2A;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.4);
    min-width: 20px;
    text-align: center;
    line-height: 1;
    overflow: hidden;
    border: 2px solid #1A4D2A;
}

.nav-left i, .nav-right i {
    font-size: 18px;
    color: #D4AF37;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-left i:hover, .nav-right i:hover {
    color: #F4D03F;
}

#hamburger-menu {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#hamburger-menu:hover {
    transform: scale(1.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

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

/* Main Content */
.main-content {
    padding: 0 20px 100px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Banner Slider */
.banner-slider {
    margin: 20px 0 30px 0;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 180px;
    box-shadow: 0 4px 15px rgba(26, 77, 42, 0.2);
    border: 3px solid #D4AF37;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    overflow: hidden;
}

.banner-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.banner-image,
.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.banner-image:hover,
.banner-video:hover {
    transform: scale(1.02);
}

.banner-video {
    background: #000;
}

.banner-video::-webkit-media-controls {
    display: none !important;
}

.banner-video::-webkit-media-controls-panel {
    display: none !important;
}

.banner-video::-webkit-media-controls-play-button {
    display: none !important;
}

.banner-video::-webkit-media-controls-timeline {
    display: none !important;
}

.banner-video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.banner-video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.banner-video::-webkit-media-controls-mute-button {
    display: none !important;
}

.banner-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.banner-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.banner-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 16px;
}

.banner-loading i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #D4AF37;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    text-align: center;
}

.banner-content h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navigation Dots */
.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: #D4AF37;
    border-color: #1A4D2A;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(212, 175, 55, 0.8);
    transform: scale(1.1);
}

/* Navigation Arrows */
.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 77, 42, 0.8);
    color: white;
    border: none;
    font-size: 18px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-prev {
    left: 10px;
}

.banner-next {
    right: 10px;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(26, 77, 42, 1);
    transform: translateY(-50%) scale(1.1);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Feature Icons Section */
.feature-icons {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 20px 0 30px 0;
    padding: 20px 15px;
    background: linear-gradient(135deg, #1A4D2A, #2d5a3d);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(26, 77, 42, 0.3);
    border: 3px solid #D4AF37;
    gap: 10px;
}

.feature-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 10px;
    border-radius: 10px;
    flex: 1;
    max-width: 80px;
}

.feature-icon:hover {
    transform: translateY(-3px);
    background: rgba(212, 175, 55, 0.1);
}

.feature-icon-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #1A4D2A;
}

.feature-icon:hover .feature-icon-circle {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    border-color: #F4D03F;
}

.feature-icon-circle i {
    font-size: 20px;
    color: #1A4D2A;
    transition: color 0.3s ease;
}

.feature-icon:hover .feature-icon-circle i {
    color: #1A4D2A;
}

.feature-icon-label {
    font-size: 10px;
    font-weight: 600;
    color: #D4AF37;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
    word-wrap: break-word;
    max-width: 80px;
    width: 100%;
}

.feature-icon:hover .feature-icon-label {
    color: #F4D03F;
}


/* Product Sections */
.product-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-title {
    flex: 1;
    min-width: 0;
}

.section-title h2 {
    font-size: 28px;
    font-weight: bold;
    color: #1A4D2A;
    margin-bottom: 5px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 14px;
    color: #666666;
    font-weight: 400;
}

.see-all-btn {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #1A4D2A;
    border: 2px solid #1A4D2A;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
}

.see-all-btn:hover {
    background: linear-gradient(135deg, #1A4D2A, #2d5a3d);
    color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 42, 0.4);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* General product card - only for specific contexts, not new-arrival-card */
.product-card:not(.new-arrival-card) {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #1A4D2A;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.product-card:not(.new-arrival-card):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    border-color: #D4AF37;
}

.product-card:not(.new-arrival-card).out-of-stock {
    opacity: 0.7;
    filter: grayscale(0.4);
    position: relative;
    cursor: not-allowed;
}

.product-card:not(.new-arrival-card).out-of-stock:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #dc3545;
}

.product-card:not(.new-arrival-card).out-of-stock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
}

.product-image {
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.flash-sale-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    animation: flashPulse 2s infinite;
}

.sale-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

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

/* Out of Stock Overlay */
.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 4;
    backdrop-filter: blur(2px);
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    /* Ensure proper containment */
    contain: layout style paint;
}

.out-of-stock-overlay span {
    color: white;
    font-weight: bold;
    font-size: 11px;
    text-align: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sold Out Badge */
.sold-out-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Out of Stock Product Info */
.product-card.out-of-stock .product-info {
    position: relative;
    z-index: 2;
}

.product-card.out-of-stock .product-name {
    color: #6c757d;
    text-decoration: line-through;
}

.product-card.out-of-stock .product-price {
    color: #dc3545;
    font-weight: bold;
}

.product-card.out-of-stock .product-price::after {
    content: ' - Sold Out';
    font-size: 10px;
    color: #dc3545;
    font-weight: normal;
}

.product-info {
    text-align: left;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A4D2A;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-volume {
    font-size: 12px;
    color: #666666;
    margin-bottom: 6px;
}

.product-price-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #D4AF37;
    margin: 0;
}

.product-price.sale-price {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
}

.product-price.original-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
    font-weight: normal;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 375px;
    background: linear-gradient(135deg, #1A4D2A, #2d5a3d);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 20px 5px 20px;
    border-top: 3px solid #D4AF37;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 15px rgba(26, 77, 42, 0.3);
    z-index: 10;
    
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-item i {
    font-size: 20px;
    color: #D4AF37;
    transition: color 0.2s ease;
}

.nav-item.active i {
    color: #F4D03F;
}

.nav-item:hover i {
    color: #F4D03F;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu {
    background: linear-gradient(135deg, #1A4D2A, #2d5a3d);
    width: 50%;
    max-width: 200px;
    min-width: 200px;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    border-right: 3px solid #D4AF37;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 3px solid #D4AF37;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
}

.mobile-logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #D4AF37;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.1);
}

.mobile-menu-content {
    padding: 20px 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #D4AF37;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: #F4D03F;
    color: #F4D03F;
}

.mobile-menu-item i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 18px;
}


/* Responsive Design */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .main-content {
        padding: 0 15px 100px 15px;
    }
    
    .top-nav {
        padding: 15px 15px 10px 15px;
    }
    
    /* Mobile menu responsive */
    .mobile-menu {
        width: 40%;
        max-width: 200px;
        min-width: 200px;
    }
    
    /* Banner responsive */
    .banner-slider {
        margin: 15px 0 25px 0;
        height: 150px;
    }
    
    .banner-content h3 {
        font-size: 16px;
    }
    
    .banner-content p {
        font-size: 12px;
    }
    
    .banner-prev,
    .banner-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .banner-prev {
        left: 5px;
    }
    
    .banner-next {
        right: 5px;
    }
    
    /* Video banner specific responsive styles */
    .banner-video {
        object-fit: cover;
    }
    
    .banner-loading {
        font-size: 14px;
    }
    
    .banner-loading i {
        font-size: 24px;
    }
    
    /* Banner Modal Styles */
    .banner-modal {
        display: none;
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(5px);
    }
    
    .banner-modal-content {
        position: relative;
        margin: 2% auto;
        padding: 0;
        width: 90%;
        max-width: 1200px;
        height: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .banner-modal-close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: #D4AF37;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10001;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .banner-modal-close:hover {
        background: rgba(212, 175, 55, 0.8);
        color: white;
        transform: scale(1.1);
    }
    
    .banner-modal-content img,
    .banner-modal-content video {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .banner-modal-content video {
        background: #000;
    }
    
    /* Mobile responsive for banner modal */
    @media (max-width: 768px) {
        .banner-modal-content {
            width: 95%;
            height: 85%;
            margin: 5% auto;
        }
        
        .banner-modal-close {
            top: 10px;
            right: 20px;
            font-size: 30px;
            width: 40px;
            height: 40px;
        }
    }
    
    /* Feature icons responsive */
    .feature-icons {
        margin: 15px 0 25px 0;
        padding: 15px 10px;
        gap: 8px;
    }
    
    .feature-icon {
        padding: 8px;
        max-width: 70px;
    }
    
    .feature-icon-circle {
        width: 45px;
        height: 45px;
    }
    
    .feature-icon-circle i {
        font-size: 18px;
    }
    
    .feature-icon-label {
        font-size: 9px;
        max-width: 70px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .products-grid {
        gap: 12px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-image {
        height: 100px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .product-price {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .section-title h2 {
        font-size: 22px;
    }
    
    .product-image {
        height: 90px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    /* Feature icons for very small screens */
    .feature-icons {
        padding: 10px 5px;
        gap: 5px;
    }
    
    .feature-icon {
        padding: 5px;
        max-width: 60px;
    }
    
    .feature-icon-circle {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon-circle i {
        font-size: 16px;
    }
    
    .feature-icon-label {
        font-size: 8px;
        max-width: 60px;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.see-all-btn:focus,
.nav-item:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* Loading state for images */
.product-image img {
    transition: opacity 0.3s ease;
}

.product-image img[src=""] {
    opacity: 0;
}

/* Best Seller Page Specific Styles */
.page-header {
    text-align: center;
    margin: 20px 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(26, 77, 42, 0.1);
    border: 2px solid #1A4D2A;
}

.page-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #1A4D2A;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(26, 77, 42, 0.2);
}

.page-subtitle {
    font-size: 16px;
    color: #666666;
    margin-bottom: 10px;
    font-weight: 400;
}

.results-count {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    background: linear-gradient(135deg, #1A4D2A, #2d5a3d);
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(26, 77, 42, 0.3);
    border: 1px solid #ffffff;
}

/* Best Seller Badge */
.bestseller-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #2d5a3d, #1A4D2A);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 6px rgba(26, 77, 42, 0.4);
    border: 2px solid #ffffff;
}

/* Add to Cart Button */

.add-to-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(26, 77, 42, 0.5);
    background: linear-gradient(135deg, #2d5a3d, #1A4D2A);
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
}

.stars {
    display: flex;
    gap: 1px;
}

.stars i {
    font-size: 10px;
    color: #ddd;
    transition: color 0.2s ease;
}

.stars i.filled {
    color: #2d5a3d;
}

.rating-text {
    font-size: 10px;
    color: #666666;
    margin-left: 2px;
}

/* Enhanced Product Card for Best Seller Page */
.product-section .product-card {
    position: relative;
    overflow: visible;
}

.product-section .product-image {
    position: relative;
    overflow: visible;
}

/* Responsive adjustments for best seller page */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .results-count {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .bestseller-badge {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }
    
   
}

@media (max-width: 360px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 13px;
    }
}


/* New Arrivals Section Styles */
.new-arrivals-section {
    padding: 0;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.new-arrivals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.new-arrival-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Force proper containment */
    contain: layout style paint;
    /* Prevent iOS Safari from stretching */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.new-arrival-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #D4AF37;
}

.new-arrival-card.out-of-stock {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.new-arrival-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden; /* Changed back to hidden to prevent stretching */
    background: #f8f9fa;
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    /* Force hardware acceleration */
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.new-arrival-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Force proper sizing on iOS */
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.new-arrival-card:hover .new-arrival-image {
    transform: scale(1.05);
}


.new-arrival-info {
    padding: 16px;
}

.new-arrival-price {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: #1A4D2A;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.new-arrival-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-arrival-volume {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.more-variations {
    color: #D4AF37;
    font-weight: 500;
}

.view-more-container {
    text-align: center;
    margin-top: 20px;
}

.view-more-btn {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.view-more-btn:hover {
    background: #1A4D2A;
    color: #ffffff;
    border-color: #1A4D2A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 42, 0.3);
}

/* Product badges for new arrivals */
.new-arrival-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-arrival-card .flash-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    animation: pulse 2s infinite;
}

.new-arrival-card .sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.new-arrival-card .price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.new-arrival-card .sale-price {
    color: #dc2626;
    font-weight: bold;
    font-size: 16px;
}

.new-arrival-card .original-price {
    color: #6b7280;
    text-decoration: line-through;
    font-size: 12px;
}

.new-arrival-card .out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    /* Ensure proper containment */
    contain: layout style paint;
}

.new-arrival-card .out-of-stock-overlay span {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Restock Timer Styles */
.restock-timer {
    text-align: center;
    margin-top: 4px;
    color: #fff;
    font-size: 8px;
    font-weight: 400;
    background: none;
    border: none;
    padding: 0;
    max-width: 120px;
    word-wrap: break-word;
    line-height: 1.2;
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.restock-timer .timer-days,
.restock-timer .timer-hours,
.restock-timer .timer-minutes {
    background: none;
    border: none;
    padding: 0;
    color: #fff;
}

.restock-message {
    color: #fff;
    font-size: 8px;
    font-weight: 400;
    margin-top: 4px;
    text-align: center;
    opacity: 0.8;
    max-width: 120px;
    word-wrap: break-word;
    line-height: 1.2;
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.timer-expired {
    color: #fff;
    font-size: 8px;
    font-weight: 500;
    text-align: center;
    animation: pulse 2s infinite;
    max-width: 120px;
    word-wrap: break-word;
    line-height: 1.2;
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

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

/* Responsive adjustments for new arrivals */
@media (max-width: 480px) {
    .new-arrivals-grid {
        gap: 12px;
    }
    
    .new-arrival-image-container {
        height: 160px;
        overflow: hidden; /* Prevent stretching on mobile */
    }
    
    .new-arrival-info {
        padding: 12px;
    }
    
    .current-price {
        font-size: 15px;
    }
    
    .new-arrival-name {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .new-arrivals-section {
        padding: 0;
    }
    
    .new-arrivals-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .new-arrivals-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .new-arrival-image-container {
        height: 200px;
        overflow: hidden; /* Prevent stretching on desktop */
    }
}

@media (min-width: 1200px) {
    .new-arrivals-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .new-arrival-image-container {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-perspective: 1000px;
        perspective: 1000px;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .new-arrival-image {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Force iOS to respect container bounds */
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .new-arrival-card {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Perfume Finder Section Styles - Minimalist */
.perfume-finder-section {
    margin: 15px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.perfume-finder-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.perfume-finder-section .section-title {
    flex: 1;
    min-width: 0;
}

.perfume-finder-section .section-title h2 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.perfume-finder-section .section-subtitle {
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 400;
}

.filter-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label i {
    font-size: 12px;
    color: #bdc3c7;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
    font-size: 14px;
    background: #fafafa;
    color: #2c3e50;
    transition: all 0.2s ease;
    height: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bdc3c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-select:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.2);
}

.filter-actions {
    display: flex;
    justify-content: center;
}

.apply-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #1A4D2A, #2d5a3d);
    color: #ffffff;
}

.apply-filters-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0f3319, #1A4D2A);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 77, 42, 0.3);
}

.apply-filters-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.filter-results {
    margin-top: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.results-header h3 {
    color: #1A4D2A;
    font-size: 18px;
    font-weight: 600;
}

.close-results-btn {
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.close-results-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.no-products-found {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-products-found i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.no-products-found h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #495057;
}

.no-products-found p {
    font-size: 14px;
}

.product-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.filter-tag {
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    color: #ffffff;
    font-weight: 500;
}

.scent-tag {
    background: #28a745;
}

.season-tag {
    background: #17a2b8;
}

.recommendation-tag {
    background: #ffc107;
    color: #212529;
}

/* Responsive adjustments for filter section - Minimalist */
@media (min-width: 480px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 768px) {
    .filter-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .perfume-finder-section {
        margin: 20px 0;
        padding: 25px;
    }
    
    .perfume-finder-section .section-title h2 {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
    
    .perfume-finder-section {
        margin: 25px 0;
        padding: 30px;
    }
}

