/* =====================================================================
   Amazing Meds — Divi child theme
   ---------------------------------------------------------------------
   Only what Divi's global settings cannot express lives here.
   Fonts, colours, sizes, header height, footer columns, button styling
   are all set in Divi > Theme Options / Customizer.
   ===================================================================== */

/* ---------- Design tokens (mirrors design/index.html :root) ---------- */
:root {
  --ama-ink: #2f2a25;
  --ama-ink-2: #26251f;
  --ama-heading: #312c21;
  --ama-body: #5a5a5a;
  --ama-muted: #8a8172;
  --ama-cream: #f9f7f3;
  --ama-cream-2: #f5efe6;
  --ama-sand: #ebe4d7;
  --ama-sand-2: #e8decd;
  --ama-gold: #bfa568;
  --ama-gold-d: #a98f56;
  --ama-tan: #b29b81;
  --ama-line: #e8e0d3;
  --ama-serif: 'Playfair Display', Georgia, serif;
  --ama-brand: 'Bodoni Moda', Georgia, serif;
  --ama-sans: 'Open Sans', Arial, sans-serif;
  --ama-pill: 999px;
  --ama-radius: 14px;
  --ama-shadow: 0 14px 44px rgba(49, 44, 33, .09);
  --ama-shadow-sm: 0 6px 20px rgba(49, 44, 33, .07);
  --ama-wrap: 1200px;
  /* Header height comes from Divi (Customizer > Header & Navigation > Menu
     Height); enqueue.php re-publishes it as --ama-menu-height. */
  --ama-menu-height: 78px;
  --ama-menu-height-fixed: 62px;
  /* Gap between the nav text and the header edge, i.e. the dropdown offset. */
  --ama-nav-gap: calc((var(--ama-menu-height) - 20px) / 2);
}

/* =====================================================================
   1. BASE
   ===================================================================== */
.ama-design h1,
.ama-design h2,
.ama-design h3,
.ama-design h4,
.ama-design h5,
.ama-design h6 {
  letter-spacing: -.01em;
}

/* Divi's container is 80% wide by default; the design uses a fixed max width. */
.ama-design .container {
  width: 90%;
  max-width: var(--ama-wrap);
}

/* =====================================================================
   2. TOP BAR  (#top-header — Divi "secondary" nav)
   Content comes from Divi > Theme Options: phone number + email.
   ===================================================================== */
.ama-design #top-header {
  font-family: var(--ama-sans);
  font-weight: 400;
  line-height: 1.6;
  padding: 9px 0;
  box-shadow: none;
}

.ama-design #top-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0;
  flex-wrap: wrap;
}

.ama-design #top-header .container:before,
.ama-design #top-header .container:after {
  display: none;
}

.ama-design #top-header #et-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  float: none;
  gap: 0;
}

.ama-design #top-header #et-info-phone,
.ama-design #top-header #et-info-email {
  padding: 0;
  font-size: 13.5px;
  font-weight: 400;   /* Divi ships the top bar at 600 */
}

/* Leading icons, matching the design's 📞 / ✉ affordances. */
.ama-design #top-header #et-info-phone:before {
  content: "\260E";
  margin-right: 8px;
  opacity: .85;
}

.ama-design #top-header #et-info-email:before {
  content: "\2709";
  margin-right: 8px;
  opacity: .85;
}

/* Divider between phone and email. */
.ama-design #top-header #et-info-phone + a {
  margin-left: 0;
}

.ama-design #top-header #et-info-phone + a:before {
  content: "|";
  opacity: .4;
  margin: 0 10px;
}

.ama-design #top-header #et-info a,
.ama-design #top-header #et-info a:hover {
  text-decoration: none;
}

.ama-design #top-header #et-secondary-menu {
  float: none;
}

/* =====================================================================
   3. HEADER  (#main-header)
   ===================================================================== */
.ama-design #main-header {
  border-bottom: 1px solid var(--ama-line);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ama-design #main-header.et-fixed-header,
.ama-design.et-fixed-header #main-header {
  box-shadow: var(--ama-shadow-sm);
  border-bottom: 1px solid var(--ama-line);
}

.ama-design #main-header .et_menu_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ama-menu-height);
  transition: min-height .4s ease-in-out;
}

/* Divi shrinks the header once the page scrolls. */
.ama-design #main-header.et-fixed-header .et_menu_container {
  min-height: var(--ama-menu-height-fixed);
}

.ama-design #main-header .et_menu_container:before,
.ama-design #main-header .et_menu_container:after {
  display: none;
}

/* ---------- Wordmark ---------- */
.ama-design .logo_container {
  float: none;
  width: auto;
  height: auto;
  position: static;
  display: flex;
  align-items: center;
}

.ama-design .ama-brand {
  display: inline-block;
  line-height: 1;
  text-decoration: none;
}

.ama-design .ama-wordmark {
  font-family: var(--ama-brand);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--ama-tan);
  letter-spacing: .01em;
  white-space: nowrap;
}

.ama-design .ama-wordmark em {
  font-style: italic;
}

/* ---------- Navigation ---------- */
.ama-design #et-top-navigation {
  display: flex;
  align-items: center;
  gap: 18px;
  float: none;
  padding: 0 !important;
  margin: 0;
}

.ama-design #top-menu-nav {
  float: none;
}

.ama-design #top-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  float: none;
}

.ama-design #top-menu > li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

/* Divi pads top-level anchors by ~39px to bridge the gap to their dropdown.
   That padding would push the underline far below the text, so the padding is
   removed here and the bridge is rebuilt as a pseudo-element on the <li>. */
.ama-design #top-menu > li > a {
  font-family: var(--ama-sans);
  font-weight: 600;
  padding: 0 !important;
  position: relative;
  opacity: 1;
}

/* Gold underline that grows on hover / for the current page. */
.ama-design #top-menu > li > a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--ama-gold);
  transition: width .25s ease;
}

/* Invisible hover bridge so the cursor can travel into a dropdown. */
.ama-design #top-menu > li.menu-item-has-children:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--ama-nav-gap);
}

/* Drop submenus clear of the header now that the anchor padding is gone. */
.ama-design #top-menu > li > ul.sub-menu {
  top: 100%;
  margin-top: var(--ama-nav-gap);
}

.ama-design #top-menu > li > a:hover:after,
.ama-design #top-menu > li.current-menu-item > a:after,
.ama-design #top-menu > li.current_page_item > a:after,
.ama-design #top-menu > li.current-menu-ancestor > a:after {
  width: 100%;
}

/* Divi dims the hovered link by default; the design keeps it solid. */
.ama-design #top-menu li a:hover {
  opacity: 1;
}

/* Dropdowns */
.ama-design #top-menu li ul {
  border-top: 2px solid var(--ama-gold);
  border-radius: 0 0 var(--ama-pill) var(--ama-pill);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--ama-shadow);
  padding: 10px 0;
}

.ama-design #top-menu li li a {
  font-family: var(--ama-sans);
  font-weight: 500;
  font-size: 14px;
  padding: 9px 20px;
  width: 220px;
}

/* ---------- Header call-to-action ---------- */
.ama-design .ama-header-cta {
  display: flex;
  align-items: center;
}

.ama-design .ama-header-cta .et_pb_button.ama-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--ama-pill);
  border: 2px solid var(--ama-ink);
  background: var(--ama-ink);
  color: #fff;
  white-space: nowrap;
  transition: .25s;
}

.ama-design .ama-header-cta .et_pb_button.ama-btn-dark:hover {
  background: #000;
  border-color: #000;
  color: #fff;
  transform: translateY(-2px);
  padding: 12px 24px;
}

.ama-design .ama-header-cta .et_pb_button:after,
.ama-design .ama-header-cta .et_pb_button:before {
  display: none !important;
}

/* ---------- Cart icon (renders once WooCommerce is active) ---------- */
.ama-design #et-top-navigation .et-cart-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--ama-line);
  border-radius: var(--ama-pill);
  background: #fff;
  color: var(--ama-ink);
  transition: .2s;
}

.ama-design #et-top-navigation .et-cart-info:hover {
  border-color: var(--ama-ink);
}

/* ---------- Mobile menu ---------- */
.ama-design .et_mobile_menu {
  border-top: 3px solid var(--ama-gold);
  box-shadow: var(--ama-shadow);
  padding: 8px 0;
}

.ama-design .et_mobile_menu li a {
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--ama-line);
}

.ama-design .mobile_menu_bar:before {
  color: var(--ama-ink);
}

/* =====================================================================
   4. GLOBAL BUTTONS
   Colours, radius and size come from Divi > Customizer > Buttons.
   Divi's toggle only offers 400/700, so the design's 600 is set here.
   ===================================================================== */
.ama-design .et_pb_button {
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  transition: .25s;
}

.ama-design .et_pb_button:hover {
  transform: translateY(-2px);
}

/* =====================================================================
   5. FOOTER  (#main-footer)
   Colours and column count come from Divi > Customizer > Footer.
   ===================================================================== */
.ama-design #main-footer {
  font-family: var(--ama-sans);
  font-size: 14.5px;
}

.ama-design #footer-widgets {
  padding: 70px 0 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.ama-design #footer-widgets .footer-widget {
  width: auto !important;
  margin: 0 !important;
  float: none;
  padding: 0;
}

.ama-design #footer-widgets .footer-widget .fwidget {
  margin-bottom: 0;
}

.ama-design #footer-widgets h4.title {
  font-family: var(--ama-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 0;
}

.ama-design #footer-widgets ul {
  display: grid;
  gap: 11px;
  list-style: none;
  padding: 0;
}

.ama-design #footer-widgets ul li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ama-design #footer-widgets ul li:before {
  display: none;
}

.ama-design #footer-widgets a {
  transition: color .2s;
}

.ama-design #footer-widgets a:hover {
  color: var(--ama-gold);
}

/* ---------- Footer brand column ---------- */
.ama-design .ama-foot-brand {
  margin-bottom: 16px;
}

.ama-design .ama-foot-tagline {
  max-width: 300px;
  padding-bottom: 0;
}

/* ---------- Footer social icons ---------- */
.ama-design .ama-social {
  display: flex !important;
  gap: 12px;
  margin-top: 18px;
  list-style: none;
}

.ama-design .ama-social li {
  margin: 0;
  padding: 0;
}

.ama-design .ama-social li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
  color: #cfc7b8;
  transition: .2s;
}

.ama-design .ama-social li a:hover {
  background: var(--ama-gold);
  border-color: var(--ama-gold);
  color: #2b2415;
}

/* Visually hidden labels — the glyph carries the meaning. */
.ama-design .ama-social li a span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Glyphs from Divi's bundled ETmodules icon font. */
.ama-design .ama-social li a:before {
  font-family: 'ETmodules';
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  font-style: normal;
  speak: none;
  -webkit-font-smoothing: antialiased;
}

.ama-design .ama-social-facebook a:before { content: "\e093"; }
.ama-design .ama-social-twitter a:before { content: "\e094"; }
.ama-design .ama-social-instagram a:before { content: "\e09a"; }

/* ---------- Footer bottom row ---------- */
.ama-design #footer-bottom {
  padding: 24px 0 28px;
}

.ama-design #footer-bottom .container {
  padding: 0;
}

.ama-design #footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  float: none;
  width: 100%;
  padding: 0;
}

/* Divi bolds footer credit links; the design keeps them at body weight. */
.ama-design #footer-info a {
  color: inherit;
  font-weight: 400;
}

.ama-design #footer-info a:hover {
  color: var(--ama-gold);
}

/* ---------- Compliance disclaimer ---------- */
.ama-design .ama-disclaimer {
  background: #1d1c17;
  color: #7a7261;
  font-family: var(--ama-sans);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  padding: 16px 0;
}

.ama-design .ama-disclaimer .container {
  width: 90%;
  max-width: var(--ama-wrap);
  padding: 0;
}

/* =====================================================================
   6. HOMEPAGE  (page "Home", built with Divi — see design/index.md)
   Structure, copy, colours and spacing live in the Divi Builder. Only the
   design details Divi's UI can't express are here, hooked onto the
   module_class names set on each module in the builder.
   ===================================================================== */

/* ---------- Shared section heading ---------- */
.ama-design .ama-home-sechead .ama-eyebrow,
.ama-design .ama-eyebrow {
  display: block;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ama-design .ama-home-sechead h2 {
  margin: 14px 0;
  padding: 0;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.ama-design .ama-home-sechead p {
  padding-bottom: 0;
  font-size: 1.05rem;
}

.ama-design .ama-home-lead p {
  padding-bottom: 0;
  font-size: 1.08rem;
}

/* ---------- 1. Hero ---------- */
.ama-design .ama-home-hero .et_pb_row {
  display: flex;
  align-items: center;
}

.ama-design .ama-home-rating .et_pb_text_inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  background: #fff;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-pill);
  box-shadow: var(--ama-shadow-sm);
}

.ama-design .ama-home-rating .ama-rating-avatars {
  display: flex;
}

.ama-design .ama-home-rating .ama-rating-avatars i {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.ama-design .ama-home-rating .ama-rating-stars {
  color: var(--ama-gold);
  font-size: 14px;
  letter-spacing: 2px;
}

.ama-design .ama-home-rating b {
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 14px;
}

.ama-design .ama-home-hero-title h1 {
  padding: 0;
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  line-height: 1.15;
}

.ama-design .ama-home-hero-title h1 em {
  color: var(--ama-gold-d);
  font-style: normal;
}

.ama-design .ama-home-hero .ama-home-lead .et_pb_text_inner {
  max-width: 520px;
}

.ama-design .ama-home-feats ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 26px;
  max-width: 520px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ama-design .ama-home-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--ama-heading);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

.ama-design .ama-home-feats svg {
  flex: none;
  color: var(--ama-gold-d);
}

/* Divi stacks button modules; the design sets them side by side. */
.ama-design .ama-home-hero .et_pb_button_module_wrapper {
  display: inline-block;
  margin: 0 14px 14px 0;
}

/* ---------- 2. Trust bar ---------- */
.ama-design .ama-home-trust .et_pb_text_inner span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #cfc7b8;
  font-family: var(--ama-serif);
  font-size: 15px;
  letter-spacing: .03em;
}

.ama-design .ama-home-trust svg {
  flex: none;
  color: var(--ama-gold);
}

.ama-design .ama-home-trust .et_pb_column {
  margin-bottom: 0;
}

/* ---------- 3. Category tiles ---------- */
.ama-design .ama-home-cat {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  box-shadow: var(--ama-shadow-sm);
  transition: .3s;
}

.ama-design .ama-home-cat:hover {
  transform: translateY(-5px);
  box-shadow: var(--ama-shadow);
}

.ama-design .ama-home-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 37, 31, .12), rgba(38, 37, 31, .72));
}

.ama-design .ama-home-cat > .et_pb_module {
  position: relative;
  z-index: 2;
  height: 100%;
  margin-bottom: 0;
}

/* Pushes the copy to the bottom of the tile, as in the design. */
.ama-design .ama-home-cat .et_pb_text_inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ama-design .ama-home-cat .ama-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: auto;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.ama-design .ama-home-cat h3 {
  margin-bottom: 4px;
  padding: 24px 0 0;
  color: #fff;
  font-size: 1.35rem;
}

.ama-design .ama-home-cat p {
  padding-bottom: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 13.5px;
}

.ama-design .ama-home-cat .ama-cat-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #fff;
  font-family: var(--ama-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Makes the whole tile clickable while keeping the copy editable in Divi. */
.ama-design .ama-home-cat .ama-cat-go::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ---------- 5. Why peptides ---------- */
.ama-design .ama-home-checklist ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ama-design .ama-home-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 0;
  color: var(--ama-heading);
  font-size: 15.5px;
}

.ama-design .ama-home-checklist .ama-ck {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  background: var(--ama-sand);
  color: var(--ama-gold-d);
  border-radius: 50%;
}

/* ---------- 6. Stats band ---------- */
.ama-design .ama-home-stats .et_pb_text_inner b {
  display: block;
  color: var(--ama-gold);
  font-family: var(--ama-serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}

.ama-design .ama-home-stats .et_pb_text_inner span {
  display: block;
  margin-top: 8px;
  color: #cfc7b8;
  font-size: 13.5px;
  letter-spacing: .04em;
}

/* ---------- 7. How it works ---------- */
.ama-design .ama-home-step .ama-step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  background: var(--ama-ink);
  color: #fff;
  border-radius: 50%;
  font-family: var(--ama-serif);
  font-size: 1.1rem;
}

.ama-design .ama-home-step h3 {
  margin-bottom: 8px;
  padding: 0;
  font-size: 1.28rem;
}

.ama-design .ama-home-step p {
  padding-bottom: 0;
  font-size: 14.5px;
}

/* ---------- 9. Closing CTA ---------- */
.ama-design .ama-home-cta {
  position: relative;
  overflow: hidden;
}

.ama-design .ama-home-cta::before,
.ama-design .ama-home-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.ama-design .ama-home-cta::before {
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: rgba(191, 165, 104, .14);
}

.ama-design .ama-home-cta::after {
  bottom: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: rgba(191, 165, 104, .08);
}

.ama-design .ama-home-cta > .et_pb_column {
  position: relative;
  z-index: 2;
}

.ama-design .ama-home-cta-text .ama-eyebrow {
  color: var(--ama-gold);
}

.ama-design .ama-home-cta-text h2 {
  margin-bottom: 14px;
  padding: 14px 0 0;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.ama-design .ama-home-cta-text p {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 28px;
  color: #d6cebd;
}

/* =====================================================================
   7. RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .ama-design #footer-widgets {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .ama-design .ama-home-hero .et_pb_row {
    display: block;
  }
}

@media (max-width: 980px) {
  /* The selectors above are id+class, so they outrank Divi's own breakpoint
     rules - hand the nav back to Divi's mobile menu explicitly. */
  .ama-design #top-menu-nav,
  .ama-design #top-menu {
    display: none;
  }

  .ama-design #et_mobile_nav_menu {
    display: block;
  }

  .ama-design #et-top-navigation {
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .ama-design #top-header .container {
    flex-direction: column;
    text-align: center;
  }

  .ama-design #top-header #et-info {
    flex-direction: column;
    gap: 2px;
  }

  .ama-design #top-header #et-info-phone + a:before {
    display: none;
  }

  .ama-design #footer-widgets {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .ama-design .ama-header-cta {
    display: none;
  }

  .ama-design #footer-info {
    justify-content: center;
    text-align: center;
  }

  .ama-design .ama-home-feats ul {
    grid-template-columns: 1fr;
  }

  .ama-design .ama-home-cta {
    padding: 44px 24px !important;
  }
}

/* =====================================================================
   8. SINGLE PRODUCT  (WooCommerce product page — see design/product.md)

   Self-contained, including its own breakpoints, because it styles
   WooCommerce's markup rather than the Divi chrome §1–§7 cover. Structure
   comes from WooCommerce's templates and the hooks in
   includes/woocommerce-single.php; this only carries the design.
   ===================================================================== */

/* The related-products band bleeds to the viewport edges, so clip any
   sub-pixel overflow its 100vw width can create. */
.ama-design.single-product #et-main-area {
  overflow-x: hidden;
}

/* Divi opens the content area with 58px of padding; the design starts with
   the cream breadcrumb strip flush under the header instead. */
.ama-design.single-product #main-content .container {
  padding-top: 0;
}

.ama-design.single-product #left-area {
  padding-bottom: 0;
  width: 100%;
}

/* The "Added to cart" toast (assets/js/cart-toast.js) is now the design's
   feedback for a successful add, so the default wrapper's usual empty box
   is hidden rather than left as dead space. Only :empty - not a blanket
   `display: none` - because this same wrapper is how WooCommerce reports a
   real failure (e.g. requesting more than is in stock), which redirects
   back to this page with the wrapper populated and has no toast equivalent
   yet; that case still needs to be seen. */
.ama-design.single-product .woocommerce-notices-wrapper:empty {
  display: none;
}

/* ---------- Breadcrumb strip ---------- */
.ama-design.single-product .woocommerce-breadcrumb {
  margin: 0 calc(50% - 50vw) 40px;
  padding: 20px calc(50vw - 50%);
  background: var(--ama-cream);
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 14px;
}

.ama-design.single-product .woocommerce-breadcrumb a {
  color: var(--ama-muted);
  transition: .2s;
}

.ama-design.single-product .woocommerce-breadcrumb a:hover {
  color: var(--ama-gold-d);
}

/* ---------- Two-column PDP ----------
   Divi wraps the gallery and summary in a .clearfix (et_divi_output_product_wrapper),
   which makes a convenient grid container; WooCommerce's own float/width rules
   on the two children have to be unset for it to take effect. */
.ama-design.single-product div.product > .clearfix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.woocommerce.ama-design.single-product div.product div.images,
.woocommerce.ama-design.single-product div.product div.summary {
  float: none;
  width: auto;
  margin: 0;
}

/* ---------- Gallery ---------- */
.ama-design.single-product .woocommerce-product-gallery {
  position: sticky;
  top: calc(var(--ama-menu-height-fixed) + 24px);
  /* WooCommerce ships the gallery at opacity 0 and fades it in from JS.
     Pin it visible so the image never depends on that script arriving. */
  opacity: 1 !important;
}

.ama-design.single-product .woocommerce-product-gallery__wrapper {
  overflow: hidden;
  border: 1px solid var(--ama-line);
  border-radius: var(--ama-radius);
  background: linear-gradient(160deg, #f6f1e8, #ece3d5);
}

.ama-design.single-product .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Thumbnail strip (only rendered once a product has gallery images). */
.woocommerce.ama-design.single-product .flex-control-thumbs {
  display: flex;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
}

.woocommerce.ama-design.single-product .flex-control-thumbs li {
  width: 84px;
  margin: 0;
  list-style: none;
}

.woocommerce.ama-design.single-product .flex-control-thumbs img {
  width: 84px;
  height: 84px;
  border: 2px solid var(--ama-line);
  border-radius: 9px;
  background: var(--ama-sand);
  object-fit: cover;
  opacity: 1;
  transition: .2s;
}

.woocommerce.ama-design.single-product .flex-control-thumbs img.flex-active,
.woocommerce.ama-design.single-product .flex-control-thumbs img:hover {
  border-color: var(--ama-gold);
}

/* ---------- Summary column ---------- */
.ama-design.single-product .summary .ama-pdp-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ama-design.single-product .summary .ama-pdp-kicker a {
  color: inherit;
}

.ama-design.single-product .summary .ama-pdp-kicker a:hover {
  color: var(--ama-ink);
}

.ama-design.single-product .summary .ama-pdp-sep {
  opacity: .55;
}

.ama-design.single-product .summary h1.product_title {
  margin: 0 0 12px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

/* Rating row — WooCommerce only renders this once a product has reviews. */
.woocommerce.ama-design.single-product .summary .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ama-muted);
  font-size: 14px;
}

.woocommerce.ama-design.single-product .summary .star-rating {
  margin: 0;
  color: var(--ama-gold);
  letter-spacing: 1px;
}

.woocommerce.ama-design.single-product .summary .woocommerce-review-link {
  color: var(--ama-muted);
}

/* Price. The struck-through "was" figure is WooCommerce's own sale markup;
   flex order puts the current price first, as the design has it. */
.woocommerce.ama-design.single-product .summary p.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 6px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.1;
}

.woocommerce.ama-design.single-product .summary p.price ins {
  order: 1;
  background: none;
  text-decoration: none;
  font-weight: 600;
}

.woocommerce.ama-design.single-product .summary p.price del {
  order: 2;
  color: var(--ama-muted);
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 1;
}

.woocommerce.ama-design.single-product .summary p.price .ama-pdp-price-suffix {
  order: 3;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 400;
}

.ama-design.single-product .summary .ama-pdp-subscribe {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 13.5px;
  font-weight: 600;
}

.ama-design.single-product .summary .woocommerce-product-details__short-description {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ama-line);
  color: var(--ama-body);
  font-size: 15.5px;
}

.ama-design.single-product .summary .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Benefits checklist. */
.ama-design.single-product .summary .ama-pdp-benefits {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.ama-design.single-product .summary .ama-pdp-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  color: var(--ama-heading);
  font-size: 14.5px;
  line-height: 1.5;
}

.ama-design.single-product .ama-ck {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ama-sand);
  color: var(--ama-gold-d);
}

/* Dose/size chips. Informational, so they carry no hover or pressed state. */
.ama-design.single-product .summary .ama-pdp-opt-label,
.woocommerce.ama-design.single-product .summary .variations th.label label {
  display: block;
  margin-bottom: 10px;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ama-design.single-product .summary .ama-pdp-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.ama-design.single-product .summary .ama-pdp-opt {
  padding: 10px 18px;
  border: 1.5px solid var(--ama-ink);
  border-radius: 9px;
  background: var(--ama-cream);
  color: var(--ama-ink);
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 14px;
}

/* Variable products keep WooCommerce's real variation controls; give them the
   same visual language as the chips above. */
.woocommerce.ama-design.single-product .summary .variations {
  margin-bottom: 24px;
}

.woocommerce.ama-design.single-product .summary .variations td,
.woocommerce.ama-design.single-product .summary .variations th {
  display: block;
  padding: 0;
  border: 0;
}

.woocommerce.ama-design.single-product .summary .variations select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ama-line);
  border-radius: 9px;
  background-color: #fff;
  color: var(--ama-ink);
  font-family: var(--ama-sans);
  font-size: 14px;
}

/* ---------- Buy row ---------- */
.woocommerce.ama-design.single-product .summary form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 24px;
}

/* The variations table has to span the row above the buttons. */
.woocommerce.ama-design.single-product .summary form.cart.variations_form {
  display: block;
}

.woocommerce.ama-design.single-product .summary form.cart.variations_form .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
}

.woocommerce.ama-design.single-product .summary form.cart .quantity {
  display: inline-flex;
  align-items: center;
  float: none;
  margin: 0;
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-pill);
  background: #fff;
}

.ama-design.single-product .summary .ama-qty-btn {
  width: 46px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ama-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: .2s;
}

.ama-design.single-product .summary .ama-qty-btn:hover {
  color: var(--ama-gold-d);
}

.woocommerce.ama-design.single-product .summary form.cart .quantity input.qty {
  width: 38px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.ama-design.single-product .summary form.cart .quantity input.qty::-webkit-outer-spin-button,
.ama-design.single-product .summary form.cart .quantity input.qty::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* Beats Divi's and WooCommerce's own button rules, which otherwise override
   colour, radius and padding — the same fight as .ama-pb-btn in the plugin. */
.woocommerce.ama-design.single-product .summary form.cart .single_add_to_cart_button,
.woocommerce.ama-design.single-product .summary form.cart .ama-pdp-buynow {
  flex: 1;
  min-width: 150px;
  height: auto;
  padding: 16px 30px !important;
  border: 1.5px solid transparent !important;
  border-radius: var(--ama-pill) !important;
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: .25s;
}

.woocommerce.ama-design.single-product .summary form.cart .single_add_to_cart_button {
  background: var(--ama-gold) !important;
  color: #2b2415 !important;
}

.woocommerce.ama-design.single-product .summary form.cart .single_add_to_cart_button:hover {
  background: var(--ama-gold-d) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.woocommerce.ama-design.single-product .summary form.cart .ama-pdp-buynow {
  background: var(--ama-ink) !important;
  color: #fff !important;
  cursor: pointer;
}

.woocommerce.ama-design.single-product .summary form.cart .ama-pdp-buynow:hover {
  background: #000 !important;
  transform: translateY(-2px);
}

/* Divi appends a pseudo-element arrow to buttons on hover. */
.ama-design.single-product .summary form.cart .single_add_to_cart_button::after,
.ama-design.single-product .summary form.cart .single_add_to_cart_button::before,
.ama-design.single-product .summary form.cart .ama-pdp-buynow::after,
.ama-design.single-product .summary form.cart .ama-pdp-buynow::before {
  display: none !important;
}

/* WooCommerce's own AddToCartHandler (add-to-cart.js) appends a plain
   "View cart" text link straight after the button on every successful add -
   the same handler that product-add-to-cart.js's 'added_to_cart' trigger
   feeds into, so it fires here too, once per page since the handler never
   removes a link it already added. The cart toast (cart-toast.js) is the
   design's "view cart" affordance now, so this would just be a second,
   plain-text one sitting beside a styled button. Matches
   ama-shop-modules.css's identical rule for the shop-grid card. */
.ama-design.single-product .summary form.cart .added_to_cart {
  display: none;
}

/* ---------- Trust badges ---------- */
.ama-design.single-product .summary .ama-pdp-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--ama-line);
}

.ama-design.single-product .ama-pdp-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ama-body);
  font-size: 12.5px;
  line-height: 1.4;
}

.ama-design.single-product .ama-pdp-badge-ic {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ama-cream);
  color: var(--ama-gold-d);
}

.ama-design.single-product .ama-pdp-badge-t b {
  display: block;
  color: var(--ama-heading);
  font-family: var(--ama-sans);
  font-size: 13px;
}

/* ---------- Tabs ---------- */
.ama-design.single-product .woocommerce-tabs {
  margin-top: 70px;
  padding-top: 44px;
  /* Divi boxes the whole tab panel (body.woocommerce .woocommerce-tabs);
     the design has a single rule above the pills instead. */
  border: 0;
  border-top: 1px solid var(--ama-line);
}

/* Divi's tab rules are scoped through #content-area and flagged !important
   (body.woocommerce #content-area div.product .woocommerce-tabs ul.tabs).
   Nothing built from classes alone can outrank an id, so these selectors
   carry #content-area too - that is the whole reason for their length. */
.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 30px !important;
  padding: 0 !important;
  border: 0;
  background: none !important;
  overflow: visible;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs::before,
.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li::before,
.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ama-pill);
  background: none !important;
  box-shadow: none;
  transition: .2s;
}

/* Divi flags the tab link's colour and padding !important as well. */
.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 11px 22px !important;
  color: var(--ama-muted) !important;
  font-family: var(--ama-sans);
  font-weight: 600;
  font-size: 15px;
  text-shadow: none;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li:hover a {
  color: var(--ama-heading) !important;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li.active {
  border-radius: var(--ama-pill) !important;
  background: var(--ama-ink) !important;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs ul.tabs li.active a {
  color: #fff !important;
}

.ama-design.single-product #content-area div.product .woocommerce-tabs .woocommerce-Tabs-panel {
  max-width: 820px;
  margin: 0;
  padding: 0;
  color: var(--ama-body);
  font-size: 15.5px;
  line-height: 1.85;
}

/* Every panel repeats the tab's name as an H2; the pill row already says it. */
.ama-design.single-product .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child {
  display: none;
}

.ama-design.single-product .woocommerce-tabs .woocommerce-Tabs-panel h3 {
  margin: 0 0 14px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.ama-design.single-product .woocommerce-tabs .woocommerce-Tabs-panel p {
  margin-bottom: 16px;
  padding: 0;
}

.ama-design.single-product .woocommerce-tabs .ama-pdp-tab-list {
  display: grid;
  gap: 9px;
  margin: 0 0 16px 20px;
  padding: 0;
  list-style: disc;
}

/* ---------- FAQ accordion ---------- */
.ama-design.single-product .ama-faq-item {
  border-bottom: 1px solid var(--ama-line);
}

.ama-design.single-product .ama-faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: none;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.ama-design.single-product .ama-faq-pm {
  flex: none;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-size: 1.4rem;
  line-height: 1;
}

/* The mock keeps a static "+"; rotating it into an "×" costs nothing and
   makes the open/closed state visible. */
.ama-design.single-product .ama-faq-q[aria-expanded="true"] .ama-faq-pm {
  display: inline-block;
  transform: rotate(45deg);
}

.ama-design.single-product .ama-faq-a {
  padding-bottom: 18px;
}

.ama-design.single-product .ama-faq-a p {
  margin: 0;
  padding: 0;
  color: var(--ama-body);
}

/* ---------- Related Treatments ---------- */
.woocommerce.ama-design.single-product .ama-related {
  margin: 70px calc(50% - 50vw) 0;
  padding: 88px calc(50vw - 50%);
  background: var(--ama-cream);
}

.ama-design.single-product .ama-related .ama-sec-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.ama-design.single-product .ama-related .ama-eyebrow {
  display: block;
  color: var(--ama-gold-d);
  font-family: var(--ama-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.woocommerce.ama-design.single-product .ama-related .ama-sec-head h2 {
  margin: 14px 0 0;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-align: center;
}

.ama-design.single-product .ama-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ama-design.single-product div.product > .clearfix {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* WooCommerce's own `div.images { position: relative }` outranks a plain
     class reset, and the sticky `top` offset still applies to a relative
     box - which pushed the gallery down over the summary. Clearing `top`
     fixes it whichever position ends up winning. */
  .woocommerce.ama-design.single-product .woocommerce-product-gallery {
    position: static;
    top: auto;
  }

  .woocommerce.ama-design.single-product .ama-related {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .ama-design.single-product .ama-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .ama-design.single-product .summary .ama-pdp-badges {
    grid-template-columns: 1fr;
  }

  .woocommerce.ama-design.single-product .summary form.cart .single_add_to_cart_button,
  .woocommerce.ama-design.single-product .summary form.cart .ama-pdp-buynow {
    flex: 1 1 100%;
  }

  .ama-design.single-product .ama-related-grid {
    grid-template-columns: 1fr;
  }

  .ama-design.single-product .woocommerce-tabs {
    margin-top: 48px;
    padding-top: 32px;
  }
}

/* =====================================================================
   9. SHOP ARCHIVE  (WooCommerce product archive — see design/shop.html)

   Self-contained like §8, and shared by the shop page and product
   category/tag archives. Structure comes from WooCommerce's templates and
   the hooks in includes/woocommerce-archive.php; the cards themselves are
   styled by ama-shop-essentials (styles/ama-shop-modules.css), which owns
   `.ama-pb` for every place that card appears.
   ===================================================================== */

/* ---------- Page chrome ---------- */

/* The header is a transparent fixed bar, so the hero band runs underneath it
   and carries its own clearance - the same arrangement as the homepage hero,
   which hard-codes the equivalent padding in the builder. --ama-menu-height
   is Divi's own Menu Height, republished by includes/enqueue.php; the top bar
   is sized by Divi from its font settings rather than by an option, so its
   height is a token here. */
.ama-design.ama-shop {
  --ama-topbar-height: 42px;
}

/* Divi's JS writes that clearance as an inline padding-top on the content
   container - correct for a page whose content starts below the header, but
   here it would open a gap between the hero and the grid. !important is what
   it takes to outrank an inline style. */
.ama-design.ama-shop #main-content .container {
  padding-top: 46px !important;
}

.ama-design.ama-shop #left-area {
  width: 100%;
  padding-bottom: 0;
}

/* Divi's own script (js/custom.js) pushes the notices wrapper down by the
   fixed header's height on any .et_transparent_nav.et_full_width_page, so a
   notice cannot hide behind the header - which this archive became when the
   sidebar was dropped. The hero already supplies that clearance here, so the
   push only opens ~78px of blank space between the hero and the toolbar; it
   is written inline, hence !important. Kept alongside the :empty rule below
   in case this wrapper is ever populated here. */
.ama-design.ama-shop #left-area > .woocommerce-notices-wrapper {
  margin-top: 0 !important;
}

/* Same reasoning as the single-product page's identical rule in §8: the
   "Added to cart" toast covers the success case, so only hide the wrapper's
   usual empty box, not a real notice. */
.ama-design.ama-shop #left-area > .woocommerce-notices-wrapper:empty {
  display: none;
}

/* Divi's sidebar divider rule, which has nothing to divide here. */
.ama-design.ama-shop #main-content .container:before {
  display: none;
}

/* The centred column the full-bleed bands share with #left-area. */
.ama-design.ama-shop .ama-shop-wrap {
  width: 90%;
  max-width: var(--ama-wrap);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.ama-design.ama-shop .ama-shop-hero {
  padding: calc(var(--ama-topbar-height) + var(--ama-menu-height) + 54px) 0 48px;
  background: linear-gradient(180deg, var(--ama-cream), var(--ama-cream-2));
  border-bottom: 1px solid var(--ama-line);
}

/* Beats WooCommerce's own .woocommerce-breadcrumb block styling. */
.ama-design.ama-shop .ama-shop-hero .ama-shop-crumbs {
  margin: 0 0 14px;
  padding: 0;
  color: var(--ama-muted);
  font-family: var(--ama-sans);
  font-size: 13px;
  font-weight: 600;
}

.ama-design.ama-shop .ama-shop-crumbs a {
  color: var(--ama-muted);
  transition: .2s;
}

.ama-design.ama-shop .ama-shop-crumbs a:hover {
  color: var(--ama-gold-d);
}

.ama-design.ama-shop .ama-shop-crumb-sep {
  margin: 0 8px;
  opacity: .5;
}

.ama-design.ama-shop .ama-shop-title {
  margin: 0 0 12px;
  padding: 0;
  color: var(--ama-heading);
  font-family: var(--ama-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.ama-design.ama-shop .ama-shop-lead {
  max-width: 560px;
  color: var(--ama-body);
  font-size: 1.08rem;
}

.ama-design.ama-shop .ama-shop-lead p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ---------- Toolbar ---------- */
.ama-design.ama-shop .ama-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ama-line);
}

.ama-design.ama-shop .ama-shop-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ama-design.ama-shop .ama-shop-chip {
  padding: 9px 18px;
  background: #fff;
  color: var(--ama-ink);
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: .2s;
}

.ama-design.ama-shop .ama-shop-chip:hover {
  border-color: var(--ama-ink);
  color: var(--ama-ink);
}

.ama-design.ama-shop .ama-shop-chip.is-active {
  background: var(--ama-ink);
  border-color: var(--ama-ink);
  color: #fff;
}

.ama-design.ama-shop .ama-shop-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ama-design.ama-shop .ama-shop-count {
  color: var(--ama-muted);
  font-size: 14px;
}

/* WooCommerce floats this form and gives the select its own chrome. */
.woocommerce.ama-design.ama-shop .ama-shop-tools .woocommerce-ordering {
  float: none;
  margin: 0;
}

.woocommerce.ama-design.ama-shop .ama-shop-tools .woocommerce-ordering select.orderby {
  max-width: 100%;
  padding: 9px 34px 9px 14px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238a8172' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: var(--ama-ink);
  border: 1.5px solid var(--ama-line);
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.woocommerce.ama-design.ama-shop .ama-shop-tools .woocommerce-ordering select.orderby:focus {
  outline: 2px solid var(--ama-gold);
  outline-offset: 2px;
}

/* ---------- Grid ---------- */
.ama-design.ama-shop .ama-shop-results {
  position: relative;
}

.ama-design.ama-shop .ama-shop-results:focus {
  outline: none;
}

.ama-design.ama-shop .ama-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* While a swap is in flight the old cards stay in place, dimmed, rather than
   collapsing the page to nothing under the toolbar. */
.ama-design.ama-shop .ama-shop-results.is-loading .ama-shop-grid {
  opacity: .55;
  transition: opacity .2s;
  pointer-events: none;
}

.ama-design.ama-shop .ama-shop-empty {
  padding: 60px;
  color: var(--ama-muted);
  font-size: 15px;
  text-align: center;
}

/* ---------- Load more ---------- */
.ama-design.ama-shop .ama-shop-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

.ama-design.ama-shop .ama-shop-progress {
  margin: 0;
  padding: 0;
  color: var(--ama-muted);
  font-size: 14px;
}

.ama-design.ama-shop .ama-shop-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 30px;
  background: transparent;
  color: var(--ama-ink);
  border: 1.5px solid var(--ama-ink);
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: .25s;
}

.ama-design.ama-shop .ama-shop-more-btn:hover {
  background: var(--ama-ink);
  color: #fff;
}

.ama-design.ama-shop .ama-shop-more-btn.is-loading {
  opacity: .6;
  pointer-events: none;
}

/* ---------- Promo panel ---------- */
.ama-design.ama-shop .ama-shop-promo {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-top: 56px;
  overflow: hidden;
  background: var(--ama-ink-2);
  color: #e8e0d3;
  border-radius: var(--ama-radius);
}

.ama-design.ama-shop .ama-shop-promo-text {
  padding: 48px;
}

.ama-design.ama-shop .ama-shop-promo-text .ama-eyebrow {
  color: var(--ama-gold);
}

.ama-design.ama-shop .ama-shop-promo-text h2 {
  margin: 12px 0 12px;
  padding: 0;
  color: #fff;
  font-family: var(--ama-serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.15;
}

.ama-design.ama-shop .ama-shop-promo-text p {
  margin: 0 0 22px;
  padding: 0;
  color: #cfc7b8;
}

.ama-design.ama-shop .ama-shop-promo-img {
  min-height: 260px;
  background-color: var(--ama-sand);
  background-position: center;
  background-size: cover;
}

/* ---------- Closing CTA ---------- */
.ama-design.ama-shop .ama-shop-cta-section {
  padding: 88px 0;
  background: #fff;
}

.ama-design.ama-shop .ama-shop-cta {
  position: relative;
  overflow: hidden;
  padding: 64px;
  background: linear-gradient(135deg, #312c21, #26251f);
  color: #e8e0d3;
  border-radius: calc(var(--ama-radius) + 6px);
  text-align: center;
}

.ama-design.ama-shop .ama-shop-cta::before,
.ama-design.ama-shop .ama-shop-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.ama-design.ama-shop .ama-shop-cta::before {
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: rgba(191, 165, 104, .14);
}

.ama-design.ama-shop .ama-shop-cta::after {
  bottom: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: rgba(191, 165, 104, .08);
}

.ama-design.ama-shop .ama-shop-cta > * {
  position: relative;
  z-index: 2;
}

.ama-design.ama-shop .ama-shop-cta .ama-eyebrow {
  color: var(--ama-gold);
}

.ama-design.ama-shop .ama-shop-cta h2 {
  margin: 14px 0;
  padding: 0;
  color: #fff;
  font-family: var(--ama-serif);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.ama-design.ama-shop .ama-shop-cta p {
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 0;
  color: #d6cebd;
}

/* ---------- Gold pill button (promo + CTA) ---------- */
.ama-design.ama-shop .ama-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 30px;
  background: var(--ama-gold);
  color: #2b2415;
  border: 1.5px solid transparent;
  border-radius: var(--ama-pill);
  font-family: var(--ama-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: .25s;
}

.ama-design.ama-shop .ama-btn-gold:hover {
  background: var(--ama-gold-d);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ama-design.ama-shop .ama-shop-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ama-design.ama-shop .ama-shop-cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .ama-design.ama-shop .ama-shop-hero {
    padding-bottom: 32px;
  }

  .ama-design.ama-shop .ama-shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .ama-design.ama-shop .ama-shop-grid {
    grid-template-columns: 1fr;
  }

  .ama-design.ama-shop .ama-shop-promo {
    grid-template-columns: 1fr;
  }

  .ama-design.ama-shop .ama-shop-promo-text {
    padding: 34px 24px;
  }

  .ama-design.ama-shop .ama-shop-cta {
    padding: 44px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ama-design.ama-shop .ama-shop-more-btn,
  .ama-design.ama-shop .ama-btn-gold {
    transition: none;
  }

  .ama-design.ama-shop .ama-btn-gold:hover {
    transform: none;
  }
}

/* =====================================================================
   10. ADD TO CART TOAST

   Site-wide feedback for any WooCommerce "Add to cart" click - built and
   shown entirely by assets/js/cart-toast.js, which listens for
   WooCommerce's own 'added_to_cart' event. Not gated behind .ama-design:
   it belongs to WooCommerce's cart flow itself, so it works the same way
   on every page that flow reaches.
   ===================================================================== */
.ama-cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 16px 14px 18px;
  background: var(--ama-ink);
  color: #fff;
  border-radius: var(--ama-radius);
  box-shadow: var(--ama-shadow);
  font-family: var(--ama-sans);
  font-size: 14px;
  line-height: 1.4;
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease, visibility .3s;
}

.ama-cart-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ama-cart-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(191, 165, 104, .18);
  color: var(--ama-gold);
}

.ama-cart-toast-text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ama-cart-toast-link {
  flex: none;
  padding: 7px 14px;
  background: var(--ama-gold);
  color: #2b2415;
  border-radius: var(--ama-pill);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: .2s;
}

.ama-cart-toast-link:hover {
  background: var(--ama-gold-d);
  color: #fff;
}

.ama-cart-toast-close {
  flex: none;
  padding: 0;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .55);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
}

.ama-cart-toast-close:hover {
  color: #fff;
}

@media (max-width: 480px) {
  .ama-cart-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }

  .ama-cart-toast-text {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ama-cart-toast {
    transition: opacity .2s;
    transform: none;
  }

  .ama-cart-toast.is-visible {
    transform: none;
  }
}
