/*
Theme Name: Classy Glass
Theme URI: https://classyglasslb.com
Author: Classy Glass
Description: A warm, editorial theme for a personalized glassware studio. Built for WooCommerce, with the home page, menus, occasions and every line of copy editable from the WordPress admin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: classyglass
Tags: e-commerce, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   Classy Glass — home page styles
   Plain CSS. No framework, no build step, no utility classes.
   Everything is scoped under .cg so it can drop into an existing page
   without colliding with whatever is already there.
   ========================================================================== */

.cg {
  /* ---- palette ---- */
  --cream:    #f8f5ef;
  --ink:      #242421;
  --clay:     #a98355;
  --gold:     #d3ad78;
  --sand:     #e8e0d3;
  --linen:    #ded4c4;
  --pine:     #282a25;
  --charcoal: #252621;
  --muted:    #777066;
  --muted-2:  #81786c;
  --muted-3:  #6f685e;
  --rule:     #d8d0c3;

  /* ---- type ---- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* ---- rhythm ---- */
  --max:    1380px;
  --gutter: 24px;
  --section-y: 96px;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
  .cg { --gutter: 48px; --section-y: 128px; }
}

.cg *,
.cg *::before,
.cg *::after { box-sizing: border-box; }

.cg img { display: block; max-width: 100%; }

.cg a { color: inherit; text-decoration: none; }

.cg h1, .cg h2, .cg h3, .cg p, .cg figure { margin: 0; }

.cg__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.cg__section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

/* --------------------------------------------------------------- headings */
.cg__display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
}
.cg__display em { font-style: italic; color: var(--clay); }

.cg__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9a805b;
}
.cg__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: #b99562;
  flex: none;
}
.cg__eyebrow--light { color: rgba(255, 255, 255, 0.65); }
.cg__eyebrow--light::before { background: rgba(255, 255, 255, 0.4); }

/* ---------------------------------------------------------------- buttons */
.cg__btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border: 0;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.cg__btn svg { transition: transform 0.25s ease; }
.cg__btn:hover svg { transform: translateX(4px); }

.cg__btn--solid { background: #eee5d6; color: #292a25; }
.cg__btn--solid:hover { background: #e6c89c; }

.cg__btn--gold { background: var(--gold); color: #272923; }
.cg__btn--gold:hover { background: #ead0a6; }

.cg__btn--ghost { background: transparent; color: #fff; padding: 14px 8px; }
.cg__btn--ghost:hover { color: #e6c89c; }

.cg__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--clay);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #514d43;
}
.cg__link svg { transition: transform 0.25s ease; }
.cg__link:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------- hero */
.cg__hero {
  position: relative;
  min-height: 690px;
  height: 100svh;
  max-height: 840px;
  overflow: hidden;
  background: #7b6a53;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.cg__hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
  animation: cg-image-reveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.cg__hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(32, 34, 31, 0.5), transparent 55%, rgba(32, 34, 31, 0.15)),
    linear-gradient(to right, rgba(32, 34, 31, 0.75), rgba(32, 34, 31, 0.2) 55%, transparent);
}
.cg__hero-body { position: relative; width: 100%; padding-bottom: 64px; }
.cg__hero-copy { max-width: 620px; }

.cg__hero-title {
  margin-top: 28px;
  max-width: 610px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 6.25rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  white-space: pre-line;
}
.cg__hero-text {
  margin-top: 28px;
  max-width: 410px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}
.cg__hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.cg__hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 36px;
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.cg__hero-scroll::before { content: ""; width: 64px; height: 1px; background: rgba(255, 255, 255, 0.4); }

@media (min-width: 1024px) {
  .cg__hero { min-height: 840px; }
  .cg__hero-body { padding-bottom: 112px; }
  .cg__hero-scroll { display: flex; }
}

/* ------------------------------------------------------------------ strip */
.cg__strip {
  border-bottom: 1px solid #ded7cb;
  background: var(--cream);
  padding: 20px 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #777267;
}
.cg__strip .cg__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cg__strip span { display: flex; align-items: center; gap: 12px; }
.cg__strip svg { color: #ad8856; }
.cg__strip i { display: none; width: 1px; height: 12px; background: #d2c9ba; }
@media (min-width: 640px) { .cg__strip i { display: block; } }

/* ------------------------------------------------------- section headers */
.cg__head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
@media (min-width: 768px) {
  .cg__head { flex-direction: row; align-items: flex-end; }
}
.cg__head .cg__display { margin-top: 20px; max-width: 620px; }
.cg__head p { max-width: 310px; font-size: 14px; line-height: 1.7; color: var(--muted-3); }

/* ------------------------------------------------------------- card grids */
.cg__grid {
  display: grid;
  gap: 16px;
  margin-top: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cg__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cg__grid { grid-template-columns: repeat(4, 1fr); } }

/* occasion card */
.cg__occasion {
  position: relative;
  display: block;
  height: 380px;
  overflow: hidden;
  background: #e6ddcf;
}
@media (min-width: 640px) { .cg__occasion { height: 430px; } }
.cg__occasion img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.cg__occasion:hover img { transform: scale(1.05); }
.cg__occasion::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 33, 29, 0.75), rgba(29, 33, 29, 0.1) 55%, transparent);
}
.cg__occasion-body { position: absolute; left: 24px; right: 20px; bottom: 24px; z-index: 1; color: #fff; }
.cg__occasion-tag { font-size: 9px; letter-spacing: 0.19em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.cg__occasion-title { margin-top: 8px; font-family: var(--serif); font-weight: 300; font-size: 1.5rem; line-height: 1.02; }
.cg__occasion-more {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cg__occasion:hover .cg__occasion-more { opacity: 1; }

/* ------------------------------------------------------------- collection */
.cg__collection { background: var(--sand); }
.cg__product { display: block; }
.cg__product-media {
  position: relative;
  aspect-ratio: 0.88;
  overflow: hidden;
  background: #f4eee5;
}
.cg__product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.cg__product:hover .cg__product-media img { transform: scale(1.035); }
.cg__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  border-radius: 999px;
  background: rgba(248, 245, 239, 0.85);
  padding: 6px 12px;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #766d60;
}
.cg__save {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 245, 239, 0.85);
  color: #6d6559;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, color 0.2s ease;
}
.cg__product:hover .cg__save { opacity: 1; }
.cg__save[aria-pressed="true"] { opacity: 1; color: var(--clay); }
.cg__save[aria-pressed="true"] svg { fill: currentColor; }

.cg__product-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
}
.cg__product-name { font-family: var(--serif); font-weight: 300; font-size: 1.25rem; color: #2c2c27; }
.cg__product-type { margin-top: 4px; font-size: 11px; color: var(--muted-2); }
.cg__product-price { padding-top: 4px; font-size: 12px; color: #4d473e; }

.cg__center { margin-top: 48px; text-align: center; }

/* ----------------------------------------------------------- custom order */
.cg__custom { background: var(--pine); color: #fff; }
.cg__split {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .cg__split { grid-template-columns: 1.05fr 0.95fr; gap: 96px; }
  .cg__split--reverse { grid-template-columns: 0.85fr 1.15fr; }
}
.cg__figure { position: relative; overflow: hidden; }
.cg__figure img { width: 100%; height: 470px; object-fit: cover; }
@media (min-width: 640px) { .cg__figure img { height: 560px; } }
.cg__figure-note {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  padding: 12px 16px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3d3b35;
}
.cg__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--clay); }

.cg__custom .cg__display { margin-top: 24px; max-width: 530px; font-size: clamp(2.75rem, 7vw, 4.5rem); }
.cg__custom .cg__display em { color: var(--gold); }
.cg__custom-text {
  margin-top: 28px;
  max-width: 450px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
}
.cg__steps { margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 28px; }
.cg__step { display: flex; gap: 20px; }
.cg__step + .cg__step { margin-top: 24px; }
.cg__step b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--gold); }
.cg__step h3 { font-size: 14px; font-weight: 500; }
.cg__step p { margin-top: 4px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.5); }
.cg__custom .cg__btn { margin-top: 40px; }

/* ------------------------------------------------------------------ craft */
.cg__craft .cg__display { margin-top: 24px; max-width: 480px; font-size: clamp(2.75rem, 7vw, 4.5rem); }
.cg__craft-text { margin-top: 28px; max-width: 430px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.cg__stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 400px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
.cg__stats div + div { border-left: 1px solid var(--rule); padding-left: 20px; }
.cg__stats strong { font-family: var(--serif); font-weight: 300; font-size: 1.875rem; }
.cg__stats p { margin-top: 4px; font-size: 9px; letter-spacing: 0.17em; text-transform: uppercase; color: #887f72; }
.cg__craft .cg__link { margin-top: 40px; }
.cg__craft-figure img { height: 520px; }
@media (min-width: 640px) { .cg__craft-figure img { height: 620px; } }
.cg__quote { position: absolute; left: 20px; bottom: 20px; background: var(--cream); padding: 16px 20px; }
.cg__quote p { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: #554d42; }
.cg__quote span { display: block; margin-top: 4px; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: #948979; }

/* -------------------------------------------------------------- instagram */
.cg__social { padding: 80px 0; }
.cg__social-head { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
@media (min-width: 640px) { .cg__social-head { flex-direction: row; align-items: flex-end; } }
.cg__social-handle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6f6253;
  transition: color 0.2s ease;
}
.cg__social-handle:hover { color: var(--clay); }
.cg__tiles {
  margin-top: 40px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .cg__tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cg__tiles { grid-template-columns: repeat(6, 1fr); } }
.cg__tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.cg__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1); }
.cg__tile:hover img { transform: scale(1.1); }
.cg__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 38, 33, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cg__tile:hover::after { opacity: 1; }

/* ------------------------------------------------------------- newsletter */
.cg__newsletter { background: var(--linen); padding: 80px 0; }
.cg__newsletter .cg__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .cg__newsletter .cg__inner { grid-template-columns: 1fr auto; gap: 80px; }
}
.cg__newsletter h2 { margin-top: 20px; font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.04em; }
.cg__form { display: flex; max-width: 480px; border-bottom: 1px solid #a89780; padding-bottom: 12px; }
.cg__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: inherit;
  outline: none;
}
.cg__form input::placeholder { color: #8b8174; }
.cg__form button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.cg__form-note { margin-top: 12px; font-size: 12px; color: var(--muted-3); min-height: 18px; }

/* -------------------------------------------------------------- whatsapp */
.cg__whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  background: #2d6d51;
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 12px 28px rgba(35, 75, 54, 0.28);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.cg__whatsapp:hover { transform: translateY(-4px); background: #235c43; }
.cg__whatsapp span { display: none; }
@media (min-width: 640px) { .cg__whatsapp span { display: inline; } }

/* ------------------------------------------------------------- animation */
@keyframes cg-image-reveal {
  from { opacity: 0; transform: scale(1.055); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes cg-rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cg__reveal { opacity: 0; }
.cg__reveal.is-visible { animation: cg-rise-in 0.7s cubic-bezier(0.23, 1, 0.32, 1) both; }
.cg__reveal[data-delay="1"].is-visible { animation-delay: 0.09s; }
.cg__reveal[data-delay="2"].is-visible { animation-delay: 0.18s; }
.cg__reveal[data-delay="3"].is-visible { animation-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
  .cg *, .cg *::before, .cg *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cg__reveal { opacity: 1; }
}

/* ==========================================================================
   THEME CHROME — header, navigation, footer, archives, WooCommerce
   ========================================================================== */

.cg-body { margin: 0; background: var(--cream, #f8f5ef); }

.cg-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #252621;
  color: #fff;
  padding: 12px 20px;
  font-size: 12px;
}
.cg-skip:focus { left: 0; }

/* ------------------------------------------------------- announcement bar */
.cg-announce {
  background: var(--charcoal);
  padding: 8px 20px;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #eee5d6;
}

/* ----------------------------------------------------------------- header */
.cg-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 245, 239, 0.95);
  border-bottom: 1px solid #ded7cb;
  backdrop-filter: blur(10px);
}
.cg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Over the hero on the front page, then solid once you scroll. */
@media (min-width: 1024px) {
  .cg-header--overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 32px;
    background: transparent;
    border-bottom: 0;
    color: #fff;
    transition: background-color 0.3s ease, top 0.3s ease;
  }
  .cg-header--overlay.is-stuck {
    position: fixed;
    top: 0;
    background: rgba(37, 38, 33, 0.95);
  }
}

.cg-brand { display: flex; align-items: center; gap: 12px; }
.cg-brand__mark {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--clay);
}
.cg-header--overlay .cg-brand__mark { color: rgba(255, 255, 255, 0.55); }
.cg-brand__name {
  display: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}
@media (min-width: 640px) { .cg-brand__name { display: block; } }
.cg-brand .custom-logo { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; }

/* ------------------------------------------------------------- navigation */
.cg-nav { display: none; }
@media (min-width: 1024px) { .cg-nav { display: block; } }

.cg-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #5c554a;
}
.cg-header--overlay .cg-nav__list { color: rgba(255, 255, 255, 0.92); font-size: 11px; }
.cg-nav__list li { position: relative; }
.cg-nav__list a { transition: color 0.2s ease; }
.cg-nav__list a:hover { color: var(--clay); }
.cg-header--overlay .cg-nav__list a:hover { color: #e5c89c; }
.cg-nav__list .current-menu-item > a { color: var(--clay); }

/* the two-column shop panel */
.cg-submenu {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 50;
  width: 560px;
  transform: translate(-50%, 6px);
  padding-top: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.2s;
}
.cg-nav__list li:hover > .cg-submenu,
.cg-nav__list li:focus-within > .cg-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.cg-submenu__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border: 1px solid #ded7cb;
  background: var(--cream);
  color: var(--ink);
  padding: 28px;
  box-shadow: 0 28px 60px rgba(63, 56, 44, 0.16);
}
.cg-submenu__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clay);
}
.cg-submenu__list { margin-top: 16px; border-top: 1px solid #e3dccf; padding-top: 8px; }
.cg-submenu__list a {
  display: block;
  padding: 7px 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #5c554a;
}
.cg-submenu__list a:hover { color: var(--clay); }

/* ------------------------------------------------------------- header bits */
.cg-header__actions { display: flex; align-items: center; gap: 16px; }
.cg-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  padding: 4px;
  color: inherit;
  cursor: pointer;
}
.cg-header:not(.cg-header--overlay) .cg-icon-btn { color: #4d493f; }
.cg-cart__count {
  position: absolute;
  top: -4px;
  right: -6px;
  display: flex;
  min-width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #cfaa77;
  font-size: 8px;
  font-weight: 600;
  color: #252621;
}
@media (min-width: 1024px) { .cg-burger { display: none; } }

/* ------------------------------------------------------------ mobile menu */
.cg-mobile {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--charcoal);
  color: #fff;
  padding: 32px 24px;
  overflow-y: auto;
}
.cg-mobile[hidden] { display: none; }
.cg-mobile__top { display: flex; align-items: center; justify-content: space-between; }
.cg-mobile__list {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.875rem;
  letter-spacing: -0.04em;
}
.cg-mobile .cg-submenu {
  position: static;
  width: auto;
  transform: none;
  opacity: 1;
  visibility: visible;
  padding-top: 32px;
}
.cg-mobile .cg-submenu__panel {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: #fff;
  padding: 24px 0 0;
}
.cg-mobile .cg-submenu__label { color: #cfaa77; }
.cg-mobile .cg-submenu__list { border-top-color: rgba(255, 255, 255, 0.12); }
.cg-mobile .cg-submenu__list a { color: rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------------------- page heads */
.cg-page-head {
  background: var(--pine);
  color: #fff;
  padding: 80px 0;
}
.cg-page-head--slim { padding: 32px 0; }
.cg-page-head__title {
  margin-top: 24px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.cg-page-head__title--dark { color: var(--ink); margin-top: 16px; }
.cg-page-head__title em { font-style: italic; color: var(--gold); }
.cg-page-head__text { margin-top: 24px; max-width: 460px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.65); }
.cg-page-head__meta { margin-top: 48px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.cg-page-head--narrow { max-width: 900px; }
.cg-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.cg-back:hover { color: #fff; }

/* ----------------------------------------------------------------- posts */
.cg-posts { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cg-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cg-posts { grid-template-columns: repeat(3, 1fr); } }

.cg-post-card__media { aspect-ratio: 1.2; overflow: hidden; background: var(--sand); }
.cg-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1); }
.cg-post-card:hover .cg-post-card__media img { transform: scale(1.05); }
.cg-post-card__meta { margin-top: 20px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); }
.cg-post-card__title { margin-top: 12px; font-family: var(--serif); font-weight: 300; font-size: 1.75rem; line-height: 0.98; }
.cg-post-card__excerpt { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.cg-post-card__more { margin-top: 20px; display: inline-flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }

/* --------------------------------------------------------------- article */
.cg-article__hero { margin: 0 0 48px; }
.cg-article__hero img { width: 100%; max-height: 620px; object-fit: cover; }
.cg-article {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  color: #625c52;
}
.cg-article--tight { margin: 24px 0 0; }
.cg-article > p { margin: 0 0 24px; }
.cg-article > p:first-of-type { font-family: var(--serif); font-size: 1.75rem; line-height: 1.25; color: #2d2d28; }
.cg-article h2, .cg-article h3 { font-family: var(--serif); font-weight: 300; color: var(--ink); margin: 40px 0 16px; letter-spacing: -0.02em; }
.cg-article h2 { font-size: 2rem; }
.cg-article h3 { font-size: 1.5rem; }
.cg-article a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.cg-article img { height: auto; margin: 32px 0; }
.cg-article blockquote {
  margin: 32px 0;
  padding-left: 24px;
  border-left: 2px solid var(--clay);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  color: #4d473e;
}
.cg-article ul, .cg-article ol { padding-left: 20px; margin: 0 0 24px; }
.cg-article li { margin-bottom: 8px; }

.cg-empty { padding: 80px 0; text-align: center; font-family: var(--serif); font-size: 2rem; color: var(--muted); }
.cg-404 { text-align: center; padding: 120px 0; }
.cg-404 h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 8vw, 4.5rem); }
.cg-404 p { margin-top: 16px; color: var(--muted-2); }
.cg-404 .cg__link { margin-top: 32px; }

.pagination, .woocommerce-pagination { margin-top: 56px; text-align: center; }
.pagination .page-numbers, .woocommerce-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}
.pagination .current, .woocommerce-pagination .current { background: var(--pine); color: #fff; }

/* ----------------------------------------------------------------- footer */
.cg-footer { background: var(--charcoal); color: #fff; padding: 64px 0 32px; }
.cg-footer__grid {
  display: grid;
  gap: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 56px;
}
@media (min-width: 768px) { .cg-footer__grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; } }
.cg-brand--footer .cg-brand__mark { color: #cfaa77; }
.cg-brand--footer .cg-brand__name { display: block; }
.cg-footer__promise { margin-top: 28px; max-width: 270px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.5); }
.cg-footer__social { margin-top: 24px; display: flex; gap: 12px; }
.cg-footer__social a {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cg-footer__social a:hover { border-color: #cfaa77; color: #cfaa77; }
.cg-footer h3 { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #cfaa77; font-weight: 600; }
.cg-footer__list { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cg-footer__list a { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.cg-footer__list a:hover { color: #fff; }
.cg-footer__contact { margin-top: 20px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.6); }
.cg-footer__hint { margin-top: 20px; font-size: 12px; color: rgba(255, 255, 255, 0.35); }
.cg-footer__cta { margin-top: 20px; display: inline-flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #cfaa77; }
.cg-footer__base {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
@media (min-width: 640px) { .cg-footer__base { flex-direction: row; justify-content: space-between; } }

/* ------------------------------------------------------------ WooCommerce */
.cg-woo { padding-top: 56px; padding-bottom: 96px; }

.cg-filters { margin-bottom: 40px; border-bottom: 1px solid #ded7cb; padding-bottom: 24px; }
.cg-filters__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.cg-filters__row::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .cg-filters__row { flex-wrap: wrap; overflow: visible; } }
.cg-filters__label {
  flex: none;
  margin-right: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}
.cg-chip {
  flex: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #756d62;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cg-chip:hover { background: var(--sand); }
.cg-chip.is-active { background: var(--pine); color: #fff; }
.cg-chip--outline { border: 1px solid #d8d0c3; }
.cg-chip--outline:hover { border-color: var(--clay); background: transparent; }

.woocommerce ul.products {
  display: grid;
  gap: 20px 20px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); } }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  text-align: left;
}
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
  margin: 0 0 16px;
  background: var(--sand);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.03); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem !important;
  line-height: 1;
  padding: 0 !important;
  color: var(--ink);
}
.cg-product__note { margin: 8px 0 0; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--clay); }
.woocommerce ul.products li.product .price {
  display: block;
  margin-top: 8px;
  font-size: 13px !important;
  color: #4d473e !important;
  font-weight: 400;
}
.woocommerce ul.products li.product .price del { color: #9a9082 !important; }
.woocommerce span.onsale {
  background: var(--cream);
  color: #6c6255;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-height: 0;
  min-width: 0;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  top: 12px;
  left: 12px;
  right: auto;
  margin: 0;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 24px; font-size: 12px; color: var(--muted-2); }

/* buttons */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--pine) !important;
  color: #fff !important;
  border-radius: 0 !important;
  padding: 16px 22px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  transition: background-color 0.25s ease;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button.alt:hover { background: var(--clay) !important; }

/* single product */
.woocommerce div.product .product_title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--serif);
  font-size: 1.875rem !important;
  color: var(--ink) !important;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted-3);
}
.woocommerce div.product .woocommerce-tabs ul.tabs { padding-left: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 0; background: var(--sand); border-color: #ded7cb; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--cream); }

.cg-engraving { margin: 24px 0; border-top: 1px solid #ded7cb; border-bottom: 1px solid #ded7cb; padding: 24px 0; }
.cg-engraving label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #4d473e;
}
.cg-engraving input {
  margin-top: 12px;
  width: 100%;
  max-width: 420px;
  border: 1px solid #d4cabb;
  background: #fbf9f5;
  padding: 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.cg-engraving input:focus { border-color: var(--clay); }
.cg-engraving__note { margin-top: 8px; font-size: 11px; color: #938878; }

/* cart, checkout, account */
.woocommerce table.shop_table { border-radius: 0; border-color: #ded7cb; }
.woocommerce-cart table.cart img { width: 72px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
  border: 1px solid #d4cabb;
  background: #fff;
  padding: 12px 14px;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  height: auto;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--clay);
  background: #f2ece1;
  font-size: 14px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--clay); }
.woocommerce h2, .woocommerce h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; }

/* --------------------------------------------------------- block editor */
.cg-article .wp-block-image img { margin: 0; }
.cg-article .alignwide { max-width: 1100px; margin-left: calc(50% - 550px); }
.cg-article .alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); }
@media (max-width: 1180px) {
  .cg-article .alignwide { max-width: 100%; margin-left: 0; }
}
