@import url('https://fonts.googleapis.com/css2?family=Galada&family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Sans+Bengali:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-terracotta: #C82333;
    --primary-terracotta-hover: #A71D2A;
    --primary-marigold: #FFB800;
    --primary-marigold-light: #FFC93C;
    --bg-cream: #FDFBF7;
    --bg-sand: #F7F3EB;
    --text-slate: #1E1E1C;
    --text-muted: #5C5C56;
    --font-heading: 'Galada', 'Hind Siliguri', cursive, sans-serif;
    --font-body: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-cream);
    color: var(--text-slate);
    font-family: var(--font-body);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Authentic Bengali Alpona & Background Ornaments */
.alpona-bg {
    background-image: 
        radial-gradient(var(--bg-sand) 1px, transparent 1px),
        radial-gradient(var(--bg-sand) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

.alpona-divider {
    position: relative;
    height: 16px;
    background-image: radial-gradient(circle, var(--primary-terracotta) 2px, transparent 3px);
    background-size: 16px 16px;
    opacity: 0.15;
}

/* Glassmorphism Premium Cards */
.glass-card {
    background: rgba(253, 251, 247, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 35, 51, 0.06);
    box-shadow: 0 10px 30px rgba(30, 30, 28, 0.02);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(200, 35, 51, 0.06);
    border-color: rgba(200, 35, 51, 0.15);
}

/* Headings Styles */
.font-heading {
    font-family: var(--font-heading);
}

/* Traditional Bengali Borders */
.border-traditional {
    border-style: solid;
    border-width: 4px;
    border-image: repeating-linear-gradient(45deg, var(--primary-terracotta), var(--primary-terracotta) 10px, var(--primary-marigold) 10px, var(--primary-marigold) 20px) 10;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 35, 51, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-terracotta);
}

/* Sticky Navbar Transitions */
.nav-scrolled {
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(200, 35, 51, 0.08);
}

/* Slide-out Cart Drawer */
.cart-drawer {
    transform: translateX(100%);
    transition: var(--transition-smooth);
    z-index: 100;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* High-performance Keyframe Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes float-delayed {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 35, 51, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(200, 35, 51, 0); }
}

@keyframes marigold-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 184, 0, 0); }
}

@keyframes scale-in {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

.animate-marigold-pulse {
    animation: marigold-pulse 2s infinite;
}

.animate-scale-in {
    animation: scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card variant custom radio styling */
.variant-btn input:checked + span {
    background-color: var(--primary-terracotta);
    color: white;
    border-color: var(--primary-terracotta);
}

/* Badge savings tag design */
.badge-savings {
    background: linear-gradient(135deg, #FFB800, #FF8A00);
    color: #1E1E1C;
    font-weight: 700;
}

.badge-special {
    background: linear-gradient(135deg, #C82333, #FF4D4D);
    color: white;
    font-weight: 700;
}

/* Beautiful custom tab button transitions */
.tab-btn {
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.tab-btn.active {
    color: var(--primary-terracotta);
    border-bottom-color: var(--primary-terracotta);
}

/* Custom styles for Hero Text styling */
.hero-gradient {
    background: linear-gradient(rgba(253, 251, 247, 0.6), rgba(253, 251, 247, 0.95));
}

.hero-overlay-dark {
    background: linear-gradient(rgba(30, 30, 28, 0.05), rgba(30, 30, 28, 0.4));
}
