/* ==========================================================
   BOUJEE PETS — shared design system
   Cool palette only. Accent #1E2F45.
   ========================================================== */
:root{
  --white:#FFFFFF;
  --mist:#F1F3F5;
  --mist-deep:#E7EAED;
  --silver:#DCE1E6;
  --navy:#1E2F45;
  --navy-soft:#33455D;
  --ink:#121B26;

  --text:#171B21;
  --grey:#464F5B;
  --grey-lt:#626B78;

  --line:rgba(30,47,69,.13);
  --line-mid:rgba(30,47,69,.28);

  --display:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Jost",-apple-system,"Segoe UI",Helvetica,sans-serif;

  --gutter:clamp(20px,4.6vw,72px);
  --max:1400px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--white);color:var(--text);
  font-family:var(--sans);font-weight:400;font-size:17px;line-height:1.72;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
/* WooCommerce and some parent themes set a purple link colour with
   higher specificity than a bare `a` selector. Reassert ours. */
.masthead a,.bp-footer a,footer a,.bp-main a,.crumb a,.card,.card a{color:inherit;text-decoration:none}
button,select,input{font:inherit;color:inherit}
:focus-visible{outline:1.5px solid var(--navy);outline-offset:4px}
/* Mouse and touch interaction should never leave a box. :focus-visible
   already limits the ring to keyboard use; these clear the rings that
   browsers and WooCommerce draw on :focus and on tap. */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible){outline:none;box-shadow:none}
a,button,.card,.swtile,.bp-fab,.bp-col,.bp-size{-webkit-tap-highlight-color:transparent}
a:active,button:active,.card:active{outline:none}
img{-webkit-user-drag:none}
.wrap{max-width:var(--max);margin:0 auto;padding-inline:var(--gutter)}

/* type */
.eyebrow{font-size:11.5px;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:var(--navy)}
.eyebrow--pale{color:rgba(255,255,255,.78)}
.eyebrow--grey{color:var(--grey-lt)}
.d{font-family:var(--display);font-weight:400;line-height:1.1;letter-spacing:-.015em}
h1.d{font-size:clamp(38px,5vw,72px);line-height:1.03}
h2.d{font-size:clamp(30px,3.8vw,54px)}
h3.d{font-size:clamp(20px,1.9vw,26px);line-height:1.2}
.d em{font-style:italic}
.lede{font-size:18px;font-weight:300;color:var(--grey);max-width:44ch;line-height:1.72}
.note{font-size:15.5px;color:var(--grey);line-height:1.72}
.on-dark .lede,.on-dark .note{color:rgba(255,255,255,.84)}

/* buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:16px 34px;border:1px solid transparent;cursor:pointer;
  font-size:11.5px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;
  transition:background .35s ease,color .35s ease,border-color .35s ease;
}
.btn--navy,.on-dark .btn--navy{background:var(--navy);color:#fff}
.btn--navy:hover{background:var(--ink)}
.btn--line{border-color:var(--line-mid);color:var(--navy);background:none}
.btn--line:hover{border-color:var(--navy);background:var(--navy);color:#fff}
.btn--pale,.on-dark .btn--pale{background:#fff;color:var(--navy)}
.btn--pale:hover{background:var(--silver)}
.btn--pale-line,.on-dark .btn--pale-line{border-color:rgba(255,255,255,.4);color:#fff;background:none}
.btn--pale-line:hover{border-color:#fff;background:#fff;color:var(--navy)}
.btn--wide{width:100%}
.btn-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}

/* masthead */
.masthead{position:sticky;top:0;z-index:80;background:rgba(255,255,255,.95);backdrop-filter:saturate(160%) blur(14px);border-bottom:1px solid transparent;transition:border-color .4s ease}
.masthead.is-stuck{border-bottom-color:var(--line)}
.masthead .wrap{display:flex;align-items:center;justify-content:space-between;gap:26px;height:114px}
.brand img,.brand .custom-logo{height:78px;width:auto}
.mainnav{display:flex;gap:36px;align-items:center}
.mainnav ul,.mainnav__list{list-style:none;display:flex;gap:36px;margin:0;padding:0;align-items:center}
.mainnav li{list-style:none;margin:0;padding:0}
.mainnav li::marker{content:""}
.mainnav a{font-size:12px;font-weight:400;letter-spacing:.16em;text-transform:uppercase;position:relative;padding-block:8px;color:var(--text)}
.mainnav a::after{content:"";position:absolute;left:0;bottom:2px;height:1px;width:0;background:var(--navy);transition:width .45s cubic-bezier(.2,.7,.3,1)}
.mainnav a:hover::after,.mainnav a[aria-current]::after{width:100%}
@media(max-width:980px){.mainnav{display:none}.brand img,.brand .custom-logo{height:56px}.masthead .wrap{height:88px}.masthead .btn{padding:12px 20px}}

/* breadcrumb */
.crumb{padding-block:26px 6px;font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--grey-lt)}
.crumb a:hover{color:var(--navy)}
.crumb span{margin-inline:8px}

/* product card */
.card__media{overflow:hidden;background:var(--mist);position:relative}
.card__media img{width:100%;aspect-ratio:4/5;object-fit:cover;transition:transform 1.1s cubic-bezier(.2,.7,.3,1)}
.card:hover .card__media img{transform:scale(1.03)}
.card__body{
  padding-top:20px;margin-top:20px;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;gap:20px;align-items:flex-start;
}
.card__body>div:first-child{min-width:0}  /* lets the name wrap, not the price */
@media(max-width:600px){
  .card__body{flex-direction:column;gap:12px;align-items:flex-start}
  .card__price{text-align:left}
  .card__price .card__label{display:inline;margin:0 6px 0 0}
}
.card__body h3{margin-bottom:6px}
.card__body p{font-size:15px;color:var(--grey);max-width:32ch;line-height:1.6}
.card__price{
  font-family:var(--display);font-size:18px;color:var(--navy);
  white-space:nowrap;padding-top:4px;text-align:right;
  flex:0 0 auto;   /* never squeezed by a long product name */
}
/* Only the label is a block. Scoped by class so it cannot catch
   WooCommerce's nested currency-symbol element, which would push the
   R onto its own line. */
.card__price .card__label{
  display:block;font-family:var(--sans);font-size:10.5px;font-weight:500;
  letter-spacing:.18em;text-transform:uppercase;color:var(--grey-lt);margin-bottom:3px;
}
.card__price .woocommerce-Price-amount,
.card__price .woocommerce-Price-currencySymbol{
  display:inline;white-space:nowrap;
}
.card__price bdi{white-space:nowrap}
.tag{position:absolute;top:14px;left:14px;background:#fff;color:var(--navy);font-size:10.5px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;padding:6px 11px}

/* footer — dark */
footer,.bp-footer{
  background:var(--navy);color:#fff;border-top:none;
  padding-block:clamp(56px,6.5vw,84px) 40px;
}
footer .wrap,.bp-footer .wrap{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:38px}
@media(max-width:860px){footer .wrap,.bp-footer .wrap{grid-template-columns:1fr 1fr}}
@media(max-width:520px){footer .wrap,.bp-footer .wrap{grid-template-columns:1fr}}
.fcol img,.fcol .custom-logo{height:84px;width:auto;margin-bottom:24px}
.fcol h5{
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.55);margin-bottom:18px;font-weight:500;
}
.fcol ul,.fcol .menu{list-style:none;display:flex;flex-direction:column;gap:11px;margin:0;padding:0}
.fcol li{margin:0;list-style:none}
.fcol a{font-size:15.5px;color:rgba(255,255,255,.86);transition:color .3s ease}
.fcol a:hover{color:#fff}
.fcol p{font-size:15px;color:rgba(255,255,255,.72);max-width:30ch;line-height:1.7}
.legal{
  margin-top:52px;padding-top:24px;border-top:1px solid rgba(255,255,255,.16);
  display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
  font-size:12.5px;letter-spacing:.08em;color:rgba(255,255,255,.6);text-transform:uppercase;
}
.legal span{white-space:nowrap}
@media(max-width:640px){
  .legal{flex-direction:column;align-items:flex-start;gap:10px}
  .legal span{white-space:normal}
}
.legal a{color:rgba(255,255,255,.78);border-bottom:1px solid rgba(255,255,255,.28)}
.legal a:hover{color:#fff;border-bottom-color:#fff}

/* reveal */
.rise{opacity:0;transform:translateY(24px);transition:opacity .95s cubic-bezier(.2,.7,.3,1),transform .95s cubic-bezier(.2,.7,.3,1)}
.rise.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important}
  .rise{opacity:1;transform:none}
  html{scroll-behavior:auto}
}

/* ---------- header actions: account, cart, shop ---------- */
.mast-actions{display:flex;align-items:center;gap:6px}
.iconlink{
  display:grid;place-items:center;position:relative;
  width:44px;height:44px;color:var(--navy);
  transition:color .3s ease;
}
.iconlink:hover{color:var(--ink)}
.iconlink svg{
  width:21px;height:21px;fill:none;stroke:currentColor;
  stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;
}
.bp-cart-count{
  position:absolute;top:5px;right:3px;min-width:17px;height:17px;padding:0 4px;
  display:grid;place-items:center;border-radius:999px;
  background:var(--navy);color:#fff;
  font-family:var(--sans);font-size:9.5px;font-weight:500;letter-spacing:0;line-height:1;
}
.bp-cart-count:empty,.bp-cart-count[data-count="0"]{display:none}
@media(max-width:520px){
  .mast-actions .btn{display:none}
  .iconlink{width:40px;height:40px}
}

/* ---------- footer social ---------- */
.social{display:flex;gap:6px;margin-top:20px}
.social a{
  display:grid;place-items:center;width:38px;height:38px;
  border:1px solid rgba(255,255,255,.28);color:rgba(255,255,255,.86);
  transition:background .3s ease,color .3s ease,border-color .3s ease;
}
.social a:hover{background:#fff;border-color:#fff;color:var(--ink)}
.social svg{
  width:17px;height:17px;fill:none;stroke:currentColor;
  stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;
}
.legal a{border-bottom:1px solid var(--line-mid)}
.legal a:hover{color:var(--navy)}

/* ==========================================================
   Variation pickers — fabric, colourway, size
   One authoritative block. Explicit box model throughout so
   nothing inherits stray line-height or margins from a parent
   theme or from WooCommerce's own button styles.
   ========================================================== */
.opt{border-top:1px solid var(--line);padding-block:24px}
.opt__label{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:16px}
.opt__label .eyebrow{color:var(--grey-lt)}
.opt__label b{font-family:var(--display);font-weight:400;font-size:18px}
.opt__hint{font-size:13.5px;color:var(--grey-lt);margin-top:16px;line-height:1.6}
.opt__hint a{color:var(--navy);border-bottom:1px solid var(--line-mid)}

/* fabric, grouped by collection */
.bp-fabgroup{margin:0 0 22px}
.bp-fabgroup:last-of-type{margin-bottom:0}
.fabgroup__head{display:flex;align-items:center;gap:12px;margin:0 0 12px;line-height:1}
.fabgroup__head span{
  font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;
  color:var(--grey-lt);white-space:nowrap;line-height:1;
}
.fabgroup__head .rule{flex:1;height:1px;background:var(--line);display:block}

.bp-swatches{
  display:flex;flex-wrap:wrap;gap:10px;
  margin:0;padding:0;line-height:0;align-items:center;
}
.bp-fab{
  flex:0 0 auto;width:42px;height:42px;margin:0;padding:0;
  border:none;background:none;border-radius:50%;
  position:relative;cursor:pointer;line-height:0;font-size:0;
  transition:transform .3s cubic-bezier(.2,.7,.3,1);
}
.bp-fab img{
  display:block;width:42px;height:42px;margin:0;
  border-radius:50%;object-fit:cover;
  box-shadow:inset 0 0 0 1px rgba(30,47,69,.18);
}
.bp-fab::after{
  content:"";position:absolute;inset:-5px;border-radius:50%;
  border:1.5px solid var(--navy);opacity:0;transform:scale(.86);
  transition:opacity .25s ease,transform .25s ease;
}
.bp-fab:hover{transform:translateY(-3px)}
.bp-fab[aria-pressed="true"]::after{opacity:1;transform:scale(1)}
.bp-fab:focus-visible{outline:none}
.bp-fab:focus-visible::after{opacity:1;transform:scale(1)}

/* colourway */
.bp-colourways{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0;padding:0}
@media(max-width:420px){.bp-colourways{grid-template-columns:repeat(2,1fr)}}
.bp-col{background:none;border:none;margin:0;padding:0;cursor:pointer;text-align:left;display:block}
.bp-col__img{position:relative;overflow:hidden;background:var(--mist);display:block;line-height:0}
.bp-col__img img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.3,1)}
.bp-col:hover .bp-col__img img{transform:scale(1.06)}
.bp-col__img::after{content:"";position:absolute;inset:0;border:1.5px solid var(--navy);opacity:0;transition:opacity .25s ease}
.bp-col[aria-pressed="true"] .bp-col__img::after{opacity:1}
.bp-col:focus-visible{outline:none}
.bp-col:focus-visible .bp-col__img::after{opacity:1}
.bp-col small{display:block;font-size:10.5px;font-weight:500;letter-spacing:.1em;color:var(--grey);margin-top:9px;line-height:1.3}

/* size */
.bp-sizes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:0}
@media(max-width:420px){.bp-sizes{grid-template-columns:1fr}}
.bp-size{
  border:1px solid var(--line-mid);background:none;cursor:pointer;text-align:left;
  margin:0;padding:15px 18px;border-radius:0;
  transition:border-color .3s ease,background .3s ease,color .3s ease;
}
.bp-size b{display:block;font-family:var(--display);font-weight:400;font-size:17.5px;line-height:1.2}
.bp-size small{display:block;font-size:12.5px;letter-spacing:.06em;color:var(--grey-lt);margin-top:5px}
.bp-size:hover{border-color:var(--navy)}
/* selected + keyboard focus both read navy, never the browser default */
.bp-size:focus,.bp-size:focus-visible{outline:none;border-color:var(--navy);box-shadow:0 0 0 1px var(--navy)}
.bp-size[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff;box-shadow:none}
.bp-size[aria-pressed="true"] small{color:rgba(255,255,255,.66)}

.bp-onesize{
  display:flex;justify-content:space-between;align-items:baseline;gap:16px;
  padding:16px 20px;border:1px solid var(--line-mid);
}
.bp-onesize b{font-family:var(--display);font-weight:400;font-size:17.5px}
.bp-onesize span{font-size:12.5px;color:var(--grey-lt);letter-spacing:.08em}

.bp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* product accordion step list (care instructions inside a product page) */
.steps{list-style:none;counter-reset:s;margin:8px 0 18px}
.steps li{counter-increment:s;position:relative;padding-left:46px;margin-bottom:18px;font-size:16px;color:var(--grey);line-height:1.72}
.steps li::before{
  content:counter(s,decimal-leading-zero);position:absolute;left:0;top:2px;
  font-family:var(--sans);font-size:11.5px;font-weight:500;letter-spacing:.12em;
  color:var(--navy);border-bottom:1px solid var(--line-mid);padding-bottom:2px;
}
.steps b{color:var(--text);font-weight:400}

/* quantity input inside the theme's own cart form */
.bp-cart--custom .quantity{display:inline-flex;align-items:center;border:1px solid var(--line-mid)}
.bp-cart--custom .quantity input{
  width:76px;text-align:center;border:none;background:none;
  font-family:var(--sans);font-size:16px;padding:15px 0;-moz-appearance:textfield;
}
.bp-cart--custom .quantity input::-webkit-outer-spin-button,
.bp-cart--custom .quantity input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.bp-cart--custom .qtyrow{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap}
.bp-cart--custom .single_add_to_cart_button{flex:1;min-width:200px}
