:root {
    --bg-color: #FDFBF7;
    /* Warm Ivory / Cream */
    --bg-white: #FFFFFF;
    --text-primary: #2C181A;
    /* Deep Burgundy/Brown */
    --text-secondary: #7A696A;
    /* Soft Muted Beige/Gray */
    --accent-color: #DCA4A5;
    /* Dusty Rose */
    --primary-color: #701A2F;
    /* Deep BANSWARI Burgundy */
    --primary-hover: #541323;
    --secondary-color: #F7E1E6;
    /* Soft Blush Pink */
    --border-color: #EAE3E3;
    --shadow-light: rgba(112, 26, 47, 0.08);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #F8E4E9;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#app-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
    z-index: 1;
    overflow-y: auto;
    background-color: var(--bg-color);
}

.screen.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

/* Home Screen */
#homeScreen {
    display: flex;
    flex-direction: column;
}

/* Mobile App Header */
.mobile-app-header {
    text-align: center;
    padding: 1rem 1rem 1rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
}

.header-logo i {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.header-logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--primary-color);
}

.header-logo-text h2 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 4px;
    font-weight: 400;
    color: var(--accent-color);
}

.mobile-app-header .tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 1rem;
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    height: auto;
    background: var(--secondary-color);
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.hero-section img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(253, 251, 247, 1) 0%, rgba(253, 251, 247, 0.7) 30%, rgba(253, 251, 247, 0) 100%);
}

.hero-overlay h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-overlay i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Home Collection Stack */
.home-collection-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem 3rem;
}

.mobile-collection-card {
    display: flex;
    align-items: center;
    background: var(--secondary-color);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.mobile-collection-card .card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0.5rem;
}

.mobile-collection-card .subtitle {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    opacity: 0.8;
}

.mobile-collection-card .title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1;
    margin: 0.2rem 0;
}

.mobile-collection-card .arrow-btn {
    margin-top: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.mobile-collection-card .card-image-wrapper {
    width: 45%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
}

.mobile-collection-card .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Collection Screen */
#collectionScreen {
    background: var(--bg-color);
    padding: 1.5rem;
}

.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    transition: opacity 0.3s;
}

.back-btn:hover {
    opacity: 0.6;
}

.collection-header {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.collection-header h4 {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.collection-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    letter-spacing: 2px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    padding-bottom: 5rem;
}

.product-item {
    cursor: pointer;
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--secondary-color);
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-details-mini {
    text-align: center;
    padding: 0.5rem 0.5rem;
    background: var(--bg-white);
}

.product-details-mini h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.price-tag {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Product Overlay */
.product-overlay {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 50;
    transition: top 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    overflow-y: auto;
    /* For better mobile viewport handling */
    height: 100%;
    height: 100dvh;
}

.product-overlay.open {
    top: 0;
}

.close-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    font-size: 1.2rem;
    color: #1A1A1A;
    cursor: pointer;
    z-index: 60;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-showcase {
    display: flex;
    min-height: 100vh;
    flex-wrap: wrap;
}

.showcase-image {
    flex: 1 1 50%;
    background: #fff;
    position: relative;
    min-height: 50vh;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.showcase-details {
    flex: 1 1 50%;
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: 2rem;
}

.detail-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.price-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.original-price {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.selection-area {
    margin-bottom: 1rem;
}

.selection-group {
    margin-bottom: 2rem;
}

.selection-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.size-pill {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.size-pill.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.size-pill.out-of-stock {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.stock-message {
    margin-top: 1rem;
    font-size: 0.85rem;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-success {
    color: #2E7D32;
}

.text-danger {
    color: #C62828;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: var(--bg-white);
    width: fit-content;
}

.qty-controls button {
    width: 45px;
    height: 45px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
}

.qty-controls span {
    width: 40px;
    text-align: center;
    font-size: 1rem;
}

.whatsapp-cta {
    background: #128C7E;
    color: white;
    border: none;
    padding: 1.2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: background 0.3s;
    width: 100%;
}

.whatsapp-cta:hover:not(:disabled) {
    background: #075E54;
}

.whatsapp-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loader */
.loader-container {
    display: none;
    justify-content: center;
    padding: 5rem 0;
}

.loader-container.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid #eee;
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .panels-container {
        flex-direction: column;
    }

    .panel-content h3 {
        font-size: 2rem;
    }

    .product-showcase {
        flex-direction: column;
        display: flex;
        flex-wrap: nowrap;
    }

    .showcase-image {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: auto;
        background: transparent;
    }

    .showcase-image img {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    .showcase-details {
        flex: 1 1 auto;
        width: 100%;
        padding: 2rem 1.5rem 6rem;
        max-width: 100%;
    }

    .detail-header h2 {
        font-size: 2rem;
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
        padding-bottom: 3rem;
    }

    .product-details-mini {
        padding: 1rem 0.5rem;
    }

    .product-details-mini h3 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .price-tag {
        font-size: 0.9rem;
    }
}

/* Forms & Checkout */
.checkout-section,
.upi-payment-section {
    animation: fadeIn 0.3s ease;
}

.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fafafa;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(199, 139, 146, 0.2);
    background: #fff;
}

.primary-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 5px;
    font-size: 1.2rem;
}

/* Form Additions */
.form-group.has-icon {
    position: relative;
}

.form-group.has-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.form-group.has-icon.align-top i {
    top: 1.2rem;
    transform: none;
}

.form-group.has-icon .form-input {
    padding-left: 2.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.primary-btn {
    border-radius: 12px;
}

/* UPI Styles */
.upi-card {
    background: var(--secondary-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.upi-card .upi-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.upi-card .upi-subtitle {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.qr-box {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.qr-box img {
    max-width: 150px;
}

.upi-id-text {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.upi-amount-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.upi-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* WhatsApp Order Section */
.wa-icon-circle {
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
}

.wa-number-pill {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.wa-ready-box {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.wa-btn {
    background: var(--primary-color);
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #FFF;
}

@media (max-width: 768px) {
    .floating-wa {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* --- Fully Responsive Breakpoints --- */

@media (max-width: 991px) {

    /* Product details responsive */
    .product-showcase {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .showcase-image {
        flex: 0 0 auto;
        width: 100%;
        min-height: 40vh;
    }

    .showcase-image img {
        position: relative;
        max-height: 65vh;
        object-fit: contain;
        background: var(--secondary-color);
    }

    .showcase-details {
        flex: 1 1 auto;
        padding: 2rem 1.5rem 6rem;
        /* Remove unwanted spacing on mobile, but keep bottom padding safe */
        width: 100%;
    }

    /* Collection Grid responsive */
    #collectionScreen {
        padding: 1rem 0.5rem;
    }

    .collection-header {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .collection-header h2 {
        font-size: 2.2rem;
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 items per row on mobile */
        gap: 1.5rem 1rem;
        padding: 0 0.5rem 5rem;
    }

    /* Hero section text */
    .hero-overlay h2 {
        font-size: 1.8rem;
    }
}

@media (min-width: 992px) {

    /* Desktop layout enhancements */
    .home-collection-stack {
        flex-direction: row;
        max-width: 1200px;
        margin: 0 auto;
        justify-content: center;
    }

    .mobile-collection-card {
        flex: 1;
        max-width: 500px;
    }

    .hero-section {
        max-width: 1200px;
        min-height: 80vh;
        margin: 0 auto 3rem;
        border-radius: 20px;
    }

    .showcase-image img {
        object-fit: contain;
        background: var(--bg-color);
    }
}

/* New Homepage UI Design */
.new-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #FDFBF7;
    width: 100%;
}

.new-header .menu-icon-btn {
    justify-self: start;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.new-header .header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.new-header .header-logo img {
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
}

.new-header .logo-subtext {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.new-header .header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-self: end;
}

.new-header .icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
}

.new-header .badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background: #25D366;
    color: white;
    font-size: 0.6rem;
    width: 14px;
    height: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.new-hero {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    background: transparent;
    display: flex;
    min-height: 300px;
    height: auto;
    overflow: hidden;
}

.new-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 15% center;
    z-index: 1;
}

.new-hero-overlay {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
    background: transparent;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.new-hero-overlay h2 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    color: #531121;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    font-weight: 600;
    max-width: 60%;
}

.new-hero-overlay p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #531121;
    margin-bottom: 1.5rem;
    max-width: 60%;
}

.shop-now-btn,
.fit-btn {
    background: #A01E41;
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 0.80rem;
    font-weight: 500;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.home-collection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.new-category-card {
    background: #FCEBEB;
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.new-category-card .card-image {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-category-card .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.new-category-card .card-content {
    width: 100%;
    position: relative;
}

.new-category-card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.new-category-card p {
    font-size: 0.7rem;
    margin: 0;
    margin-top: 0.2rem;
    color: var(--text-secondary);
}

.new-category-card i {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 1.2rem;
    color: #000;
}

.fit-finder-section {
    background: #FCF4F6;
    margin: 0 1.5rem 1.5rem;
    border-radius: 12px;
    display: flex;
    padding: 12px 0px 0px 12px;
    align-items: flex-start;
}

.fit-content {
    flex: 1;
}

.fit-content h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.fit-content p {
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.fit-image {
    width: 100px;
    height: 150px;
    margin-left: 1rem;
    background-image: url("../images/finde.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.best-sellers-section {
    padding: 0 0 3rem 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.section-header h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
}

.section-header .view-all {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-right: 1.5rem;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.best-seller-card {
    flex: 0 0 140px;
    text-decoration: none;
}

.best-seller-card .product-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: #FCEBEB;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.best-seller-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.best-seller-card .wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

}

/* Force absolute positioning for elements inside app-wrapper */
#thankYouSection,
.floating-wa,
#toastContainer,
.toast-notification {
    position: absolute !important;
}

/* Modals */
.side-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.side-menu.open {
    opacity: 1;
    pointer-events: all;
}

.side-menu-content {
    width: 70%;
    height: 100%;
    background: var(--bg-color);
    padding: 1rem 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.side-menu.open .side-menu-content {
    transform: translateX(0);
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.menu-logo img {
    max-height: 50px;
}

.menu-links {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.menu-links li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.menu-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
}

.search-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
}

.search-modal.open {
    opacity: 1;
    pointer-events: all;
}

.search-header {
    display: flex;
    padding: 1.5rem;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.search-header input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-family: var(--font-body);
    outline: none;
    background: #fff;
}

.close-search-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background 0.2s;
}

.search-item:hover {
    background: #fff;
}

.search-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.search-item-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.search-item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}