/*
Theme Name: Chhaap
Theme URI: https://example.com
Author: Chhaap
Author URI: https://example.com
Description: Personalised gifts & printing ecommerce theme, built for use with WooCommerce. Mugs, t-shirts, jewellery, cushions and more.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: chhaap
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{
  --ink:#0F3D3E;
  --ink-deep:#092828;
  --ivory:#FBF6EC;
  --paper:#F3ECDB;
  --saffron:#E8A23A;
  --saffron-deep:#C97F1F;
  --rani:#D6336C;
  --rani-deep:#A8214F;
  --charcoal:#1F2421;
  --line: rgba(15,61,62,0.14);
  --radius: 4px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--ivory);
  color:var(--charcoal);
  font-family:'Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:'Fraunces',serif;
  font-weight:700;
  letter-spacing:-0.01em;
  margin:0;
}
.mono{ font-family:'JetBrains Mono',monospace; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; height:auto; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }

/* ---------- truck-art stripe divider (signature element) ---------- */
.stripe{
  height:14px;
  background:repeating-linear-gradient(
    90deg,
    var(--saffron) 0 26px,
    var(--rani) 26px 52px,
    var(--ink) 52px 78px,
    var(--paper) 78px 104px
  );
}

/* ---------- header ---------- */
header.site-header{ background:var(--ivory); position:sticky; top:0; z-index:50; border-bottom:1px solid var(--line); }
.topbar{ background:var(--ink); color:var(--ivory); font-size:12.5px; }
.topbar .wrap{ display:flex; justify-content:space-between; align-items:center; padding-top:8px; padding-bottom:8px; gap:16px; flex-wrap:wrap; }
.topbar span{ opacity:0.85; }
.topbar .links{ display:flex; gap:18px; }
.topbar .links a:hover{ color:var(--saffron); }

.navrow{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; gap:24px; max-width:1180px; margin:0 auto; }
.brand{ display:flex; align-items:baseline; gap:8px; }
.brand .mark{
  width:38px;height:38px;border-radius:50%;
  background:conic-gradient(from 45deg, var(--saffron), var(--rani), var(--ink), var(--saffron));
  display:flex;align-items:center;justify-content:center;
  color:var(--ivory); font-family:'Fraunces',serif; font-weight:900; font-size:18px;
  flex:none;
}
.brand .name{ font-size:24px; }
.brand .name em{ font-style:normal; color:var(--rani); }

.searchbox{ flex:1; max-width:420px; display:flex; align-items:center; border:1.5px solid var(--ink); border-radius:999px; overflow:hidden; background:#fff; }
.searchbox input{ border:none; outline:none; padding:10px 16px; flex:1; font-family:'Inter'; font-size:14px; background:transparent; }
.searchbox button{ border:none; background:var(--ink); color:var(--ivory); padding:10px 18px; cursor:pointer; font-size:14px; }

.navactions{ display:flex; align-items:center; gap:20px; font-size:14px; font-weight:600; }
.navactions .cart{ display:flex; align-items:center; gap:8px; background:var(--saffron); color:var(--ink-deep); padding:9px 16px; border-radius:999px; font-weight:700; }
.menu-toggle{ display:none; background:none; border:none; font-size:24px; cursor:pointer; color:var(--ink); }

nav.catnav{ background:var(--ink); }
nav.catnav ul{ list-style:none; display:flex; gap:2px; margin:0; padding:0 24px; max-width:1180px; margin-left:auto; margin-right:auto; flex-wrap:wrap; }
nav.catnav ul li{ position:relative; }
nav.catnav a{ display:block; color:var(--ivory); padding:13px 16px; font-size:14px; font-weight:600; white-space:nowrap; }
nav.catnav a:hover{ background:var(--ink-deep); color:var(--saffron); }
nav.catnav ul ul{ display:none; position:absolute; left:0; top:100%; background:var(--ink-deep); flex-direction:column; min-width:200px; z-index:60; padding:6px 0; }
nav.catnav ul li:hover > ul{ display:flex; }

/* ---------- hero ---------- */
.hero{ position:relative; overflow:hidden; background:var(--ink); color:var(--ivory); padding:76px 24px 84px; }
.hero::before{
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 15% 20%, rgba(232,162,58,0.18), transparent 40%),
                     radial-gradient(circle at 85% 80%, rgba(214,51,108,0.20), transparent 45%);
  pointer-events:none;
}
.hero-inner{ max-width:1180px; margin:0 auto; display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; align-items:center; position:relative; }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-family:'JetBrains Mono',monospace; font-size:12px; letter-spacing:0.12em; text-transform:uppercase; color:var(--saffron); margin-bottom:18px; }
.eyebrow::before{ content:"\25CF"; color:var(--rani); }
.hero h1{ font-size:clamp(38px,5vw,58px); line-height:1.04; color:var(--ivory); }
.hero h1 .accent{ color:var(--saffron); font-style:italic; }
.hero p.lede{ font-size:17px; line-height:1.6; color:rgba(251,246,236,0.82); max-width:46ch; margin:22px 0 30px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{ display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:999px; font-weight:700; font-size:14.5px; cursor:pointer; border:1.5px solid transparent; }
.btn-primary{ background:var(--saffron); color:var(--ink-deep); }
.btn-primary:hover{ background:#f0b158; }
.btn-outline{ border-color:rgba(251,246,236,0.4); color:var(--ivory); }
.btn-outline:hover{ border-color:var(--ivory); }

.hero-stats{ display:flex; gap:28px; margin-top:40px; }
.hero-stats strong{ display:block; font-family:'Fraunces',serif; font-size:28px; color:var(--saffron); }
.hero-stats span{ font-size:12.5px; color:rgba(251,246,236,0.7); }

.hero-art{ position:relative; aspect-ratio:1/1; border-radius:50%; background: conic-gradient(from 0deg, var(--saffron), var(--rani), #6fae8f, var(--ink), var(--saffron)); padding:10px; }
.hero-art .inner{ width:100%; height:100%; border-radius:50%; background:var(--ivory); display:flex; align-items:center; justify-content:center; text-align:center; padding:30px; }
.hero-art .badge{ position:absolute; top:8%; right:0; background:var(--rani); color:var(--ivory); border-radius:50%; width:88px; height:88px; display:flex; align-items:center; justify-content:center; text-align:center; font-family:'Fraunces',serif; font-weight:700; font-size:13px; line-height:1.15; box-shadow:0 8px 20px rgba(0,0,0,0.25); transform:rotate(8deg); }

/* ---------- sections ---------- */
.section{ padding:64px 24px; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:32px; gap:20px; flex-wrap:wrap; }
.section-head .tag{ font-family:'JetBrains Mono',monospace; font-size:12px; letter-spacing:0.12em; text-transform:uppercase; color:var(--rani); display:block; margin-bottom:8px; }
.section-head h2{ font-size:clamp(26px,3vw,36px); }
.section-head p{ color:#5a615c; max-width:44ch; font-size:14.5px; }
.view-all{ font-weight:700; font-size:14px; border-bottom:2px solid var(--saffron); padding-bottom:2px; white-space:nowrap; }

/* ---------- category grid ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:16px; }
.cat-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px 14px; text-align:center; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cat-card:hover{ transform:translateY(-4px); box-shadow:0 12px 24px rgba(15,61,62,0.12); border-color:var(--saffron); }
.cat-card .ic{ width:56px; height:56px; margin:0 auto 12px; border-radius:50%; background:var(--paper); display:flex; align-items:center; justify-content:center; font-size:24px; }
.cat-card h3{ font-family:'Inter'; font-weight:700; font-size:13.5px; }
.cat-card span{ font-size:11.5px; color:#7a8079; }

/* ---------- product grid (custom + WooCommerce loop) ---------- */
.prod-grid, ul.products{ display:grid !important; grid-template-columns:repeat(4,1fr); gap:22px; list-style:none; margin:0; padding:0; }
.prod-card, ul.products li.product{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .15s ease, transform .15s ease; }
.prod-card:hover, ul.products li.product:hover{ box-shadow:0 16px 30px rgba(15,61,62,0.14); transform:translateY(-3px); }
.prod-media{ aspect-ratio:1/1; position:relative; display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-size:15px; color:var(--ink); text-align:center; padding:14px; overflow:hidden; }
.prod-media img, ul.products li.product img{ width:100%; height:100%; object-fit:cover; }
.prod-sale, ul.products li.product .onsale{ position:absolute; top:10px; left:10px; background:var(--rani); color:#fff; font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; z-index:2; }
.prod-body, ul.products li.product .woocommerce-loop-product__title, ul.products li.product .price{ padding-left:16px; padding-right:16px; }
.prod-body{ padding-top:16px; padding-bottom:18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.prod-cat{ font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:var(--rani); font-weight:700; }
.prod-title, ul.products li.product .woocommerce-loop-product__title{ font-size:14.5px !important; font-weight:600; line-height:1.35; font-family:'Inter',sans-serif !important; margin:8px 0 !important; }
.stars{ font-size:12px; color:var(--saffron-deep); }
.stars span{ color:#a9afa6; margin-left:4px; }
.price-row{ margin-top:auto; display:flex; align-items:baseline; gap:8px; }
.price-old{ text-decoration:line-through; color:#a9afa6; font-size:13px; }
.price-new{ font-family:'JetBrains Mono',monospace; font-weight:700; font-size:16px; color:var(--ink); }
.add-btn, ul.products li.product .button, .single_add_to_cart_button{ margin-top:10px; width:100%; padding:10px; border-radius:999px; border:1.5px solid var(--ink) !important; background:transparent !important; color:var(--ink) !important; font-weight:700; font-size:13px; cursor:pointer; transition:background .15s ease, color .15s ease; text-align:center; }
.add-btn:hover, ul.products li.product .button:hover, .single_add_to_cart_button:hover{ background:var(--ink) !important; color:var(--ivory) !important; }

/* WooCommerce price / rating tweaks */
.woocommerce .price, ul.products li.product .price{ font-family:'JetBrains Mono',monospace !important; color:var(--ink) !important; padding-bottom:6px; }
.woocommerce .price del{ color:#a9afa6; opacity:1; }
.woocommerce .price ins{ text-decoration:none; color:var(--rani-deep); }
.woocommerce .star-rating{ color:var(--saffron-deep); }
.woocommerce span.onsale{ background:var(--rani) !important; border-radius:999px !important; min-height:auto !important; min-width:auto !important; line-height:1.6 !important; }

/* WooCommerce shop / product / cart / checkout page wrapper */
.woocommerce-page main.site-main{ padding:48px 24px 72px; }
.woocommerce div.product .woocommerce-tabs, .woocommerce table.shop_table{ border-color:var(--line) !important; }
.woocommerce table.shop_table th{ background:var(--paper); }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button{
  background:var(--saffron) !important; color:var(--ink-deep) !important; border-radius:999px !important; border:none !important; font-weight:700 !important;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover{ background:var(--saffron-deep) !important; color:#fff !important; }
.woocommerce-message, .woocommerce-info{ border-top-color:var(--saffron) !important; }
.woocommerce-message::before, .woocommerce-info::before{ color:var(--saffron-deep) !important; }

/* ---------- occasions strip ---------- */
.occasions{ background:var(--paper); }
.occ-row{ display:flex; gap:14px; overflow-x:auto; padding-bottom:6px; }
.occ-chip{ flex:none; background:#fff; border:1px solid var(--line); padding:10px 20px; border-radius:999px; font-size:13.5px; font-weight:600; white-space:nowrap; }
.occ-chip:hover{ border-color:var(--rani); color:var(--rani); }

/* ---------- process ---------- */
.process{ background:var(--ink); color:var(--ivory); }
.process .section-head h2, .process .section-head .tag{ color:var(--ivory); }
.process .section-head .tag{ color:var(--saffron); }
.process .section-head p{ color:rgba(251,246,236,0.7); }
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.step{ border-top:2px solid var(--saffron); padding-top:18px; }
.step .num{ font-family:'Fraunces',serif; font-size:32px; color:var(--saffron); }
.step h3{ font-family:'Inter'; font-size:15.5px; margin:10px 0 8px; color:var(--ivory); }
.step p{ font-size:13.5px; color:rgba(251,246,236,0.68); line-height:1.6; margin:0; }

/* ---------- testimonials ---------- */
.quote-wrap{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.quote{ background:#fff; border:1px solid var(--line); padding:24px; border-radius:var(--radius); }
.quote .stars{ margin-bottom:12px; }
.quote p{ font-size:14.5px; line-height:1.6; color:#3a3f3b; margin:0 0 14px; }
.quote .who{ font-size:13px; font-weight:700; color:var(--ink); }
.quote .who span{ font-weight:400; color:#8a8f87; }

/* ---------- newsletter ---------- */
.news{ background:var(--rani); color:#fff; text-align:center; padding:56px 24px; }
.news h2{ font-size:clamp(24px,3vw,32px); margin-bottom:10px; color:#fff; }
.news p{ opacity:0.9; margin-bottom:24px; }
.news form{ display:flex; justify-content:center; gap:10px; max-width:440px; margin:0 auto; flex-wrap:wrap; }
.news input{ flex:1; min-width:220px; padding:13px 18px; border-radius:999px; border:none; font-size:14px; outline:none; }
.news button{ padding:13px 26px; border-radius:999px; border:none; background:var(--ink); color:#fff; font-weight:700; cursor:pointer; }

/* ---------- generic page content ---------- */
.page-content-wrap{ padding:64px 24px; max-width:840px; margin:0 auto; }
.page-content-wrap h1{ font-size:clamp(28px,4vw,42px); margin-bottom:24px; }
.page-content-wrap p{ line-height:1.7; color:#3a3f3b; }

/* ---------- footer ---------- */
footer.site-footer{ background:var(--ink-deep); color:rgba(251,246,236,0.75); padding:56px 24px 24px; font-size:13.5px; }
.foot-grid{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; margin-bottom:40px; }
.foot-grid h4{ color:var(--ivory); font-family:'Inter'; font-size:13px; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:16px; }
.foot-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.foot-grid a:hover{ color:var(--saffron); }
.foot-brand p{ line-height:1.6; max-width:32ch; margin:14px 0 18px; }
.foot-social{ display:flex; gap:10px; }
.foot-social a{ width:34px; height:34px; border:1px solid rgba(251,246,236,0.25); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; }
.foot-social a:hover{ border-color:var(--saffron); color:var(--saffron); }
.foot-bottom{ border-top:1px solid rgba(251,246,236,0.15); padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:12.5px; color:rgba(251,246,236,0.55); }

@media (max-width: 980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-art{ max-width:320px; margin:0 auto; }
  .cat-grid{ grid-template-columns:repeat(3,1fr); }
  .prod-grid, ul.products{ grid-template-columns:repeat(2,1fr) !important; }
  .steps{ grid-template-columns:repeat(2,1fr); }
  .quote-wrap{ grid-template-columns:1fr; }
  .foot-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 640px){
  .topbar .links{ display:none; }
  .searchbox{ display:none; }
  .menu-toggle{ display:block; }
  nav.catnav ul{ display:none; flex-direction:column; }
  nav.catnav ul.show{ display:flex; }
  .cat-grid{ grid-template-columns:repeat(2,1fr); }
  .prod-grid, ul.products{ grid-template-columns:1fr 1fr !important; }
  .foot-grid{ grid-template-columns:1fr; }
}
