/* ============================================================
   North Jute - Complete Redesign
   Modern, Dynamic, Premium UI
   ============================================================ */

/* Base */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes gradientFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== PRODUCT CARD MODERN ===== */
.product-card { 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    position: relative;
    overflow: hidden;
}
.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); 
}
.product-card .product-image { 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
}
.product-card:hover .product-image { 
    transform: scale(1.12); 
}
.product-card .overlay { 
    opacity: 0; 
    transition: all 0.35s ease;
    backdrop-filter: blur(2px);
}
.product-card:hover .overlay { 
    opacity: 1; 
}
.product-card .overlay button,
.product-card .overlay a {
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}
.product-card:hover .overlay button,
.product-card:hover .overlay a {
    transform: translateY(0);
    opacity: 1;
}
.product-card:hover .overlay a:nth-child(2) {
    transition-delay: 0.05s;
}

/* Badge styles */
.badge-new, .badge-sale {
    animation: pulse 2s infinite;
}

/* ===== HERO SLIDER MODERN ===== */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide { transition: opacity 0.8s ease, transform 0.8s ease; }
.hero-slider .hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== CATEGORY CARDS MODERN ===== */
.category-card-modern {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.category-card-modern:hover {
    transform: translateY(-6px) scale(1.02);
}
.category-card-modern .icon-wrap {
    transition: all 0.4s ease;
}
.category-card-modern:hover .icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

/* ===== GLASSMORPHISM ===== */
.glass { 
    background: rgba(255,255,255,0.12); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255,255,255,0.2); 
}
.glass-dark { 
    background: rgba(15,23,42,0.75); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
}

/* ===== MODERN BUTTONS ===== */
.btn-primary { 
    background: linear-gradient(135deg, #16a34a, #14532d);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 30px -5px rgba(22,163,74,0.4); 
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

.btn-gradient { 
    background: linear-gradient(135deg, #16a34a, #14532d); 
    transition: all 0.3s ease; 
}
.btn-gradient:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 25px rgba(22,163,74,0.4); 
}

/* ===== NAVIGATION MODERN ===== */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #16a34a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* ===== SEARCH BAR MODERN ===== */
.search-bar {
    transition: all 0.3s ease;
}
.search-bar:focus-within {
    box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
    border-color: #16a34a;
}

/* ===== SECTIONS ===== */
.section-modern {
    position: relative;
    overflow: hidden;
}
.section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #22c55e, #14532d);
}

/* ===== CARD MODERN ===== */
.card-modern {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(196,162,114,0.2);
}
.card-modern:hover {
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15);
    border-color: rgba(196,162,114,0.4);
    transform: translateY(-2px);
}

/* ===== CATEGORY CAROUSEL ===== */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.category-carousel { scroll-behavior: smooth; }
.category-carousel .cat-item { transition: all 0.3s ease; }
.category-carousel .cat-item:hover { transform: translateY(-4px); }

/* ===== TESTIMONIAL MODERN ===== */
.testimonial-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(196,162,114,0.15);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: rgba(196,162,114,0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===== FORM INPUTS ===== */
.form-input { 
    width: 100%; 
    padding: 14px 18px; 
    background: #faf5eb;
    border: 2px solid #edd7b8;
    border-radius: 14px; 
    outline: none; 
    transition: all 0.3s; 
    font-size: 0.95rem;
}
.form-input:focus { 
    border-color: #16a34a; 
    box-shadow: 0 0 0 4px rgba(22,163,74,0.1);
    background: white;
}

/* ===== DECORATIVE ELEMENTS ===== */
.dot-pattern {
    background-image: radial-gradient(rgba(196,162,114,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}
.jute-texture {
    background: linear-gradient(135deg, #f5e6d3, #edd7b8);
    background-size: 100% 100%;
}

/* ===== STATS COUNTER ===== */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #16a34a, #14532d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 640px) {
    .hero-slider h1 { font-size: 1.5rem !important; }
    .stat-number { font-size: 1.8rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 400px) { 
    .product-grid { grid-template-columns: 1fr; } 
}

/* ===== SKELETON LOADING ===== */
.skeleton { 
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); 
    background-size: 200% 100%; 
    animation: shimmer 1.5s infinite; 
    border-radius: 12px; 
}

/* ===== TOAST ===== */
.toast { 
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeIn 0.3s ease; 
    padding: 16px 24px; 
    border-radius: 16px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); 
    max-width: 420px; 
    backdrop-filter: blur(10px);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5e6d3; }
::-webkit-scrollbar-thumb { background: #16a34a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #14532d; }

/* ===== PRICE DISPLAY ===== */
.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc2626;
}
.price-old {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 8px 16px;
    text-align: center;
    min-width: 60px;
}
.countdown-item .num {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}
.countdown-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}