/* ==========================================================================
   VANDI ICE CREAM & DAIRY PRODUCTS - CLEAN & MOBILE-FIRST STYLESHEET
   Design Concept: Ultra-Sleek, Clean White Space, Premium Dairy Gold & Crimson
   ========================================================================== */

:root {
    --primary-red: #E11D48;
    --primary-red-hover: #BE123C;
    --gold-amber: #F59E0B;
    --gold-amber-dark: #D97706;
    --gold-light: #FEF3C7;
    --cream-bg: #FAFAF9;
    --pure-white: #FFFFFF;
    --dark-slate: #0F172A;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --veg-green: #16A34A;
    --border-light: #F1F5F9;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    --shadow-lg: 0 20px 30px -10px rgba(245, 158, 11, 0.12);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.25s ease-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream-bg);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 70px; /* Space for mobile bottom bar */
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-red), var(--gold-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-red { color: var(--primary-red); }
.text-green { color: var(--veg-green); }
.bg-gold { background: var(--gold-light); color: var(--gold-amber-dark); }

/* Minimal Top Notice Bar */
.top-notice {
    background: #0F172A;
    color: #94A3B8;
    font-size: 0.8rem;
    padding: 0.4rem 0;
    font-weight: 500;
}

.notice-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-lang {
    color: var(--gold-amber);
    cursor: pointer;
    font-weight: 600;
}

/* Sticky Header */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-box {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-red), var(--gold-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tag {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--dark-slate);
    margin-top: -4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-slate);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.icon-btn, .cart-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: #F1F5F9;
    color: var(--dark-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover, .cart-btn:hover {
    background: var(--gold-light);
    color: var(--primary-red);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary-red);
    color: var(--pure-white);
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Overlay Bar */
.search-overlay-bar {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--pure-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    display: none;
    box-shadow: var(--shadow-md);
}

.search-overlay-bar.active {
    display: block;
}

.search-overlay-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-overlay-flex input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
}

.close-search {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.825rem;
}

.btn-lg {
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--pure-white);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

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

.btn-outline {
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    color: var(--dark-slate);
}

.btn-outline:hover {
    border-color: var(--gold-amber);
    color: var(--gold-amber-dark);
}

/* Clean Hero Section */
.hero-section {
    position: relative;
    padding: 3rem 0 4rem 0;
    overflow: hidden;
}

.hero-glow-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(254, 243, 199, 0.8) 0%, rgba(250, 250, 249, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.clean-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.veg-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--veg-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-inner {
    width: 4px;
    height: 4px;
    background: var(--veg-green);
    border-radius: 50%;
}

.hero-heading {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.slogan-sub {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-red);
    margin-bottom: 0.4rem;
}

.hero-subtext {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.clean-stats {
    display: flex;
    gap: 1rem;
}

.stat-pill {
    background: var(--pure-white);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.stat-pill strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-red);
}

.stat-pill span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* 3D Stage Box */
.hero-3d-box {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
}

.stage-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--veg-green);
    border-radius: 50%;
}

#webgl-container {
    width: 100%;
    height: 340px;
    border-radius: var(--radius-md);
    background: radial-gradient(circle, #FFFFFF 0%, #FEF3C7 100%);
    cursor: grab;
}

.model-switch-pills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.switch-pill {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    background: var(--cream-bg);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-slate);
    transition: var(--transition);
}

.switch-pill.active, .switch-pill:hover {
    background: var(--gold-amber);
    color: var(--pure-white);
    border-color: var(--gold-amber);
}

/* Purity Bar */
.purity-bar {
    padding: 2.5rem 0;
    background: var(--pure-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.purity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.purity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.purity-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gold-light);
    color: var(--gold-amber-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.purity-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.purity-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section Title Clean */
.section-title-clean {
    margin-bottom: 2rem;
}

.section-title-clean h2 {
    font-size: 2rem;
    font-weight: 800;
}

.section-title-clean p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Category Slider */
.products-section {
    padding: 4rem 0;
}

.category-slider {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
}

.category-slider::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-full);
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--dark-slate);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cat-chip.active, .cat-chip:hover {
    background: var(--primary-red);
    color: var(--pure-white);
    border-color: var(--primary-red);
}

/* Clean Product Grid */
.product-grid-container {
    max-height: 780px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.clean-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--pure-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-amber);
}

.card-img-box {
    height: 180px;
    position: relative;
    background: #F8FAFC;
}

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

.card-veg {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(255,255,255,0.9);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--veg-green);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-cat {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gold-amber-dark);
    margin-bottom: 0.2rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-light);
}

.card-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-red);
}

/* Flavor Section */
.flavor-section {
    padding: 4rem 0;
    background: #FFFDF7;
}

.flavor-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.flavor-chip {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.85rem;
}

.flavor-chip.active {
    background: var(--dark-slate);
    color: var(--pure-white);
}

.flavor-card-display {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

/* B2B Section */
.b2b-section {
    padding: 4rem 0;
}

.b2b-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: var(--dark-slate);
    color: var(--pure-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.b2b-info h2 {
    color: var(--pure-white);
    font-size: 2rem;
    margin: 0.8rem 0;
}

.b2b-info p {
    color: #94A3B8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.b2b-check-list {
    list-style: none;
}

.b2b-check-list li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.b2b-form {
    background: var(--pure-white);
    color: var(--dark-slate);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

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

.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.clean-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.price-calc-box {
    background: var(--cream-bg);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.calc-total {
    font-size: 1.4rem;
    color: var(--primary-red);
}

.btn-block { width: 100%; }

/* Outlets */
.outlets-section {
    padding: 4rem 0;
}

.outlets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.store-card {
    background: var(--pure-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.store-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.store-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

/* Footer */
.footer {
    background: #020617;
    color: #94A3B8;
    padding: 2.5rem 0;
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand .logo-name {
    font-size: 1.5rem;
    color: var(--gold-amber);
}

/* Mobile Sticky Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    z-index: 2000;
    justify-content: space-around;
    align-items: center;
}

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

.bottom-nav-item i {
    font-size: 1.1rem;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--primary-red);
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: var(--pure-white);
    z-index: 3001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-notice {
    background: var(--gold-light);
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-amber-dark);
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.2rem;
}

.cart-footer {
    padding: 1.2rem;
    border-top: 1px solid var(--border-light);
    background: var(--cream-bg);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Modals & Toasts */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;
    max-width: 500px;
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    z-index: 4001;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-card.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
}

.toast {
    background: var(--dark-slate);
    color: var(--pure-white);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .purity-grid { grid-template-columns: 1fr; gap: 1rem; }
    .clean-product-grid { grid-template-columns: repeat(2, 1fr); }
    .b2b-card { grid-template-columns: 1fr; }
    .outlets-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu, .desktop-only { display: none; }
    .mobile-bottom-nav { display: flex; }
    .hero-heading { font-size: 2.2rem; }
    .clean-product-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}
