/*
 * JK Jewellers — main stylesheet
 *
 * Hand-written, no build step. Tokens live in :root; everything else is plain
 * CSS so a future edit is one file and one reload.
 */

:root {
  --ink:#1a1613; --ink-soft:#6b625a; --line:#e8e2da;
  --cream:#faf7f2; --cream-2:#f2ece3; --gold:#b8892b; --gold-soft:#d9b877;
  --white:#fff; --max:1280px;
  --serif:"Cormorant Garamond","Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Inter","Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--white);
  font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
.section{padding:72px 24px}
h1,h2,h3{font-family:var(--serif);font-weight:500;letter-spacing:.02em;margin:0}

/* ---------- gold rate bar (A1-inspired, the client's #1 ask) ---------- */
.rate{background:var(--ink);color:#f6f1e8;font-size:12.5px}
.rate-in{max-width:var(--max);margin:0 auto;padding:9px 24px;display:flex;
  align-items:center;gap:28px;flex-wrap:wrap}
.rate-label{font-family:var(--serif);font-size:14px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold-soft)}
.rate-tbl{display:flex;gap:22px;flex-wrap:wrap}
.rate-cell b{color:#fff;font-weight:600}
.rate-cell span{color:#a99e90}
.rate-right{margin-left:auto;display:flex;gap:20px;color:#c9c0b4}

/* ---------- header ---------- */
.head{border-bottom:1px solid var(--line)}
.head-in{max-width:var(--max);margin:0 auto;padding:20px 24px;display:flex;
  align-items:center;gap:32px}
/* REMOVED: a legacy `.search` rule from the mockup's fake search box.
   WordPress body_class() adds `search` to <body>` on search-results pages, so that
   rule applied `display:flex; max-width:340px` to the BODY and shredded the layout
   on every search page. The real header search is `.jk-search`. Do not reintroduce a
   bare `.search` selector. */
.logo{flex:1;text-align:center;font-family:var(--serif);font-size:30px;
  letter-spacing:.22em;text-transform:uppercase}
.logo small{display:block;font-family:var(--sans);font-size:9px;letter-spacing:.32em;
  color:var(--gold);margin-top:4px}
.head-act{flex:1;display:flex;justify-content:flex-end;gap:22px;font-size:12.5px;
  color:var(--ink-soft)}
.nav{border-bottom:1px solid var(--line)}
.nav-in{max-width:var(--max);margin:0 auto;padding:13px 24px;display:flex;
  align-items:center;gap:30px;font-size:12.5px;letter-spacing:.09em;text-transform:uppercase}
.nav-cats{font-weight:600}
.nav a.on{color:var(--gold);border-bottom:1px solid var(--gold);padding-bottom:2px}
.nav-tel{margin-left:auto;letter-spacing:.04em;text-transform:none;color:var(--ink-soft)}

/* ---------- hero ---------- */
.hero{position:relative;background:var(--cream-2);overflow:hidden;touch-action:pan-y pinch-zoom}
.hero .ban img{width:100%;height:auto;display:block}
.hero .ban:hover img{transform:none}
.slide{display:none}
.slide.is-on{display:block}
.btn{display:inline-block;border:1px solid var(--ink);padding:13px 30px;font-size:11.5px;
  letter-spacing:.16em;text-transform:uppercase}
.btn-solid{background:var(--ink);color:#fff;border-color:var(--ink)}
.hero .dots{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);display:flex;gap:7px}
.hero .dots i{width:7px;height:7px;border-radius:50%;background:#c3b8a8}
.hero .dots i.on{background:var(--ink)}
.eyebrow{font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;
  color:var(--ink-soft);margin:0}

/* ---------- banners ----------
   Image-only: headline and Shop Now are baked into the artwork, so there is no
   overlay text, no gradient and no button element to style. */
.ban{display:block;overflow:hidden;background:var(--cream)}
.ban img{width:100%;height:auto;display:block;transition:transform .6s ease}
.ban:hover img{transform:scale(1.02)}
.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.g2{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.g4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}

/* ---------- strip ---------- */
.strip-wrap{background:var(--cream-2)}
.strip-wrap .ban img{width:100%}
.strip-note{text-align:center;font-size:13px;color:var(--ink-soft);
  margin:0;padding:14px 24px 18px}
.strip-note a{color:var(--gold);border-bottom:1px solid currentColor}
.exch-wrap{background:var(--ink)}

/* ---------- category circles ---------- */
.circles{display:grid;grid-template-columns:repeat(6,1fr);gap:20px;text-align:center}
.circ img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:50%;
  background:var(--cream);margin-bottom:12px}
.circ span{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase}

/* ---------- section heads ---------- */
.sec-head{text-align:center;margin-bottom:38px}
.sec-head h2{font-size:34px;margin:8px 0 6px;text-transform:uppercase}
.sec-sub{color:var(--ink-soft);margin:0}
.tabs{display:flex;gap:26px;justify-content:center;margin-top:18px;font-size:12px;
  letter-spacing:.12em;text-transform:uppercase}
.tab{background:none;border:0;padding:0 0 3px;cursor:pointer;color:var(--ink-soft);
  font:inherit;letter-spacing:inherit;text-transform:inherit}
.tab.is-on{color:var(--ink);border-bottom:1px solid var(--gold)}

/* ---------- product cards ---------- */
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.card-img{display:block;background:var(--cream);aspect-ratio:1;overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.card:hover .card-img img{transform:scale(1.04)}
.card-body{padding:14px 2px 0;text-align:center}
.card-sku{font-size:10px;letter-spacing:.1em;color:var(--gold)}
.card-cat{display:block;font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-soft);margin:5px 0 6px}
.card-name{font-size:16px;line-height:1.32;margin:0 0 5px}
.card-spec{font-size:11.5px;color:var(--ink-soft);margin:0 0 7px}
.card-price{font-size:15px;margin:0;font-weight:600}

/* ---------- trust ---------- */
.trust{background:var(--cream);}
.trust-g{display:grid;grid-template-columns:repeat(4,1fr);gap:34px;text-align:center}
.trust-g h4{font-family:var(--serif);font-size:17px;margin:0 0 7px;font-weight:500}
.trust-g p{font-size:13px;color:var(--ink-soft);margin:0}
.trust-ic{font-size:22px;color:var(--gold);margin-bottom:10px}

/* ---------- exchange ---------- */
.exch{background:var(--ink);color:#f3ede4;text-align:center;padding:64px 24px}
.exch h2{color:#fff;font-size:32px;text-transform:uppercase}
.exch p{max-width:58ch;margin:14px auto 24px;color:#bdb3a5}
.exch .btn{border-color:var(--gold-soft);color:var(--gold-soft)}

/* ---------- price bands ---------- */
.band{border:1px solid var(--line);padding:34px 24px;text-align:center}
.band .eyebrow{color:var(--gold)}
.band h3{font-size:25px;margin:9px 0 4px}
.band span{font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-soft)}

/* ---------- reviews / insta / news ---------- */
.rev{background:var(--cream-2)}
.rev-g{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.rev-c{background:#fff;padding:26px 24px}
.rev-c h4{font-family:var(--serif);font-size:17px;font-weight:500;margin:0 0 9px}
.rev-c p{font-size:13.5px;color:var(--ink-soft);margin:0 0 16px}
.stars{color:var(--gold);font-size:12px}
.rev-c cite{font-size:12px;font-style:normal;font-weight:600}
.insta{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.insta img{aspect-ratio:1;object-fit:cover}
.news{background:var(--cream);text-align:center;padding:60px 24px}
.news-f{display:flex;max-width:460px;margin:20px auto 0}
.news-f i{flex:1;border:1px solid var(--line);background:#fff;padding:13px 16px;
  font-style:normal;color:var(--ink-soft);font-size:13px;text-align:left}
.news-f b{background:var(--ink);color:#fff;padding:13px 26px;font-size:11px;
  letter-spacing:.16em;text-transform:uppercase;font-weight:500}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--line);padding:56px 24px 26px}
.foot-g{max-width:var(--max);margin:0 auto;display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:38px}
.foot h5{font-size:12px;letter-spacing:.14em;text-transform:uppercase;margin:0 0 16px}
.foot ul{list-style:none;padding:0;margin:0;font-size:13.5px;color:var(--ink-soft)}
.foot li{margin-bottom:9px}
.foot-logo{font-family:var(--serif);font-size:24px;letter-spacing:.2em;
  text-transform:uppercase;margin-bottom:10px}
.foot-note{max-width:var(--max);margin:38px auto 0;padding-top:20px;
  border-top:1px solid var(--line);font-size:12px;color:var(--ink-soft);
  display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.note{background:#fffbe9;border:1px dashed var(--gold-soft);padding:14px 18px;
  font-size:12.5px;color:#7a5f1f;max-width:var(--max);margin:0 auto}

@media(max-width:1000px){
  /* hero is now a single baked image, nothing to reflow */
  .g3,.g4,.grid-4,.circles,.trust-g,.rev-g,.insta,.foot-g{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .grid-4,.g2,.g3,.g4,.foot-g,.trust-g,.rev-g{grid-template-columns:1fr}
  .circles,.insta{grid-template-columns:repeat(3,1fr)}
  .logo{font-size:22px} .head-in{gap:14px}
}

/* ---------- WooCommerce integration ----------
   Woo templates are NOT overridden; these rules just restyle its default markup
   so the shop matches the homepage. */
.woocommerce-products-header{text-align:center;padding:56px 24px 0}
.woocommerce-products-header h1{font-family:var(--serif);font-size:34px;
  text-transform:uppercase;font-weight:500}
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;
  list-style:none;margin:0;padding:0}
.woocommerce ul.products li.product{text-align:center;margin:0;width:auto}
.woocommerce ul.products li.product a img{background:var(--cream);margin-bottom:12px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--serif);font-size:16px;line-height:1.32;padding:0}
.woocommerce ul.products li.product .price{font-size:15px;color:var(--ink);font-weight:600}
.woocommerce .jk-card-meta{font-size:11.5px;color:var(--ink-soft)}
.woocommerce .jk-card-sku{font-size:10px;letter-spacing:.1em;color:var(--gold)}
.woocommerce span.onsale{background:var(--gold);color:#fff;border-radius:0;
  font-size:10px;letter-spacing:.1em;text-transform:uppercase;min-height:0;padding:5px 10px;line-height:1}
.woocommerce div.product .product_title{font-family:var(--serif);font-size:30px;
  text-transform:uppercase;font-weight:500}
.woocommerce div.product p.price{font-size:24px;color:var(--ink)}
.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,
.woocommerce input.button,.woocommerce .single_add_to_cart_button{
  background:var(--ink);color:#fff;border-radius:0;font-size:11.5px;
  letter-spacing:.16em;text-transform:uppercase;padding:14px 30px;font-weight:500}
.woocommerce #respond input#submit:hover,.woocommerce a.button:hover,
.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--gold);color:#fff}
@media(max-width:1000px){.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:14px}}

/* ---------- theme fixes ----------
   From here down this file is hand-maintained; it is no longer regenerated from
   the mockup. */

/* the_custom_logo() outputs the logo at its natural size (1159x826), which made
   the header ~800px tall. Constrain it. */
.logo a{display:block}
.logo img{max-height:58px;width:auto;margin:0 auto;display:block}
.custom-logo-link{display:inline-block}
.logo small{margin-top:6px}

/* Rate bar: 3 purities x 2 units is a lot of cells. Keep it on one line on
   desktop and let it wrap tidily below. */
.rate-in{gap:18px}
.rate-tbl{gap:16px;row-gap:4px}
.rate-cell{white-space:nowrap}
@media(max-width:900px){
  .rate-right{display:none}
  .rate-in{justify-content:center}
  .rate-label{width:100%;text-align:center}
}

/* Woo loop cards sit inside our own grid on the homepage. */
.products.columns-4{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;
  list-style:none;margin:0;padding:0}
.products.columns-4 li.product{text-align:center;margin:0;width:auto;float:none}
.products.columns-4 li.product img{background:var(--cream);margin-bottom:12px;width:100%;height:auto}
.products.columns-4 li.product .woocommerce-loop-product__title{
  font-family:var(--serif);font-size:16px;line-height:1.32;padding:0;margin:0 0 4px}
.products.columns-4 li.product .price{font-size:15px;font-weight:600;color:var(--ink)}
.products.columns-4 li.product a.button{display:none}
@media(max-width:1000px){.products.columns-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.products.columns-4{grid-template-columns:repeat(2,1fr);gap:14px}}

/* Admin-only warning when a banner slug is missing. */
.jk-missing{display:block;padding:14px;background:#fffbe9;border:1px dashed #d9b877;
  font-size:12.5px;color:#7a5f1f;text-align:center}

/* wp_get_attachment_image() emits width/height attributes. Those act as
   presentational hints and beat `aspect-ratio` unless height is explicitly
   auto/100% — which is what turned the category circles into tall ovals. */
.circ img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;
  object-position:center;border-radius:50%;background:var(--cream);margin-bottom:12px}
.insta img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
.card-img img{width:100%;height:100%;object-fit:cover}

/* Hero slider: crossfade between baked banner images. */
.hero{position:relative}
.slide{display:none}
.slide.is-on{display:block}
@media (prefers-reduced-motion: no-preference){
  .slide{display:block;position:absolute;inset:0;opacity:0;
    transition:opacity .7s ease;pointer-events:none}
  .slide.is-on{position:relative;opacity:1;pointer-events:auto}
}
.hero .dots{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);
  display:flex;gap:8px;z-index:2}
.hero .dots i{width:8px;height:8px;border-radius:50%;background:rgba(26,22,19,.28);
  cursor:pointer;transition:background .3s,transform .3s}
.hero .dots i:hover{transform:scale(1.2)}
.hero .dots i.on{background:var(--ink)}
.hero .dots i:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* Previous/next controls are desktop-only and stay out of sight until the hero
   is hovered or receives keyboard focus. Mobile uses swipe plus the dots. */
.hero-arrow{display:none}
@media (min-width:901px) and (hover:hover){
  .hero-arrow{position:absolute;top:50%;z-index:3;display:grid;place-items:center;
    width:48px;height:48px;padding:0;border:1px solid rgba(26,22,19,.16);
    border-radius:50%;background:rgba(250,247,242,.9);color:var(--ink);
    font-family:var(--serif);font-size:36px;line-height:1;cursor:pointer;
    opacity:0;pointer-events:none;transform:translateY(-50%);
    transition:background-color .2s ease,border-color .2s ease}
  .hero-prev{left:24px}
  .hero-next{right:24px}
  .hero:hover .hero-arrow,
  .hero:focus-within .hero-arrow{opacity:1;pointer-events:auto}
  .hero-arrow:hover{background:#fff;border-color:rgba(26,22,19,.32)}
  .hero-arrow:focus-visible{opacity:1;outline:2px solid var(--gold);outline-offset:3px}
  .hero-arrow span{display:block;margin-top:-3px}
}

/* Woo's stylesheet adds `ul.products::before/::after { content:" "; display:table }`
   as a float clearfix. In a grid container those pseudo-elements become grid ITEMS,
   which stole the first cell and pushed the whole first row one column right.
   Only bites on Woo pages (body.woocommerce), not the homepage. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after{display:none !important;content:none !important}

/* Same reason: kill Woo's float rules so grid placement is the only layout. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{float:none;width:auto;margin:0 0 8px}
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last{clear:none}

/* Shop header row: result count + sorting on one line. */
.woocommerce .woocommerce-result-count{float:none;margin:0;font-size:13px;color:var(--ink-soft)}
.woocommerce .woocommerce-ordering{float:none;margin:0}
.woocommerce .woocommerce-ordering select{border:1px solid var(--line);border-radius:0;
  padding:8px 10px;font-size:12.5px;background:#fff}
.woocommerce-notices-wrapper:empty{display:none}

/* Woo pagination reuses the class name `dots` for its "…" ellipsis, so every
   slider-dot rule above is scoped to .hero. Restore Woo's own pagination. */
.woocommerce nav.woocommerce-pagination ul{border:0;margin:32px 0 0;display:flex;
  justify-content:center;gap:6px}
.woocommerce nav.woocommerce-pagination ul li{border:0;margin:0}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{position:static;padding:9px 14px;
  font-size:13px;min-width:0;background:none;border:1px solid transparent;
  transform:none;width:auto;height:auto;border-radius:0;display:inline-block}
.woocommerce nav.woocommerce-pagination ul li span.current{border-color:var(--gold);
  color:var(--ink);font-weight:600}
.woocommerce nav.woocommerce-pagination ul li a:hover{border-color:var(--line)}

/* Shop header: result count left, sorting right, one line. */
.woocommerce .woocommerce-notices-wrapper + .woocommerce-result-count,
.woocommerce .woocommerce-result-count{display:inline-block}
.woocommerce-products-header + .woocommerce-notices-wrapper{display:none}
.jk-shop-head{display:flex;align-items:center;justify-content:space-between;
  gap:16px;flex-wrap:wrap;margin-bottom:26px}

/* ---------- single product ----------
   Woo's `.alt` button rules are more specific than plain `.button`, which is why
   Add to Cart stayed Woo purple. Match `.alt` explicitly. */
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce button.button.alt.single_add_to_cart_button{
  background:var(--ink);color:#fff;border-radius:0;font-size:11.5px;
  letter-spacing:.16em;text-transform:uppercase;padding:15px 34px;font-weight:500;
  border:1px solid var(--ink)}
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover{background:var(--gold);border-color:var(--gold);color:#fff}

/* Minimal pill purchase controls. Quantity buttons are injected with Woo hooks,
   so the theme still owns no WooCommerce template files. */
.single-product form.cart{display:grid;grid-template-columns:140px minmax(0,1fr);
  align-items:stretch;gap:14px;margin:26px 0 20px!important}
.single-product form.cart::before,
.single-product form.cart::after{display:none!important;content:none!important}
.single-product form.cart .quantity{float:none!important;display:grid!important;
  grid-template-columns:42px 56px 42px;width:140px;height:50px;margin:0!important;
  grid-column:1;grid-row:1;overflow:hidden;border:1px solid var(--line);
  border-radius:999px;background:#fff}
.single-product form.cart .quantity .qty{width:56px!important;min-width:0;height:48px;
  padding:0!important;border:0!important;border-radius:0!important;background:transparent;
  color:var(--ink);font:600 15px/48px var(--sans);text-align:center;box-shadow:none!important;
  appearance:textfield;-moz-appearance:textfield}
.single-product form.cart .quantity .qty::-webkit-inner-spin-button,
.single-product form.cart .quantity .qty::-webkit-outer-spin-button{
  margin:0;-webkit-appearance:none}
.single-product .jk-qty-btn{display:grid;place-items:center;width:42px;height:48px;
  padding:0;border:0;background:transparent;color:var(--ink);font:400 22px/1 var(--sans);
  cursor:pointer;transition:color .18s ease,background-color .18s ease}
.single-product .jk-qty-btn:hover{background:var(--cream);color:var(--gold)}
.single-product .jk-qty-btn:focus-visible{outline:2px solid var(--gold);outline-offset:-3px}
.single-product .jk-qty-btn:disabled{cursor:not-allowed;color:var(--line);background:transparent}
.single-product.woocommerce button.button.alt.single_add_to_cart_button{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;height:50px;
  grid-column:2;grid-row:1;float:none;
  padding:0 28px;border:1px solid var(--ink);border-radius:999px;background:#fff;
  color:var(--ink);font-size:15px;font-weight:500;letter-spacing:0;text-transform:none;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease}
.single-product.woocommerce button.button.alt.single_add_to_cart_button::before{
  content:"";display:block;width:18px;height:18px;flex:0 0 18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.4 10.4a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 8H6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.4 10.4a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 8H6'/%3E%3C/svg%3E") center/contain no-repeat}
.single-product.woocommerce button.button.alt.single_add_to_cart_button:hover{
  background:var(--ink);border-color:var(--ink);color:#fff}
@media(max-width:420px){
  .single-product form.cart{grid-template-columns:132px minmax(0,1fr);gap:10px}
  .single-product form.cart .quantity{grid-template-columns:40px 52px 40px;width:132px}
  .single-product form.cart .quantity .qty{width:52px!important}
  .single-product .jk-qty-btn{width:40px}
  .single-product.woocommerce button.button.alt.single_add_to_cart_button{
    padding:0 16px;font-size:14px}
}

/* Gallery: stacked, no flexslider. Woo hides it at opacity 0 until its JS runs. */
.woocommerce div.product div.images{width:48%}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper{
  display:grid;grid-template-columns:1fr;gap:12px;margin:0;transform:none !important;
  width:auto !important}
.woocommerce-product-gallery{opacity:1 !important}
.woocommerce div.product div.images img:not(.zoomImg){width:100%;height:auto;display:block;
  background:var(--cream)}
.woocommerce div.product div.images .flex-viewport{width:auto;height:auto !important}
/* Thumbnails after the main image, in a row. */
.woocommerce div.product div.images .flex-control-thumbs{display:grid;
  grid-template-columns:repeat(5,1fr);gap:8px;margin:12px 0 0;padding:0;list-style:none}
.woocommerce div.product div.images .flex-control-thumbs li{margin:0;width:auto}
.woocommerce-product-gallery__trigger{z-index:3}

.woocommerce div.product .summary{width:48%}
.woocommerce div.product .woocommerce-product-details__short-description{
  color:var(--ink-soft);font-size:14px;line-height:1.7;margin:14px 0 8px}
.woocommerce div.product .stock{font-size:12.5px;letter-spacing:.06em;color:var(--gold)}
.woocommerce div.product .product_meta{font-size:12.5px;color:var(--ink-soft);
  border-top:1px solid var(--line);padding-top:16px;margin-top:20px}

/* Full-width breakup beneath the gallery + summary row. Group bands echo the
   reference layout, while semantic definition lists keep the markup flexible. */
.woocommerce div.product .jk-breakup{clear:both;padding:72px 0 0}
.jk-breakup-head{max-width:920px;margin:0 auto 26px}
.jk-breakup-head h2{font-family:var(--serif);font-size:32px;font-weight:500;
  margin:7px 0 8px}
.jk-breakup-head > p:last-child{max-width:60ch;margin:0;color:var(--ink-soft);
  font-size:14px;line-height:1.6}
.jk-breakup-card{max-width:920px;margin:0 auto;padding:10px;border:1px solid var(--line);
  background:#fff}
.jk-breakup-group + .jk-breakup-group{margin-top:8px}
.jk-breakup-group h3{margin:0;padding:13px 14px;background:var(--cream-2);
  color:var(--ink-soft);font-family:var(--serif);font-size:13px;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase}
.jk-breakup-group dl{margin:0}
.jk-breakup-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;
  align-items:center;margin:0;padding:13px 10px;border-bottom:1px solid var(--line);
  font-size:13.5px}
.jk-breakup-row:last-child{border-bottom:0}
.jk-breakup-row dt{color:var(--ink-soft);font-weight:400}
.jk-breakup-row dd{margin:0;color:var(--ink);font-weight:600;text-align:right}
.jk-breakup-row.is-total{margin-top:2px;padding-top:16px;border-top:1px solid var(--gold);
  font-size:15px}
.jk-breakup-row.is-total dt,.jk-breakup-row.is-total dd{color:var(--ink);font-weight:700}
.jk-breakup-note{margin:8px 2px 0;padding:13px 10px 4px;color:var(--ink-soft);
  font-size:12px;line-height:1.55}
@media(max-width:600px){
  .woocommerce div.product .jk-breakup{padding-top:52px}
  .jk-breakup-head{margin-bottom:20px}
  .jk-breakup-head h2{font-size:28px}
  .jk-breakup-card{padding:8px}
  .jk-breakup-group h3{padding:12px;font-size:12px}
  .jk-breakup-row{gap:14px;padding:12px 6px;font-size:13px}
  .jk-breakup-note{padding:12px 6px 3px}
}

/* Tabs: flat, no grey boxes or rounded corners. */
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:56px 0 0;
  display:flex;gap:28px;justify-content:center;border-bottom:1px solid var(--line)}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:none;border:0;
  border-radius:0;margin:0;padding:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:0 0 12px;font-size:11.5px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft);font-weight:500}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--ink);
  box-shadow:inset 0 -1px 0 var(--gold)}
.woocommerce div.product .woocommerce-tabs .panel{max-width:70ch;margin:32px auto 0}
.woocommerce div.product .woocommerce-tabs .panel h2{font-size:22px;margin-bottom:12px}

.woocommerce .related > h2,
.woocommerce .up-sells > h2{font-family:var(--serif);font-size:28px;text-transform:uppercase;
  text-align:center;font-weight:500;margin:64px 0 32px}

@media(max-width:1000px){
  .woocommerce div.product div.images,
  .woocommerce div.product .summary{width:100%}
}

/* Without flexslider, Woo stacks every gallery image in one column — a 14-photo
   product became a 14-image tall strip. Grid it instead: first image full width,
   the rest as a thumbnail row beneath. No JS needed. */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper{
  display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper
  > .woocommerce-product-gallery__image:first-child{grid-column:1 / -1;margin-bottom:4px}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper
  > .woocommerce-product-gallery__image:nth-child(n+7){display:none}
.woocommerce-product-gallery__image img:not(.zoomImg){aspect-ratio:1/1;object-fit:cover}
.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child > a > img{
  aspect-ratio:1/1}
/* wp-emoji swaps the magnifier glyph for a 1px-wide <img>; keep it out of the grid. */
.woocommerce-product-gallery__trigger img.emoji{display:none}

/* Woo puts a `woocommerce-product-gallery--columns-N` class on the gallery and gives
   each child a percentage width for its float layout. Inside our grid those
   percentages collapsed the thumbnails to ~28px. Let grid own the sizing. */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper
  > .woocommerce-product-gallery__image{width:auto !important;float:none !important;
  margin:0 !important;padding:0 !important;display:block}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper
  > .woocommerce-product-gallery__image a{display:block}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper
  > .woocommerce-product-gallery__image > a > img{width:100% !important;height:auto}

/* =========================================================================
   HEADER v2 — real search, mobile drawer, no "Browse Categories"
   ========================================================================= */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed!important;top:8px;left:8px;width:auto;height:auto;
  clip:auto;background:#fff;padding:10px 16px;z-index:999;border:1px solid var(--ink)}

.head-in{display:flex;align-items:center;gap:24px}
.head-search{flex:1;max-width:360px}
.head-act{flex:1;display:flex;justify-content:flex-end;align-items:center;gap:20px;
  font-size:12.5px;color:var(--ink-soft)}
.head-act a:hover{color:var(--gold)}
.jk-bag{position:relative;display:inline-flex;align-items:center;gap:6px}
.jk-bag-count{display:inline-grid;place-items:center;min-width:18px;height:18px;
  border-radius:9px;background:var(--ink);color:#fff;font-size:10px;padding:0 5px}

/* ---------- search ---------- */
.jk-search{position:relative;display:flex;align-items:center;
  border:1px solid var(--line);border-radius:2px;background:#fff}
.jk-search input[type="search"]{flex:1;border:0;outline:0;background:none;
  padding:11px 14px;font:inherit;font-size:13px;color:var(--ink);min-width:0}
.jk-search input::placeholder{color:var(--ink-soft)}
.jk-search:focus-within{border-color:var(--gold)}
.jk-search button{border:0;background:none;padding:0 13px;cursor:pointer;
  color:var(--ink-soft);display:grid;place-items:center}
.jk-search button:hover{color:var(--gold)}

.jk-search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;
  border:1px solid var(--line);box-shadow:0 12px 32px rgba(26,22,19,.10);z-index:60;
  max-height:66vh;overflow-y:auto}
.jk-search-row{display:grid;grid-template-columns:46px 1fr auto;gap:12px;
  align-items:center;padding:10px 12px;border-bottom:1px solid var(--line)}
.jk-search-row:hover,.jk-search-row.is-active{background:var(--cream)}
.jk-search-row img,.jk-search-noimg{width:46px;height:46px;object-fit:cover;
  background:var(--cream);display:block}
.jk-search-txt{display:flex;flex-direction:column;gap:1px;min-width:0}
.jk-search-sku{font-size:9.5px;letter-spacing:.1em;color:var(--gold)}
.jk-search-name{font-family:var(--serif);font-size:14.5px;line-height:1.25;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jk-search-meta{font-size:11px;color:var(--ink-soft)}
.jk-search-price{font-size:13px;font-weight:600;white-space:nowrap}
.jk-search-all,.jk-search-empty{display:block;padding:12px;text-align:center;
  font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-soft);margin:0}
.jk-search-all:hover,.jk-search-all.is-active{background:var(--cream);color:var(--ink)}

/* ---------- burger + drawer ---------- */
.jk-burger{display:none;flex-direction:column;gap:4px;background:none;border:0;
  padding:8px 4px;cursor:pointer}
.jk-burger span{display:block;width:20px;height:1.5px;background:var(--ink);
  transition:transform .3s,opacity .3s}
.jk-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.jk-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.jk-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}

.jk-backdrop{position:fixed;inset:0;background:rgba(26,22,19,.42);z-index:80}
body.jk-drawer-open .jk-backdrop{display:block}
body.jk-drawer-open{overflow:hidden}
.jk-drawer{position:fixed;top:0;left:0;bottom:0;width:min(86vw,340px);background:#fff;
  z-index:90;transform:translateX(-100%);transition:transform .32s ease;
  display:flex;flex-direction:column;overflow-y:auto}
.jk-drawer.is-open{transform:translateX(0)}
.jk-drawer-head{font-family:var(--serif);font-size:12px;letter-spacing:.18em;
  text-transform:uppercase;padding:20px 22px 14px;border-bottom:1px solid var(--line);
  color:var(--ink-soft)}
.jk-drawer-search{padding:16px 18px}
.jk-drawer-nav{display:flex;flex-direction:column;padding:0 0 32px}
.jk-drawer-nav > a,.jk-drawer-toggle{display:flex;align-items:center;
  justify-content:space-between;padding:14px 22px;font-size:12.5px;letter-spacing:.1em;
  text-transform:uppercase;border-bottom:1px solid var(--line);background:none;
  border-left:0;border-right:0;border-top:0;width:100%;text-align:left;
  font-family:var(--sans);color:var(--ink);cursor:pointer}
.jk-drawer-toggle[aria-expanded="true"] span{transform:rotate(45deg)}
.jk-drawer-toggle span{transition:transform .25s;display:inline-block}
.jk-drawer-sub{display:flex;flex-direction:column;background:var(--cream)}
.jk-drawer-sub a{padding:11px 22px 11px 34px;font-size:12.5px;color:var(--ink-soft);
  border-bottom:1px solid var(--line)}
.jk-drawer-tel{color:var(--gold)!important}

@media(max-width:900px){
  .jk-burger{display:flex}
  .head-in{gap:10px;padding:14px 16px}
  .head-search{display:none}
  .logo{flex:1;text-align:center}
  .logo img{max-height:42px}
  .logo small{font-size:8px;letter-spacing:.24em}
  .head-act{flex:0 0 auto;gap:12px}
  .head-act-full{display:none}
  .nav{display:none}
  .rate-in{padding:8px 16px;gap:12px}
  .rate-tbl{gap:12px;font-size:11px}
  .rate-label{font-size:11px;letter-spacing:.1em}
}
@media(min-width:901px){
  .jk-drawer,.jk-backdrop{display:none}
}

/* =========================================================================
   ARCHIVE / CATEGORY / SEARCH TEMPLATES
   ========================================================================= */
.jk-bc{font-size:11.5px;letter-spacing:.06em;color:var(--ink-soft);margin:0 0 26px;
  text-transform:uppercase}
.jk-bc a{color:var(--ink-soft)}
.jk-bc a:hover{color:var(--gold)}
.jk-bc-sep{margin:0 8px;color:var(--line)}

.jk-arch-head h1{font-family:var(--serif);font-size:clamp(28px,3.4vw,38px);
  text-transform:uppercase;font-weight:500;margin:8px 0 6px}
.jk-arch-desc{max-width:62ch;margin:16px auto 0;color:var(--ink-soft);font-size:14px}

.jk-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 34px}
.jk-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);
  padding:8px 15px;font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;
  background:#fff;transition:border-color .2s,color .2s}
.jk-chip span{font-size:10px;color:var(--ink-soft)}
.jk-chip:hover{border-color:var(--gold);color:var(--gold)}
.jk-chip.is-on{border-color:var(--ink);background:var(--ink);color:#fff}
.jk-chip.is-on span{color:rgba(255,255,255,.7)}

.jk-shop-head{display:flex;align-items:center;justify-content:space-between;
  gap:16px;flex-wrap:wrap;margin:0 0 26px}

.jk-empty{text-align:center;padding:60px 24px}
.jk-empty h2{font-family:var(--serif);font-size:28px;text-transform:uppercase;
  font-weight:500;margin-bottom:10px}
.jk-empty p{color:var(--ink-soft);margin-bottom:24px}

/* Pages / prose */
.jk-prose{max-width:70ch;margin:0 auto;font-size:15.5px;line-height:1.75}
.jk-prose h2{font-family:var(--serif);font-size:26px;margin:36px 0 12px;font-weight:500}
.jk-prose h3{font-family:var(--serif);font-size:21px;margin:28px 0 10px;font-weight:500}
.jk-prose p{margin:0 0 18px}
.jk-prose a{color:var(--gold);border-bottom:1px solid currentColor}
.jk-prose img{margin:24px 0}
.jk-prose ul,.jk-prose ol{margin:0 0 18px;padding-left:22px}
.jk-prose li{margin-bottom:7px}
.jk-prose blockquote{border-left:2px solid var(--gold);margin:24px 0;padding:4px 0 4px 20px;
  font-family:var(--serif);font-size:19px;color:var(--ink-soft)}

/* Cart / checkout / account — keep Woo's structure, match the type */
.woocommerce-cart .wrap.section,
.woocommerce-checkout .wrap.section,
.woocommerce-account .wrap.section{padding-top:44px}
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:0;
  border-collapse:collapse}
.woocommerce table.shop_table th{font-family:var(--sans);font-size:11px;
  letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);font-weight:500}
.woocommerce table.shop_table td,.woocommerce table.shop_table th{
  border-top:1px solid var(--line);padding:16px 12px}
.woocommerce-cart table.cart img{width:74px;background:var(--cream)}
.woocommerce .cart_totals h2,.woocommerce-checkout h3,
.woocommerce-account h2{font-family:var(--serif);font-size:22px;text-transform:uppercase;
  font-weight:500}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"]{border:1px solid var(--line);border-radius:0;
  padding:12px 14px;font:inherit;font-size:14px;background:#fff}
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error{border-top-color:var(--gold);background:var(--cream);
  border-radius:0;font-size:14px}
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before{color:var(--gold)}

@media(max-width:600px){
  .jk-chips{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;
    padding-bottom:6px;-webkit-overflow-scrolling:touch}
  .jk-chip{flex:0 0 auto}
  .jk-shop-head{flex-direction:column;align-items:stretch;gap:10px}
  .woocommerce .woocommerce-ordering select{width:100%}
  .wrap{padding:0 16px}
  /* Most homepage sections are both .wrap and .section. Keep this after .wrap so
     its horizontal-only padding does not accidentally erase section rhythm. */
  .wrap.section{padding:44px 16px}
  .sec-head{margin-bottom:28px}
  .sec-head h2{font-size:28px}
}

/* <picture> + art direction: width/height on both <img> and <source> provide the
   correct ratio for the image selected at each breakpoint. Do not force
   `aspect-ratio:auto` here: WordPress 7 adds `sizes="auto, ..."` to responsive
   images, and its 3000x1500 intrinsic lazy-load placeholder can then override the
   real attachment ratio and make every banner 1500px tall. */
.ban picture{display:block}
.ban picture img,
.ban > img{width:100%;height:auto;display:block}

/* Guard: `search` is a class WordPress puts on <body> for search-results pages.
   Two mockup leftovers (`.search{display:flex...}` and, inside a max-width:600px
   query, `.search{display:none}`) therefore applied to the BODY and blanked every
   search page on mobile. Never use a bare `.search` selector in this theme — the
   header search is `.jk-search`. */
body.search{display:block}
