/*
 * ChaskaMart - Premium Dry Fruits Visual Identity
 * Palette: Warm Cream, Roasted Coffee, Fresh Pistachio Green & Warm Gold
 */

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

:root {
    --cm-bg: #FDFBF7;
    --cm-bg-soft: #F7F3EB;
    --cm-surface: #FFFFFF;
    --cm-coffee-dark: #231811;
    --cm-coffee: #2B1E16;
    --cm-coffee-light: #523E30;
    --cm-muted: #7D6B5D;
    --cm-green: #2D5A27;
    --cm-green-light: #407A38;
    --cm-green-bg: #EFF6EE;
    --cm-gold: #D49B42;
    --cm-gold-dark: #B2762A;
    --cm-gold-light: #F7E7CE;
    --cm-border: #EADBCC;
    --cm-border-light: #F2E9DE;
    
    /* Amazon Buy Button Styling */
    --amz-yellow: #FFD814;
    --amz-yellow-hover: #F7CA00;
    --amz-border: #FCD200;
    --amz-dark: #0F1111;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-brand: 'Cinzel', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(43, 30, 22, 0.04);
    --shadow-md: 0 8px 24px rgba(43, 30, 22, 0.06);
    --shadow-lg: 0 16px 40px rgba(43, 30, 22, 0.10);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 999px;
}

body {
    background-color: var(--cm-bg);
    color: var(--cm-coffee);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    color: var(--cm-coffee-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--cm-green);
    text-decoration: none;
    transition: all 0.25s ease;
}
a:hover {
    color: var(--cm-green-light);
}

/* ==========================================================================
   Top Alert / Notification Bar
   ========================================================================== */
.top-notice-bar {
    background-color: var(--cm-coffee-dark);
    color: var(--cm-gold-light);
    font-size: 12.5px;
    letter-spacing: 0.5px;
    padding: 7px 0;
}
.top-notice-bar a {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.cm-navbar {
    background: rgba(253, 251, 247, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cm-border-light);
    transition: all 0.3s ease;
    padding: 14px 0;
}
.cm-navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}
.navbar-brand img {
    height: 48px;
    width: auto;
}
.cm-nav-link {
    color: var(--cm-coffee) !important;
    font-weight: 600;
    font-size: 14.5px;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.cm-nav-link:hover, .cm-nav-link.active {
    color: var(--cm-green) !important;
    background-color: var(--cm-green-bg);
}

/* Header Search Form */
.header-search-box {
    position: relative;
    max-width: 280px;
}
.header-search-box .form-control {
    background-color: #FFFFFF;
    border: 1px solid var(--cm-border);
    border-radius: var(--radius-full);
    padding: 7px 38px 7px 16px;
    font-size: 13.5px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.header-search-box .form-control:focus {
    border-color: var(--cm-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.15);
    background-color: #FFFFFF;
}
.header-search-box .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cm-muted);
    padding: 6px 10px;
    cursor: pointer;
}
.header-search-box .search-btn:hover {
    color: var(--cm-green);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-cm-primary {
    background-color: var(--cm-green);
    color: #FFFFFF;
    font-weight: 600;
    padding: 11px 26px;
    border-radius: var(--radius-full);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(45, 90, 39, 0.2);
}
.btn-cm-primary:hover {
    background-color: var(--cm-green-light);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.28);
}

.btn-cm-outline {
    background-color: transparent;
    color: var(--cm-coffee);
    border: 1.5px solid var(--cm-coffee);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}
.btn-cm-outline:hover {
    background-color: var(--cm-coffee);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Amazon "Buy on Amazon" Button */
.btn-amazon {
    background: linear-gradient(180deg, #FFD814 0%, #F7CA00 100%);
    color: var(--amz-dark) !important;
    border: 1px solid #FCD200;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-full);
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(213, 162, 0, 0.35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
}
.btn-amazon:hover {
    background: linear-gradient(180deg, #F7CA00 0%, #EAB500 100%);
    border-color: #E0B000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(213, 162, 0, 0.45);
    color: #000000 !important;
}
.btn-amazon-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

/* Badges */
.badge-discount {
    background-color: #C2410C;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 11.5px;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
}
.badge-featured {
    background-color: var(--cm-gold);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 11.5px;
    padding: 4px 9px;
    border-radius: var(--radius-full);
}
.badge-bestseller {
    background-color: var(--cm-green);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 11.5px;
    padding: 4px 9px;
    border-radius: var(--radius-full);
}
.badge-category {
    background-color: var(--cm-bg-soft);
    color: var(--cm-coffee-light);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--cm-border-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: radial-gradient(circle at 85% 30%, rgba(212, 155, 66, 0.12) 0%, rgba(253, 251, 247, 0) 65%),
                linear-gradient(180deg, #FAF4EB 0%, #FDFBF7 100%);
    padding: 60px 0 80px 0;
    border-bottom: 1px solid var(--cm-border-light);
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FFFFFF;
    border: 1px solid var(--cm-border);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--cm-coffee-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-text {
    font-size: 1.15rem;
    color: var(--cm-muted);
    max-width: 540px;
    margin-bottom: 32px;
}
.hero-image-wrapper {
    position: relative;
}
.hero-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid #FFFFFF;
    transition: transform 0.4s ease;
}
.hero-image-wrapper:hover img {
    transform: scale(1.02);
}
.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #FFFFFF;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--cm-border-light);
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.product-card {
    background-color: var(--cm-surface);
    border: 1px solid var(--cm-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--cm-border);
}
.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.product-image-box {
    background-color: #FAF6F0;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-box img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}
.product-card:hover .product-image-box img {
    transform: scale(1.06);
}
.product-card-body {
    padding: 18px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.product-card-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}
.product-card-title a {
    color: var(--cm-coffee-dark);
}
.product-card-title a:hover {
    color: var(--cm-green);
}
.product-pack-size {
    font-size: 13px;
    color: var(--cm-muted);
    margin-bottom: 12px;
}
.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    margin-bottom: 14px;
}
.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--cm-coffee-dark);
}
.price-mrp {
    font-size: 14px;
    color: #9CA3AF;
    text-decoration: line-through;
}

/* ==========================================================================
   Category Cards
   ========================================================================== */
.category-card {
    background-color: var(--cm-surface);
    border: 1px solid var(--cm-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    padding: 24px 18px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--cm-gold);
}
.category-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--cm-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    padding: 10px;
    border: 2px solid #FFFFFF;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}
.category-card:hover .category-icon-wrapper {
    transform: scale(1.08);
}
.category-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--cm-coffee-dark);
}
.category-card-desc {
    font-size: 13px;
    color: var(--cm-muted);
    line-height: 1.45;
    margin-bottom: 14px;
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */
.blog-card {
    background-color: var(--cm-surface);
    border: 1px solid var(--cm-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.blog-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--cm-bg-soft);
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.04);
}
.blog-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--cm-muted);
    margin-bottom: 10px;
}
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}
.blog-card-title a {
    color: var(--cm-coffee-dark);
}
.blog-card-title a:hover {
    color: var(--cm-green);
}
.blog-excerpt {
    font-size: 13.5px;
    color: var(--cm-muted);
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* ==========================================================================
   Feature / Icon Box (Why Choose)
   ========================================================================== */
.feature-box {
    background: #FFFFFF;
    border: 1px solid var(--cm-border-light);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}
.feature-box:hover {
    border-color: var(--cm-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.feature-icon-circle {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    background-color: var(--cm-green-bg);
    color: var(--cm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card {
    background: #FFFFFF;
    border: 1px solid var(--cm-border-light);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.testimonial-stars {
    color: #F59E0B;
    margin-bottom: 14px;
}
.testimonial-review {
    font-style: italic;
    color: var(--cm-coffee-light);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cm-gold-light);
}

/* ==========================================================================
   Promotional Banner
   ========================================================================== */
.promo-banner {
    background: linear-gradient(135deg, #2B1E16 0%, #17110C 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}
.promo-banner h2 {
    color: #FFFFFF;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 14px;
}
.promo-banner p {
    color: #E2D9D2;
    font-size: 1.05rem;
    max-width: 580px;
    margin-bottom: 24px;
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */
.product-gallery-main {
    background-color: #FAF5EE;
    border: 1px solid var(--cm-border-light);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    margin-bottom: 16px;
}
.product-gallery-main img {
    max-height: 380px;
    width: auto;
    object-fit: contain;
}
.product-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.gallery-thumb-btn {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--cm-border);
    padding: 4px;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gallery-thumb-btn.active, .gallery-thumb-btn:hover {
    border-color: var(--cm-green);
    transform: scale(1.05);
}
.gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.affiliate-notice-pill {
    background-color: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    color: #92400E;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Blog Rich Content
   ========================================================================== */
.blog-content-body {
    font-size: 16.5px;
    line-height: 1.8;
    color: #382A20;
}
.blog-content-body h2 {
    font-size: 1.75rem;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--cm-coffee-dark);
}
.blog-content-body h3 {
    font-size: 1.35rem;
    margin-top: 26px;
    margin-bottom: 12px;
    color: var(--cm-coffee-dark);
}
.blog-content-body p {
    margin-bottom: 18px;
}
.blog-content-body ul, .blog-content-body ol {
    margin-bottom: 22px;
    padding-left: 24px;
}
.blog-content-body li {
    margin-bottom: 8px;
}
.blog-content-body table {
    margin: 24px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.cm-footer {
    background-color: var(--cm-coffee-dark);
    color: #CFC2B6;
    padding: 70px 0 30px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(212, 155, 66, 0.2);
}
.cm-footer h5 {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.cm-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--cm-gold);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #CFC2B6;
    font-size: 14px;
}
.footer-links a:hover {
    color: var(--cm-gold);
    padding-left: 5px;
}
.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: all 0.2s ease;
}
.footer-social-btn:hover {
    background: var(--cm-gold);
    color: #FFFFFF;
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    margin-top: 50px;
    font-size: 13px;
    color: #A39386;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991.98px) {
    .cm-navbar .navbar-collapse {
        background-color: #FFFFFF;
        padding: 20px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        margin-top: 12px;
        border: 1px solid var(--cm-border-light);
    }
    .header-search-box {
        max-width: 100%;
        margin-top: 14px;
    }
}

@media (max-width: 575.98px) {
    .product-price-box {
        flex-direction: column;
        gap: 2px;
    }
    .promo-banner {
        padding: 30px 20px;
    }
    .hero-section {
        padding: 40px 0 60px 0;
    }
}
