@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --cream: #FFF8F0;
    --gold: #D4AF37;
    --maroon: #800000;
    --light-pink: #FFE4E1;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #666666;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Falling Petals Animation */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.petal {
    position: absolute;
    background-color: #ffb6c1;
    border-radius: 150% 0 150% 0;
    opacity: 0.3;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 750;
    min-height: 300px;
    background-image: url('assets/img/hero_mandap.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 90px 20px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero button {
    padding: 12px 30px;
    background-color: var(--maroon);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero button:hover {
    transform: translateY(-2px);
    background-color: #600000;
}

/* Section Titles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 15px 15px;
}

.title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--maroon);
    position: relative;
}

.view-all {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Round Scrollable UI */
.circle-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 15px;
    scrollbar-width: none; /* Firefox */
}

.circle-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px 20px;
}

/* Card Styling */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-container {
    position: relative;
    height: 140px;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(128, 0, 0, 0.85);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content {
    padding: 12px;
}

.card-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.star {
    color: #FFD700;
}

.card-btn {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--maroon);
    background: transparent;
    color: var(--maroon);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: var(--maroon);
    color: var(--white);
}

/* Product Specifics */
.discount {
    color: #28a745;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.add-to-cart {
    background: var(--maroon);
    color: var(--white);
    border: none;
}

/* Special Banner */
.special-banner {
    margin: 20px 15px;
    height: 160px;
    border-radius: 12px;
    background: url('assets/img/swayamvar_banner.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.special-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.banner-content {
    position: relative;
    z-index: 2;
}

.special-banner h2 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.special-banner button {
    padding: 8px 20px;
    background: var(--white);
    color: var(--maroon);
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--maroon);
}

/* Desktop View */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero {
        height: 550px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
}

/* Mobile Hero Fix */
@media (max-width: 768px) {
    .hero {
        min-height: 280px;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9rem;
    }
}