/* 
 * Seasonal Fruit (মৌসুমি ফল) - Custom Styles
 * Crafted by CodingBurg (codingburg.com)
 */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --font-bn: 'Hind Siliguri', sans-serif;
    --font-en: 'Plus Jakarta Sans', sans-serif;

    --mango-yellow: #f59e0b;
    --mango-orange: #ea580c;
    --orchard-green: #15803d;
    --orchard-green-dark: #14532d;
    
    --bg-page: #fbf9f5;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
}

* {
    box-sizing: border-box;
}

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

.font-en {
    font-family: var(--font-en);
}

/* Gradient Texts */
.text-mango-gradient {
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-orchard-gradient {
    background: linear-gradient(135deg, #14532d 0%, #16a34a 50%, #15803d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fruit Cards */
.fruit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(22, 101, 52, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fruit-card:hover {
    border-color: #86efac;
    box-shadow: 0 12px 28px -4px rgba(22, 101, 52, 0.14);
    transform: translateY(-2px);
}

.fruit-card-highlight {
    background: #ffffff;
    border: 2px solid #ea580c;
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.15);
}

/* Quantity Counter Component */
.qty-controller {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 9999px;
    padding: 3px;
    transition: all 0.2s ease;
}

.qty-controller:focus-within {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.btn-qty {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1e293b;
    font-weight: 800;
    font-size: 18px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-qty:hover {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
    transform: scale(1.08);
}

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

.qty-input {
    width: 60px;
    text-align: center;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 18px;
    color: #0f172a;
    background: transparent;
    border: none;
    outline: none;
}

/* Preset Quick Click Chips */
.qty-preset-btn {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-preset-btn:hover {
    border-color: #ea580c;
    color: #ea580c;
    background: #fff7ed;
}

.qty-preset-btn.active {
    border-color: #ea580c;
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

/* Shimmer CTA Button */
.btn-fruit-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.btn-fruit-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: all 0.65s;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    40%, 100% { left: 160%; }
}

.btn-fruit-cta:hover {
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.6);
    transform: translateY(-2px);
}

/* Pulse animation */
@keyframes pulseOrange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(234, 88, 12, 0);
    }
}

.animate-pulse-orange {
    animation: pulseOrange 2.5s infinite;
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(22, 163, 74, 0);
    }
}

.animate-pulse-green {
    animation: pulseGreen 2.5s infinite;
}

/* Radio Card Selection */
.variety-card input[type="radio"]:checked + .variety-content {
    border-color: #ea580c;
    background: #fff7ed;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.18);
}

.variety-card input[type="radio"]:checked + .variety-content .radio-indicator {
    border-color: #ea580c;
    background-color: #ea580c;
}

/* Accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    opacity: 1;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Live Notification Toast */
#live-sale-toast {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 40;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#live-sale-toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 640px) {
    #live-sale-toast {
        left: 12px;
        right: 12px;
        bottom: 84px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}
