/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --maroon: #681818;
    --gold: #c5a059;
    --navy: #0f172a;
    --bg-light: #fdfbf7;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: white;
    color: #333;
}

/* ================= HERO SECTION ================= */
.hero-section {
    position: relative;
    /* બેકગ્રાઉન્ડ ઈમેજ બદલવા માટે અહિયાં URL બદલો */
    background: url('../imgs/banner.png') no-repeat center center/cover;
    object-fit: contain;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-color: var(--navy);
    /* Fallback color */
}

/* Dark Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h2 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--gold);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--maroon);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--maroon);
    transition: 0.3s;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: white;
}

/* ================= FEATURES BAR ================= */
.features-bar {
    display: flex;
    justify-content: space-around;
    padding: 40px 5%;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 20px;
    margin-top: -50px;
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.feature-item i {
    font-size: 32px;
    color: var(--maroon);
}

.feature-item h4 {
    font-size: 15px;
    margin-bottom: 3px;
    color: var(--navy);
    font-weight: bold;
}

.feature-item p {
    font-size: 13px;
    color: #777;
}

/* ================= SECTIONS GLOBAL ================= */
.section-container {
    padding: 80px 5%;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--maroon);
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-style: italic;
}

/* ================= CATEGORIES ================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.cat-card {
    text-decoration: none;
    color: var(--navy);
    transition: 0.3s;
}

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-img {
    height: 320px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.cat-card:hover img {
    transform: scale(1.1);
}

.cat-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-top: 10px;
}

/* ================= PRODUCT GRID ================= */
.new-arrivals {
    background-color: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 30px auto 0;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    transition: 0.3s;
    text-align: left;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.prod-img {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #f4f4f4;
}

.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.product-card:hover .prod-img img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--navy);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.tag.sale {
    background: var(--maroon);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--navy);
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.prod-details {
    padding: 20px;
}

.prod-details h5 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 600;
}

.price {
    color: var(--maroon);
    font-weight: bold;
    font-size: 17px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-left: 8px;
}

.add-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: var(--navy);
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.add-btn:hover {
    background: var(--maroon);
}

/* ================= HERITAGE SECTION ================= */
.heritage-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 5%;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.heritage-text {
    flex: 1;
    text-align: left;
}

.heritage-text h4 {
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
}

.heritage-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--maroon);
    margin: 15px 0 25px;
    line-height: 1.3;
}

.heritage-text p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-outline {
    padding: 12px 30px;
    border: 2px solid var(--maroon);
    color: var(--maroon);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: var(--maroon);
    color: white;
}

.heritage-img {
    flex: 1;
    height: 450px;
}

.heritage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 20px 20px 0px var(--gold);
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .features-bar {
        gap: 30px;
        margin-top: 0;
        box-shadow: none;
        border-bottom: 1px solid #eee;
    }

    .heritage-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .heritage-text {
        text-align: center;
    }

    .heritage-text h2 {
        font-size: 2.4rem;
    }

    .heritage-img {
        width: 100%;
        height: 300px;
    }

    .heritage-img img {
        box-shadow: 10px 10px 0px var(--gold);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .prod-img {
        height: 220px;
    }

    .cat-img {
        height: 400px;
        object-fit: cover;
    }

    .prod-details {
        padding: 12px;
    }

    .prod-details h5 {
        font-size: 13px;
    }

    .price {
        font-size: 14px;
    }

    .add-btn {
        font-size: 10px;
        padding: 8px;
    }
}

/* --- POPUP CSS --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark dim background */
    z-index: 9999;
    /* Stay on top of everything including mobile nav */
    display: none;
    /* Hidden by default, JS will show it */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-card {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid #8B0000;
    /* Deep red heritage border */
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Pop In Animation */
@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #8B0000;
    transform: rotate(90deg);
}

.popup-header h2 {
    font-family: 'Playfair Display', serif;
    color: #8B0000;
    font-size: 28px;
    margin: 10px 0;
}

.pulse-heart {
    color: #e63946;
    font-size: 35px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.2);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.2);
    }

    80% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.popup-body p {
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.coupon-box {
    background: #fff9fa;
    border: 2px dashed #8B0000;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.coupon-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.coupon-code {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #8B0000;
    letter-spacing: 2px;
}

.discount-text {
    font-size: 16px !important;
    color: #222 !important;
}

.shop-now-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    background-color: #8B0000;
    /* Match your primary button */
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
}

.shop-now-btn:hover {
    background-color: white;
    color: #8B0000;
}

/* REQUIRED ASTERISK STYLE */
.req-star {
    color: #d32f2f;
    margin-left: 3px;
    font-weight: bold;
}

/* --- LOGIN PROMPT POPUP STYLES --- */
.login-popup-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    /* Higher than other elements */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.5s ease-out;
}

.login-popup-card {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 5px solid #681818;
}

.login-popup-header h2 {
    font-family: 'Playfair Display', serif;
    color: #4a0404;
    font-size: 24px;
    margin-bottom: 10px;
}

.login-popup-body p {
    font-family: 'Lato', sans-serif;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-auth-popup {
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    font-family: 'Lato', sans-serif;
}

.btn-login-pop {
    background: #681818;
    color: white;
    border: 1px solid #681818;
}

.btn-login-pop:hover {
    background: #4a0404;
}

.btn-reg-pop {
    background: transparent;
    color: #681818;
    border: 1px solid #681818;
}

.btn-reg-pop:hover {
    background: #fdfbf7;
}

.popup-close-corner {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
}

.popup-close-corner:hover {
    color: #8B0000;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Asterisk Styles */
.req-star {
    color: #d32f2f;
    font-weight: bold;
    margin-left: 3px;
}

/* Label Styles for Auth Forms */
.auth-label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #4a0404;
    margin-left: 5px;
    /* Align with rounded input corners */
}

/* Adjust input group spacing to accommodate labels */
.input-group {
    margin-bottom: 15px;
}