@import url('https://fonts.googleapis.com/css2?family=Anek+Devanagari:wght@100..800&display=swap');

html, body {
    font-family: 'Anek Devanagari', Arial, sans-serif;
    background: #f5f6f7;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    max-width: 100%;
}

* {
    font-family: 'Anek Devanagari', Arial, sans-serif;
}

/* ===== TOP HEADER AD ===== */
.top-header-ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f6f7;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
    box-sizing: border-box;
}

.header-ad-box {
    width: 336px;
    height: 280px;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

@media (max-width: 400px) {
    .header-ad-box {
        transform: scale(0.9);
        transform-origin: center;
    }
}

/* ===== NEW HEADER STYLES ===== */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.mobile-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
}

.header-logo a {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu>li>a {
    font-size: 15px;
    font-weight: 500;
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu>li>a:hover {
    color: #e91e63;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #e91e63;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
}

.nav-menu>li>a.active-link {
    color: #e91e63;
    font-weight: 700;
}

.dropdown-menu li a.active-link {
    background-color: #fff5f8;
    color: #e91e63;
}

.mobile-nav-menu li a.active-link {
    color: #e91e63;
    font-weight: 700;
}

.header-cart-icon {
    position: relative;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.header-cart-icon:hover {
    background-color: #f5f5f5;
    color: #e91e63;
}

.cart-count-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #e91e63;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(233, 30, 99, 0.3);
}

/* Mobile Sidebar Navigation */
.mobile-sidebar-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1001;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    box-sizing: border-box;
}

.mobile-sidebar-nav.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
}

.mobile-close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.mobile-nav-menu>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-menu>li>a:hover {
    color: #e91e63;
    background-color: #fafafa;
}

.mobile-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #fcfcfc;
    display: none;
}

.mobile-has-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-has-dropdown.active>a .arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu li a {
    display: block;
    padding: 12px 25px 12px 40px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .mobile-hamburger {
        display: flex;
    }

    .header-logo a {
        font-size: 20px;
    }
}


/* GRID LAYOUT */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 30px 15px;
    }
}

@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 20px 12px;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px 8px;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px 6px;
    }
}

/* PRODUCT CARD */
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #f0f0f0;
}

.card > a:first-of-type {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #e91e63;
}

/* IMAGE */
.card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: #eee;
    display: block;
    margin-bottom: 12px;
}

/* TITLE */
.title {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 10px 0;
    color: #111;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* PRICE BLOCK (For homepage-price-block) */
.homepage-price-block {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.price-discount-block {
    margin: 12px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.current-price {
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #e91e63 !important;
    /* Attractive styling */
    letter-spacing: -0.5px;
}

.original-price {
    text-decoration: line-through !important;
    color: #888 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

.sale-badge,
.discount-badge {
    background: #00b894 !important;
    /* Green badge */
    color: white !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    margin-left: 4px !important;
    display: inline-block !important;
    text-transform: uppercase;
}

/* Fallback Price */
.price {
    font-size: 22px;
    font-weight: 900;
    color: #e91e63;
}

/* DELIVERY */
.discount {
    color: #00b894;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* BUTTON */
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px 25px;
    text-align: center;
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: auto; /* Pushes the button to the bottom of the flex card container */
    box-sizing: border-box;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: #c2185b;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* MODERN PAGINATION */
.pagination-container, .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: 10px;
}

.page-link, .pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.page-link:hover, .pagination a:hover {
    border-color: #e91e63;
    color: #e91e63;
    background: #fff;
}

.page-link.active, .pagination a.active {
    background: #e91e63;
    color: #fff;
    border-color: #e91e63;
}

.page-link.disabled, .pagination a.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #f5f5f5;
}

/* ===== FOOTER ===== */
.footer {
    background: #111;
    color: #fff;
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 20px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-col a:hover {
    color: #e91e63;
}

.social-icons {
    display: flex;
    gap: 12px;
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    background: #000;
    font-size: 14px;
}

/* Responsive Footer */
@media(max-width:900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ===== PRODUCT PAGE STYLE ===== */

.product-page {
    background: #fff;
    padding-bottom: 40px;
    margin-top: 0;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 20px;
}

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-slider-viewport {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-arrow:hover {
    background: #e91e63;
    color: #fff;
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.3);
}

.prev-arrow { left: 15px; }
.next-arrow { right: 15px; }

.thumb-strip {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    justify-content: flex-start;
}

.thumb-strip::-webkit-scrollbar {
    display: none;
}

.thumb-box {
    flex: 0 0 80px;
    aspect-ratio: 3/4;
    cursor: pointer;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-box:hover {
    border-color: #e91e63;
}

.thumb-box.active {
    border-color: #e91e63;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .product-gallery {
        position: relative;
        top: 0;
    }
    .main-slider-viewport {
        border-radius: 12px;
    }
    .nav-arrow {
        width: 38px;
        height: 38px;
    }
    .thumb-box {
        flex: 0 0 65px;
    }
}

/* PRODUCT INFO */
.product-info-block {
    padding: 0;
}

.product-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111;
}

/* Pricing in Product Page */
.product-page .price-discount-block {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-page .current-price {
    font-size: 28px !important;
}

.product-page .original-price {
    font-size: 18px !important;
}

.product-page .discount-badge {
    font-size: 14px !important;
    padding: 4px 10px !important;
}

.product-extra-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-pill {
    background: #00b894;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.reviews-count {
    color: #888;
    font-size: 14px;
}

.free-delivery-text {
    color: #00b894;
    font-weight: 600;
    font-size: 14px;
}

.section-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

/* SIZE SECTION */
.size-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sizes {
    display: flex;
    gap: 12px;
}

.sizes button {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #444;
}

.sizes button.active {
    background: #e91e63;
    color: white;
    border-color: #e91e63;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    transform: scale(1.05);
}

.sizes button:hover:not(.active) {
    border-color: #e91e63;
    color: #e91e63;
    background-color: #fff5f8;
}

.sizes button:active {
    transform: scale(0.95);
}

/* DESCRIPTION */
.product-details-block h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.detail-value {
    line-height: 1.6;
    color: #444;
    font-size: 15px;
}

/* BUY SECTION */
.desktop-buy-section {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.buy-btn{
    width: 260px;
    height: 55px;
    background: #ff1464;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 25px;
    padding: 0;
    line-height: 55px;
}

/* RELATED PRODUCTS SECTION */
.also-viewed-block {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.also-viewed-block h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 900px) {
    .product-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .product-title {
        font-size: 22px;
    }

    .desktop-buy-section {
        position: static;
        margin-top: 20px;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
}

/* CENTERED MOBILE STYLE ON DESKTOP */
.product-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}


.page-wrapper {
    background: #f6f6f6;
    padding: 40px 15px;
}

.about-container {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.about-title {
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-container p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

/* CONTACT PAGE */

.contact-container {
    max-width: 500px;
    margin: 60px auto;
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 25px;
}

.contact-form label {
    font-weight: bold;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.contact-btn {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.contact-btn:hover {
    background: #155ac5;
}

.contact-info {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.cart-box {
    max-width: 500px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* ===== MISSING STRUCTURAL CSS (Dividers, Reviews, Related Products) ===== */

.product-info-block {
    background: white;
    padding: 20px;
}

.section-divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 20px -20px;
}

/* Ratings & Reviews Section */
.rating-overview-flex {
    display: flex;
    gap: 20px;
    align-items: center;
}

.big-rating {
    font-size: 40px;
    font-weight: bold;
    color: #009900;
}

.big-rating span {
    font-size: 50px;
}

.big-rating .total-ratings {
    font-size: 12px;
    color: #888;
    font-weight: normal;
    margin-top: -5px;
}

.rating-distribution {
    flex-grow: 1;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 6px;
    color: #666;
}

.dist-row .label {
    min-width: 65px;
    text-align: right;
}

.bar-container {
    flex-grow: 1;
    height: 6px;
    background: #f1f3f5;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
}

.bar-fill.excellent {
    background: #009900;
}

.bar-fill.very-good {
    background: #6fcd4a;
}

.bar-fill.good {
    background: #ffd600;
}

.bar-fill.poor {
    background: #ff7800;
}

.bar-fill.very-poor {
    background: #ff3c00;
}

.dist-row .count {
    color: #888;
    min-width: 40px;
}

/* People also viewed Block */
.viewed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1000px) {
    .viewed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .viewed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.viewed-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.viewed-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.viewed-card h4 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.viewed-card .tag.free {
    background: transparent;
    color: #888;
    font-size: 11px;
    padding: 0;
    border: none;
    margin-top: auto;
}

/* ===== SOLD BY SECTION (Stacked Layout) ===== */
.sold-by-block {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: flex-start;
    padding: 10px 0;
}

.seller-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    /* Remove circle */
    margin-bottom: 12px;
    /* Space below icon */
}

.seller-name {
    margin: 0 0 6px 0;
    /* Space below name */
    font-size: 16px;
    color: #000;
    font-weight: bold;
}

.seller-stats {
    font-size: 14px;
    color: #000;
}

/* ===== NEW MULTI-STEP CHECKOUT STYLES ===== */

.checkout-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: transparent;
    padding-bottom: 100px;
    /* Space for bottom bar */
}

/* Top Nav */
.step-nav {
    display: flex;
    background: white;
    padding: 15px 0 0 0;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step-nav div {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #888;
    padding-bottom: 15px;
    border-bottom: 2px solid transparent;
}

.step-nav div.active {
    color: #e91e63;
    border-bottom-color: #e91e63;
    font-weight: bold;
}

/* Cart Item Card */
.cart-item-card {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
}

.cart-item-top {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.cart-item-top img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #333;
}

.meta-text {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #666;
}

.cart-price-row {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cart-price-row .price {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.cart-price-row .old-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
}

.cart-price-row .discount {
    font-size: 13px;
    color: #009900;
    font-weight: bold;
}

/* Actions & Qty */
.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #eee;
    padding-top: 15px;
    margin-bottom: 15px;
}

.remove-btn {
    font-size: 14px;
    color: #555;
    font-weight: bold;
    cursor: pointer;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px 10px;
}

.qty-selector button {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

.qty-selector span {
    font-weight: bold;
    font-size: 14px;
}

.delivery-tag {
    display: inline-block;
    background: #e6f7ef;
    color: #1a6344;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Price Details Card */
.price-details-card {
    background: white;
    padding: 20px;
}

.price-details-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #000;
}

.p-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.p-row.green-text {
    color: #009900;
}

.price-details-card hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.total-row {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.savings-banner {
    background: #e6f7ef;
    color: #1a6344;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 15px;
}

/* Bottom Continue Bar */
.bottom-continue-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    z-index: 1000;
}

.total-display {
    line-height: 1.2;
}

.total-display strong {
    font-size: 20px;
}

.pink-continue-btn {
    background: #e91e63;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

[id*="wau"],
[class*="wau"] {
    display: none !important;
}

/* ===== ADS STYLING (AUTO INSERT) ===== */

/* Top Banner Ad (below header) */
.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.ad-box {
    width: 320px;
    height: 100px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

/* Grid Ad (after products) */
.ad-grid {
    grid-column: span 4;
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

/* Tablet */
@media(max-width:1000px) {
    .ad-grid {
        grid-column: span 3;
    }
}

/* Mobile */
@media(max-width:700px) {
    .ad-grid {
        grid-column: span 2;
    }
}

/* Desktop Ad Size */
@media(min-width:768px) {
    .ad-box {
        width: 728px;
        height: 90px;
    }
}

.product-ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.dummy-product-ad {
    width: 336px;
    height: 280px;
    border: 2px dashed #ccc;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #777;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
}

.dummy-product-ad small {
    font-size: 14px;
    color: #999;
}

/* Mobile Responsive */
/* Mobile Responsive Section (768px) */
@media (max-width: 768px) {
    /* Product Grid Card Responsiveness on Mobile */
    .card {
        padding: 12px;
        border-radius: 12px;
    }
    .card .title {
        font-size: 14px;
        min-height: 38px;
        margin: 10px 0 6px 0;
    }
    .card img {
        border-radius: 8px;
        margin-bottom: 8px;
    }
    .card .btn {
        padding: 8px 15px;
        font-size: 12px;
        margin-top: auto !important;
    }
    .homepage-price-block {
        gap: 6px;
        margin: 5px 0;
    }
    .current-price {
        font-size: 16px !important;
    }
    .original-price {
        font-size: 12px !important;
    }
    .sale-badge {
        font-size: 10px !important;
        padding: 2px 4px !important;
        margin-left: 2px !important;
    }

    /* Header Fixes for Notch & Spacing */
    .main-header {
        padding-top: env(safe-area-inset-top, 0px);
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }
    .header-container {
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }
    .header-left {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
    }
    .header-logo {
        margin: 0;
    }
    .header-logo a {
        font-size: clamp(16px, 4.5vw, 20px);
        white-space: nowrap;
        font-weight: 700;
        letter-spacing: -0.5px;
    }
    .mobile-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
        cursor: pointer;
    }
    .mobile-hamburger span {
        height: 2px;
        background-color: #333;
    }
    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .header-cart-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Product Page Layout & Safe Padding */
    .product-container {
        display: flex;
        flex-direction: column;
        padding: 15px env(safe-area-inset-right, 15px) 15px env(safe-area-inset-left, 15px);
        gap: 20px;
        box-sizing: border-box;
    }
    .product-gallery {
        width: 100%;
        position: relative;
        top: 0;
        box-sizing: border-box;
    }
    .main-slider-viewport {
        width: 100%;
        aspect-ratio: 3 / 4;
        border-radius: 16px;
        min-height: unset;
        max-height: 60vh;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }
    .slider-track img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        background: #fff;
        border-radius: 16px;
    }
    .nav-arrow {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
    
    /* Horizontal Scrollable Thumbnails */
    .thumb-strip {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        margin-top: 15px;
        padding: 5px 2px;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    .thumb-strip::-webkit-scrollbar {
        display: none;
    }
    .thumb-box {
        flex: 0 0 65px;
        aspect-ratio: 3 / 4;
        height: auto;
        border-radius: 8px;
        border: 2px solid #f0f0f0;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }
    .thumb-box.active {
        border-color: #e91e63;
        box-shadow: 0 0 8px rgba(233, 30, 99, 0.25);
        transform: scale(1.02);
    }

    /* Product Details */
    .product-info-block {
        padding: 0;
        text-align: left;
        box-sizing: border-box;
    }
    .product-title {
        font-size: 22px;
        line-height: 1.3;
    }
    .product-extra-tags {
        flex-wrap: wrap;
        gap: 8px;
    }
    .price-discount-block {
        margin: 15px 0;
    }
    .product-page .current-price {
        font-size: 26px !important;
    }

    /* Centered Buy Button */
    .desktop-buy-section {
        position: static;
        display: block;
        width: 100%;
        padding: 10px 0;
        box-shadow: none;
        background: transparent;
        margin-top: 20px;
        box-sizing: border-box;
    }
    .desktop-buy-section form {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }
    .buy-btn {
        width: 90% !important;
        max-width: none !important;
        margin: 0 auto 20px auto !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 56px;
        line-height: normal;
        font-size: 18px;
        font-weight: 700;
        border-radius: 8px !important;
        background: #ff1464;
        color: #fff;
        border: none;
        cursor: pointer;
        box-sizing: border-box;
    }

    /* Rating Section */
    .rating-overview-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .big-rating {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .big-rating .total-ratings {
        margin-top: 0;
    }

    /* Footer Responsive */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px;
    }
    .footer-col {
        margin-bottom: 25px;
    }
    .social-icons {
        justify-content: center;
    }

    /* Spacing & Utilities */
    .section-divider {
        margin: 20px 0;
    }
    p, .detail-value {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Extra Small Mobile Devices & iPhones (max-width: 480px) */
@media (max-width: 480px) {
    /* Product Grid Card Responsiveness on Small Mobile */
    .card {
        padding: 8px;
        border-radius: 8px;
    }
    .card .title {
        font-size: 13px;
        min-height: 36px;
    }
    .card .btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .header-container {
        padding: 8px 12px;
    }
    .header-logo a {
        font-size: 16px;
    }
    .product-container {
        padding: 10px;
        gap: 15px;
    }
    .main-slider-viewport {
        border-radius: 12px;
    }
    .slider-track img {
        border-radius: 12px;
    }
    .buy-btn {
        width: 95% !important;
        height: 52px;
        font-size: 16px;
    }
    .product-title {
        font-size: 18px;
    }
    .detail-value {
        font-size: 14px;
    }
}

/* Remove conflicting fixed bottom bar from previous CSS if any */
@media (max-width: 900px) {
    .desktop-buy-section {
        /* Reset any fixed positioning that might have been there */
        /* But we handle it better in the 768px block */
    }
}

.product-side-ad{
    width:300px;
    margin:20px auto;
    display:flex;
    justify-content:center;
}

.top-ad-container{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:20px auto;
    text-align:center;
}

.top-ad-container iframe,
.top-ad-container div{
    margin:auto;
}

/* HEADER TOP AD */

.top-header-ad{
width:100%;
display:flex;
justify-content:center;
align-items:center;
padding:15px 0;
background:#f5f5f5;
overflow:hidden;
}

.header-ad-box{
display:flex;
justify-content:center;
align-items:center;
width:100%;
}

.header-ad-box iframe{
max-width:100%;
height:auto;
}

/* MOBILE RESPONSIVE */

@media(max-width:768px){

.top-header-ad{
padding:10px 0;
}

}

/* TOP HEADER AD FIX */

.global-top-ad{
width:100%;
display:flex;
justify-content:center;
align-items:center;
padding:20px 0;
background:#f5f5f5;
overflow:visible;
min-height:300px;
}

.global-top-ad iframe{
display:block;
margin:auto;
border:none;
max-width:100%;
}

/* Ad Container */

#div-gpt-top-global-ad{
width:336px;
min-width:336px;
min-height:280px;
display:flex;
justify-content:center;
align-items:center;
overflow:hidden;
}

/* Tablet */

@media(max-width:768px){

#div-gpt-top-global-ad{
width:300px;
min-width:300px;
min-height:250px;
}

.global-top-ad{
min-height:260px;
padding:10px 0;
}

}

/* Mobile */

@media(max-width:480px){

#div-gpt-top-global-ad{
width:300px;
min-width:300px;
min-height:250px;
}

}

.product-page-ad{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:25px 0;
    overflow:hidden;
}

#div-gpt-product-ad{
    width:336px;
    min-width:336px;
    height:280px;
    min-height:280px;
    display:flex;
    justify-content:center;
    align-items:center;
}

@media(max-width:768px){

    .product-page-ad{
        margin:15px auto;
    }

    #div-gpt-product-ad{
        width:300px;
        min-width:300px;
        height:250px;
        min-height:250px;
    }
}

/* Checkout & Google Ads Responsive Styling */
.checkout-ad-unit,
.product-page-ad,
.global-top-ad {
    width: 100% !important;
    max-width: 336px !important;
    min-width: unset !important;
    margin: 10px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#div-gpt-top-global-ad,
#div-gpt-product-ad,
.checkout-ad-unit > div {
    max-width: 100% !important;
    overflow: hidden !important;
}

@media (max-width: 360px) {
    #div-gpt-top-global-ad,
    #div-gpt-product-ad,
    .checkout-ad-unit {
        transform: scale(0.9);
        transform-origin: center;
        margin: 5px auto !important;
    }
}

@media (max-width: 320px) {
    #div-gpt-top-global-ad,
    #div-gpt-product-ad,
    .checkout-ad-unit {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* Premium Checkout Ad Wrapper */
.checkout-ad-section {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 10px auto;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .checkout-ad-section {
        margin: 15px auto 5px auto;
        padding: 10px;
        border-radius: 8px;
        max-width: calc(100% - 30px);
    }
}

/* Checkout Ad Box */
.checkout-ad-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.checkout-ad-box > div {
    max-width: 100% !important;
    overflow: hidden !important;
}

@media (max-width: 360px) {
    .checkout-ad-box {
        transform: scale(0.9);
        transform-origin: center;
        padding: 10px 5px;
    }
}

@media (max-width: 320px) {
    .checkout-ad-box {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & SAFARI COMPATIBILITY ENHANCEMENTS (v2.0)
   ========================================================================== */

/* Prevent broken layout and horizontal scroll on small screens */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Safari compatible flexbox utility classes & width calculations */
.header-container,
.nav-menu,
.homepage-price-block,
.price-discount-block,
.desktop-buy-section,
.rating-overview-flex,
.footer-container {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* Responsive CSS Breakpoints (max-width: 768px) */
@media (max-width: 768px) {
    /* Header & Mobile Logo/Cart Alignment */
    .main-header {
        padding: 5px 0 !important;
        position: sticky !important;
        top: 0 !important;
    }
    
    .header-container {
        padding: 10px 15px !important;
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-pack: justify !important;
        -webkit-justify-content: space-between !important;
        justify-content: space-between !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .header-left {
        gap: 12px !important;
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        align-items: center !important;
    }

    .header-logo a {
        font-size: 18px !important;
        font-weight: 800 !important;
    }

    .header-right {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
        align-items: center !important;
    }

    /* Mobile hamburger styling */
    .mobile-hamburger {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 22px !important;
        height: 16px !important;
    }

    .mobile-hamburger span {
        height: 2px !important;
        background-color: #1a1a1a !important;
        border-radius: 2px !important;
    }

    /* Cart badge alignment */
    .header-cart-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .cart-count-badge {
        font-size: 9px !important;
        min-width: 14px !important;
        height: 14px !important;
    }

    /* Mobile Sidebar Menu (bullet list removal and slide style) */
    .mobile-sidebar-nav {
        left: -300px;
        width: 280px;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15) !important;
        border-right: 1px solid #f0f0f0;
    }

    .mobile-sidebar-nav.active {
        left: 0 !important;
    }

    .mobile-nav-menu {
        list-style: none !important;
        list-style-type: none !important;
        margin: 0 !important;
        padding: 10px 0 !important;
        display: block !important;
    }

    .mobile-nav-menu li {
        list-style: none !important;
        list-style-type: none !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-nav-menu>li>a {
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #333 !important;
        border-bottom: 1px solid #f5f5f5 !important;
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-pack: justify !important;
        -webkit-justify-content: space-between !important;
        justify-content: space-between !important;
    }

    /* Dropdown alignment */
    .mobile-dropdown-menu {
        list-style: none !important;
        list-style-type: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background-color: #fafafa !important;
        border-bottom: 1px solid #f5f5f5 !important;
    }

    .mobile-dropdown-menu li {
        list-style-type: none !important;
        list-style: none !important;
    }

    .mobile-dropdown-menu li a {
        padding: 12px 20px 12px 35px !important;
        font-size: 14px !important;
        color: #555 !important;
        font-weight: 500 !important;
        border-bottom: 1px solid #eee !important;
        display: block !important;
    }

    /* Smooth Open/Close Animation for mobile menu */
    .mobile-sidebar-nav {
        -webkit-transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Product Grid alignment */
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 12px 10px !important;
    }

    .card {
        border-radius: 12px !important;
        padding: 12px !important;
    }

    .card img {
        border-radius: 8px !important;
    }

    .title {
        font-size: 14px !important;
        margin: 10px 0 5px 0 !important;
        min-height: 38px !important;
        -webkit-line-clamp: 2 !important;
    }

    /* Buttons styling on mobile */
    .btn, .buy-btn, .contact-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
        border-radius: 30px !important;
    }

    .buy-btn {
        width: 100% !important;
        height: 50px !important;
        font-size: 18px !important;
        border-radius: 8px !important;
        margin-top: 15px !important;
    }

    /* Checkout & wizard pages responsive styling */
    .checkout-wrapper {
        padding: 0 10px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .checkout-ad-section {
        max-width: 100% !important;
        padding: 10px !important;
    }

    /* Safari layout compatibility & iOS Safe Areas */
    .mobile-sidebar-nav {
        padding-top: max(20px, env(safe-area-inset-top)) !important;
        padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }

    /* Footer adjustments */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 30px 15px !important;
        text-align: center !important;
    }
}