/* Store Designer package for Reptile Gifts */
/* Reptile Gifts: a well-kept planted vivarium at lamp-on hour */
:root{
  --rg-moss:#F1F5EC;      /* very pale moss tint */
  --rg-deep:#17201A;      /* vivarium shade */
  --rg-amber:#E9C46A;     /* lamp light, on dark only */
  --rg-ease:cubic-bezier(.22,.7,.2,1);
}
body{overflow-x:clip}

/* ---------- shared ---------- */
.rg-home{color:var(--cs-text)}
.rg-home h1,.rg-home h2{font-family:var(--cs-font-h);color:var(--cs-ink);letter-spacing:-.02em;text-wrap:balance}
.rg-bleed{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.rg-h2{font-size:clamp(1.75rem,1.1rem + 2.4vw,2.75rem);line-height:1.08;margin:0}
.rg-home .cs-eyebrow{color:var(--cs-primary);font-weight:700;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem;margin:0 0 .6rem}
.rg-home .rg-head{margin-bottom:clamp(1.25rem,3vw,2.25rem)}
.rg-head--center{text-align:center}
.rg-band{background:var(--rg-moss)}

/* ---------- hero ---------- */
.rg-hero{position:relative;display:flex;align-items:center;min-height:clamp(520px,74vh,760px);background:var(--rg-deep);overflow:hidden;isolation:isolate}
.rg-hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:72% 50%;z-index:-2}
.rg-hero__shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(14,20,15,.92) 0%,rgba(14,20,15,.78) 32%,rgba(14,20,15,.25) 58%,rgba(14,20,15,0) 75%)}
.rg-hero__in{width:100%;padding-top:3.5rem;padding-bottom:3.5rem}
.rg-hero__in>*{max-width:34rem}
.rg-hero__in>.rg-hero__title{max-width:40rem}
.rg-home .rg-hero__eyebrow{color:var(--rg-amber)}
.rg-home .rg-hero__title{color:#fff;font-size:clamp(2.1rem,1.2rem + 3.6vw,3.7rem);line-height:1.04;margin:0 0 1.1rem}
.rg-hero__lead{color:#E3E8DD;font-size:clamp(1.02rem,.95rem + .4vw,1.2rem);line-height:1.55;margin:0 0 1.8rem}
.rg-hero__cta{display:flex;flex-wrap:wrap;gap:.75rem}
.rg-hero__cta .cs-btn{min-height:48px}
.rg-home .rg-btn-light{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.7);box-shadow:none}
.rg-home .rg-btn-light:hover{background:#fff;color:var(--cs-ink);border-color:#fff}
@media (max-width:760px){
  .rg-hero{align-items:flex-end;min-height:640px}
  .rg-hero__img{object-position:80% 22%;height:62%}
  .rg-hero__shade{background:linear-gradient(180deg,rgba(14,20,15,0) 0%,rgba(14,20,15,0) 26%,rgba(23,32,26,.9) 50%,var(--rg-deep) 60%)}
  .rg-hero__in{padding-top:0;padding-bottom:2.25rem}
  .rg-hero__cta .cs-btn{flex:1 1 100%;justify-content:center;text-align:center}
}
@media (prefers-reduced-motion:no-preference){
  .rg-hero__img{animation:rg-pan 28s var(--rg-ease) both}
  @keyframes rg-pan{from{transform:scale(1.08) translateX(1.5%)}to{transform:scale(1) translateX(0)}}
}

/* ---------- animal tiles ---------- */
.rg-bento{display:grid;gap:14px;grid-template-columns:5fr 3.5fr 3.5fr;grid-template-rows:repeat(2,minmax(0,1fr))}
.rg-tile{position:relative;display:block;overflow:hidden;border-radius:var(--cs-r-lg,16px);background:var(--rg-deep);min-height:250px;isolation:isolate;text-decoration:none}
.rg-tile--lead{grid-row:1 / span 2;aspect-ratio:4 / 4.6}
.rg-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .9s var(--rg-ease)}
.rg-tile::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(14,20,15,0) 42%,rgba(14,20,15,.82) 100%)}
.rg-tile::after{content:"";position:absolute;inset:7px;border:1px solid rgba(255,255,255,.28);border-radius:calc(var(--cs-r-lg,16px) - 5px);pointer-events:none}
.rg-tile__body{position:absolute;left:0;right:0;bottom:0;padding:1.25rem 1.35rem 1.3rem;display:flex;flex-direction:column;gap:.2rem;color:#fff}
.rg-tile__name{font-family:var(--cs-font-h);font-weight:700;font-size:clamp(1.2rem,1rem + .8vw,1.6rem);line-height:1.1;letter-spacing:-.01em}
.rg-tile--lead .rg-tile__name{font-size:clamp(1.5rem,1.1rem + 1.6vw,2.2rem)}
.rg-tile__go{font-size:.95rem;color:#E3E8DD}
.rg-tile:hover img,.rg-tile:focus-visible img{transform:scale(1.05)}
.rg-tile:focus-visible{outline:3px solid var(--cs-accent);outline-offset:3px}
@media (max-width:900px){
  .rg-bento{grid-template-columns:1fr 1fr;grid-template-rows:none}
  .rg-tile--lead{grid-column:1 / -1;grid-row:auto;aspect-ratio:16 / 12}
  .rg-tile{min-height:0;aspect-ratio:4 / 5}
  .rg-tile__body{padding:.9rem .95rem 1rem}
  .rg-tile__go{font-size:.84rem}
}

/* ---------- story ---------- */
.rg-story__split{align-items:center;gap:clamp(2rem,5vw,4.5rem)}
.rg-story__media{position:relative;padding-bottom:2.5rem}
.rg-frame{border-radius:var(--cs-r-lg,16px);overflow:hidden;box-shadow:0 24px 50px -28px rgba(23,32,26,.55)}
.rg-frame img{display:block;width:100%;height:auto}
.rg-card{position:absolute;right:-1.25rem;bottom:0;width:min(290px,78%);background:#fff;border:1px solid #DDE3D6;border-radius:10px;padding:1rem 1.1rem 1.05rem;box-shadow:0 18px 36px -22px rgba(23,32,26,.5)}
.rg-card__title{font-family:var(--cs-font-h);font-weight:700;color:var(--cs-ink);font-size:.95rem;margin:0 0 .55rem}
.rg-card__list{margin:0;display:grid;gap:.4rem}
.rg-card__list div{display:grid;grid-template-columns:5.6rem 1fr;gap:.5rem;font-size:.86rem;line-height:1.35}
.rg-card__list dt{color:var(--cs-primary);font-weight:700}
.rg-card__list dd{margin:0;color:var(--cs-text)}
.rg-points{list-style:none;margin:1.3rem 0 1.7rem;padding:0;display:grid;gap:.8rem}
.rg-points li{position:relative;padding-left:1.6rem;line-height:1.5;max-width:52ch}
.rg-points li::before{content:"";position:absolute;left:0;top:.5em;width:.7rem;height:.7rem;border-radius:50% 50% 50% 0;background:var(--cs-primary);transform:rotate(45deg)}
.rg-points strong{color:var(--cs-ink)}
@media (max-width:760px){.rg-card{right:.5rem}}


/* ---------- species round row ---------- */
.rg-species .rg-round img{transition:transform .6s var(--rg-ease)}
.rg-species .rg-round a:hover img{transform:scale(1.06)}

/* ---------- gift guide (dark, lamp glow) ---------- */
.rg-gift{background:radial-gradient(60rem 30rem at 12% -10%,rgba(233,196,106,.2),rgba(233,196,106,0) 60%),var(--rg-deep);color:#DCE2D6}
.rg-gift__in{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(1.75rem,4vw,4rem);align-items:start}
.rg-home .rg-gift__title{color:#fff}
.rg-home .rg-gift__title{margin-bottom:1.6rem}
.rg-gift__img{display:block;width:100%;height:auto;border-radius:var(--cs-r-lg,16px)}
.rg-routes{align-self:center;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.rg-route{display:grid;grid-template-columns:104px 1fr;align-items:stretch;background:#202C23;border:1px solid #2F3E32;border-radius:14px;overflow:hidden;color:#DCE2D6;text-decoration:none;min-height:150px;transition:transform .35s var(--rg-ease),border-color .35s,background .35s}
.rg-route img{width:100%;height:100%;object-fit:cover;display:block}
.rg-route__body{display:flex;flex-direction:column;justify-content:center;gap:.35rem;padding:1rem 1.1rem}
.rg-route__name{font-family:var(--cs-font-h);font-weight:700;color:#fff;font-size:1.2rem;line-height:1.15}
.rg-route__text{font-size:.92rem;line-height:1.45;color:#C9D0C3}
.rg-route:hover,.rg-route:focus-visible{transform:translateY(-3px);border-color:var(--rg-amber);background:#243228}
.rg-route:focus-visible{outline:3px solid var(--rg-amber);outline-offset:3px}
@media (max-width:980px){.rg-gift__in{grid-template-columns:1fr}.rg-gift__img{display:none}}
@media (max-width:600px){.rg-routes{grid-template-columns:1fr}.rg-route{grid-template-columns:96px 1fr;min-height:128px}}

/* ---------- theme touches ---------- */
.cs-catbanner{border-radius:var(--cs-r-lg,16px);overflow:hidden}
@media (max-width:520px){
  .rg-bento{grid-template-columns:1fr}
  .rg-tile{aspect-ratio:16 / 9}
  .rg-tile img{object-position:50% 35%}
}
@media (max-width:520px){
  .rg-tile--lead{aspect-ratio:4 / 3.7}
  .rg-tile--lead img{object-position:50% 12%}
}

/* ---------- design review, round 2 ---------- */
/* the theme clips the home container; let the hero, moss and gift bands run edge to edge (body already clips x) */
.cs-home{overflow:visible}
.rg-home a.rg-route,.rg-home a.rg-tile,.rg-home a.rg-route:hover,.rg-home a.rg-tile:hover{text-decoration:none}
/* eight species on one row; four across on phones */
@media (min-width:1000px){.rg-species .cs-tiles--round{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media (max-width:600px){.rg-species .cs-tiles--round{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 10px}.rg-species .cs-tiles--round a{font-size:.78rem;line-height:1.2}}
.cs-catbanner{margin-top:1rem}
/* footer: keep the support address on one line */
@media (min-width:1000px){.cs-footer a[href^="mailto:"]{white-space:nowrap;font-size:.86em}}
@media (max-width:600px){.cs-footer__grid>div:nth-child(4){order:3}.cs-footer__grid>div:nth-child(3){order:4;grid-column:1 / -1}}
/* cart page: keep the cart inside the page container (it was pulled 80px left, off-screen on phones) */
.wp-block-woocommerce-cart.alignwide{margin-left:0;margin-right:0;max-width:100%}

/* ---------- product options: store fonts (CHA-28) ----------
   The option label / chip styles shipped with the store name another store's
   font. Labels take the heading font, chips and messages the body font. */
html .woocommerce div.product form.variations_form table.variations th.label label{font-family:var(--cs-font-h)!important}
html .woocommerce div.product form.variations_form table.variations .woo-selected-variation-item-name,
html .woocommerce div.product form.variations_form .variable-items-wrapper .button-variable-item .variable-item-contents,
html .woocommerce div.product form.variations_form .variable-items-wrapper .button-variable-item .variable-item-span,
html body .opa-nudge-msg{font-family:var(--cs-font-b)!important}

/* ---------- exchanges promise: subline for a store that is mostly not apparel (CHA-28) ----------
   The theme's line reads "Wrong size? Swap it". Hidden and replaced here until the theme text itself changes. */
.cs-trust__item:has(.cs-i-swap) div > span,
.cs-trustrow li:has(.cs-i-swap) small{display:none}
.cs-trust__item:has(.cs-i-swap) div::after,
.cs-trustrow li:has(.cs-i-swap) > span::after{content:"Wrong or damaged item? We replace it";display:block;font-size:13px;line-height:1.4;color:var(--cs-muted)}

/* ---------- CHA-29: small photos are bright close-ups ---------- */
.cs-mm__media img{background:var(--rg-moss)}
.rg-route img{background:var(--rg-moss)}
.rg-species .rg-round{list-style:none;padding:0;margin:0}
.rg-species .rg-round a{text-decoration:none}
.rg-species .rg-round .cs-tiles__img{box-shadow:0 0 0 1px rgba(28,33,27,.08)}
/* footer logo: hold its space and never wait on anything */
.cs-footer__logo img{aspect-ratio:1796 / 330;opacity:1;visibility:visible}
