/*
Theme Name: Shree Natural Jaggery
Theme URI: https://shreejaggery.com
Author: Shree Agro Food Industries
Author URI: https://shreejaggery.com
Description: Premium brown and cream WordPress theme for Shree Natural Jaggery. Converted from the Brown Theme prototype. WooCommerce ready with Razorpay support.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: shree-jaggery-brown
Tags: woocommerce, food, jaggery, brown, cream, Karnataka
*/

/* ═══════════════════════════════════════
   CSS VARIABLES — BROWN THEME PALETTE
   Exact match from prototype style.css
═══════════════════════════════════════ */
:root {
    --brown: #6b3e26;
    --deep:  #2f1b10;
    --green: #315f25;
    --leaf:  #557b35;
    --gold:  #c79235;
    --cream: #fff8e8;
    --paper: #fffdf7;
    --ink:   #2b211b;
    --muted: #6f6256;
    --line:  #e7d8bd;
    --shadow: 0 5px 18px rgba(50,30,10,.07);
    --radius: 12px;
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════
   TOP BAR
═══════════════════════════════════════ */
.snj-topbar {
    background: var(--deep);
    color: #f8e8c6;
    padding: 7px 5%;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ═══════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════ */
.snj-header {
    background: #fffdf8;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}
.snj-navin {
    max-width: 1220px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 22px;
}
.snj-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    text-decoration: none;
    flex-shrink: 0;
}
.snj-mark {
    width: 48px;
    height: 48px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--green);
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 25px;
    flex-shrink: 0;
    overflow: hidden;
}
.snj-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.snj-brand-text b {
    font-family: Georgia, serif;
    letter-spacing: 1.2px;
    font-size: 20px;
    color: var(--brown);
    display: block;
    line-height: 1.2;
}
.snj-brand-text small {
    display: block;
    font-size: 9px;
    letter-spacing: 1.7px;
    color: var(--green);
    text-transform: uppercase;
}

/* Desktop nav links */
.snj-links {
    display: flex;
    gap: 16px;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    list-style: none;
}
.snj-links a { transition: color 0.18s; }
.snj-links a:hover { color: var(--green); }

/* Hamburger */
.snj-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid var(--brown);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.snj-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--brown);
    border-radius: 2px;
    transition: all 0.25s ease;
}
.snj-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.snj-hamburger.open span:nth-child(2) { opacity: 0; }
.snj-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.snj-mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    z-index: 99998;
    padding: 80px 24px 24px;
    overflow-y: auto;
}
.snj-mobile-nav.open { display: flex; }
.snj-mobile-nav a {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    display: block;
}
.snj-mobile-nav a:hover { color: var(--green); }
.snj-mobile-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: var(--brown);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.snj-mobile-nav.open ~ .snj-mobile-close,
.snj-mobile-close.open { display: flex; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
    display: inline-block;
    background: var(--brown);
    color: white;
    padding: 11px 20px;
    border-radius: 7px;
    font-weight: 800;
    border: 2px solid var(--brown);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.gold  { background: var(--gold);  border-color: var(--gold);  color: #28170b; }
.btn.light { background: transparent; color: var(--brown); }
.btn.light:hover { background: var(--brown); color: #fff; }

/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
.snj-hero {
    min-height: 620px;
    background: linear-gradient(90deg, rgba(35,18,8,.88), rgba(35,18,8,.55) 45%, rgba(35,18,8,.08) 78%),
                url('') center/cover no-repeat;
    background-color: var(--deep);
    display: flex;
    align-items: center;
}
.snj-hero-in {
    max-width: 1220px;
    margin: auto;
    width: 100%;
    padding: 70px 6%;
    color: #fff;
}
.snj-eyebrow {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 900;
    display: block;
    margin-bottom: 10px;
}
.snj-hero .snj-eyebrow { color: #f5d88d; }
.snj-hero h1 {
    font: 700 clamp(40px,7vw,82px)/.98 Georgia, serif;
    margin: 12px 0;
    color: #fff;
}
.snj-hero h1 span { color: #d6e6b7; }
.snj-hero-tag {
    font: italic 24px Georgia, serif;
    color: #f5d88d;
    display: block;
    margin-bottom: 14px;
}
.snj-hero p { font-size: 17px; max-width: 650px; color: rgba(255,255,255,.88); }
.snj-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }

/* ═══════════════════════════════════════
   TRUST STRIP
═══════════════════════════════════════ */
.snj-trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.snj-trust-in {
    max-width: 1220px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
}
.snj-trust-item {
    padding: 25px 16px;
    text-align: center;
    border-right: 1px solid var(--line);
}
.snj-trust-item:last-child { border-right: none; }
.snj-round {
    width: 48px;
    height: 48px;
    border: 2px solid var(--green);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
    color: var(--green);
    font-size: 20px;
}
.snj-trust-item h3 {
    font-size: 13px;
    margin: 5px 0 4px;
    text-transform: uppercase;
    color: var(--ink);
    font-family: Georgia, serif;
}
.snj-trust-item p { font-size: 12px; color: var(--muted); margin: 0; }

/* ═══════════════════════════════════════
   SECTIONS COMMON
═══════════════════════════════════════ */
.snj-section { padding: 75px 5%; }
.snj-wrap { max-width: 1220px; margin: auto; }
.snj-section h2,
.snj-section-title {
    font: 700 42px/1.1 Georgia, serif;
    color: var(--brown);
    text-align: center;
    margin: 8px 0 12px;
}
.snj-lead {
    text-align: center;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto 35px;
    font-size: 15px;
}
.snj-cream  { background: var(--paper) !important; }
.snj-greenbg { background: #edf4df !important; }
.snj-deepbg { background: var(--deep) !important; color: #fff0cf; }

/* ═══════════════════════════════════════
   PRODUCT CARDS — WOOCOMMERCE
═══════════════════════════════════════ */
.woocommerce ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(5,1fr) !important;
    gap: 16px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before, ul.products::after {
    display: none !important;
}
.woocommerce ul.products li.product,
ul.products li.product,
.woocommerce ul.products li.product[style],
ul.products li.product[style] {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    padding: 13px !important;
    box-shadow: var(--shadow) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    transition: transform 0.25s, box-shadow 0.25s !important;
}
.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 28px rgba(50,30,10,.13) !important;
}
/* Product image */
.woocommerce ul.products li.product img,
ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 1 !important;
    object-fit: cover !important;
    border-radius: 9px !important;
    display: block !important;
    height: auto !important;
}
/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
    font: 700 18px Georgia, serif !important;
    color: var(--brown) !important;
    margin: 12px 0 3px !important;
    padding: 0 !important;
    text-align: center !important;
    white-space: normal !important;
}
/* Price */
.woocommerce ul.products li.product .price,
ul.products li.product .price {
    font-weight: 900 !important;
    color: var(--green) !important;
    margin: 6px 0 !important;
    font-size: 1.1rem !important;
    display: block !important;
}
.woocommerce ul.products li.product .price .amount {
    color: var(--green) !important;
}
/* Star rating — hidden */
.woocommerce ul.products li.product .star-rating,
ul.products li.product .star-rating {
    display: none !important;
}
/* Add to Cart button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
ul.products li.product .button {
    display: block !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 9px 12px !important;
    background: var(--green) !important;
    color: #fff !important;
    border: 2px solid var(--green) !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    text-decoration: none !important;
}
.woocommerce ul.products li.product .button:hover,
ul.products li.product .button:hover {
    background: var(--brown) !important;
    border-color: var(--brown) !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════
   SPLIT SECTION (Factory / About)
═══════════════════════════════════════ */
.snj-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.snj-split img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    display: block;
}
.snj-copy {
    padding: 60px;
    background: var(--deep);
    color: #f6e5c2;
}
.snj-copy h2 {
    text-align: left;
    color: #fff0cf;
    font: 700 36px/1.1 Georgia, serif;
    margin-bottom: 18px;
}
.snj-copy p { color: #e5d6bb; margin-bottom: 14px; }
.snj-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}
.snj-check {
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 12px;
}
.snj-check b { color: #d7ebbb; display: block; margin-bottom: 3px; font-size: 13px; }
.snj-check span { font-size: 12px; color: rgba(255,255,255,.55); }

/* ═══════════════════════════════════════
   PROCESS STEPS
═══════════════════════════════════════ */
.snj-process-img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    margin-bottom: 25px;
}
.snj-mini-steps {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 12px;
    margin-top: 25px;
}
.snj-step { text-align: center; }
.snj-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 15px;
}
.snj-step h4 { margin: 0 0 3px; color: var(--brown); font-size: 14px; font-family: Georgia, serif; }
.snj-step p  { font-size: 12px; color: var(--muted); margin: 0; }

/* ═══════════════════════════════════════
   BLOG / FEATURE GRID
═══════════════════════════════════════ */
.snj-feature-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}
.snj-feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s;
}
.snj-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.snj-feature img { width: 100%; height: 220px; object-fit: cover; }
.snj-feature-body { padding: 18px; }
.snj-feature-body h3 {
    font: 700 20px Georgia, serif;
    color: var(--brown);
    margin: 0 0 7px;
}
.snj-feature-body p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* ═══════════════════════════════════════
   CTA BAND
═══════════════════════════════════════ */
.snj-cta {
    background: linear-gradient(90deg, var(--deep), var(--brown));
    color: #fff0cf;
    padding: 60px 5%;
}
.snj-cta-in {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}
.snj-cta h2 { color: #fff0cf; text-align: left; margin: 0; font: 700 32px Georgia, serif; }
.snj-cta p  { margin: 6px 0; color: #e4d4b8; }

/* ═══════════════════════════════════════
   NOTICE BOX
═══════════════════════════════════════ */
.snj-notice {
    background: #fff3cf;
    border-left: 5px solid var(--gold);
    padding: 14px 18px;
    border-radius: 7px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--ink);
}

/* ═══════════════════════════════════════
   CONTACT GRID
═══════════════════════════════════════ */
.snj-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.snj-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
}
.snj-box h3 {
    font: 700 22px Georgia, serif;
    color: var(--brown);
    margin: 0 0 14px;
}
.snj-form input,
.snj-form textarea,
.snj-form select {
    width: 100%;
    padding: 13px;
    border: 1px solid #d9c8ab;
    border-radius: 7px;
    margin: 5px 0 14px;
    font: inherit;
    font-size: 14px;
    background: var(--paper);
    color: var(--ink);
}
.snj-form textarea { min-height: 140px; resize: vertical; }
.snj-form label { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ═══════════════════════════════════════
   WOOCOMMERCE SINGLE PRODUCT
═══════════════════════════════════════ */
.woocommerce div.product .woocommerce-Price-amount {
    color: var(--green) !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
}
.woocommerce div.product .single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: var(--green) !important;
    color: #fff !important;
    border-radius: 7px !important;
    font-weight: 800 !important;
    border: 2px solid var(--green) !important;
    transition: background 0.2s !important;
}
.woocommerce div.product .single_add_to_cart_button:hover,
.woocommerce a.button.alt:hover {
    background: var(--brown) !important;
    border-color: var(--brown) !important;
}
/* WooCommerce cart / checkout buttons */
.woocommerce a.button,
.woocommerce button.button {
    background: var(--green) !important;
    color: #fff !important;
    border-radius: 7px !important;
    font-weight: 700 !important;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.snj-footer {
    background: #24150d;
    color: #e9d9b8;
    padding: 48px 5% 18px;
}
.snj-foot {
    max-width: 1220px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
    margin-bottom: 30px;
}
.snj-foot h3 {
    color: #e5b85d;
    font: 700 18px Georgia, serif;
    margin-bottom: 14px;
}
.snj-foot p,
.snj-foot li { font-size: 13px; color: #cdbb9e; line-height: 1.75; }
.snj-foot ul { list-style: none; padding: 0; }
.snj-foot li { margin: 5px 0; }
.snj-foot a { color: #cdbb9e; transition: color 0.18s; }
.snj-foot a:hover { color: #e5b85d; }
.snj-footer-cert {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(199,146,53,.15);
    border: 1px solid rgba(199,146,53,.3);
    border-radius: 6px;
    padding: 7px 12px;
    margin-top: 12px;
    font-size: 12px;
    color: #e5b85d;
}
.snj-copyr {
    text-align: center;
    border-top: 1px solid #4b3323;
    padding-top: 18px;
    font-size: 12px;
    color: #a9977c;
}

/* Whatsapp float */
.snj-wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #fff;
    padding: 11px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: transform 0.2s;
}
.snj-wa-float:hover { transform: scale(1.05); color: #fff; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 950px) {
    .snj-links { display: none !important; }
    .snj-hamburger { display: flex !important; }

    .snj-trust-in { grid-template-columns: repeat(2,1fr) !important; }
    .snj-trust-item { border-right: none; border-bottom: 1px solid var(--line); }
    .snj-trust-item:nth-child(2n) { border-right: none; }

    .woocommerce ul.products, ul.products {
        grid-template-columns: repeat(3,1fr) !important;
    }
    .snj-split, .snj-contact-grid {
        grid-template-columns: 1fr !important;
    }
    .snj-copy { padding: 40px 28px; }
    .snj-mini-steps { grid-template-columns: repeat(3,1fr) !important; }
    .snj-feature-grid { grid-template-columns: 1fr 1fr !important; }
    .snj-foot { grid-template-columns: 1fr 1fr !important; }
    .snj-cta-in { flex-direction: column; text-align: center; }
    .snj-cta h2 { text-align: center; }
}

@media (max-width: 600px) {
    .snj-topbar span:last-child { display: none; }
    .snj-hero { min-height: 520px; }
    .snj-hero-in { padding: 60px 6%; }
    .snj-hero-tag { font-size: 19px; }
    .snj-hero p { font-size: 15px; }
    .snj-section { padding: 50px 5%; }
    .snj-section h2, .snj-section-title { font-size: 30px; }

    .woocommerce ul.products, ul.products {
        grid-template-columns: repeat(2,1fr) !important;
        gap: 10px !important;
    }
    .snj-mini-steps { grid-template-columns: repeat(2,1fr) !important; }
    .snj-feature-grid { grid-template-columns: 1fr !important; }
    .snj-foot { grid-template-columns: 1fr !important; }
    .snj-checks { grid-template-columns: 1fr !important; }
    .snj-copy { padding: 28px 20px; }
    .snj-copy h2 { font-size: 26px; }
    .snj-contact-grid { grid-template-columns: 1fr !important; }
    .snj-actions { flex-direction: column; }
    .snj-actions .btn { text-align: center; }
    .snj-trust-in { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 420px) {
    .woocommerce ul.products, ul.products {
        grid-template-columns: 1fr 1fr !important;
    }
}
