/* 
  Mondol Traders - Premium Nature-Inspired Design System
  Color Palette:
  - Primary: #10b981 (Emerald Green)
  - Secondary: #064e3b (Forest Dark)
  - Accent: #f59e0b (Honey Gold)
  - Background: #fdfbf7 (Soft Cream)
  - Text: #1f2937 (Coal)
*/

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #064e3b;
    --accent: #f59e0b;
    --bg-cream: #fdfbf7;
    --text-main: #1f2937;
    --glass-white: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Premium Header */
.premium-nav {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: var(--shadow-soft);
}

.logo-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary);
    text-decoration: none;
}

.logo-brand i {
    color: var(--primary);
    margin-right: 8px;
}

/* Hero Section */
.hero-premium {
    padding: 100px 0;
    background: linear-gradient(135deg, #ecfdf5 0%, #fdfbf7 100%);
    position: relative;
    overflow: hidden;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40%;
    height: 120%;
    background: url('https://images.unsplash.com/photo-1592150621344-22d559539bf2?auto=format&fit=crop&q=80') center/cover;
    opacity: 0.1;
    border-radius: 50%;
    transform: rotate(-15deg);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--secondary);
}

/* Product Cards */
.agri-card {
    background: #fff;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.agri-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.agri-card .badge {
    background: var(--primary);
    border-radius: 8px;
    padding: 6px 12px;
}

.agri-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.agri-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Custom Buttons */
.btn-premium {
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.btn-premium:hover {
    background: var(--secondary);
    color: #fff;
    transform: scale(1.05);
}

/* ================================================
   PRODUCT CARD — Hazera Style (Active Design)
   ================================================ */

/* ── PRODUCT CARDS ── */
.product-card {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #e0eadb;
    overflow: hidden;
    transition: all .28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(16, 122, 34, .07);
}

.product-card:hover {
    box-shadow: 0 14px 36px rgba(16, 122, 34, .16);
    transform: translateY(-5px);
    border-color: #4caf50;
}

/* Image Wrapper — 1:1 square ratio */
.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.07);
}

@keyframes customBounce {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.badge-bounce {
    animation: customBounce 0.3s ease !important;
}

/* Badges */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-sale {
    background: #e53935;
    color: #fff;
    border-radius: 20px;
    padding: .18rem .75rem;
    font-size: .78rem;
    font-weight: 700;
    display: inline-block;
}

.badge-new {
    background: #68a030;
    color: #fff;
    border-radius: 20px;
    padding: .18rem .75rem;
    font-size: .78rem;
    font-weight: 700;
    display: inline-block;
}

/* Quick-view Action Button */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all .25s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .95);
    color: #68a030;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    transition: all .2s ease;
    text-decoration: none;
    font-size: .9rem;
}

.product-action-btn:hover {
    background: #68a030;
    color: #fff;
    transform: scale(1.1);
}

/* Card Body */
.product-body {
    padding: 1rem 1.1rem 1.1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: .72rem;
    color: #68a030;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: .2rem;
}

.product-name {
    font-weight: 700;
    font-size: 1rem;
    margin: .2rem 0 .3rem;
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-name:hover {
    color: #68a030;
}

.product-stars {
    color: #f0a500;
    font-size: .82rem;
    margin-bottom: .4rem;
    letter-spacing: 1px;
}

/* Price */
.product-price {
    display: flex;
    align-items: baseline;
    gap: .4rem;
}

.price-main {
    font-size: 1.2rem;
    font-weight: 800;
    color: #68a030;
}

.price-old {
    font-size: .82rem;
    color: #999;
    text-decoration: line-through;
}

/* Price + Qty row */
.price-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
    margin-bottom: .75rem;
    padding-top: .5rem;
    border-top: 1px solid #f0f0f0;
    flex-wrap: nowrap !important;
    width: 100%;
}

/* Qty Control */
.qty-control-wrapper {
    display: flex;
    align-items: center;
    background: #f4f8f2;
    border: 1.5px solid #d0e2c8;
    border-radius: 50px;
    padding: 2px;
    gap: 2px;
    width: max-content;
    flex-shrink: 0;
}

/* Hide qty controls on mobile – not needed on small screens */
@media (max-width: 767.98px) {
    .qty-control-wrapper {
        display: none !important;
    }

    .price-qty-row {
        justify-content: flex-start;
    }
}

.btn-qty-sm {
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid #d0e2c8;
    color: #666;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all .2s ease;
    flex-shrink: 0;
}

.btn-qty-sm:hover {
    background: #f4f8f2;
    color: #222;
    border-color: #68a030;
}

.qty-input-sm {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    border: none;
    background: transparent;
    text-align: center;
    font-size: .9rem;
    font-weight: 700;
    color: #1b5e20;
    padding: 0;
    box-shadow: none !important;
}

.qty-input-sm:focus {
    outline: none;
}

/* Add to Cart Button */
.btn-cart {
    background: #71a129;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .6rem 1rem;
    font-size: .88rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: all .22s ease;
    margin-top: 0;
}

.btn-cart:hover {
    background: #5c8520;
    box-shadow: 0 5px 18px rgba(113, 161, 41, .35);
    transform: translateY(-2px);
}

.btn-cart:active {
    transform: translateY(0);
}

.btn-cart:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ================================================
   FILTER SIDEBAR — Reference Design
   ================================================ */

.filter-card {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #e0ead8;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(45, 122, 34, .07);
}

.filter-header {
    background: #2d7a22;
    color: #fff;
    padding: .85rem 1.2rem;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .3px;
}

.filter-section {
    padding: 1rem 1.2rem;
}

.filter-section-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: .6rem;
}

/* Category List */
.filter-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-cat-list li {
    margin-bottom: 2px;
}

.filter-cat-link {
    display: flex;
    align-items: center;
    padding: .45rem .75rem;
    border-radius: 8px;
    color: #444;
    text-decoration: none;
    font-size: .88rem;
    transition: all .2s ease;
}

.filter-cat-link:hover {
    background: #f0f7ee;
    color: #2d7a22;
}

.filter-cat-link.active {
    background: #e6f4e2;
    color: #2d7a22;
    font-weight: 600;
}

/* Price Inputs */
.filter-price-input {
    width: 100%;
    border: 1.5px solid #d8e8d0;
    border-radius: 8px;
    padding: .45rem .6rem;
    font-size: .85rem;
    color: #333;
    outline: none;
    transition: border-color .2s;
    background: #fafff9;
}

.filter-price-input:focus {
    border-color: #2d7a22;
    box-shadow: 0 0 0 3px rgba(45, 122, 34, .1);
}

/* Apply Button */
.filter-apply-btn {
    width: 100%;
    background: #2d7a22;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .6rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.filter-apply-btn:hover {
    background: #1b5e20;
    box-shadow: 0 4px 14px rgba(45, 122, 34, .3);
    transform: translateY(-1px);
}

/* Sort List */
.filter-sort-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-sort-list li {
    margin-bottom: 2px;
}

.filter-sort-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .75rem;
    border-radius: 8px;
    font-size: .88rem;
    color: #444;
    cursor: pointer;
    transition: all .2s ease;
    width: 100%;
}

.filter-sort-item input[type="radio"] {
    display: none;
}

.sort-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    transition: all .2s;
}

.filter-sort-item:hover {
    background: #f0f7ee;
    color: #2d7a22;
}

.filter-sort-item:hover .sort-dot {
    border-color: #2d7a22;
}

.filter-sort-item.active {
    background: #e6f4e2;
    color: #2d7a22;
    font-weight: 600;
}

.filter-sort-item.active .sort-dot {
    background: #2d7a22;
    border-color: #2d7a22;
}

/* Flex equal columns helper */
.flex-1 {
    flex: 1;
}