* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #a8edea 100%);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
}

nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-menu li a:hover::before {
    width: 80%;
}

.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.25);
}

/* Cart Icon */
.cart-icon {
    position: relative;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b9d;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
}

.content {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
    color: white;
}

.content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.content p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

/* Hero Banner Section */
.hero-banner-section {
    width: 100%;
    margin: 0 0 2rem 0;
    animation: fadeInDown 0.8s ease;
}

.hero-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Styles */
.carousel-container {
    max-width: 1000px;
    margin: 3rem auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.slide-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ff6b9d;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-dots {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff6b9d;
    transform: scale(1.3);
}

/* Product Cards Section */
.products-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.ice-cream-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: 3px solid transparent;
}

.ice-cream-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 250px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    position: relative;
    z-index: 1;
    mix-blend-mode: normal;
}

.card-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translate(-25%, -25%);
    }

    50% {
        transform: translate(25%, 25%);
    }
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b9d;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Unique gradient backgrounds for each card */
.card-image.kulfi {
    background: #ffffff;
}

.card-image.cup {
    background: #dff3ff;
}

.card-image.chocbar {
    background: #f5e6d3;
}

.card-image.dolly {
    background: #d6c4c4;
}

.card-image.cone {
    background: #94c5e4;
}

.card-image.gadbad {
    background: #d9f5ee;
}

.card-image.scoop {
    background: #ffffff;
}

.card-image.family {
    background: #ffffff;
}

/* Colored card borders matching each card's theme */
#kulfiCard {
    border-color: #fdcb6e;
}

#cupCard {
    border-color: #74b9ff;
}

#chocbarCard {
    border-color: #6c5ce7;
}

#dollyCard {
    border-color: #e84393;
}

#coneCard {
    border-color: #fcb69f;
}

#gadbadCard {
    border-color: #00b894;
}

#scoopCard {
    border-color: #a29bfe;
}

#familyCard {
    border-color: #fd79a8;
}

/* Cup & Cone images — properly sized */
.card-image.cup img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    mix-blend-mode: normal;
}

.card-image.cone img {
    width: auto;
    height: 80%;
    max-width: 70%;
    object-fit: contain;
    padding: 16px;
}

/* Product Page Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.product-page {
    background: white;
    border-radius: 25px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff6b9d;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    background: #e84393;
    transform: rotate(90deg);
}

.product-header {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 1.25rem 2rem;
    border-radius: 25px 25px 0 0;
    text-align: center;
}

.product-icon-large {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.product-title-large {
    font-size: 1.8rem;
    color: #333;
    font-weight: bold;
}

.product-body {
    padding: 1.5rem;
}

.option-section {
    margin-bottom: 1rem;
}

.option-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.flavor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.75rem;
}

.flavor-option {
    padding: 0.5rem 0.4rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.flavor-option:hover {
    border-color: #ff6b9d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.2);
}

.flavor-option.selected {
    border-color: #ff6b9d;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.flavor-emoji {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.flavor-name {
    font-weight: 600;
    color: #333;
}

.size-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.size-option {
    flex: 1;
    min-width: 150px;
    padding: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.size-option:hover {
    border-color: #ff6b9d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.2);
}

.size-option.selected {
    border-color: #ff6b9d;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.size-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.size-price {
    font-size: 1.5rem;
    color: #ff6b9d;
    font-weight: bold;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.quantity-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #ff6b9d;
    background: white;
    color: #ff6b9d;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #ff6b9d;
    color: white;
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

#quantity,
#cupQuantity,
#gadbadQuantity,
#dollyQuantity,
#coneQuantity,
#scoopQuantity,
#chocbarQuantity,
#familyQuantity {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: #f0f0f0;
    color: #333;
    outline: none;
    cursor: text;
    -moz-appearance: textfield;
    appearance: textfield;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button,
#cupQuantity::-webkit-outer-spin-button,
#cupQuantity::-webkit-inner-spin-button,
#gadbadQuantity::-webkit-outer-spin-button,
#gadbadQuantity::-webkit-inner-spin-button,
#dollyQuantity::-webkit-outer-spin-button,
#dollyQuantity::-webkit-inner-spin-button,
#coneQuantity::-webkit-outer-spin-button,
#coneQuantity::-webkit-inner-spin-button,
#scoopQuantity::-webkit-outer-spin-button,
#scoopQuantity::-webkit-inner-spin-button,
#chocbarQuantity::-webkit-outer-spin-button,
#chocbarQuantity::-webkit-inner-spin-button,
#familyQuantity::-webkit-outer-spin-button,
#familyQuantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Price + Cart side-by-side row */
.price-cart-row {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1rem;
}

.price-display {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-align: center;
}

.price-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.price-amount {
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
}

.add-to-cart-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #ff6b9d 0%, #e84393 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn.added {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

/* ── Responsive: Tablet (max 768px) ── */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-menu li a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .content h1 {
        font-size: 2rem;
    }

    .content p {
        font-size: 1rem;
    }

    /* Modal */
    .product-modal.active {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .product-page {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
    }

    .product-header {
        padding: 1.5rem 1rem;
    }

    .product-icon-large {
        font-size: 3.5rem;
    }

    .product-title-large {
        font-size: 1.8rem;
    }

    .product-body {
        padding: 1.25rem;
    }

    .flavor-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .flavor-option {
        padding: 0.75rem 0.5rem;
    }

    .flavor-emoji {
        font-size: 1.5rem;
    }

    .size-options {
        flex-direction: column;
    }

    .size-option {
        min-width: unset;
    }

    /* Cards grid */
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    .card-image {
        height: 180px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* ── Responsive: Mobile (max 480px) ── */
@media (max-width: 480px) {
    .product-modal.active {
        padding: 0;
        align-items: flex-end;
    }

    .product-page {
        border-radius: 18px 18px 0 0;
        max-height: 95vh;
    }

    .product-title-large {
        font-size: 1.5rem;
    }

    .product-body {
        padding: 1rem;
    }

    .flavor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .option-label {
        font-size: 1.1rem;
    }

    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .card-image {
        height: 140px;
        font-size: 4rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.8rem;
    }

    .nav-menu li a {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}

/* ========================
   Hero Video Section
   ======================== */
.hero-video-section {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.hero-video {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: block;
    max-height: 520px;
    object-fit: cover;
}

/* ── Footer ── */
.site-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
}