/* 
  Pure Choice - 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: #0d5257; /* Signature Dark Teal from Logo */
    --primary-dark: #083c3f;
    --secondary: #1e293b;
    --accent: #98c93c; /* Brand Green from Logo Checkmark */
    --accent-glow: rgba(152, 201, 60, 0.2);
    --bg-cream: #fcfaf7;
    --text-main: #1e293b;
    --glass-white: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');

body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Global Font Priority for Bengali */
h1, h2, h3, h4, h5, h6, .hero-title, .section-title {
    font-family: 'DM Serif Display', 'Hind Siliguri', serif !important;
}

p, span, a, button, input, div, body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
}

/* Force Brand Colors over Bootstrap Defaults */
.text-primary { color: var(--primary) !important; }
.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.bg-success { background-color: var(--primary) !important; }
.btn-success { background-color: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.text-success { color: var(--accent) !important; }
.bg-success-subtle { background-color: rgba(152, 201, 60, 0.1) !important; }
.text-success-emphasis { color: #5a8e0f !important; }

/* 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: 'DM Serif Display', serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--primary);
}

/* 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: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 77, 64, 0.03);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 82, 87, 0.12);
    border-color: var(--primary);
}

/* 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: var(--primary);
    color: #fff;
    border-radius: 20px;
    padding: .18rem .75rem;
    font-size: .78rem;
    font-weight: 700;
    display: inline-block;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    display: flex;
    flex-direction: row;
    gap: 12px;
    opacity: 0;
    z-index: 3;
    transition: var(--transition);
}

.product-action-btn {
    width: 44px;
    height: 44px;
    background: #fff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    font-size: 1.1rem;
}

.product-action-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px) scale(1.1);
}

.product-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 77, 64, 0.1);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-img-wrap::after {
    opacity: 1;
}

.product-action-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px) 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: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    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: var(--primary);
}

.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.25rem;
    font-weight: 800;
    color: var(--primary);
}

.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: #f8fafc;
    border: 1.5px solid rgba(13, 82, 87, 0.1);
    border-radius: 50px;
    padding: 2px;
    gap: 2px;
    width: max-content;
    flex-shrink: 0;
}

/* Hide qty controls on mobile for product cards – not needed on small screens in grid view */
@media (max-width: 767.98px) {
    .product-card .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: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

.qty-input-sm {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    border: none;
    background: transparent;
    text-align: center;
    font-size: .95rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0;
    box-shadow: none !important;
}

.qty-input-sm:focus {
    outline: none;
}

/* Add to Cart Button */
.btn-cart {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .65rem 1.25rem;
    font-size: .95rem;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(152, 201, 60, 0.2);
}

.btn-cart:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 82, 87, 0.2);
}

.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 rgba(13, 82, 87, 0.15);
    border-radius: 12px;
    padding: .45rem .6rem;
    font-size: .85rem;
    color: var(--text-main);
    outline: none;
    transition: all .2s;
    background: #fff;
}

.filter-price-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 82, 87, 0.1);
}

/* Apply Button */
.filter-apply-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .6rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.filter-apply-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(13, 82, 87, 0.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: rgba(13, 82, 87, 0.05);
    color: var(--primary);
}

.filter-sort-item:hover .sort-dot {
    border-color: var(--primary);
}

.filter-sort-item.active {
    background: rgba(13, 82, 87, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.filter-sort-item.active .sort-dot {
    background: var(--primary);
    border-color: var(--primary);
}

/* Flex equal columns helper */
.flex-1 {
    flex: 1;
}

/* ── MOBILE CART CARDS ── */
@media (max-width: 991.98px) {
    .hide-on-mobile {
        display: none !important;
    }

    .cart-item-card {
        background: #fff;
        border: 1.5px solid #e0eadb;
        border-radius: 16px;
        padding: 1rem;
        margin-bottom: 1rem;
        transition: var(--transition);
    }

    .cart-item-card:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-soft);
    }

    .cart-item-img {
        width: 70px;
        height: 70px;
        border-radius: 12px;
        object-fit: cover;
    }
}

/* ── TYPOGRAPHY POLISH ── */
.hero-title {
    text-shadow: 0 4px 12px rgba(0, 77, 64, 0.08);
    letter-spacing: -0.01em;
}

[lang="bn"], .bn-font {
    font-family: 'Hind Siliguri', sans-serif;
    line-height: 1.6;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 2.25rem;
    color: var(--primary);
}

/* ── PRODUCT DETAIL V2 ── */
.mobile-sticky-atc {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    gap: 12px;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.trust-badge-item {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
    padding: 1rem;
    height: 100%;
}

.trust-badge-item:hover {
    border-color: var(--primary);
    background: #f8fafc;
    transform: translateY(-3px);
}

.trust-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.trust-text {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

/* ── FOOTER PREMIUM ── */
.footer-premium {
    background: var(--primary) !important;
    color: rgba(255, 255, 255, 0.82);
}

.footer-premium .logo-brand span {
    color: #fff !important;
}

.footer-premium h6 {
    color: var(--accent) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

.footer-premium .text-secondary {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: var(--transition);
}

.footer-premium .text-secondary:hover {
    color: var(--accent) !important;
    padding-left: 5px;
}

.footer-premium .social-links a {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-premium .social-links a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.footer-premium .contact-card-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.footer-premium .contact-card-premium span, 
.footer-premium .contact-card-premium i {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-premium .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Gallery Highlight */
.active-thumb {
    border-color: var(--primary) !important;
    border-width: 2px !important;
    transform: scale(1.05);
}