/* Modern Style Utility - Processed by Tailwind CDN in headers */

:root {
    --snapget-green: #0C831F;
    --snapget-yellow: #F8CB00;
    --snapget-bg: #F8F9FB;
    --snapget-text: #1F1F1F;
    --snapget-muted: #666666;
    --container-max-width: 1280px;
    --container-padding: 1.5rem;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

body {
    overflow-x: hidden;
}

body {
    background-color: var(--snapget-bg);
    color: var(--snapget-text);
    font-family: 'Inter', sans-serif;
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.zepto-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zepto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.add-btn-animate {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-btn-animate:active {
    transform: scale(0.95);
}

/* Custom Swiper Styles */
.hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--snapget-yellow);
    opacity: 1;
}

@keyframes cart-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cart-animate {
    animation: cart-bounce 0.4s ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.mesh-gradient {
    background-color: #00b13d;
    background-image: 
        radial-gradient(at 0% 0%, hsla(143,100%,45%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(160,100%,35%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(180,100%,30%,1) 0, transparent 50%), 
        radial-gradient(at 0% 100%, hsla(143,100%,40%,1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, hsla(45,100%,50%,1) 0, transparent 30%);
}

@keyframes float-large {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

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

@keyframes pulse-soft {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.animate-pulse-soft {
    animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes cart-pop {
    0% { transform: translateY(100%) scale(0.95); opacity: 0; }
    60% { transform: translateY(-10px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.animate-cart-pop {
    animation: cart-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.animate-bounce-subtle {
    animation: bounce-subtle 0.5s ease-in-out;
}

/* SKELETON LOADING */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/* RIPPLE EFFECT */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* GLOBAL REVEAL ANIMATION */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* PREMIUM COLORS & GRADIENTS */
.bg-mesh-green {
    background: radial-gradient(at 0% 0%, #0C831F 0px, transparent 50%),
                radial-gradient(at 100% 0%, #059669 0px, transparent 50%),
                radial-gradient(at 100% 100%, #10b981 0px, transparent 50%),
                radial-gradient(at 0% 100%, #065f46 0px, transparent 50%);
    background-color: #0C831F;
}

.bg-mesh-surface {
    background: radial-gradient(at 0% 0%, rgba(12, 131, 31, 0.05) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(248, 203, 0, 0.05) 0px, transparent 50%);
}

/* GLASSMORPHISM */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-shadow {
    box-shadow: 0 8px 32px 0 rgba(12, 131, 31, 0.1);
}

/* BRAND MARQUEE */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-container:hover .animate-marquee {
    animation-play-state: paused;
}

/* HIGH-DENSITY CARD REVISIONS */
.product-card-density {
    transition: all 0.5s ease;
}
.product-card-density:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

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

.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}
/* GLOBAL LAYOUT REFINEMENTS */
.snap-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Responsive Grid Utilities */
.responsive-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .responsive-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .responsive-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .responsive-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

.snap-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    font-size: 1.875rem; 
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #64748b;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
@media (min-width: 768px) {
    .section-title { font-size: 3rem; }
}

@media (max-width: 640px) {
    .snap-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* ================= HEADER ENHANCEMENTS ================= */
.header-glass {
    @apply sticky top-0 z-50 transition-all duration-500 border-b border-slate-100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
}

.header-glass.scrolled {
    @apply shadow-[0_8px_30px_rgb(0,0,0,0.04)];
    background: rgba(255, 255, 255, 0.95);
}

.search-container-focus {
    @apply ring-4 ring-snapGreen/5 border-snapGreen/20 bg-white !important;
}

/* Floating Badges */
.cart-badge-float {
    @apply absolute -top-1.5 -right-1.5 min-w-[20px] h-[20px] px-1 bg-snapYellow text-slate-900 text-[10px] font-black rounded-full flex items-center justify-center border-2 border-snapGreen shadow-lg scale-0;
    animation: badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes badge-pop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Dropdown Animations */
.dropdown-enter {
    animation: dropdown-fade-in 0.2s ease-out;
}

@keyframes dropdown-fade-in {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Offers Highlight */
.offers-pulse {
    position: relative;
}

.offers-pulse::after {
    content: '';
    @apply absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full border border-white;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.delivery-badge {
    @apply bg-snapGreen text-white px-2 py-0.5 rounded-md font-black text-[9px] tracking-tighter ml-2;
}

