/*
Theme Name: Gramophone Store
Theme URI: https://gramophonestore.com/
Description: Astra child theme for the Gramophone Egypt WooCommerce store.
Author: Gramophone Egypt
Template: astra
Version: 1.0.0
Text Domain: gramophone-store
*/

:root {
  --gram-black: #0f0f0f;
  --gram-ink: #171411;
  --gram-cream: #ffffff;
  --gram-brass: #c5a880;
  --gram-brown: #532e1c;
}

/*
 * Fonts are intentionally NOT imported here.
 * Load Noto Serif (400) and Poppins locally from the WordPress dashboard/theme setup.
 */

body.page-template-template-homepage {
  --gram-black: #0f0f0f;
  --gram-ink: #171411;
  --gram-cream: #ffffff;
  --gram-brass: #c5a880;
  --gram-brown: #532e1c;
  --gram-red: #6f1218;
  --gram-line: rgba(197, 168, 128, 0.28);
  --gram-soft-line: rgba(230, 230, 230, 0.12);
  --gram-copy: rgba(230, 230, 230, 0.78);
  --gram-muted: rgba(230, 230, 230, 0.58);
  --gram-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);

  background: var(--gram-black);
  color: var(--gram-cream);
  font-family: "Poppins", Arial, sans-serif;
}

/* Remove Astra's normal content width/padding on this template only. */
body.page-template-template-homepage .site-content,
body.page-template-template-homepage .ast-container,
body.page-template-template-homepage .site-main,
body.page-template-template-homepage #primary,
body.page-template-template-homepage .content-area {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.page-template-template-homepage .site-content {
  background: var(--gram-black);
}

.gramophone-home,
.gramophone-home *,
.gramophone-home *::before,
.gramophone-home *::after,
.gramophone-custom-header,
.gramophone-custom-header *,
.gramophone-custom-header *::before,
.gramophone-custom-header *::after {
  box-sizing: border-box;
}

.gramophone-home {
  overflow: hidden;
  background: linear-gradient(180deg, #0f0f0f 0%, #120f0d 46%, #0f0f0f 100%);
  color: var(--gram-cream);
  font-family: "Poppins", Arial, sans-serif;
}

.gramophone-home h1,
.gramophone-home h2,
.gramophone-home h3,
.gramophone-manifesto__statement {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 400;
}

.gramophone-home h1,
.gramophone-home h2,
.gramophone-home h3,
.gramophone-home p {
  margin-top: 0;
}

.gramophone-home a,
.gramophone-custom-header a {
  color: inherit;
  text-decoration: none;
}

.gramophone-shell {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

/*
 * Site-wide content width.
 * This constrains Astra's normal header/content/footer inner wrappers
 * while allowing section backgrounds to remain full-bleed.
 */
.ast-container,
.site-footer .ast-builder-grid-row-container-inner,
.site-footer .ast-container {
  width: min(1320px, calc(100% - 64px));
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================
   CUSTOM HEADER
   ========================================================== */

.gramophone-custom-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  color: var(--gram-cream);
  font-family: "Poppins", Arial, sans-serif;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.92) 0%,
    rgba(15, 15, 15, 0.58) 60%,
    rgba(15, 15, 15, 0) 100%
  );
}

.gramophone-custom-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 30px;
  min-height: 108px;
  border-bottom: 1px solid rgba(197, 168, 128, 0.16);
}

.gramophone-custom-header__right {
  display: contents;
}

.gramophone-custom-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.gramophone-custom-header__logo-link {
  display: inline-flex;
  align-items: center;
}

.gramophone-custom-header .custom-logo-link {
  display: inline-flex;
}

.gramophone-custom-header .custom-logo {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 116px;
  padding: 16px 0;
  object-fit: contain;
}

.gramophone-custom-header__site-name {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.8rem;
}

.gramophone-custom-header__nav {
  grid-column: 2;
  justify-self: center;
  display: block;
}

.gramophone-custom-menu,
.gramophone-custom-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gramophone-custom-menu {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
}

.gramophone-custom-menu > li {
  position: relative;
}

.gramophone-custom-menu > li > a {
  position: relative;
  display: block;
  padding: 40px 0 34px;
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  color: var(--gram-cream);
  transition: color 180ms ease;
}

.gramophone-custom-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 27px;
  height: 1px;
  background: var(--gram-brass);
  transition: right 180ms ease;
}

.gramophone-custom-menu > li.current-menu-item > a,
.gramophone-custom-menu > li.current_page_item > a {
  color: var(--gram-cream);
}

.gramophone-custom-menu > li:hover > a {
  opacity: 0.78;
}

.gramophone-custom-menu > li:hover > a::after,
.gramophone-custom-menu > li.current-menu-item > a::after,
.gramophone-custom-menu > li.current_page_item > a::after {
  right: 0;
}

.gramophone-custom-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  display: none;
  min-width: 210px;
  padding: 12px;
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid var(--gram-line);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}

.gramophone-custom-menu li:hover > .sub-menu,
.gramophone-custom-menu li:focus-within > .sub-menu {
  display: block;
}

.gramophone-custom-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--gram-cream);
  font-size: 0.88rem;
}

.gramophone-custom-menu .sub-menu a:hover {
  opacity: 0.78;
}

/* ==========================================================
   SHARED TYPE / UI
   ========================================================== */

.gramophone-kicker,
.gramophone-overline {
  margin-bottom: 18px;
  color: var(--gram-brass);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.gramophone-overline {
  margin-bottom: 12px;
  font-size: 0.69rem;
}

.gramophone-rule {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(260px, 72%);
  margin: 28px 0 30px;
}

.gramophone-rule::before,
.gramophone-rule::after {
  content: "";
  display: block;
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(197, 168, 128, 0.1),
    var(--gram-brass)
  );
}

.gramophone-rule::after {
  background: linear-gradient(
    90deg,
    var(--gram-brass),
    rgba(197, 168, 128, 0.1)
  );
}

.gramophone-rule span {
  position: relative;
  display: block;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--gram-brass);
  transform: rotate(45deg);
  background: rgba(15, 15, 15, 0.92);
  box-shadow:
    -12px 12px 0 -4px var(--gram-brass),
    12px -12px 0 -4px var(--gram-brass);
}

.gramophone-rule span::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gram-brass);
}

.gramophone-button,
.gramophone-home .gramophone-native-cart .button,
.gramophone-home .gramophone-native-cart a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid var(--gram-brass);
  border-radius: 8px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.gramophone-button:hover {
  transform: translateY(-2px);
}

.gramophone-button--primary {
  background: var(--gram-cream);
  border-color: var(--gram-cream);
  color: var(--gram-black);
  font-weight: 600;
}

.gramophone-home .gramophone-button--primary,
.gramophone-home a.gramophone-button--primary,
body.page-template-template-homepage .gramophone-button--primary,
body.page-template-template-homepage a.gramophone-button--primary {
  color: var(--gram-black) !important;
}

.gramophone-home .gramophone-button--primary:hover,
.gramophone-home a.gramophone-button--primary:hover,
body.page-template-template-homepage .gramophone-button--primary:hover,
body.page-template-template-homepage a.gramophone-button--primary:hover {
  color: var(--gram-black) !important;
}

body.page-template-template-homepage .gramophone-shop-now:hover {
  transform: none !important;
  opacity: 0.82;
}

.gramophone-button--secondary {
  background: rgba(15, 15, 15, 0.3);
  color: var(--gram-cream);
  backdrop-filter: blur(8px);
}

.gramophone-button--secondary:hover {
  opacity: 0.78;
}

.gramophone-home .gramophone-native-cart .button,
.gramophone-home .gramophone-native-cart a.button {
  background: transparent;
  color: var(--gram-cream);
}

.gramophone-home .gramophone-native-cart .button:hover,
.gramophone-home .gramophone-native-cart a.button:hover {
  opacity: 0.78;
}

.gramophone-native-cart .added_to_cart {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-left: 8px;
  color: var(--gram-brass);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.88rem;
  border-bottom: 1px solid currentColor;
}

.gramophone-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  color: var(--gram-cream);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--gram-line);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    gap 180ms ease;
}

.gramophone-text-link:hover {
  gap: 15px;
  opacity: 0.78;
}

/* ==========================================================
   HERO
   Store-led background treatment. The image remains decorative while the
   headline and CTA stay real, accessible HTML.
   ========================================================== */

.gramophone-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(720px, 88vh, 900px);
  padding: 190px 0 28px;
  overflow: hidden;
  background-image: linear-gradient(
      90deg,
      rgba(15, 15, 15, 0.96) 0%,
      rgba(15, 15, 15, 0.78) 34%,
      rgba(15, 15, 15, 0.27) 62%,
      rgba(15, 15, 15, 0.16) 100%
    ),
    linear-gradient(
      180deg,
      rgba(15, 15, 15, 0.56) 0%,
      transparent 33%,
      transparent 85%,
      rgba(15, 15, 15, 0.62) 100%
    ),
    url("assets/images/hero-bg.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 48%;
  border-bottom: 1px solid var(--gram-line);
}

.gramophone-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0), var(--gram-black));
}

.gramophone-hero__grid {
  position: relative;
  z-index: 1;
  display: block;
}

.gramophone-hero__copy {
  position: relative;
  z-index: 3;
  max-width: 650px;
}

.gramophone-hero__copy .gramophone-kicker {
  margin-bottom: 20px;
  color: var(--gram-cream);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.56);
}

.gramophone-hero__title {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--gram-cream);
  font-size: clamp(3.25rem, 5.5vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-shadow: 0 5px 34px rgba(0, 0, 0, 0.48);
}

.gramophone-hero__title span {
  color: var(--gram-brass);
}

.gramophone-hero__intro {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--gram-copy);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.78;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.gramophone-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.gramophone-hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  width: 100%;
  max-width: none;
  margin: 30px 0 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  color: var(--gram-muted);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gramophone-payment-methods {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  width: 100%;
  min-height: 26px;
  margin: 14px 0 0;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
}

body.page-template-template-homepage .gramophone-payment-methods {
  margin-top: 40px;
}

.gramophone-payment-methods__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  max-width: 32px;
}

.gramophone-payment-methods__logo {
  display: block;
  width: auto;
  max-width: 32px;
  height: 20px;
  max-height: 20px;
  object-fit: contain;
  opacity: 0.9;
}


/* Shared payment-logo component on light commerce surfaces. */
body.single-product .gramophone-payment-methods--product {
  gap: 10px 16px;
  margin: 14px 0 0;
  padding: 0 0 2px;
  background: transparent;
}

body.single-product .gramophone-payment-methods--product .gramophone-payment-methods__logo,
body.woocommerce-cart .gramophone-payment-methods--cart .gramophone-payment-methods__logo {
  opacity: 0.82;
  transition: opacity 160ms ease;
}

body.single-product .gramophone-payment-methods--product .gramophone-payment-methods__logo:hover,
body.woocommerce-cart .gramophone-payment-methods--cart .gramophone-payment-methods__logo:hover {
  opacity: 1;
}

body.woocommerce-cart .gramophone-payment-methods--cart {
  clear: both;
  justify-content: flex-start;
  gap: 10px 16px;
  width: 100%;
  margin: -20px 0 34px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--gram-cart-line);
  background: transparent;
}

/* ==========================================================
   EXPERIENCE
   ========================================================== */

.gramophone-experience {
  padding: clamp(86px, 9vw, 140px) 0;
  border-bottom: 1px solid var(--gram-line);
  background:
    linear-gradient(90deg, rgba(83, 46, 28, 0.18), transparent 38%), #11100e;
}

.gramophone-experience__grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(54px, 8vw, 118px);
}

.gramophone-experience__visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.gramophone-experience__image-wrap {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #17120f;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.gramophone-experience__background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gramophone-experience__visual-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.02), rgba(15, 15, 15, 0.13)),
    radial-gradient(
      circle at 50% 48%,
      transparent 35%,
      rgba(15, 15, 15, 0.16) 100%
    );
}

.gramophone-experience__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: block;
  width: min(72%, 390px);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.28));
}

.gramophone-experience__content {
  max-width: 720px;
}

.gramophone-experience__content h2 {
  margin-bottom: 24px;
  color: var(--gram-cream);
  font-size: clamp(3rem, 5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.gramophone-experience__content > p:not(.gramophone-kicker) {
  max-width: 650px;
  margin-bottom: 18px;
  color: var(--gram-copy);
  font-size: 1rem;
  line-height: 1.78;
}

.gramophone-experience__content > p:last-child {
  margin-bottom: 0;
}

.gramophone-experience__mobile-intro {
  display: none;
}

/* ==========================================================
   COLLECTION
   ========================================================== */

.gramophone-collection {
  padding: clamp(72px, 7vw, 112px) 0;
  background: var(--gram-cream);
  color: #0f0f0f;
}

@media (min-width: 981px) {
  .gramophone-collection {
    padding-top: 40px;
  }
}

.gramophone-warranty-banner {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto clamp(36px, 4vw, 54px);
}

.gramophone-warranty-banner img {
  display: block;
  width: min(420px, 100%);
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

.gramophone-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: 70px;
  margin-bottom: clamp(70px, 8vw, 120px);
}

#collection {
  scroll-margin-top: 24px;
}

.gramophone-product-story__mobile-color-slot {
  display: none;
}

.gramophone-section-heading h2 {
  margin-bottom: 0;
  color: #0f0f0f;
  font-size: clamp(3.6rem, 6.5vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.gramophone-section-heading > div:first-child > p:not(.gramophone-kicker) {
  max-width: 560px;
  margin-bottom: 4px;
  color: var(--gram-ink);
  font-size: 1rem;
  line-height: 1.78;
}

.gramophone-collection-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 22px);
  margin-bottom: clamp(84px, 9vw, 132px);
}

.gramophone-collection-index__item {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto auto auto;
  min-width: 0;
  text-align: center;
  padding: 28px 20px 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--gram-black);
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.gramophone-collection-index__item:hover,
.gramophone-collection-index__item:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(83, 46, 28, 0.1);
}

.gramophone-collection-index__item:hover {
  opacity: 0.9;
}


.gramophone-collection-index__media {
  position: relative;
  display: grid;
  min-width: 0;
}

.gramophone-collection-index__image {
  display: grid;
  place-items: center;
  min-height: 290px;
  padding: 18px 8px;
  border-radius: 6px;
}

.gramophone-collection-index__image:focus-visible,
.gramophone-collection-index__name a:focus-visible {
  outline: 2px solid var(--gram-brown);
  outline-offset: 3px;
}

.gramophone-collection-index__image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 13px 16px rgba(83, 46, 28, 0.14));
}

.gramophone-stock-badge {
  position: absolute;
  top: 12px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 999px;
  background: rgba(230, 230, 230, 0.94);
  color: rgba(15, 15, 15, 0.68);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(15, 15, 15, 0.08);
  pointer-events: none;
}


.gramophone-collection-index__name {
  margin: 8px 0 0;
  font-family: "Noto Serif", Georgia, serif;
  text-align: center;
  font-size: clamp(1.05rem, 1.7vw, 1.7rem);
  font-weight: 400;
  line-height: 1.06;
  text-wrap: balance;
}

.gramophone-collection-index__name a {
  display: inline-block;
}

/* Stretch the product title link across the card while keeping commerce
   controls above it as independent interactive elements. */
.gramophone-collection-index__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gramophone-collection-index__purchase,
.gramophone-collection-index__purchase .button,
.gramophone-collection-index__purchase a.button,
.gramophone-collection-index__purchase button.button,
.gramophone-collection-index__purchase .added_to_cart {
  position: relative;
  z-index: 3;
}

.gramophone-collection-index__name a:hover {
  opacity: 0.78;
}

.gramophone-collection-index__price {
  margin-top: 8px;
  color: var(--gram-brown);
  text-align: center;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.8rem;
}

.gramophone-collection-index__price del {
  opacity: 0.55;
}

.gramophone-collection-index__price ins {
  text-decoration: none;
}
.gramophone-collection-index__variation {
  margin: 6px 0 0;
  color: rgba(15, 15, 15, 0.62);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
}

.gramophone-collection-index__purchase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin-top: 12px;
}

.gramophone-collection-index__purchase form {
  margin: 0;
}

.gramophone-collection-index__purchase .button,
.gramophone-collection-index__purchase a.button,
.gramophone-collection-index__purchase button.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 8px 13px !important;
  border: 1px solid var(--gram-brown) !important;
  border-radius: 6px !important;
  background: var(--gram-brown) !important;
  color: var(--gram-cream) !important;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 18px !important;
  font-weight: 500;
  line-height: 1.2 !important;
  text-transform: none;
  box-shadow: none;
}

.gramophone-collection-index__purchase .button:hover,
.gramophone-collection-index__purchase a.button:hover,
.gramophone-collection-index__purchase button.button:hover {
  opacity: 0.78;
}

.gramophone-collection-index__purchase .gramophone-disabled-cart,
.gramophone-collection-index__purchase .gramophone-disabled-cart:hover,
.gramophone-collection-index__purchase .gramophone-disabled-cart:focus {
  border-color: rgba(15, 15, 15, 0.14) !important;
  background: #c9c7c4 !important;
  color: rgba(15, 15, 15, 0.44) !important;
  cursor: not-allowed;
  pointer-events: none;
}

.gramophone-collection-index__purchase .added_to_cart {
  margin-top: 7px;
  color: var(--gram-brown);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.67rem;
  line-height: 1.2;
}


.gramophone-product-list {
  display: grid;
  gap: clamp(100px, 12vw, 180px);
}

.gramophone-product-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
}

.gramophone-product-story.is-image-right .gramophone-product-story__media {
  order: 2;
}

.gramophone-product-story.is-image-right .gramophone-product-story__content {
  order: 1;
}

.gramophone-product-story__media {
  position: relative;
}

.gramophone-product-story__media .gramophone-stock-badge--story {
  top: 18px;
  left: 18px;
  z-index: 3;
}

.gramophone-product-story__media::after {
  content: "";
  position: absolute;
  inset: 26px -24px -26px 24px;
  z-index: 0;
  border: 1px solid var(--gram-line);
  pointer-events: none;
}

.gramophone-product-story.is-image-right
  .gramophone-product-story__media::after {
  inset: 26px 24px -26px -24px;
}

.gramophone-product-story__image-link {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 44%,
      rgba(197, 168, 128, 0.18),
      transparent 42%
    ),
    linear-gradient(145deg, #f3f0ea 0%, var(--gram-cream) 68%, #ddd6cd 100%);
  border: 1px solid rgba(83, 46, 28, 0.18);
  box-shadow: 0 24px 70px rgba(83, 46, 28, 0.14);
}

.gramophone-product-story__image {
  display: grid;
  place-items: center;
  min-height: 640px;
  padding: clamp(44px, 6vw, 86px);
}

.gramophone-product-story__image img {
  display: block;
  width: 100%;
  max-width: 340px;
  max-height: 75vh;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(83, 46, 28, 0.18));
  transition:
    transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 500ms ease;
}

.gramophone-product-story__image-link:hover img {
  transform: scale(1.035);
  filter: drop-shadow(0 28px 32px rgba(83, 46, 28, 0.22));
}


.gramophone-product-story__content {
  max-width: 570px;
}

.gramophone-product-story__content h3 {
  margin-bottom: 20px;
  color: #0f0f0f;
  font-size: clamp(2.9rem, 5vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.gramophone-product-story__content h3 a:hover {
  opacity: 0.78;
}

.gramophone-product-story__description {
  max-width: 530px;
  color: rgba(15, 15, 15, 0.72);
  font-size: 1rem;
  line-height: 1.78;
}

.gramophone-product-story__description p:last-child {
  margin-bottom: 0;
}

.gramophone-product-story__price {
  margin-top: 22px;
}

.gramophone-product-story__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.gramophone-product-story__actions .gramophone-native-cart {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.gramophone-product-story__stock-status {
  display: inline-block;
  color: #b42318;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gramophone-collection .gramophone-native-cart .gramophone-disabled-cart,
.gramophone-collection .gramophone-native-cart .gramophone-disabled-cart:hover,
.gramophone-collection .gramophone-native-cart .gramophone-disabled-cart:focus {
  border-color: rgba(15, 15, 15, 0.14) !important;
  background: #c9c7c4 !important;
  color: rgba(15, 15, 15, 0.44) !important;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.gramophone-collection .gramophone-kicker,
.gramophone-collection .gramophone-overline,
.gramophone-collection .gramophone-product-story__price,
.gramophone-collection .gramophone-product-story__price ins {
  color: var(--gram-brown);
}

.gramophone-collection .gramophone-text-link {
  color: var(--gram-black);
  border-bottom-color: rgba(83, 46, 28, 0.3);
}

.gramophone-collection .gramophone-text-link:hover {
  opacity: 0.78;
}

.gramophone-collection .gramophone-native-cart .button,
.gramophone-collection .gramophone-native-cart a.button {
  background: var(--gram-brown);
  color: var(--gram-cream);
  border-color: var(--gram-brown);
}

.gramophone-collection .gramophone-native-cart .button:hover,
.gramophone-collection .gramophone-native-cart a.button:hover {
  opacity: 0.78;
}

.gramophone-collection .gramophone-native-cart .added_to_cart {
  color: var(--gram-brown);
}


/* ==========================================================
   COLLECTION TRUST / PAYMENT SECTIONS
   ========================================================== */

.gramophone-collection-payment-panel,
.gramophone-why-choose {
  width: 100%;
  text-align: center;
}

.gramophone-collection-payment-panel {
  margin: 0 auto clamp(32px, 3vw, 44px);
  padding: clamp(30px, 4vw, 48px) clamp(18px, 4vw, 48px);
  border-top: 1px solid rgba(83, 46, 28, 0.16);
  border-bottom: 1px solid rgba(83, 46, 28, 0.16);
  background: transparent;
}

.gramophone-collection-payment-panel h2,
.gramophone-why-choose > h2 {
  margin: 0;
  color: var(--gram-black);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.gramophone-collection-payment-panel .gramophone-payment-methods--collection {
  justify-content: center;
  gap: 16px 28px;
  margin-top: 40px;
}

.gramophone-payment-methods--collection .gramophone-payment-methods__item {
  width: auto;
  max-width: 100px;
  height: 40px;
}

.gramophone-payment-methods--collection .gramophone-payment-methods__logo {
  width: auto;
  max-width: 100px;
  height: 40px;
  max-height: 40px;
  object-fit: contain;
  opacity: 1;
}

.gramophone-why-choose {
  margin: 0 auto clamp(74px, 8vw, 118px);
}

.gramophone-why-choose > h2 {
  margin-bottom: 40px;
}

.gramophone-why-choose__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 34px);
}

.gramophone-why-choose__item {
  min-width: 0;
  padding: 24px 14px 8px;
}

.gramophone-why-choose__item svg {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  fill: none;
  stroke: var(--gram-brown);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gramophone-why-choose__item h3 {
  margin: 0 0 9px;
  color: var(--gram-black);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  font-weight: 400;
  line-height: 1.1;
}

.gramophone-why-choose__item p {
  max-width: 250px;
  margin: 0 auto;
  color: rgba(15, 15, 15, 0.66);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Homepage product stories use WooCommerce's native variation form.
   Color is visually mirrored as buttons; WooCommerce remains the source of truth. */
.gramophone-product-story__actions .gramophone-native-cart--variable {
  flex: 1 0 100%;
  width: 100%;
  align-items: flex-start;
}

.gramophone-product-story .gramophone-inline-variation-form {
  width: 100%;
  margin-top: 2px;
}

.gramophone-product-story .gramophone-inline-variation-form form.variations_form {
  margin: 0 !important;
}

.gramophone-product-story .gramophone-inline-variation-form table.variations {
  width: 100%;
  max-width: 430px;
  margin: 0 0 14px;
  border: 0;
}

.gramophone-product-story .gramophone-inline-variation-form table.variations tr,
.gramophone-product-story .gramophone-inline-variation-form table.variations th,
.gramophone-product-story .gramophone-inline-variation-form table.variations td {
  border: 0;
  background: transparent;
}

.gramophone-product-story .gramophone-inline-variation-form table.variations th,
.gramophone-product-story .gramophone-inline-variation-form table.variations td {
  padding: 0 0 10px;
  text-align: left;
}

.gramophone-product-story .gramophone-inline-variation-form table.variations th.label {
  width: 78px;
  padding-right: 12px;
  color: var(--gram-black);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gramophone-product-story .gramophone-inline-variation-form table.variations select {
  min-height: 42px;
  padding: 7px 34px 7px 10px;
  border: 1px solid rgba(83, 46, 28, 0.24);
  border-radius: 6px;
  background: var(--gram-cream);
  color: var(--gram-black);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.8rem;
}

.gramophone-product-story
  .gramophone-inline-variation-form
  select.gramophone-native-color-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gramophone-product-story .gramophone-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gramophone-product-story .gramophone-color-option {
  min-width: 74px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(83, 46, 28, 0.3);
  border-radius: 6px;
  background: transparent;
  color: var(--gram-black);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.gramophone-product-story .gramophone-color-option:hover {
  opacity: 0.78;
}

.gramophone-product-story .gramophone-color-option:focus-visible {
  border-color: var(--gram-brown);
  outline: 2px solid rgba(83, 46, 28, 0.24);
  outline-offset: 2px;
}

.gramophone-product-story .gramophone-color-option.is-selected {
  border-color: var(--gram-brown);
  background: var(--gram-brown);
  color: var(--gram-cream);
}

.gramophone-product-story .gramophone-color-option:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gramophone-product-story .gramophone-inline-variation-form .reset_variations,
.gramophone-product-story
  .gramophone-inline-variation-form
  .woocommerce-variation-add-to-cart
  .quantity,
.gramophone-product-story
  .gramophone-inline-variation-form
  .woocommerce-variation-price {
  display: none !important;
}

.gramophone-product-story
  .gramophone-inline-variation-form
  .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.gramophone-product-story
  .gramophone-inline-variation-form
  .single_add_to_cart_button {
  width: auto !important;
  min-width: 0;
  min-height: 52px;
  padding: 13px 22px !important;
  border: 1px solid var(--gram-brown) !important;
  border-radius: 8px;
  background: var(--gram-brown);
  color: var(--gram-cream);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.06rem !important;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: none;
}

.gramophone-product-story
  .gramophone-inline-variation-form
  .single_add_to_cart_button:not(.disabled):hover {
  transform: none !important;
  opacity: 0.78;
}

.gramophone-product-story
  .gramophone-inline-variation-form
  .single_add_to_cart_button.disabled {
  border-color: rgba(15, 15, 15, 0.14) !important;
  background: #c9c7c4 !important;
  color: rgba(15, 15, 15, 0.44) !important;
  cursor: not-allowed;
}

/* ==========================================================
   REEL SECTION
   ========================================================== */

.gramophone-reel-section {
  padding: clamp(100px, 11vw, 180px) 0;
  border-top: 1px solid var(--gram-line);
  border-bottom: 1px solid var(--gram-line);
  background:
    radial-gradient(
      circle at 78% 50%,
      rgba(111, 18, 24, 0.36),
      transparent 32%
    ),
    linear-gradient(120deg, #11100e 0%, #0f0f0f 52%, #1a0d0e 100%);
}

.gramophone-reel-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(330px, 0.55fr);
  gap: clamp(70px, 11vw, 170px);
  align-items: center;
}

.gramophone-reel-section__copy {
  max-width: 760px;
}

.gramophone-reel-section__copy h2 {
  margin-bottom: 28px;
  color: var(--gram-brass) !important;
  font-size: clamp(3.4rem, 6.2vw, 7.1rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.gramophone-reel-section__copy > p {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--gram-copy);
  font-size: 1rem;
  line-height: 1.78;
}

.gramophone-reel-media {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.gramophone-reel-media__frame {
  position: relative;
  width: auto;
  height: min(70vh, 760px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(197, 168, 128, 0.48);
  background: #0b0b0b;
  box-shadow: var(--gram-shadow);
}

.gramophone-reel-media__frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(230, 230, 230, 0.1);
}

.gramophone-reel-media__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0b0b;
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */

.gramophone-testimonials {
  padding: clamp(88px, 9vw, 138px) 0;
  border-bottom: 1px solid var(--gram-line);
  background:
    radial-gradient(circle at 16% 14%, rgba(83, 46, 28, 0.18), transparent 28%),
    linear-gradient(180deg, #11100e 0%, #0f0f0f 100%);
}

.gramophone-testimonials__inner {
  display: block;
}

.gramophone-testimonials__header {
  max-width: 760px;
  margin-bottom: 36px;
}

.gramophone-testimonials__header h2 {
  margin: 0 0 18px;
  color: var(--gram-cream);
  font-size: clamp(2.8rem, 4.8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.gramophone-testimonials__header > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--gram-copy);
  font-size: 0.98rem;
  line-height: 1.72;
}

.gramophone-testimonials__carousel {
  position: relative;
}

.gramophone-testimonials__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
}

.gramophone-testimonials__viewport::-webkit-scrollbar {
  display: none;
}

.gramophone-testimonials__track {
  --gram-testimonial-gap: clamp(18px, 2vw, 28px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gram-testimonial-gap) * 2)) / 3);
  gap: var(--gram-testimonial-gap);
  align-items: stretch;
}

.gramophone-testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 330px;
  padding: clamp(26px, 2.6vw, 38px);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(197, 168, 128, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.gramophone-testimonial-card__quote {
  display: block;
  height: 48px;
  margin-bottom: 14px;
  color: var(--gram-brass);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 4.9rem;
  font-weight: 400;
  line-height: 0.85;
  opacity: 0.72;
}

.gramophone-testimonial-card__copy {
  flex: 1 1 auto;
}

.gramophone-testimonial-card__copy p {
  margin: 0;
  color: var(--gram-cream);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  font-weight: 400;
  line-height: 1.68;
}

.gramophone-testimonial-card__copy p[dir="rtl"] {
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.9;
  text-align: right;
}

.gramophone-testimonial-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(197, 168, 128, 0.17);
}

.gramophone-testimonial-card__footer strong {
  color: var(--gram-brass);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.055em;
}

.gramophone-testimonial-card__language-toggle {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0;
  color: var(--gram-muted);
  background: transparent;
  box-shadow: none;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.gramophone-testimonial-card__language-toggle:hover {
  color: var(--gram-muted);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  opacity: 0.68;
}

.gramophone-testimonial-card__language-toggle:focus-visible {
  outline: 2px solid rgba(197, 168, 128, 0.48);
  outline-offset: 4px;
}

.gramophone-testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.gramophone-testimonials__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(197, 168, 128, 0.36);
  border-radius: 50%;
  color: var(--gram-cream);
  background: transparent;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.gramophone-testimonials__arrow:hover {
  color: var(--gram-cream);
  background: transparent;
  border-color: rgba(197, 168, 128, 0.36);
  opacity: 0.68;
}

.gramophone-testimonials__arrow:disabled {
  opacity: 0.26;
  cursor: default;
}

.gramophone-testimonials__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 54px;
}

.gramophone-testimonials__dot {
  width: 7px;
  height: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.gramophone-testimonials__dot:hover {
  background: rgba(255, 255, 255, 0.3);
  opacity: 0.68;
}

.gramophone-testimonials__dot[aria-current="true"] {
  background: var(--gram-brass);
  transform: scale(1.45);
}

.gramophone-testimonials__carousel.has-single-page .gramophone-testimonials__controls {
  display: none;
}

@media (max-width: 1099px) {
  .gramophone-testimonials__track {
    grid-auto-columns: calc((100% - var(--gram-testimonial-gap)) / 2);
  }
}

@media (max-width: 700px) {
  .gramophone-testimonials {
    padding: 68px 0;
  }

  .gramophone-testimonials__header {
    margin: 0 auto 28px;
    text-align: center;
  }

  .gramophone-testimonials__header .gramophone-kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .gramophone-testimonials__header h2 {
    margin-bottom: 14px;
    font-size: clamp(2.35rem, 10vw, 3.4rem);
  }

  .gramophone-testimonials__header > p:last-child {
    margin-inline: auto;
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .gramophone-testimonials__track {
    --gram-testimonial-gap: 14px;
    grid-auto-columns: 100%;
  }

  .gramophone-testimonial-card {
    min-height: 0;
    padding: 24px 22px;
  }

  .gramophone-testimonial-card__quote {
    height: 40px;
    margin-bottom: 10px;
    font-size: 4.2rem;
  }

  .gramophone-testimonial-card__copy p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .gramophone-testimonial-card__footer {
    margin-top: 24px;
    padding-top: 16px;
  }

  .gramophone-testimonials__controls {
    margin-top: 22px;
  }
}

/* ==========================================================
   CONTACT
   ========================================================== */

.gramophone-contact {
  padding: clamp(72px, 7vw, 106px) 0;
  background:
    radial-gradient(circle at 82% 24%, rgba(83, 46, 28, 0.16), transparent 32%),
    #11100e;
}

.gramophone-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(52px, 7vw, 96px);
}

.gramophone-contact__intro {
  max-width: 590px;
}

.gramophone-contact__intro h2 {
  margin: 0 0 16px;
  color: var(--gram-cream);
  font-size: clamp(2.8rem, 4.4vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.gramophone-contact__intro > p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--gram-copy);
  font-size: 0.95rem;
  line-height: 1.7;
}

.gramophone-contact__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 26px;
  width: min(100%, 500px);
  margin-left: auto;
}

.gramophone-contact__details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin: 0;
  font-style: normal;
}

.gramophone-contact__detail {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(230, 230, 230, 0.12);
  color: var(--gram-cream);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.gramophone-contact__detail:hover {
  opacity: 0.78;
  transform: translateX(-2px);
}

.gramophone-contact__detail:focus-visible {
  border-color: rgba(197, 168, 128, 0.48);
  transform: translateX(-2px);
  outline: 2px solid rgba(197, 168, 128, 0.42);
  outline-offset: 2px;
}

.gramophone-contact__detail span {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.gramophone-contact__detail svg {
  display: block;
  width: 28px;
  height: 28px;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gramophone-contact__socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: clamp(18px, 2vw, 28px);
}

.gramophone-contact__social {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: rgba(230, 230, 230, 0.72);
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.gramophone-contact__social:hover {
  opacity: 0.78;
  transform: translateY(-2px);
}

.gramophone-contact__social:focus-visible {
  transform: translateY(-2px);
  outline: 2px solid rgba(197, 168, 128, 0.42);
  outline-offset: 3px;
}

.gramophone-contact__social svg {
  display: block;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gramophone-contact__social--facebook svg {
  fill: currentColor;
  stroke: none;
}

.gramophone-contact__social--youtube svg path:last-child {
  fill: currentColor;
  stroke: none;
}

/* ==========================================================
   FINAL CTA
   ========================================================== */

.gramophone-final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(120px, 13vw, 210px) 0;
  text-align: center;
  background: #0c0c0c;
}

.gramophone-final-cta__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 55%, rgba(83, 46, 28, 0.5), transparent 33%),
    radial-gradient(
      circle at 50% 55%,
      rgba(197, 168, 128, 0.07),
      transparent 52%
    );
}

.gramophone-final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gramophone-final-cta h2 {
  color: var(--gram-brass);
  max-width: 1050px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 7vw, 7.8rem);
  line-height: 0.93;
  letter-spacing: -0.045em;
}

.gramophone-final-cta p:not(.gramophone-kicker) {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--gram-copy);
  font-size: 1rem;
  line-height: 1.78;
}

.gramophone-empty-state {
  padding: 36px;
  border: 1px solid var(--gram-line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--gram-copy);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (min-width: 1500px) {
  .gramophone-hero__image-link {
    width: min(100%, 620px);
  }
}

@media (max-width: 1100px) {
  .gramophone-hero__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 40px;
  }

  .gramophone-hero__image-link {
    width: min(100%, 520px, calc(85vh * 0.8));
  }
}

@media (max-width: 980px) {
  .gramophone-why-choose__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .gramophone-shell,
  .ast-container,
  .site-footer .ast-builder-grid-row-container-inner,
  .site-footer .ast-container {
    width: min(100% - 40px, 1320px);
  }

  .gramophone-hero {
    min-height: auto;
    padding-top: 142px;
  }

  .gramophone-hero__grid,
  .gramophone-section-heading,
  .gramophone-experience__grid,
  .gramophone-product-story,
  .gramophone-reel-section__grid {
    grid-template-columns: 1fr;
  }

  .gramophone-hero__visual {
    margin-top: 34px;
    width: 100%;
  }

  .gramophone-hero__image-link {
    width: min(100%, 540px, calc(85vh * 0.8));
  }

  .gramophone-hero__image-wrap {
  }

  .gramophone-hero__quote {
    right: max(0px, calc((100% - 540px) / 2));
    bottom: -42px;
  }

  .gramophone-section-heading {
    gap: 28px;
  }

  .gramophone-product-story,
  .gramophone-product-story.is-image-right {
    gap: 70px;
  }

  .gramophone-product-story.is-image-right .gramophone-product-story__media,
  .gramophone-product-story.is-image-right .gramophone-product-story__content {
    order: initial;
  }

  .gramophone-product-story__content {
    max-width: 680px;
  }

  .gramophone-reel-media {
    justify-content: center;
    margin-top: 20px;
  }

  .gramophone-reel-media__frame {
    height: min(70vh, 700px);
  }

  .gramophone-product-list {
    gap: 120px;
  }

  .gramophone-product-story,
  .gramophone-product-story.is-image-right {
    gap: 40px;
  }

  .gramophone-section-heading {
    margin-bottom: 66px;
  }

  .gramophone-experience__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .gramophone-experience__image-wrap {
    width: min(100%, 500px);
  }

  .gramophone-collection-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 78px;
  }
  .gramophone-collection-index__image {
    min-height: 225px;
  }

  /* Keep variable-product color choices directly below the image on tablet/mobile.
     The native select remains in the WooCommerce form as the source of truth. */
  .gramophone-product-story__mobile-color-slot {
    display: block;
    width: 100%;
    margin-top: 16px;
  }

  .gramophone-product-story__mobile-color-slot .gramophone-color-options {
    justify-content: flex-start;
  }

  .gramophone-product-story .gramophone-inline-variation-form table.variations {
    display: none;
  }

  /* With color choices moved above the title, the remaining variable-product
     purchase control follows the same inline sizing/alignment as simple products. */
  .gramophone-product-story__actions .gramophone-native-cart--variable {
    flex: 0 0 auto;
    width: auto;
  }

  .gramophone-product-story .gramophone-inline-variation-form {
    width: auto;
    margin-top: 0;
  }

  .gramophone-product-story
    .gramophone-inline-variation-form
    .woocommerce-variation-add-to-cart {
    margin-top: 0;
  }

  .gramophone-contact {
    padding: 68px 0;
  }

  .gramophone-contact__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .gramophone-contact__intro {
    max-width: 680px;
  }

  .gramophone-contact__content,
  .gramophone-contact__details {
    align-items: flex-start;
  }

  .gramophone-contact__socials {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .gramophone-collection-payment-panel {
    margin-bottom: 28px;
    padding: 26px 10px;
  }

  .gramophone-why-choose {
    margin-bottom: 62px;
  }

  .gramophone-collection-payment-panel h2,
  .gramophone-why-choose > h2 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .gramophone-collection-payment-panel .gramophone-payment-methods--collection {
    gap: 13px 20px;
    margin-top: 20px;
  }

  .gramophone-payment-methods--collection .gramophone-payment-methods__logo {
    max-width: 64px;
    height: 32px;
    max-height: 32px;
  }

  .gramophone-why-choose > h2 {
    margin-bottom: 20px;
  }

  .gramophone-why-choose__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .gramophone-why-choose__item {
    padding: 18px 6px 6px;
  }

  .gramophone-why-choose__item svg {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }

  .gramophone-why-choose__item p {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .gramophone-collection-index__purchase .button,
  .gramophone-collection-index__purchase a.button,
  .gramophone-collection-index__purchase button.button {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 16px !important;
  }



  .gramophone-contact {
    padding: 56px 0;
  }

  .gramophone-contact__inner {
    gap: 28px;
  }

  .gramophone-contact__intro {
    text-align: center;
  }

  .gramophone-contact__intro .gramophone-kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .gramophone-contact__intro h2 {
    margin-bottom: 13px;
    font-size: clamp(2.4rem, 10vw, 3.45rem);
  }

  .gramophone-contact__intro > p:last-child {
    margin-inline: auto;
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .gramophone-contact__content,
  .gramophone-contact__details {
    align-items: center;
    width: 100%;
  }

  .gramophone-contact__content {
    gap: 22px;
  }

  .gramophone-contact__detail {
    gap: 9px;
    font-size: 0.88rem;
  }

  .gramophone-contact__detail svg {
    width: 18px;
    height: 18px;
  }

  .gramophone-contact__socials {
    justify-content: center;
    gap: 17px;
  }

  .gramophone-contact__social {
    width: 39px;
    height: 39px;
  }

  .gramophone-contact__social svg {
    width: 24px;
    height: 24px;
  }

  .gramophone-shell,
  .ast-container,
  .site-footer .ast-builder-grid-row-container-inner,
  .site-footer .ast-container {
    width: min(100% - 28px, 1320px);
  }

  .gramophone-hero {
    padding-top: 126px;
  }

  .gramophone-hero__title {
    font-size: clamp(2.6rem, 10.5vw, 3.55rem);
    line-height: 0.97;
  }

  .gramophone-hero__intro {
    font-size: 0.96rem;
  }

  .gramophone-hero__actions,
  .gramophone-product-story__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gramophone-button,
  .gramophone-home .gramophone-native-cart .button,
  .gramophone-home .gramophone-native-cart a.button {
    width: 100%;
  }

  .gramophone-native-cart {
    width: 100%;
  }

  .gramophone-product-story__mobile-color-slot .gramophone-color-options {
    justify-content: center;
  }

  .gramophone-product-story__actions .gramophone-native-cart--variable,
  .gramophone-product-story .gramophone-inline-variation-form {
    width: 100%;
  }

  .gramophone-product-story__actions .gramophone-native-cart--variable {
    flex: 1 0 100%;
  }

  .gramophone-product-story
    .gramophone-inline-variation-form
    .single_add_to_cart_button {
    width: 100% !important;
    min-height: 52px;
    padding: 13px 22px !important;
    font-size: 1.06rem !important;
  }

  .gramophone-native-cart .added_to_cart {
    margin: 10px 0 0;
  }

  .gramophone-hero__notes {
    gap: 8px 12px;
  }

  .gramophone-hero__image-link {
    width: min(100%, 480px, calc(85vh * 0.8));
    margin-inline: auto;
  }

  .gramophone-hero__image-wrap {
    aspect-ratio: 4 / 5;
  }

  .gramophone-hero__campaign-image {
    object-position: center center;
  }

  .gramophone-hero__image-caption-row {
    width: min(66%, 260px);
  }

  .gramophone-hero__quote {
    position: absolute;
    right: 8px;
    bottom: -24px;
    max-width: 205px;
    padding: 7px 9px;
    gap: 7px;
  }

  .gramophone-hero__quote span {
    font-size: 1rem;
  }
  .gramophone-hero__quote p {
    font-size: 0.68rem;
  }

  .gramophone-product-story__image {
    min-height: 440px;
    padding: 34px 26px;
  }

  .gramophone-product-story__media::after,
  .gramophone-product-story.is-image-right
    .gramophone-product-story__media::after {
    inset: 14px -10px -14px 10px;
  }


  .gramophone-reel-media__frame {
    height: min(70vh, 620px);
  }

  /* Tighter mobile rhythm and clearer product grouping. */
  .gramophone-hero {
    padding-top: 100px;
    padding-bottom: 54px;
  }

  .gramophone-experience,
  .gramophone-collection,
  .gramophone-reel-section,
  .gramophone-final-cta {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .gramophone-section-heading {
    margin-bottom: 42px;
    gap: 16px;
  }

  .gramophone-section-heading h2 {
    font-size: clamp(2.6rem, 11vw, 3.8rem);
    line-height: 1;
  }

  .gramophone-section-heading > div:first-child > p:not(.gramophone-kicker) {
    font-size: 0.93rem;
    line-height: 1.62;
  }

  .gramophone-product-list {
    gap: 84px;
  }

  .gramophone-product-story,
  .gramophone-product-story.is-image-right {
    gap: 26px;
  }

  .gramophone-product-story__content h3 {
    margin-bottom: 12px;
    font-size: clamp(2.25rem, 9.5vw, 3.4rem);
  }

  .gramophone-product-story__description {
    font-size: 0.93rem;
    line-height: 1.62;
  }

  .gramophone-product-story__price {
    margin-top: 14px;
  }

  .gramophone-product-story__actions {
    margin-top: 20px;
    gap: 10px;
  }

  .gramophone-reel-section__grid {
    gap: 34px;
  }

  .gramophone-reel-section__copy h2 {
    margin-bottom: 18px;
    font-size: clamp(2.55rem, 10.5vw, 3.8rem);
  }

  .gramophone-final-cta h2 {
    margin-bottom: 16px;
    font-size: clamp(2.7rem, 10.5vw, 4rem);
  }

  .gramophone-product-story__image img {
    max-height: 45vh;
  }

  .gramophone-warranty-banner {
    margin-bottom: 34px;
  }

  .gramophone-warranty-banner img {
    width: min(320px, 86vw);
  }

  .gramophone-experience {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .gramophone-experience__grid {
    gap: 30px;
  }

  .gramophone-experience__image-wrap {
    width: min(100%, 420px);
  }

  .gramophone-experience__logo {
    width: min(74%, 300px);
  }

  .gramophone-experience__content {
    max-width: 560px;
    text-align: center;
  }

  .gramophone-experience__content .gramophone-kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .gramophone-experience__content h2 {
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 10vw, 3.5rem);
    line-height: 1.02;
  }

  .gramophone-experience__content > p:not(.gramophone-kicker) {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.93rem;
    line-height: 1.62;
  }

  .gramophone-hero__image-caption-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .gramophone-hero__image-caption-row h2 {
    width: min(72%, 260px);
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }
  .gramophone-hero__featured-price {
    font-size: 0.9rem;
  }

  /* Featured product on mobile: full image, then a dedicated black caption area. */
  .gramophone-hero__image-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: none;
    aspect-ratio: auto;
    background: var(--gram-black);
    overflow: hidden;
  }

  .gramophone-hero__campaign-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    object-position: center;
  }

  .gramophone-hero__image-shade {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2;
    height: calc(100% - 130px);
    background: linear-gradient(
      180deg,
      rgba(15, 15, 15, 0) 72%,
      rgba(15, 15, 15, 0.14) 82%,
      rgba(15, 15, 15, 0.48) 92%,
      var(--gram-black) 100%
    );
    pointer-events: none;
  }

  .gramophone-hero__image-caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 4;
    width: 100%;
    padding: 18px 20px 40px;
    background: var(--gram-black);
    color: var(--gram-cream);
  }

  .gramophone-hero__image-caption::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -58px;
    height: 60px;
    z-index: -1;
    background: linear-gradient(
      180deg,
      rgba(15, 15, 15, 0) 0%,
      rgba(15, 15, 15, 0.18) 32%,
      rgba(15, 15, 15, 0.58) 68%,
      var(--gram-black) 100%
    );
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .gramophone-hero__image-caption,
  .gramophone-hero__image-caption > *,
  .gramophone-hero__image-caption-row,
  .gramophone-hero__image-caption-row h2,
  .gramophone-hero__featured-price {
    width: 100%;
    max-width: none;
  }

  .gramophone-hero__image-caption-row {
    display: block;
  }

  .gramophone-hero__image-caption-row h2 {
    margin-bottom: 8px;
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .gramophone-hero__featured-price {
    display: block;
    font-size: 0.98rem;
  }

  .gramophone-hero__quote {
    z-index: 5;
  }

  /*
	 * Hero mobile fade:
	 * pure progressive black gradient only - no backdrop blur.
	 * Desktop caption treatment remains unchanged.
	 */
  .gramophone-hero__image-shade {
    background: linear-gradient(
      to bottom,
      rgba(15, 15, 15, 0) 62%,
      rgba(15, 15, 15, 0.025) 68%,
      rgba(15, 15, 15, 0.07) 73%,
      rgba(15, 15, 15, 0.14) 78%,
      rgba(15, 15, 15, 0.24) 83%,
      rgba(15, 15, 15, 0.38) 88%,
      rgba(15, 15, 15, 0.56) 92%,
      rgba(15, 15, 15, 0.76) 96%,
      var(--gram-black) 100%
    );
  }

  .gramophone-hero__image-caption::before {
    top: -82px;
    height: 84px;
    background: linear-gradient(
      to bottom,
      rgba(15, 15, 15, 0) 0%,
      rgba(15, 15, 15, 0.025) 14%,
      rgba(15, 15, 15, 0.07) 28%,
      rgba(15, 15, 15, 0.14) 42%,
      rgba(15, 15, 15, 0.25) 56%,
      rgba(15, 15, 15, 0.4) 70%,
      rgba(15, 15, 15, 0.6) 82%,
      rgba(15, 15, 15, 0.8) 92%,
      var(--gram-black) 100%
    );
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .gramophone-experience__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .gramophone-experience__mobile-intro {
    display: block;
    order: 1;
    text-align: center;
  }

  .gramophone-experience__mobile-intro .gramophone-kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .gramophone-experience__mobile-intro h2 {
    margin: 0;
    color: var(--gram-cream);
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(2.3rem, 10vw, 3.45rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  .gramophone-experience__visual {
    order: 2;
    width: 100%;
  }

  .gramophone-experience__image-wrap {
    width: min(100%, 420px);
    max-height: 30vh;
    aspect-ratio: 4 / 5;
    margin-inline: auto;
    overflow: hidden;
  }

  .gramophone-experience__background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .gramophone-experience__logo {
    top: 50%;
    left: 50%;
    width: min(72%, 280px);
    transform: translate(-50%, -50%);
  }

  .gramophone-experience__content {
    order: 3;
    max-width: 560px;
    margin-inline: auto;
    text-align: center;
  }

  .gramophone-experience__content .gramophone-kicker,
  .gramophone-experience__content h2 {
    display: none;
  }

  .gramophone-experience__primary-copy {
    display: block;
    margin: 0 auto !important;
    max-width: 520px;
    font-size: 0.93rem !important;
    line-height: 1.62 !important;
  }

  .gramophone-experience__secondary-copy {
    display: none;
  }
}

.gramophone-experience__mobile-copy {
  display: none;
}

/* ==========================================================
   SINGLE PRODUCT - MINIMAL / INFORMATIVE
   ========================================================== */

body.single-product {
  --gram-black: #0f0f0f;
  --gram-ink: #171411;
  --gram-cream: #ffffff;
  --gram-brass: #c5a880;
  --gram-brown: #532e1c;
  --gram-product-line: rgba(23, 20, 17, 0.14);
  --gram-product-muted: rgba(23, 20, 17, 0.62);
  background: var(--gram-cream);
  color: var(--gram-ink);
  font-family: "Poppins", Arial, sans-serif;
}

/* Keep the product content area on one cream surface.
   Deliberately exclude #page, .site and header wrappers so the site header
   keeps its own Astra/theme background. */
body.single-product .site-content,
body.single-product .site-main,
body.single-product #primary,
body.single-product .content-area,
body.single-product .ast-container > #primary,
body.single-product article.product,
body.single-product .woocommerce,
body.single-product div.product,
body.single-product div.product div.summary,
body.single-product .woocommerce-tabs,
body.single-product .woocommerce-Tabs-panel,
body.single-product .related.products,
body.single-product .upsells.products {
  background: var(--gram-cream) !important;
}

/* Keep only the actual main product image viewing box white. */
body.single-product
  div.product
  div.images
  .woocommerce-product-gallery__wrapper,
body.single-product div.product div.images .flex-viewport,
body.single-product div.product div.images .woocommerce-product-gallery__image,
body.single-product
  div.product
  div.images
  .woocommerce-product-gallery__image
  a {
  background: #fff !important;
}

/* Native WooCommerce/FlexSlider direction arrows.
   Plain directional arrows, with no circle/background. */
body.single-product .woocommerce-product-gallery .flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.single-product .woocommerce-product-gallery .flex-direction-nav a {
  position: absolute;
  top: 50%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 34px;
  height: 48px;
  margin-top: -24px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #000 !important;
  font-size: 0;
  text-indent: 0;
  opacity: 0.78;
  box-shadow: none;
  transition:
    transform 150ms ease,
    opacity 150ms ease;
}

body.single-product .woocommerce-product-gallery .flex-direction-nav a::before {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

body.single-product
  .woocommerce-product-gallery
  .flex-direction-nav
  .flex-prev {
  left: 10px;
}

body.single-product
  .woocommerce-product-gallery
  .flex-direction-nav
  .flex-prev::before {
  content: "‹";
}

body.single-product
  .woocommerce-product-gallery
  .flex-direction-nav
  .flex-next {
  right: 10px;
}

body.single-product
  .woocommerce-product-gallery
  .flex-direction-nav
  .flex-next::before {
  content: "›";
}

body.single-product
  .woocommerce-product-gallery
  .flex-direction-nav
  .flex-prev:hover,
body.single-product
  .woocommerce-product-gallery
  .flex-direction-nav
  .flex-prev:focus-visible {
  transform: translateX(-4px);
  opacity: 1;
  outline: none;
}

body.single-product
  .woocommerce-product-gallery
  .flex-direction-nav
  .flex-next:hover,
body.single-product
  .woocommerce-product-gallery
  .flex-direction-nav
  .flex-next:focus-visible {
  transform: translateX(4px);
  opacity: 1;
  outline: none;
}

/* Progressive thumbnail navigation. JS only adds these controls when the
   native thumbnail row actually overflows. */
body.single-product .gramophone-native-thumb-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

body.single-product .gramophone-native-thumb-rail .flex-control-thumbs {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0 !important;
  scroll-behavior: smooth;
}

body.single-product .gramophone-thumb-scroll {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #000 !important;
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
  box-shadow: none;
  transition:
    transform 150ms ease,
    opacity 150ms ease;
}

body.single-product .gramophone-thumb-scroll--prev:hover,
body.single-product .gramophone-thumb-scroll--prev:focus-visible {
  transform: translateX(-3px);
  opacity: 1;
  outline: none;
}

body.single-product .gramophone-thumb-scroll--next:hover,
body.single-product .gramophone-thumb-scroll--next:focus-visible {
  transform: translateX(3px);
  opacity: 1;
  outline: none;
}

body.single-product .gramophone-thumb-scroll[hidden] {
  display: none !important;
}

body.single-product .site-content,
body.single-product .site-main,
body.single-product #primary,
body.single-product .content-area,
body.single-product .site-content > .ast-container,
body.single-product .site-main > article,
body.single-product article.product,
body.single-product .woocommerce {
  background: var(--gram-cream) !important;
}

body.single-product .ast-container {
  width: min(1240px, calc(100% - 64px));
  max-width: 1240px;
}

body.single-product div.product {
  padding: 64px 0 36px;
}

body.single-product div.product::after {
  content: "";
  display: table;
  clear: both;
}

body.single-product div.product div.images,
body.single-product div.product div.summary {
  margin-bottom: 64px;
}

body.single-product div.product div.images {
  width: 52%;
}

body.single-product div.product div.summary {
  width: 42%;
  padding-top: 8px;
}

body.single-product .woocommerce-product-gallery__wrapper {
  margin: 0;
}

body.single-product .woocommerce-product-gallery__image {
  overflow: hidden;
  background: var(--gram-cream);
  border: 1px solid var(--gram-product-line);
}

/* Keep every selected product image inside one predictable viewing area. */
body.single-product .woocommerce-product-gallery__image > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(620px, 68vh);
  min-height: 460px;
  padding: 18px;
  background: var(--gram-cream);
}

body.single-product .woocommerce-product-gallery__image img {
  display: block;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
}

/* One horizontal thumbnail rail instead of a multi-row image wall. */
body.single-product .flex-control-thumbs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px;
  margin-top: 12px !important;
  padding: 0 0 7px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

body.single-product .flex-control-thumbs li {
  flex: 0 0 78px;
  width: 78px !important;
  margin: 0 !important;
  scroll-snap-align: start;
}

body.single-product .flex-control-thumbs img {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: cover;
  border: 1px solid transparent;
  opacity: 0.66;
  transition:
    opacity 160ms ease,
    border-color 160ms ease;
}

body.single-product .flex-control-thumbs img.flex-active {
  border-color: var(--gram-brass);
  opacity: 1;
}

body.single-product .flex-control-thumbs img:hover {
  opacity: 0.56;
}

/* WooCommerce sale badge, consistently styled everywhere it appears.
   Small and intentionally quiet. */
.woocommerce span.onsale,
.woocommerce-page span.onsale,
.wc-block-grid__product-onsale,
.wc-block-components-product-sale-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0;
  padding: 5px 8px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #890505 !important;
  color: var(--gram-cream) !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none !important;
}

/* Keep the classic single-product badge 14px inside the white gallery box.
   div.product starts with 64px top padding on desktop. */
body.single-product .woocommerce span.onsale,
body.single-product.woocommerce span.onsale {
  top: 78px !important;
  left: 14px !important;
  right: auto !important;
}

body.single-product .product_title {
  margin: 0 0 18px;
  color: var(--gram-ink);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(2.45rem, 4vw, 4.15rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
  margin: 0 0 24px;
  color: var(--gram-brown);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.38rem;
  font-weight: 600;
}

body.single-product div.product p.price del,
body.single-product div.product span.price del {
  color: var(--gram-product-muted);
  font-size: 0.9em;
  font-weight: 400;
  opacity: 1;
}

body.single-product div.product p.price ins,
body.single-product div.product span.price ins {
  color: var(--gram-brown);
  text-decoration: none;
}

body.single-product .woocommerce-product-details__short-description {
  margin-bottom: 28px;
  color: rgba(23, 20, 17, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

body.single-product form.cart,
body.single-product form.variations_form {
  margin: 0 0 24px !important;
}

body.single-product table.variations {
  margin-bottom: 20px;
  border: 0;
}

body.single-product table.variations tr,
body.single-product table.variations th,
body.single-product table.variations td {
  border: 0;
  background: transparent;
}

body.single-product table.variations th,
body.single-product table.variations td {
  padding: 0 0 12px;
}

body.single-product table.variations th.label {
  width: 92px;
  padding-right: 14px;
  color: var(--gram-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.single-product table.variations select {
  min-height: 46px;
  padding: 8px 38px 8px 12px;
  border: 1px solid var(--gram-product-line);
  border-radius: 6px;
  background-color: var(--gram-cream);
  color: var(--gram-ink);
  font-family: "Poppins", Arial, sans-serif;
}

/* JS enhances only the Color variation. If JS fails, the native select remains usable. */
body.single-product table.variations select.gramophone-native-color-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.single-product .gramophone-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body.single-product .gramophone-color-option {
  min-width: 74px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(83, 46, 28, 0.3);
  border-radius: 6px;
  background: transparent;
  color: var(--gram-ink);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

body.single-product .gramophone-color-option:hover {
  opacity: 0.78;
}

body.single-product .gramophone-color-option:focus-visible {
  border-color: var(--gram-brown);
  outline: 2px solid rgba(83, 46, 28, 0.24);
  outline-offset: 2px;
}

body.single-product .gramophone-color-option.is-selected {
  border-color: var(--gram-brown);
  background: var(--gram-brown);
  color: var(--gram-cream);
}

body.single-product .gramophone-color-option:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

body.single-product .reset_variations {
  color: var(--gram-brown);
  font-size: 0.8rem;
}

/* Product-page quantity stepper. Product and Cart controls intentionally use
   different classes so responsive changes cannot leak between them. */
body.single-product div.product form.cart:not(.variations_form):not(.grouped_form),
body.single-product div.product .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

body.single-product div.product form.cart .quantity,
body.single-product div.product .woocommerce-variation-add-to-cart .quantity {
  display: block;
  width: max-content;
  margin: 0 !important;
}

body.single-product .gramophone-product-qty-control {
  display: grid;
  grid-template-columns: 42px 48px 42px;
  align-items: center;
  width: max-content;
  height: 50px;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid var(--gram-product-line);
  border-radius: 6px;
  background: var(--gram-cream);
}

body.single-product .gramophone-product-qty-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gram-ink);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease, color 160ms ease;
}

body.single-product .gramophone-product-qty-button--minus {
  border-right: 1px solid var(--gram-product-line);
}

body.single-product .gramophone-product-qty-button--plus {
  border-left: 1px solid var(--gram-product-line);
}

body.single-product .gramophone-product-qty-button:hover {
  opacity: 0.72;
}

body.single-product .gramophone-product-qty-button:focus-visible {
  outline: 2px solid rgba(83, 46, 28, 0.24);
  outline-offset: -3px;
}

body.single-product .gramophone-product-qty-input {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gram-ink);
  font-size: 1rem;
  text-align: center;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

body.single-product .gramophone-product-qty-input:focus {
  outline: none;
}

body.single-product .gramophone-product-qty-input::-webkit-outer-spin-button,
body.single-product .gramophone-product-qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

body.single-product div.product form.cart .button,
body.single-product div.product .single_add_to_cart_button {
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid var(--gram-brown);
  border-radius: 6px;
  background: var(--gram-brown);
  color: var(--gram-cream);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

body.single-product div.product form.cart .button:hover,
body.single-product div.product .single_add_to_cart_button:hover {
  opacity: 0.78;
}

/* Astra sticky purchase bar uses the same primary action color. */
body.single-product .ast-sticky-add-to-cart .button,
body.single-product .ast-sticky-add-to-cart-action-wrap .button,
body.single-product .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action {
  border-color: var(--gram-brown) !important;
  background: var(--gram-brown) !important;
  color: #fff !important;
}

body.single-product .ast-sticky-add-to-cart .button:hover,
body.single-product .ast-sticky-add-to-cart-action-wrap .button:hover,
body.single-product
  .ast-sticky-add-to-cart
  .ast-sticky-add-to-cart-action:hover {
  opacity: 0.78;
}


/* Astra's compact sticky purchase bar should keep its native-sized quantity
   field; the larger page stepper is intentionally omitted there. */
body.single-product .ast-sticky-add-to-cart .gramophone-product-qty-control,
body.single-product .ast-sticky-add-to-cart-action-wrap .gramophone-product-qty-control {
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.single-product .ast-sticky-add-to-cart .gramophone-product-qty-button,
body.single-product .ast-sticky-add-to-cart-action-wrap .gramophone-product-qty-button {
  display: none;
}

body.single-product .ast-sticky-add-to-cart .gramophone-product-qty-input,
body.single-product .ast-sticky-add-to-cart-action-wrap .gramophone-product-qty-input {
  width: 44px;
  min-width: 44px;
  height: 36px;
  min-height: 36px;
  padding: 4px;
  border: 1px solid var(--gram-product-line);
  border-radius: 4px;
  background: #fff;
  font-size: 0.9rem;
}

body.single-product .stock {
  color: var(--gram-product-muted);
  font-size: 0.84rem;
}

body.single-product .product_meta {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--gram-product-line);
  color: var(--gram-product-muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

body.single-product .product_meta > span {
  display: block;
}

body.single-product .product_meta a {
  color: var(--gram-brown);
}

/* Vinyl artist link in the single-product summary. */
.gramophone-product-artist {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: -7px 0 17px;
  color: var(--gram-product-muted);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.35;
}

.gramophone-product-artist__label {
  flex: 0 0 auto;
  color: var(--gram-product-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gramophone-product-artist__names {
  min-width: 0;
  font-size: 0.9rem;
}

.gramophone-product-artist__names a {
  color: var(--gram-brown);
  text-decoration: none;
  border-bottom: 1px solid rgba(83, 46, 28, 0.28);
}

.gramophone-product-artist__names a:hover {
  opacity: 0.72;
}

.gramophone-product-confidence {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--gram-product-line);
  border-bottom: 1px solid var(--gram-product-line);
}

.gramophone-product-confidence__item {
  padding: 17px 18px 17px 0;
}

.gramophone-product-confidence__item + .gramophone-product-confidence__item {
  border-top: 1px solid var(--gram-product-line);
}

.gramophone-product-confidence__item strong,
.gramophone-product-confidence__item span {
  display: block;
}

.gramophone-product-confidence__item strong {
  margin-bottom: 4px;
  color: var(--gram-ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.gramophone-product-confidence__item span {
  color: var(--gram-product-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

body.single-product .woocommerce-tabs {
  clear: both;
  padding: 44px 0 18px;
  border-top: 1px solid var(--gram-product-line);
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0 0 34px !important;
  padding: 0 !important;
  border: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 0 7px !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--gram-brown) !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  padding: 0 !important;
  color: var(--gram-product-muted) !important;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--gram-ink) !important;
}

body.single-product .woocommerce-tabs ul.tabs li a:hover {
  opacity: 0.72;
}

body.single-product .woocommerce-Tabs-panel {
  max-width: 880px;
  color: rgba(23, 20, 17, 0.8);
  font-size: 0.96rem;
  line-height: 1.8;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
  margin: 0 0 26px;
  color: var(--gram-ink);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.05;
}

/* Product details/specifications are document sections, not mutually exclusive tabs.
   WooCommerce still supplies all section content; the links above act as anchors. */
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
body.single-product .woocommerce-tabs .wc-tab {
  display: block !important;
  scroll-margin-top: 24px;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel + .woocommerce-Tabs-panel,
body.single-product .woocommerce-tabs .wc-tab + .wc-tab {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--gram-product-line);
}

body.single-product .woocommerce-tabs ul.tabs li,
body.single-product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: rgba(83, 46, 28, 0.28) !important;
}

body.single-product .woocommerce-tabs ul.tabs li a,
body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--gram-brown) !important;
}

body.single-product table.shop_attributes {
  max-width: 760px;
  border: 0;
}

body.single-product table.shop_attributes tr,
body.single-product table.shop_attributes th,
body.single-product table.shop_attributes td {
  border: 0;
  background: transparent !important;
}

body.single-product table.shop_attributes tr {
  border-bottom: 1px solid var(--gram-product-line);
}

body.single-product table.shop_attributes th,
body.single-product table.shop_attributes td {
  padding: 13px 0;
  text-align: left;
  font-style: normal;
}

body.single-product table.shop_attributes th {
  width: 190px;
  padding-right: 24px;
  color: var(--gram-product-muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.single-product table.shop_attributes td {
  color: var(--gram-ink);
}

body.single-product .related.products,
body.single-product .upsells.products {
  clear: both;
  margin-top: 54px;
  padding-top: 48px;
  border-top: 1px solid var(--gram-product-line);
}

body.single-product .related.products ul.products,
body.single-product .upsells.products ul.products {
  margin-top: 0;
}

body.single-product ul.products li.product {
  background: transparent;
}

body.single-product ul.products li.product .astra-shop-thumbnail-wrap {
  background: var(--gram-cream);
  border: 1px solid var(--gram-product-line);
}

body.single-product ul.products li.product .woocommerce-loop-product__title {
  color: var(--gram-ink);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.15;
}

body.single-product ul.products li.product .price {
  color: var(--gram-brown);
  font-size: 0.95rem;
}

body.single-product ul.products li.product .button {
  border-radius: 6px;
  background: transparent;
  color: var(--gram-ink);
  border: 1px solid var(--gram-product-line);
}

body.single-product ul.products li.product .button:hover {
  opacity: 0.78;
}

@media (max-width: 980px) {
  body.single-product .ast-container {
    width: min(100% - 40px, 860px);
  }

  body.single-product div.product {
    padding-top: 42px;
  }

  body.single-product div.product div.images,
  body.single-product div.product div.summary {
    float: none;
    width: 100%;
  }

  body.single-product div.product div.images {
    margin-bottom: 40px;
  }

  body.single-product div.product div.summary {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 700px) {
  body.single-product .ast-container {
    width: min(100% - 28px, 620px);
  }

  body.single-product div.product {
    padding: 28px 0 22px;
  }

  body.single-product .product_title {
    font-size: clamp(1.5rem, 9vw, 3.2rem);
  }

  body.single-product .woocommerce-product-gallery__image > a {
    height: min(470px, 62vh);
    min-height: 340px;
    padding: 12px;
  }

  body.single-product .flex-control-thumbs {
    gap: 8px;
  }

  body.single-product .flex-control-thumbs li,
  body.single-product .flex-control-thumbs img {
    width: 68px !important;
    height: 68px;
  }

  body.single-product div.product form.cart:not(.variations_form):not(.grouped_form),
  body.single-product div.product .woocommerce-variation-add-to-cart {
    gap: 8px;
    flex-wrap: nowrap;
  }

  body.single-product div.product form.cart .quantity,
  body.single-product div.product .woocommerce-variation-add-to-cart .quantity {
    flex: 0 0 auto;
  }

  body.single-product .gramophone-product-qty-control {
    grid-template-columns: 36px 38px 36px;
  }

  body.single-product .gramophone-product-qty-button {
    width: 36px;
    min-width: 36px;
    font-size: 1.1rem;
  }

  body.single-product .gramophone-product-qty-input {
    width: 38px !important;
    min-width: 38px !important;
    height: 48px !important;
    min-height: 48px !important;
    font-size: 1rem;
  }

  body.single-product div.product form.cart:not(.variations_form):not(.grouped_form) > .single_add_to_cart_button,
  body.single-product div.product .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
    flex: 1 1 auto;
    min-width: 0;
  }

  .gramophone-product-confidence {
    grid-template-columns: 1fr;
  }

  .gramophone-product-confidence__item {
    padding: 15px 0;
  }

  .gramophone-product-confidence__item + .gramophone-product-confidence__item {
    padding-left: 0;
    border-top: 1px solid var(--gram-product-line);
    border-left: 0;
  }

  body.single-product .woocommerce-tabs {
    padding-top: 32px;
  }

  body.single-product .woocommerce-tabs ul.tabs {
    gap: 18px;
  }

  body.single-product table.shop_attributes th {
    width: 125px;
    padding-right: 14px;
  }
}

/* Specifications labels */
body.single-product
  .woocommerce-js
  div.product
  .woocommerce-tabs
  .shop_attributes
  th,
body.single-product div.product .woocommerce-tabs .shop_attributes th {
  color: var(--gram-brown) !important;
}

/* Product form labels: override Astra's label color without affecting checkout. */
body.single-product label,
body.single-product .woocommerce label,
body.single-product table.variations th.label {
  color: var(--gram-brown) !important;
}

/* The thumbnail corresponding to a selected variation gets the same visual
   emphasis as a focused/native active thumbnail. This is decorative only. */
body.single-product .flex-control-thumbs img.gramophone-variation-thumb {
  border-color: var(--gram-brown);
  opacity: 1;
}

/* Optional mouse-drag enhancement. Native WooCommerce slider and native
   overflow scrolling remain the fallback if JavaScript is unavailable. */
body.single-product .woocommerce-product-gallery .flex-viewport,
body.single-product .woocommerce-product-gallery__wrapper {
  cursor: grab;
}

body.single-product
  .woocommerce-product-gallery.is-gramophone-dragging
  .flex-viewport,
body.single-product
  .woocommerce-product-gallery.is-gramophone-dragging
  .woocommerce-product-gallery__wrapper,
body.single-product
  .gramophone-native-thumb-rail.is-gramophone-dragging
  .flex-control-thumbs {
  cursor: grabbing;
  user-select: none;
}

body.single-product .gramophone-native-thumb-rail .flex-control-thumbs {
  cursor: grab;
}

/* Astra mobile/tablet header must span the viewport.
   Earlier global responsive rules constrained these wrappers by 40px/28px. */
@media (max-width: 980px) {
  .site-primary-header-wrap,
  .site-above-header-wrap,
  .site-below-header-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* On product pages, make the outer Astra content container full-width.
     The product itself receives its own inner horizontal padding below. */
  body.single-product .site-content > .ast-container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 700px) {
  body.single-product .site-content > .ast-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Smaller arrows on phones. */
  body.single-product .woocommerce-product-gallery .flex-direction-nav a {
    width: 24px;
    height: 34px;
    margin-top: -17px;
  }

  body.single-product
    .woocommerce-product-gallery
    .flex-direction-nav
    a::before {
    font-size: 26px;
  }

  body.single-product
    .woocommerce-product-gallery
    .flex-direction-nav
    .flex-prev {
    left: 6px;
  }

  body.single-product
    .woocommerce-product-gallery
    .flex-direction-nav
    .flex-next {
    right: 6px;
  }

  body.single-product .gramophone-thumb-scroll {
    width: 18px;
    height: 28px;
    font-size: 20px;
  }
}

/* Keep the Sale badge 14px inside the gallery box at every breakpoint. */
@media (max-width: 980px) {
  body.single-product .woocommerce span.onsale,
  body.single-product.woocommerce span.onsale {
    top: 56px !important;
    left: 14px !important;
    right: auto !important;
  }
}

@media (max-width: 700px) {
  body.single-product .woocommerce span.onsale,
  body.single-product.woocommerce span.onsale {
    top: 42px !important;
    left: 14px !important;
    right: auto !important;
  }
}

/* ==========================================================
   HOMEPAGE - ASTRA CONTROLS RENDERED IN CUSTOM HEADER
   ========================================================== */

.gramophone-custom-header__native-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 88px;
}

.gramophone-custom-header__cart,
.gramophone-custom-header__mobile-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
}

/* Astra owns the cart markup and behavior. Only adapt the icon/control itself
   to the dark custom header; the flyout/drawer keeps its own theme styling. */
.gramophone-custom-header__cart .ast-header-woo-cart,
.gramophone-custom-header__cart .ast-site-header-cart,
.gramophone-custom-header__cart .ast-addon-cart-wrap {
  display: flex;
  align-items: center;
  margin: 0 !important;
}

.gramophone-custom-header__cart > *,
.gramophone-custom-header__cart a,
.gramophone-custom-header__cart .ast-cart-menu-wrap,
.gramophone-custom-header__cart .ast-woo-header-cart-info-wrap,
.gramophone-custom-header__cart .ast-icon {
  color: var(--gram-cream) !important;
}

.gramophone-custom-header__cart a:hover {
  opacity: 0.78;
}

.gramophone-custom-header__cart a:focus-visible {
  outline: 2px solid rgba(197, 168, 128, 0.42);
  outline-offset: 3px;
}

.gramophone-cart-fallback {
  color: var(--gram-cream);
  text-decoration: none;
}

/* Desktop navigation is the registered primary menu. */
.gramophone-custom-header__mobile-trigger {
  display: none;
}

@media (max-width: 980px) {
  .gramophone-custom-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    min-height: 88px;
  }

  .gramophone-custom-header__brand {
    grid-column: 1;
  }

  .gramophone-custom-header .custom-logo {
    max-width: 190px;
    max-height: 80px;
  }

  .gramophone-custom-header__nav {
    display: none;
  }

  .gramophone-custom-header__native-actions {
    grid-column: 2;
    gap: 8px;
    min-width: 0;
  }

  .gramophone-custom-header__mobile-trigger {
    display: flex;
  }

  .gramophone-custom-header__cart,
  .gramophone-custom-header__mobile-trigger {
    min-width: 38px;
    min-height: 38px;
  }
}

@media (max-width: 700px) {
  .gramophone-custom-header__inner {
    min-height: 78px;
  }

  .gramophone-custom-header .custom-logo {
    max-width: 175px;
    max-height: 80px;
  }

  .gramophone-custom-header__native-actions {
    gap: 5px;
  }

  .gramophone-custom-header__cart,
  .gramophone-custom-header__mobile-trigger {
    min-width: 34px;
    min-height: 34px;
  }
}

/* ==========================================================
   REUSABLE COLLECTION RECOMMENDATIONS
   ========================================================== */

.gramophone-recommendations {
  clear: both;
  width: 100%;
  background: var(--gram-cream);
  color: var(--gram-ink);
  font-family: "Poppins", Arial, sans-serif;
}

.gramophone-recommendations__inner {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding: 58px 32px 66px;
}

.gramophone-recommendations__header {
  margin-bottom: 26px;
  border-top: 1px solid rgba(23, 20, 17, 0.14);
  padding-top: 30px;
}

.gramophone-recommendations__header h2 {
  margin: 0;
  color: var(--gram-ink);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.gramophone-recommendations__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  align-items: start;
  gap: clamp(18px, 2.4vw, 32px);
}

.gramophone-recommendation-card {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.gramophone-recommendation-card__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ffffff88;
}

.gramophone-recommendation-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  transition: transform 180ms ease;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

.gramophone-recommendation-card__image:hover img {
  transform: scale(1.015);
}

.gramophone-recommendation-card__body {
  display: grid;
  justify-items: center;
  padding-top: 16px;
  text-align: center;
}

.gramophone-recommendation-card h3 {
  margin: 0 0 8px;
  color: var(--gram-ink);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.15;
}

.gramophone-recommendation-card h3 a {
  color: inherit;
  text-decoration: none;
}

.gramophone-recommendation-card__price {
  margin-bottom: 14px;
  color: var(--gram-brown);
  font-size: 0.94rem;
  font-weight: 500;
}

.gramophone-recommendation-card__price del {
  color: rgba(23, 20, 17, 0.48);
  font-weight: 400;
}

.gramophone-recommendation-card__price ins {
  color: var(--gram-brown);
  text-decoration: none;
}

.gramophone-recommendation-card__purchase {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.gramophone-recommendation-card__purchase .button,
.gramophone-recommendation-card__purchase a.button,
.gramophone-recommendation-card__purchase button.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  border: 1px solid var(--gram-brown) !important;
  border-radius: 6px !important;
  background: var(--gram-brown) !important;
  color: var(--gram-cream) !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.gramophone-recommendation-card__purchase .button:hover,
.gramophone-recommendation-card__purchase a.button:hover,
.gramophone-recommendation-card__purchase button.button:hover {
  opacity: 0.78;
  transform: none !important;
}

.gramophone-recommendation-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(83, 46, 28, 0.28);
  color: var(--gram-brown);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    gap 150ms ease,
    border-color 150ms ease;
}

.gramophone-recommendation-card__link:hover {
  gap: 12px;
  opacity: 0.78;
}

.gramophone-recommendation-card__link:focus-visible {
  gap: 12px;
  outline: 2px solid rgba(83, 46, 28, 0.24);
  outline-offset: 3px;
}

body.single-product .gramophone-recommendations--product {
  margin-top: 46px;
}

body.single-product
  .gramophone-recommendations--product
  .gramophone-recommendations__inner {
  padding-left: 0;
  padding-right: 0;
}

.gramophone-recommendations--cart,
.gramophone-recommendations--404 {
  margin-top: 34px;
}

@media (max-width: 980px) {
  .gramophone-recommendations__inner {
    padding: 48px 20px 56px;
  }

  .gramophone-recommendations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .gramophone-recommendations__inner {
    width: 100%;
    max-width: 100%;
    padding: 40px 14px 48px;
    box-sizing: border-box;
  }

  .gramophone-recommendations__header {
    margin-bottom: 20px;
    padding-top: 24px;
  }

  .gramophone-recommendations__grid {
    grid-template-columns: minmax(min(100%, 240px), 360px);
    justify-content: center;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    padding: 0;
  }

  .gramophone-recommendation-card {
    width: 100%;
    min-width: 0;
    max-width: 360px;
  }

  .gramophone-recommendation-card__purchase .button,
  .gramophone-recommendation-card__purchase a.button,
  .gramophone-recommendation-card__purchase button.button {
    font-size: 16px !important;
  }

  body.single-product
    .gramophone-recommendations--product
    .gramophone-recommendations__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Homepage Astra/WooCommerce cart drawer: neutralize inherited campaign text
   colors without changing WooCommerce button styling. */
body.page-template-template-homepage .astra-cart-drawer,
body.page-template-template-homepage .astra-cart-drawer p,
body.page-template-template-homepage .astra-cart-drawer span,
body.page-template-template-homepage .astra-cart-drawer strong,
body.page-template-template-homepage .astra-cart-drawer div,
body.page-template-template-homepage .widget_shopping_cart,
body.page-template-template-homepage .widget_shopping_cart p,
body.page-template-template-homepage .widget_shopping_cart span,
body.page-template-template-homepage .widget_shopping_cart strong {
  color: var(--gram-black) !important;
}

body.page-template-template-homepage
  .astra-cart-drawer
  a:not(.button):not(.wc-forward),
body.page-template-template-homepage
  .widget_shopping_cart
  a:not(.button):not(.wc-forward),
body.page-template-template-homepage
  .woocommerce-mini-cart-item
  a:not(.button) {
  color: var(--gram-brown) !important;
}

body.page-template-template-homepage
  .astra-cart-drawer
  a:not(.button):not(.wc-forward):hover,
body.page-template-template-homepage
  .widget_shopping_cart
  a:not(.button):not(.wc-forward):hover {
  opacity: 0.78;
}

/* Recommendation component must never increase page width. */
.gramophone-recommendations,
.gramophone-recommendations__inner,
.gramophone-recommendations__grid,
.gramophone-recommendation-card,
.gramophone-recommendation-card__image,
.gramophone-recommendation-card__body {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.gramophone-recommendations {
  width: 100%;
  overflow-x: hidden;
}

.gramophone-recommendations__inner {
  width: 100%;
}

/* ==========================================================
   404
   ========================================================== */

body.error404 .site-content,
body.error404 .site-main,
body.error404 #primary {
  background: var(--gram-cream);
}

body.error404 .site-content > .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.error404 #primary,
body.error404 .gramophone-404 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.error404 #secondary {
  display: none !important;
}

.gramophone-404__intro {
  width: min(calc(100% - 64px), 920px);
  margin-inline: auto;
  padding: 54px 0 14px;
  text-align: center;
}

.gramophone-404__eyebrow {
  margin: 0 0 10px;
  color: var(--gram-brown);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gramophone-404__intro h1 {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gram-ink);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.gramophone-404__copy {
  margin: 14px auto 0;
  color: rgba(23, 20, 17, 0.7);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.96rem;
  line-height: 1.6;
}

body.error404 .gramophone-recommendations--404 {
  margin-top: 0;
}

body.error404
  .gramophone-recommendations--404
  .gramophone-recommendations__inner {
  max-width: 1320px;
  padding: 28px 32px 68px;
}

body.error404
  .gramophone-recommendations--404
  .gramophone-recommendations__header {
  margin-bottom: 24px;
  padding-top: 24px;
  text-align: center;
}

body.error404
  .gramophone-recommendations--404
  .gramophone-recommendations__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  gap: clamp(18px, 2.2vw, 28px);
}

body.error404
  .gramophone-recommendations--404
  .gramophone-recommendation-card {
  max-width: none;
}

@media (max-width: 980px) {
  .gramophone-404__intro {
    width: calc(100% - 40px);
    padding-top: 40px;
  }

  body.error404
    .gramophone-recommendations--404
    .gramophone-recommendations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .gramophone-404__intro {
    width: calc(100% - 28px);
    padding: 30px 0 8px;
  }

  .gramophone-404__intro h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .gramophone-404__copy {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  body.error404
    .gramophone-recommendations--404
    .gramophone-recommendations__inner {
    padding: 24px 14px 48px;
  }

  body.error404
    .gramophone-recommendations--404
    .gramophone-recommendations__header {
    margin-bottom: 20px;
    padding-top: 20px;
  }

  body.error404
    .gramophone-recommendations--404
    .gramophone-recommendations__grid {
    grid-template-columns: minmax(min(100%, 240px), 360px);
    justify-content: center;
    gap: 22px;
  }

  body.error404
    .gramophone-recommendations--404
    .gramophone-recommendation-card {
    max-width: 360px;
  }
}

/* ==========================================================
   HOMEPAGE MOBILE NAVIGATION
   One custom header, one menu source, no Astra header duplicate.
   ========================================================== */

.gramophone-mobile-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 7px;
  border: 0;
  background: transparent;
  color: var(--gram-cream);
  cursor: pointer;
  box-shadow: none;
}

.gramophone-mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.gramophone-mobile-menu-toggle:hover {
  opacity: 0.78;
}

.gramophone-mobile-menu-toggle:focus-visible {
  outline: 2px solid rgba(197, 168, 128, 0.42);
  outline-offset: 3px;
}

.gramophone-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  pointer-events: none;
}

.gramophone-mobile-drawer.is-open {
  display: block;
  pointer-events: auto;
}

.gramophone-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 15, 15, 0.62);
  opacity: 0;
  cursor: default;
  transition: opacity 180ms ease;
}

.gramophone-mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: var(--gram-cream);
  color: var(--gram-black);
  transform: translateX(100%);
  transition: transform 220ms ease;
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.22);
}

.gramophone-mobile-drawer.is-open .gramophone-mobile-drawer__backdrop {
  opacity: 1;
}

.gramophone-mobile-drawer.is-open .gramophone-mobile-drawer__panel {
  transform: translateX(0);
}

.gramophone-mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(83, 46, 28, 0.18);
}

.gramophone-mobile-drawer__label {
  color: var(--gram-brown);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gramophone-mobile-drawer__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gram-black);
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.gramophone-mobile-drawer__nav {
  padding-top: 24px;
}

.gramophone-mobile-menu,
.gramophone-mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gramophone-mobile-menu > li {
  border-bottom: 1px solid rgba(83, 46, 28, 0.12);
}

.gramophone-mobile-menu a {
  display: block;
  padding: 15px 0;
  color: var(--gram-black) !important;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.15;
  text-decoration: none;
}

.gramophone-mobile-menu .current-menu-item > a {
  color: var(--gram-brown) !important;
}

.gramophone-mobile-menu a:hover {
  opacity: 0.78;
}

.gramophone-mobile-menu a:focus-visible {
  color: var(--gram-brown) !important;
  outline: 2px solid rgba(83, 46, 28, 0.24);
  outline-offset: 3px;
}

.gramophone-mobile-menu .sub-menu {
  padding: 0 0 10px 18px;
}

.gramophone-mobile-menu .sub-menu a {
  padding: 10px 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.9rem;
}

body.gramophone-mobile-menu-open {
  overflow: hidden;
}

@media (min-width: 981px) {
  .gramophone-mobile-drawer {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .gramophone-mobile-menu-toggle {
    width: 34px;
    height: 34px;
    padding: 6px;
  }

  .gramophone-mobile-menu-toggle span {
    width: 20px;
  }

  .gramophone-mobile-drawer__panel {
    width: min(88vw, 340px);
    padding: 20px;
  }
}

/* ==========================================================
   SITE-WIDE HEADER
   One header structure across homepage, products, cart, 404 and normal pages.
   ========================================================== */

.gramophone-site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: var(--gram-black);
  color: var(--gram-cream);
}

/* Homepage keeps the original overlay treatment. */
body.page-template-template-homepage .gramophone-site-header {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.92) 0%,
    rgba(15, 15, 15, 0.58) 60%,
    rgba(15, 15, 15, 0) 100%
  );
}

/* Internal pages use the same header structure with a solid dark bar. */
body:not(.page-template-template-homepage) .gramophone-site-header {
  border-bottom: 1px solid rgba(197, 168, 128, 0.16);
}

body:not(.page-template-template-homepage) .gramophone-custom-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  background: var(--gram-black) !important;
}

.gramophone-site-header,
.gramophone-site-header *,
.gramophone-site-header *::before,
.gramophone-site-header *::after {
  box-sizing: border-box;
}

.gramophone-site-header a {
  text-decoration: none;
}

/* Homepage reel is presentation media: no browser controls. */
.gramophone-reel-media__video::-webkit-media-controls,
.gramophone-reel-media__video::-webkit-media-controls-enclosure,
.gramophone-reel-media__video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}

/* On phones, show variation choices immediately below the product title.
   The variation form remains intact in the DOM; display:contents only changes
   visual layout, so WooCommerce still owns all variation/cart behavior. */
@media (max-width: 700px) {
  body.single-product div.product div.summary {
    display: flex;
    flex-direction: column;
  }

  body.single-product div.product div.summary > .product_title {
    order: 1;
  }

  body.single-product div.product div.summary > .gramophone-product-artist {
    order: 2;
  }

  body.single-product div.product div.summary > form.variations_form {
    display: contents;
  }

  body.single-product
    div.product
    div.summary
    > form.variations_form
    > table.variations {
    order: 2;
    margin-top: 0;
    margin-bottom: 12px;
  }

  body.single-product div.product div.summary > p.price,
  body.single-product div.product div.summary > span.price {
    order: 3;
  }

  body.single-product
    div.product
    div.summary
    > .woocommerce-product-details__short-description {
    order: 4;
  }

  body.single-product
    div.product
    div.summary
    > form.variations_form
    > .single_variation_wrap {
    order: 5;
  }

  body.single-product div.product div.summary > .gramophone-product-confidence {
    order: 6;
  }

  body.single-product div.product div.summary > .gramophone-payment-methods--product {
    order: 7;
  }

  body.single-product div.product div.summary > .product_meta {
    order: 8;
  }
}

/*
 * Keep the drawer mounted while hidden so transform/opacity can animate both
 * opening and closing. The previous display:none/display:block switch prevented
 * the closing transition from being visible.
 */
.gramophone-mobile-drawer {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
  opacity: 1;
  transition: visibility 0s linear 240ms;
}

.gramophone-mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.gramophone-mobile-drawer__backdrop {
  opacity: 0;
  transition: opacity 220ms ease;
}

.gramophone-mobile-drawer__panel {
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.gramophone-mobile-drawer.is-open .gramophone-mobile-drawer__backdrop {
  opacity: 1;
}

.gramophone-mobile-drawer.is-open .gramophone-mobile-drawer__panel {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .gramophone-mobile-drawer,
  .gramophone-mobile-drawer__backdrop,
  .gramophone-mobile-drawer__panel {
    transition: none !important;
  }
}

/* ==========================================================
   CLASSIC WOOCOMMERCE CART
   Presentation only. Native WooCommerce form, coupons, totals,
   shipping and checkout behavior remain untouched.
   ========================================================== */

body.woocommerce-cart {
  --gram-cart-line: rgba(23, 20, 17, 0.14);
  --gram-cart-muted: rgba(23, 20, 17, 0.62);
  --gram-cart-soft: rgba(197, 168, 128, 0.12);
  background: var(--gram-cream);
  color: var(--gram-ink);
}

body.woocommerce-cart .site-content {
  background: var(--gram-cream);
}

body.woocommerce-cart .site-content > .ast-container {
  width: min(1320px, calc(100% - 64px));
  max-width: 1320px;
  margin-inline: auto;
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

body.woocommerce-cart .entry-header,
body.woocommerce-cart .entry-title {
  display: none;
}

body.woocommerce-cart .woocommerce {
  width: 100%;
  color: var(--gram-ink);
  font-family: "Poppins", Arial, sans-serif;
}

/* ---------- Intro ---------- */

.gramophone-cart-intro {
  max-width: 760px;
  margin: 0 0 clamp(34px, 4vw, 54px);
}

.gramophone-cart-intro__eyebrow {
  margin: 0 0 10px;
  color: var(--gram-brown);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gramophone-cart-intro h1 {
  margin: 0 0 13px;
  color: var(--gram-ink);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 4rem;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.gramophone-cart-intro > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--gram-cart-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Desktop composition ---------- */

body.woocommerce-cart .woocommerce-cart-form {
  float: left;
  width: calc(67% - 22px);
  margin: 0;
}

body.woocommerce-cart .cart-collaterals {
  float: right;
  width: 33%;
  margin: 0;
}

body.woocommerce-cart .woocommerce::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Cart table ---------- */

body.woocommerce-cart table.shop_table,
body.woocommerce-cart .woocommerce table.shop_table {
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  background: transparent;
  color: var(--gram-ink);
}

body.woocommerce-cart table.shop_table thead th {
  padding: 0 14px 13px;
  border: 0;
  border-bottom: 1px solid var(--gram-cart-line);
  background: transparent;
  color: var(--gram-cart-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.woocommerce-cart table.shop_table thead th:first-child {
  padding-left: 0;
}

body.woocommerce-cart table.shop_table tbody td {
  padding: 24px 14px;
  border: 0;
  border-bottom: 1px solid var(--gram-cart-line);
  background: transparent;
  vertical-align: middle;
}

body.woocommerce-cart table.shop_table tbody td:first-child {
  padding-left: 0;
}

body.woocommerce-cart table.shop_table .product-thumbnail {
  width: 118px;
}

body.woocommerce-cart table.shop_table .product-thumbnail a {
  display: grid;
  place-items: center;
  width: 96px;
  height: 110px;
  padding: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(83, 46, 28, 0.08);
  border-radius: 6px;
}

body.woocommerce-cart table.shop_table .product-thumbnail img {
  display: block;
  width: 100%;
  max-width: 82px;
  height: 100%;
  max-height: 96px;
  margin: 0;
  object-fit: contain;
  box-shadow: none !important;
}

body.woocommerce-cart table.shop_table .product-name {
  min-width: 210px;
}

body.woocommerce-cart table.shop_table .product-name > a {
  color: var(--gram-ink);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.15;
  text-decoration: none;
}

body.woocommerce-cart table.shop_table .product-name > a:hover {
  opacity: 0.78;
}

body.woocommerce-cart table.shop_table .product-name dl.variation {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 3px 7px;
  margin: 8px 0 0;
  color: var(--gram-cart-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

body.woocommerce-cart table.shop_table .product-name dl.variation dt,
body.woocommerce-cart table.shop_table .product-name dl.variation dd {
  float: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-cart table.shop_table .product-name dl.variation dt {
  color: var(--gram-brown);
  font-weight: 500;
}

body.woocommerce-cart table.shop_table .product-name dl.variation dd p {
  margin: 0;
}

body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal {
  color: var(--gram-brown);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

body.woocommerce-cart table.shop_table .product-subtotal {
  color: var(--gram-ink);
}

/* ---------- Quantity ---------- */

body.woocommerce-cart table.shop_table .quantity {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 100%;
}

body.woocommerce-cart table.shop_table .gramophone-cart-qty-control {
  display: grid;
  grid-template-columns: 25px 38px 25px;
  gap: 4px;
  align-items: center;
  box-sizing: border-box;
  width: 98px;
  height: 26px;
  overflow: hidden;
  border: 1px solid var(--gram-cart-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.52);
}

body.woocommerce-cart table.shop_table .gramophone-cart-qty-button {
  display: inline-grid;
  place-items: center;
  width: 25px;
  min-width: 25px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gram-brown);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease, color 160ms ease;
}

body.woocommerce-cart table.shop_table .gramophone-cart-qty-button:hover {
  opacity: 0.72;
}

body.woocommerce-cart table.shop_table .gramophone-cart-qty-button:focus-visible {
  outline: 2px solid rgba(83, 46, 28, 0.2);
  outline-offset: -2px;
}

body.woocommerce-cart table.shop_table .gramophone-cart-qty-input {
  justify-self: center;
  width: 38px;
  min-width: 38px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 3px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gram-ink);
  font-size: 0.88rem;
  text-align: center;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

body.woocommerce-cart table.shop_table .gramophone-cart-qty-input:focus {
  outline: none;
}

body.woocommerce-cart table.shop_table .gramophone-cart-qty-input::-webkit-outer-spin-button,
body.woocommerce-cart table.shop_table .gramophone-cart-qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

body.woocommerce-cart table.shop_table .gramophone-cart-qty-label {
  display: block;
  margin-top: 5px;
  color: var(--gram-cart-muted);
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Remove ---------- */

body.woocommerce-cart table.shop_table .product-remove {
  width: 38px;
  padding-right: 4px;
}

body.woocommerce-cart table.shop_table .product-remove a.remove {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: rgba(23, 20, 17, 0.46) !important;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

body.woocommerce-cart table.shop_table .product-remove a.remove:hover {
  opacity: 0.72;
}

/* ---------- Actions / Coupon ---------- */

body.woocommerce-cart table.shop_table td.actions {
  padding: 24px 0 0;
  border-bottom: 0;
}

body.woocommerce-cart table.shop_table td.actions .coupon {
  display: flex;
  align-items: stretch;
  gap: 8px;
  float: left;
}

body.woocommerce-cart table.shop_table td.actions .coupon label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.woocommerce-cart table.shop_table td.actions .coupon .input-text {
  width: min(230px, 42vw);
  min-height: 46px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--gram-cart-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--gram-ink);
  font-size: 0.82rem;
  box-shadow: none;
}

body.woocommerce-cart table.shop_table td.actions .coupon .input-text:focus {
  border-color: var(--gram-brown);
  outline: none;
}

body.woocommerce-cart table.shop_table td.actions button.button,
body.woocommerce-cart table.shop_table td.actions input.button {
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--gram-brown);
  border-radius: 5px;
  background: transparent;
  color: var(--gram-brown);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  box-shadow: none;
}

body.woocommerce-cart table.shop_table td.actions button.button:hover,
body.woocommerce-cart table.shop_table td.actions input.button:hover {
  opacity: 0.78;
}

body.woocommerce-cart table.shop_table td.actions button[name="update_cart"] {
  float: right;
  border-color: var(--gram-cart-line);
  color: var(--gram-ink);
}

body.woocommerce-cart
  table.shop_table
  td.actions
  button[name="update_cart"]:disabled {
  opacity: 0.42;
}

/* ---------- Order summary ---------- */

body.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
  margin: 0;
  padding: clamp(24px, 2.7vw, 34px);
  border: 1px solid rgba(83, 46, 28, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 50px rgba(83, 46, 28, 0.06);
}

body.woocommerce-cart .cart-collaterals .cart_totals h2 {
  margin: 0 0 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--gram-cart-line);
  color: var(--gram-ink);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1.05;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--gram-cart-line);
  background: transparent;
  color: var(--gram-ink);
  font-size: 0.84rem;
  vertical-align: top;
}

body.woocommerce-cart .cart_totals table.shop_table th {
  width: 42%;
  color: var(--gram-cart-muted);
  font-weight: 500;
}

body.woocommerce-cart .cart_totals table.shop_table td {
  text-align: right;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  padding-top: 20px;
  border-bottom: 0;
  color: var(--gram-ink);
  font-weight: 600;
}

body.woocommerce-cart .cart_totals .order-total td {
  color: var(--gram-brown);
  font-size: 1.1rem;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-methods,
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods li {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator {
  color: var(--gram-cart-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

body.woocommerce-cart .wc-proceed-to-checkout {
  margin: 24px 0 0;
  padding: 0;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 14px 20px;
  border: 1px solid var(--gram-brown);
  border-radius: 6px;
  background: var(--gram-brown);
  color: #fff !important;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  box-shadow: none;
  transition:
    background-color 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

/* ---------- Notices ---------- */

body.woocommerce-cart .woocommerce-notices-wrapper {
  margin-bottom: 22px;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
  border-top-color: var(--gram-brown);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--gram-ink);
  box-shadow: none;
}

/* ---------- Recommendations connection ---------- */

body.woocommerce-cart .gramophone-recommendations--cart {
  clear: both;
  padding-top: clamp(30px, 4vw, 52px);
  margin-top: clamp(54px, 7vw, 92px);
}

body.woocommerce-cart
  .gramophone-recommendations--cart
  .gramophone-recommendations__inner {
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Intermediate desktop: keep totals below the cart table ---------- */

@media (min-width: 981px) and (max-width: 1300px) {
  body.woocommerce-cart .site-content > .ast-container {
    width: min(100% - 48px, 1180px);
  }

  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals {
    float: none;
    width: 100%;
  }

  body.woocommerce-cart .cart-collaterals {
    clear: both;
    margin-top: 44px;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    width: min(100%, 620px);
    margin-left: auto;
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 980px) {
  body.woocommerce-cart .site-content > .ast-container {
    width: min(100% - 40px, 860px);
    padding-top: 44px;
    padding-bottom: 68px;
  }

  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals {
    float: none;
    width: 100%;
  }

  body.woocommerce-cart .cart-collaterals {
    margin-top: 42px;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    max-width: 620px;
    margin-left: auto;
  }
}

/* ---------- Mobile: cards instead of a table ---------- */

@media (max-width: 920px) {
  body.woocommerce-cart .site-content > .ast-container {
    width: min(100% - 28px, 620px);
    padding-top: 34px;
    padding-bottom: 54px;
  }

  .gramophone-cart-intro {
    margin-bottom: 28px;
  }

  .gramophone-cart-intro h1 {
    font-size: 3rem;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table {
    display: block;
    width: 100%;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead {
    display: none;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody {
    display: block;
    width: 100%;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 30px;
    grid-template-areas:
      "image name remove"
      "image price price"
      "image quantity subtotal";
    column-gap: 14px;
    row-gap: 7px;
    width: 100%;
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid rgba(83, 46, 28, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.48);
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    tr.cart_item
    td {
    display: block;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    border: 0;
    text-align: left !important;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    tr.cart_item
    td::before {
    display: none !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-thumbnail {
    grid-area: image;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-thumbnail a {
    width: 92px;
    height: 112px;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-name {
    grid-area: name;
    align-self: start;
    padding-right: 4px !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-name > a {
    font-size: 1.3rem;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-remove {
    grid-area: remove;
    justify-self: end;
    align-self: start;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-price {
    grid-area: price;
    align-self: center;
    color: var(--gram-brown);
  }

  body.woocommerce-cart .woocommerce-cart-form .product-quantity {
    grid-area: quantity;
    align-self: end;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-subtotal {
    grid-area: subtotal;
    align-self: center;
    justify-self: end;
    font-weight: 600;
  }

  body.woocommerce-cart table.shop_table .gramophone-cart-qty-control {
    grid-template-columns: 25px 32px 25px;
    gap: 4px;
    width: 92px;
    height: 26px;
  }

  body.woocommerce-cart table.shop_table .gramophone-cart-qty-input {
    width: 32px;
    min-width: 32px;
    height: 24px;
    min-height: 24px;
    padding-left: 3px;
    padding-right: 3px;
    font-size: 0.7rem;
  }

  body.woocommerce-cart table.shop_table .gramophone-cart-qty-button {
    width: 25px;
    min-width: 25px;
    height: 24px;
    min-height: 24px;
  }

  body.woocommerce-cart
    .woocommerce-cart-form
    table.shop_table
    tr:not(.cart_item) {
    display: block;
  }

  body.woocommerce-cart table.shop_table td.actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px !important;
  }

  body.woocommerce-cart table.shop_table td.actions .coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
    float: none;
  }

  body.woocommerce-cart table.shop_table td.actions .coupon .input-text {
    width: 100%;
    min-width: 0;
  }

  body.woocommerce-cart table.shop_table td.actions button[name="update_cart"] {
    width: 100%;
    float: none;
  }

  body.woocommerce-cart .cart-collaterals {
    margin-top: 32px;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    max-width: none;
    padding: 22px 18px;
  }

  body.woocommerce-cart .cart_totals table.shop_table,
  body.woocommerce-cart .cart_totals table.shop_table tbody,
  body.woocommerce-cart .cart_totals table.shop_table tr {
    display: table;
    width: 100%;
  }

  body.woocommerce-cart .cart_totals table.shop_table tr {
    display: table-row;
  }

  body.woocommerce-cart .cart_totals table.shop_table th,
  body.woocommerce-cart .cart_totals table.shop_table td {
    display: table-cell;
    width: auto;
    text-align: left !important;
  }

  body.woocommerce-cart .cart_totals table.shop_table td {
    text-align: right !important;
  }

  body.woocommerce-cart .cart_totals table.shop_table td::before,
  body.woocommerce-cart .cart_totals table.shop_table th::before {
    display: none !important;
  }

  body.woocommerce-cart .gramophone-recommendations--cart {
    margin-top: 54px;
    padding-top: 16px;
  }
}

/* Very small phones: keep product information clear beside the image,
   then move quantity/subtotal onto their own row below it. */
@media (max-width: 390px) {
  .gramophone-cart-intro h1 {
    font-size: 2.55rem;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item {
    grid-template-areas:
      "image name remove"
      "image price price"
      "quantity quantity subtotal";
    column-gap: 10px;
    padding: 12px;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-thumbnail {
    min-width: 0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-thumbnail a {
    width: 72px;
    height: 90px;
    padding: 6px;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-name {
    width: auto !important;
    min-width: 0 !important;
    padding-right: 0 !important;
    overflow: hidden;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-name > a {
    display: block;
    max-width: 100%;
    font-size: 1.08rem !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-name dl.variation {
    grid-template-columns: 1fr;
    gap: 1px;
    margin-top: 6px;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-price {
    min-width: 0;
    margin-top: 1px;
    font-size: 0.78rem;
    line-height: 1.3;
    white-space: normal;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-remove a.remove {
    width: 26px;
    height: 26px;
    font-size: 18px;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-quantity {
    align-self: start;
    margin-top: 4px;
  }

  body.woocommerce-cart .woocommerce-cart-form .product-subtotal {
    align-self: center;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.3;
    text-align: right !important;
    white-space: normal;
  }

  body.woocommerce-cart table.shop_table td.actions .coupon {
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart table.shop_table td.actions .coupon button {
    width: 100%;
  }
}

/* ==========================================================
   V23 CART MOBILE WIDTH / SPACING FIX
   Remove stacked Astra + block-editor horizontal padding.
   ========================================================== */

@media (max-width: 980px) {
  body.woocommerce-cart .site-content > .ast-container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body.woocommerce-cart .woocommerce .wp-block-group.alignwide,
  body.woocommerce-cart .woocommerce .wp-block-group .alignwide,
  body.woocommerce-cart .entry-content > .wp-block-group.alignwide,
  body.woocommerce-cart .entry-content .wp-block-group.alignwide {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 700px) {
  body.woocommerce-cart .site-content > .ast-container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.woocommerce-cart .site-content,
  body.woocommerce-cart .content-area,
  body.woocommerce-cart #primary,
  body.woocommerce-cart .entry-content,
  body.woocommerce-cart .woocommerce {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.woocommerce-cart .woocommerce .wp-block-group.alignwide,
  body.woocommerce-cart .woocommerce .wp-block-group .alignwide,
  body.woocommerce-cart .entry-content > .wp-block-group.alignwide,
  body.woocommerce-cart .entry-content .wp-block-group.alignwide {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals,
  body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ==========================================================
   CLASSIC WOOCOMMERCE CHECKOUT
   Presentation only. WooCommerce and payment gateways retain
   complete control of fields, validation and payment logic.
   ========================================================== */

body.woocommerce-checkout:not(.woocommerce-order-received) {
  --gram-checkout-line: rgba(23, 20, 17, 0.14);
  --gram-checkout-muted: rgba(23, 20, 17, 0.62);
  --gram-checkout-soft: rgba(197, 168, 128, 0.11);
  background: var(--gram-cream);
  color: var(--gram-ink);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .site-content {
  background: var(--gram-cream);
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  .site-content
  > .ast-container {
  width: min(1320px, calc(100% - 64px));
  max-width: 1320px;
  margin-inline: auto;
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(64px, 7vw, 104px);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .entry-header,
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-title {
  display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce {
  width: 100%;
  color: var(--gram-ink);
  font-family: "Poppins", Arial, sans-serif;
}

/* ---------- Intro ---------- */

.gramophone-checkout-intro {
  max-width: 760px;
  margin: 0 0 clamp(34px, 4vw, 54px);
}

.gramophone-checkout-intro__eyebrow {
  margin: 0 0 10px;
  color: var(--gram-brown);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gramophone-checkout-intro h1 {
  margin: 0 0 13px;
  color: var(--gram-ink);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.gramophone-checkout-intro > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--gram-checkout-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Returning customer / coupon notices ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
  .woocommerce-form-login-toggle,
body.woocommerce-checkout:not(.woocommerce-order-received)
  .woocommerce-form-coupon-toggle {
  margin-bottom: 10px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-info,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-message,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-error {
  margin: 0 0 14px;
  padding: 15px 18px 15px 46px;
  border-top: 0;
  border-left: 2px solid var(--gram-brass);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--gram-ink);
  font-size: 0.82rem;
  line-height: 1.55;
  box-shadow: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-info a,
body.woocommerce-checkout:not(.woocommerce-order-received)
  .woocommerce-message
  a {
  color: var(--gram-brown);
  font-weight: 500;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout_coupon,
body.woocommerce-checkout:not(.woocommerce-order-received) form.login {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid var(--gram-checkout-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.42);
}

/* ---------- Main desktop composition ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout {
  position: relative;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  form.checkout
  #customer_details {
  float: left;
  width: calc(59% - 26px);
  margin: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  form.checkout
  #order_review_heading,
body.woocommerce-checkout:not(.woocommerce-order-received)
  form.checkout
  #order_review {
  float: right;
  width: 41%;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  form.checkout::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Billing / shipping columns ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
  #customer_details
  .col-1,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #customer_details
  .col-2 {
  float: none;
  width: 100%;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #customer_details
  .col-2 {
  margin-top: 34px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details h3,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review_heading {
  margin: 0 0 23px;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--gram-checkout-line);
  color: var(--gram-ink);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1.85rem, 2.6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #ship-to-different-address {
  margin-bottom: 22px;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #ship-to-different-address
  label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gram-ink);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- Fields ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
  .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout:not(.woocommerce-order-received)
  .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .form-row {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .form-row-wide,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #billing_address_1_field,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #billing_address_2_field,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #shipping_address_1_field,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #shipping_address_2_field {
  grid-column: 1 / -1;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .form-row label {
  display: block;
  margin: 0 0 7px;
  color: var(--gram-brown);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  .form-row
  label
  .required {
  color: var(--gram-brown);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .input-text,
body.woocommerce-checkout:not(.woocommerce-order-received) select,
body.woocommerce-checkout:not(.woocommerce-order-received)
  .select2-container
  .select2-selection--single {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gram-checkout-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--gram-ink);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.86rem;
  box-shadow: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .input-text {
  padding: 10px 13px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) textarea.input-text {
  min-height: 110px;
  resize: vertical;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  .select2-container
  .select2-selection--single {
  display: flex;
  align-items: center;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding-left: 13px;
  padding-right: 34px;
  color: var(--gram-ink);
  line-height: 46px;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 11px;
  right: 9px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .input-text:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) select:focus,
body.woocommerce-checkout:not(.woocommerce-order-received)
  .select2-container--focus
  .select2-selection--single {
  border-color: var(--gram-brown);
  outline: none;
  box-shadow: 0 0 0 2px rgba(83, 46, 28, 0.06);
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  .woocommerce-additional-fields {
  margin-top: 32px;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  .woocommerce-additional-fields
  h3 {
  margin-bottom: 18px;
}

/* ---------- Order review card ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review_heading {
  margin-bottom: 0;
  padding: 24px clamp(22px, 2.5vw, 30px) 17px;
  border: 1px solid rgba(83, 46, 28, 0.14);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.48);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
  padding: 0 clamp(22px, 2.5vw, 30px) clamp(24px, 2.7vw, 32px);
  border: 1px solid rgba(83, 46, 28, 0.14);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 50px rgba(83, 46, 28, 0.06);
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table {
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  thead
  th {
  padding: 14px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--gram-checkout-line);
  background: transparent;
  color: var(--gram-checkout-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  thead
  th:last-child {
  text-align: right;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  tbody
  td,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  tfoot
  th,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  tfoot
  td {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--gram-checkout-line);
  background: transparent;
  color: var(--gram-ink);
  font-size: 0.82rem;
  line-height: 1.45;
  vertical-align: top;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  tbody
  .product-name {
  padding-right: 16px;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  .product-name
  strong.product-quantity {
  color: var(--gram-checkout-muted);
  font-weight: 500;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  .product-total,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  tfoot
  td {
  text-align: right;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  tfoot
  th {
  color: var(--gram-checkout-muted);
  font-weight: 500;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  tfoot
  .order-total
  th,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  tfoot
  .order-total
  td {
  padding-top: 19px;
  border-bottom: 0;
  color: var(--gram-ink);
  font-weight: 600;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #order_review
  table.shop_table
  tfoot
  .order-total
  td {
  color: var(--gram-brown);
  font-size: 1.08rem;
}

/* ---------- Payment section ----------
   Keep gateway-specific markup and controls intact. ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received) #payment {
  margin-top: 24px;
  border-radius: 7px;
  background: transparent;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  ul.payment_methods {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  ul.payment_methods
  > li {
  margin: 0;
  padding: 15px 0;
  border-top: 1px solid var(--gram-checkout-line);
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  ul.payment_methods
  > li:first-child {
  border-top: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  ul.payment_methods
  > li
  > label {
  display: inline;
  color: var(--gram-ink);
  font-size: 0.84rem;
  font-weight: 500;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  ul.payment_methods
  > li
  > label
  img {
  max-height: 30px;
  width: auto;
  margin-left: 8px;
  vertical-align: middle;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  div.payment_box {
  margin: 12px 0 0;
  padding: 14px 15px;
  border-radius: 5px;
  background: rgba(197, 168, 128, 0.1);
  color: var(--gram-ink);
  font-size: 0.78rem;
  line-height: 1.55;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  div.payment_box::before {
  display: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  .place-order {
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--gram-checkout-line);
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  .woocommerce-privacy-policy-text,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  .woocommerce-terms-and-conditions-wrapper {
  color: var(--gram-checkout-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  .woocommerce-privacy-policy-text
  a,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  .woocommerce-terms-and-conditions-wrapper
  a {
  color: var(--gram-brown);
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  #place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 18px 0 28px;
  padding: 14px 20px;
  border: 1px solid var(--gram-brown);
  border-radius: 6px;
  background: var(--gram-brown);
  color: #fff !important;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  box-shadow: none;
  transition:
    background-color 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  #place_order:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

/* Do not constrain gateway iframes/widgets beyond their parent width. */
body.woocommerce-checkout:not(.woocommerce-order-received) #payment iframe,
body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  [class*="kashier"],
body.woocommerce-checkout:not(.woocommerce-order-received)
  #payment
  [id*="kashier"] {
  max-width: 100%;
}

/* ---------- Tablet ---------- */

@media (max-width: 980px) {
  body.woocommerce-checkout:not(.woocommerce-order-received)
    .site-content
    > .ast-container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 44px 20px 72px !important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    .woocommerce
    .wp-block-group.alignwide,
  body.woocommerce-checkout:not(.woocommerce-order-received)
    .woocommerce
    .wp-block-group
    .alignwide,
  body.woocommerce-checkout:not(.woocommerce-order-received)
    .entry-content
    > .wp-block-group.alignwide,
  body.woocommerce-checkout:not(.woocommerce-order-received)
    .entry-content
    .wp-block-group.alignwide {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    form.checkout
    #customer_details,
  body.woocommerce-checkout:not(.woocommerce-order-received)
    form.checkout
    #order_review_heading,
  body.woocommerce-checkout:not(.woocommerce-order-received)
    form.checkout
    #order_review {
    float: none;
    width: 100%;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    form.checkout
    #order_review_heading {
    margin-top: 48px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  body.woocommerce-checkout:not(.woocommerce-order-received)
    .site-content
    > .ast-container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 34px 14px 58px !important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .site-content,
  body.woocommerce-checkout:not(.woocommerce-order-received) .content-area,
  body.woocommerce-checkout:not(.woocommerce-order-received) #primary,
  body.woocommerce-checkout:not(.woocommerce-order-received) .entry-content,
  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce,
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    .woocommerce
    .wp-block-group.alignwide,
  body.woocommerce-checkout:not(.woocommerce-order-received)
    .woocommerce
    .wp-block-group
    .alignwide,
  body.woocommerce-checkout:not(.woocommerce-order-received)
    .entry-content
    > .wp-block-group.alignwide,
  body.woocommerce-checkout:not(.woocommerce-order-received)
    .entry-content
    .wp-block-group.alignwide {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .gramophone-checkout-intro {
    margin-bottom: 28px;
  }

  .gramophone-checkout-intro h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    .woocommerce-billing-fields__field-wrapper,
  body.woocommerce-checkout:not(.woocommerce-order-received)
    .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .form-row,
  body.woocommerce-checkout:not(.woocommerce-order-received) .form-row-first,
  body.woocommerce-checkout:not(.woocommerce-order-received) .form-row-last,
  body.woocommerce-checkout:not(.woocommerce-order-received) .form-row-wide {
    grid-column: 1;
    width: 100% !important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    #customer_details
    .col-2 {
    margin-top: 28px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    form.checkout
    #order_review_heading {
    margin-top: 38px;
    padding: 20px 18px 14px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    form.checkout
    #order_review {
    padding: 0 18px 22px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review
    table.shop_table
    tbody
    td,
  body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review
    table.shop_table
    tfoot
    th,
  body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review
    table.shop_table
    tfoot
    td {
    font-size: 0.78rem;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    #payment
    ul.payment_methods
    > li {
    padding: 14px 0;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    #payment
    div.payment_box {
    padding: 13px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received)
    form.checkout_coupon,
  body.woocommerce-checkout:not(.woocommerce-order-received) form.login {
    padding: 16px;
  }
}

/* ==========================================================
   HOMEPAGE REDESIGN - FINAL RESPONSIVE / ANCHOR RULES
   ========================================================== */

html {
  scroll-behavior: smooth;
}

@media (min-width: 981px) {
  body.page-template-template-homepage .gramophone-hero {
    min-height: clamp(660px, 80vh, 820px);
    padding: 165px 0 28px;
    background-position: center 0%;
  }
}

@media (max-width: 980px) {
  body.page-template-template-homepage .gramophone-hero {
    min-height: 720px;
    padding: 158px 0 94px;
    background-position: 58% center;
  }

  body.page-template-template-homepage .gramophone-hero__copy {
    max-width: 620px;
  }
}

@media (max-width: 700px) {
  body.page-template-template-homepage .gramophone-hero {
    display: block;
    min-height: 0;
    padding: 50vh 0 12px;
    background: linear-gradient(
      180deg,
      var(--gram-black) 60%,
      rgba(111, 18, 24, 0.1) 80%,
      var(--gram-black) 100%
    );
  }

  /* Keep the store image as a dedicated 55vh mobile stage, then let the
     content sit naturally in the dark continuation beneath it. */
  body.page-template-template-homepage .gramophone-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    width: 100%;
    height: 55vh;
    min-height: 55vh;
    pointer-events: none;
    background-image:
      linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.2) 0%,
        rgba(15, 15, 15, 0.36) 42%,
        rgba(15, 15, 15, 0.62) 78%,
        var(--gram-black) 100%
      ),
      url("assets/images/hero-bg.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 58% center;
  }

  body.page-template-template-homepage .gramophone-hero::after {
    top: calc(55vh - 110px);
    bottom: auto;
    height: 112px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0), var(--gram-black));
  }

  body.page-template-template-homepage .gramophone-hero__grid {
    width: min(100% - 28px, 1320px);
  }

  body.page-template-template-homepage .gramophone-hero__copy {
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  body.page-template-template-homepage .gramophone-hero__title {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  body.page-template-template-homepage .gramophone-hero .gramophone-rule,
  body.page-template-template-homepage .gramophone-hero__intro,
  body.page-template-template-homepage .gramophone-hero__copy .gramophone-kicker {
    display: none;
  }

  body.page-template-template-homepage .gramophone-hero__actions {
    justify-content: center;
    align-items: center;
    margin-top: 28px;
  }

  body.page-template-template-homepage .gramophone-shop-now {
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  body.page-template-template-homepage .gramophone-hero__notes {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  body.page-template-template-homepage .gramophone-payment-methods {
    justify-content: center;
    gap: 10px 14px;
    margin-top: 20px;
  }

  .gramophone-payment-methods__item {
    height: 16px;
    max-width: 32px;
  }

  .gramophone-payment-methods__logo {
    max-width: 32px;
    height: 16px;
    max-height: 16px;
  }

  body.single-product .gramophone-payment-methods--product {
    gap: 9px 13px;
    margin-top: 12px;
  }

  body.woocommerce-cart .gramophone-payment-methods--cart {
    justify-content: center;
    gap: 9px 13px;
    margin: -10px 0 26px;
    padding-bottom: 14px;
  }

  .gramophone-section-heading > div:first-child > p:not(.gramophone-kicker) {
    font-size: 0.83rem;
    line-height: 1.32;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================
   SOCIAL PRODUCT VIDEO CAROUSEL
   Native video only. Local/direct/API media sources avoid third-party post UI.
   One card is centered; the next two sources are prepared ahead of time.
   ========================================================== */

.gramophone-why-choose {
  margin-bottom: clamp(34px, 4vw, 52px);
}

.gramophone-social-shop {
  --gram-social-player-height: min(65vh, 640px);
  --gram-social-card-width: min(360px, 36.5625vh);
  --gram-social-card-half: min(180px, 18.28125vh);
  --gram-social-player-half: min(32.5vh, 320px);
  --gram-social-side-space: max(0px, calc(min(660px, calc(50vw - 32px)) - var(--gram-social-card-half)));
  width: 100%;
  margin: 0 auto clamp(72px, 7vw, 104px);
}

.gramophone-social-shop__topline {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.gramophone-social-shop__topline h2 {
  margin: 0;
  color: var(--gram-brown);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gramophone-social-shop__carousel {
  position: relative;
  width: 100%;
}

.gramophone-social-shop__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gram-social-side-space);
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gramophone-social-shop__viewport::-webkit-scrollbar {
  display: none;
}

.gramophone-social-shop__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 42px);
  width: max-content;
  min-width: 100%;
  padding-inline: var(--gram-social-side-space);
}

.gramophone-social-shop__card {
  flex: 0 0 var(--gram-social-card-width);
  width: var(--gram-social-card-width);
  min-width: 0;
  scroll-snap-align: center;
  opacity: 0.28;
  filter: blur(2.5px);
  transform: scale(0.92);
  transform-origin: center top;
  transition:
    opacity 260ms ease,
    filter 260ms ease,
    transform 260ms ease;
}

.gramophone-social-shop__card.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

.gramophone-social-shop__card:not(.is-active) .gramophone-social-shop__product,
.gramophone-social-shop__card:not(.is-active) .gramophone-social-shop__sound {
  pointer-events: none;
}

.gramophone-social-shop__card:not(.is-active) .gramophone-social-shop__player {
  cursor: pointer;
}

.gramophone-social-shop__card:not(.is-active) .gramophone-social-shop__local-video {
  pointer-events: none;
}

.gramophone-social-shop__player {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: var(--gram-social-player-height);
  max-height: 65vh;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 38%, rgba(197, 168, 128, 0.16), transparent 34%),
    linear-gradient(155deg, #171411 0%, #0f0f0f 72%);
  box-shadow: 0 18px 42px rgba(15, 15, 15, 0.14);
}

.gramophone-social-shop__platform {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 20px);
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.64);
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.67rem;
  line-height: 1.1;
  letter-spacing: 0.025em;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.gramophone-social-shop__platform span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gramophone-social-shop__platform svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gramophone-social-shop__local-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: var(--gram-black);
  cursor: pointer;
}

.gramophone-social-shop__sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.62);
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease;
}

.gramophone-social-shop__sound:hover {
  opacity: 0.72;
}

.gramophone-social-shop__card:not(.is-active) .gramophone-social-shop__sound {
  opacity: 0;
}

.gramophone-social-shop__product {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: calc(100% - 4px);
  min-height: 72px;
  margin: 10px auto 0;
  padding: 9px 11px;
  border: 1px solid rgba(83, 46, 28, 0.16);
  border-radius: 9px;
  background: #fff;
  color: var(--gram-black);
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.09);
  text-decoration: none;
}

.gramophone-social-shop__product:hover {
  opacity: 0.8;
}

.gramophone-social-shop__product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 54px;
  overflow: hidden;
  border-radius: 7px;
  background: #f6f5f3;
}

.gramophone-social-shop__product-image img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
}


@media (min-width: 981px) {
  .gramophone-social-shop__product {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 86px;
    padding: 9px 12px;
  }

  .gramophone-social-shop__product-image {
    width: auto;
    height: 68px;
  }
}

.gramophone-social-shop__product-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.gramophone-social-shop__product-copy strong {
  overflow: hidden;
  color: var(--gram-black);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gramophone-social-shop__product-price,
.gramophone-social-shop__product-price ins {
  color: var(--gram-brown);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.gramophone-social-shop__product-price del {
  margin-right: 5px;
  opacity: 0.5;
}

.gramophone-social-shop__stock {
  color: #9a2222;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gramophone-social-shop__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 14px;
}

.gramophone-social-shop__arrow {
  position: absolute;
  top: calc(var(--gram-social-player-half) + 10px);
  z-index: 12;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.92);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 15, 15, 0.18);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.gramophone-social-shop__arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gramophone-social-shop__arrow--prev {
  left: calc(50% - var(--gram-social-card-half) - 58px);
}

.gramophone-social-shop__arrow--next {
  right: calc(50% - var(--gram-social-card-half) - 58px);
}

.gramophone-social-shop__arrow:hover {
  opacity: 0.68;
}

.gramophone-social-shop__arrow:disabled {
  opacity: 0.22;
  cursor: default;
}

.gramophone-social-shop__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 48px;
}

.gramophone-social-shop__dot {
  width: 7px;
  height: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(83, 46, 28, 0.25);
  cursor: pointer;
}

.gramophone-social-shop__dot:hover {
  opacity: 0.66;
}

.gramophone-social-shop__dot[aria-current="true"] {
  background: var(--gram-brown);
}

@media (max-width: 700px) {
  .gramophone-why-choose {
    margin-bottom: 34px;
  }

  .gramophone-social-shop {
    --gram-social-player-height: min(65vh, 590px);
    --gram-social-card-width: min(calc(100vw - 72px), 36.5625vh);
    --gram-social-card-half: min(calc(50vw - 36px), 18.28125vh);
    --gram-social-player-half: min(32.5vh, 295px);
    --gram-social-side-space: max(0px, calc(50vw - 24px - var(--gram-social-card-half)));
    margin-bottom: 64px;
  }

  .gramophone-social-shop__topline {
    margin-bottom: 12px;
  }

  .gramophone-social-shop__topline h2 {
    font-size: 0.7rem;
  }

  .gramophone-social-shop__viewport {
    padding-top: 6px;
    scroll-padding-inline: var(--gram-social-side-space);
  }

  .gramophone-social-shop__track {
    gap: 18px;
    padding-inline: var(--gram-social-side-space);
  }

  .gramophone-social-shop__card {
    opacity: 0.2;
    filter: blur(2px);
    transform: scale(0.94);
  }

  .gramophone-social-shop__player {
    border-radius: 12px;
  }

  .gramophone-social-shop__platform {
    top: 8px;
    left: 8px;
    padding: 6px 9px;
    font-size: 0.63rem;
  }

  .gramophone-social-shop__sound {
    right: 8px;
    bottom: 8px;
    min-width: 50px;
    min-height: 28px;
    padding: 5px 9px;
    font-size: 0.61rem;
  }

  .gramophone-social-shop__product {
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 68px;
    width: calc(100% - 10px);
    padding: 8px 9px;
  }

  .gramophone-social-shop__product-image {
    width: 50px;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .gramophone-social-shop__product-copy strong {
    font-size: 0.82rem;
  }

  .gramophone-social-shop__controls {
    margin-top: 10px;
  }

  .gramophone-social-shop__arrow {
    top: calc(var(--gram-social-player-half) + 6px);
    width: 38px;
    height: 38px;
    background: rgba(15, 15, 15, 0.92);
  }

  .gramophone-social-shop__arrow--prev {
    left: 4px;
  }

  .gramophone-social-shop__arrow--next {
    right: 4px;
  }
}

/* ==========================================================
   VINYL HOMEPAGE GATEWAYS + FEATURED PRODUCTS
   ========================================================== */

.gramophone-vinyl-gateways {
  margin: -36px 0 clamp(72px, 8vw, 110px);
}

.gramophone-vinyl-gateways__header {
  margin-bottom: clamp(24px, 3vw, 38px);
  text-align: center;
}

.gramophone-vinyl-gateways__header .gramophone-kicker {
  margin-bottom: 10px;
}

.gramophone-vinyl-gateways__header h2,
.gramophone-featured-vinyl__header h2 {
  margin: 0;
  color: var(--gram-black);
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.gramophone-vinyl-gateways__header h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.8rem);
  line-height: 0.98;
}

.gramophone-vinyl-gateways__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}

.gramophone-vinyl-gateway {
  position: relative;
  display: block;
  min-height: clamp(250px, 29vw, 390px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--gram-black);
  color: var(--gram-cream) !important;
  isolation: isolate;
  transition: opacity 220ms ease;
}

.gramophone-vinyl-gateway__media,
.gramophone-vinyl-gateway__shade {
  position: absolute;
  inset: 0;
}

.gramophone-vinyl-gateway__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 420ms ease, opacity 220ms ease;
}

.gramophone-vinyl-gateway__shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.08) 22%, rgba(15, 15, 15, 0.82) 100%);
}

.gramophone-vinyl-gateway.has-no-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 32%, rgba(197, 168, 128, 0.24), transparent 28%),
    linear-gradient(135deg, #171411 0%, #532e1c 100%);
}

.gramophone-vinyl-gateway__content {
  position: absolute;
  right: clamp(22px, 3vw, 38px);
  bottom: clamp(22px, 3vw, 34px);
  left: clamp(22px, 3vw, 38px);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.gramophone-vinyl-gateway__content strong {
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.gramophone-vinyl-gateway__content span {
  flex: 0 0 auto;
  padding-bottom: 5px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gramophone-vinyl-gateway:hover,
.gramophone-vinyl-gateway:focus-visible {
  opacity: 0.9;
}

.gramophone-vinyl-gateway:hover .gramophone-vinyl-gateway__media img,
.gramophone-vinyl-gateway:focus-visible .gramophone-vinyl-gateway__media img {
  transform: scale(1.035);
}

.gramophone-vinyl-gateway:focus-visible {
  outline: 2px solid var(--gram-brown);
  outline-offset: 4px;
}


/* Keep WooCommerce catalogue cards aligned without cropping product artwork.
   WooCommerce remains responsible for generating the catalogue thumbnail; with
   Thumbnail cropping set to Uncropped, this frame simply contains each image in
   a consistent 5:6 area. Native archive body classes are included as fallbacks
   so the layout also holds inside the Astra Customizer preview. */
body.gramophone-product-catalog ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product,
body[class*="tax-pa_"] ul.products li.product,
body.search-results.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.gramophone-product-catalog ul.products li.product .astra-shop-thumbnail-wrap,
body.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap,
body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap,
body.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap,
body[class*="tax-pa_"] ul.products li.product .astra-shop-thumbnail-wrap,
body.search-results.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 5 / 6 !important;
  overflow: hidden;
}

body.gramophone-product-catalog ul.products li.product .astra-shop-thumbnail-wrap > a,
body.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap > a,
body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap > a,
body.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap > a,
body[class*="tax-pa_"] ul.products li.product .astra-shop-thumbnail-wrap > a,
body.search-results.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
}

body.gramophone-product-catalog ul.products li.product .astra-shop-thumbnail-wrap img,
body.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap img,
body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap img,
body.tax-product_tag ul.products li.product .astra-shop-thumbnail-wrap img,
body[class*="tax-pa_"] ul.products li.product .astra-shop-thumbnail-wrap img,
body.search-results.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: center;
}

body.gramophone-product-catalog ul.products li.product .astra-shop-summary-wrap,
body.post-type-archive-product ul.products li.product .astra-shop-summary-wrap,
body.tax-product_cat ul.products li.product .astra-shop-summary-wrap,
body.tax-product_tag ul.products li.product .astra-shop-summary-wrap,
body[class*="tax-pa_"] ul.products li.product .astra-shop-summary-wrap,
body.search-results.woocommerce ul.products li.product .astra-shop-summary-wrap {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.gramophone-featured-vinyl {
  margin-top: clamp(90px, 10vw, 150px);
  padding-top: clamp(54px, 6vw, 82px);
  border-top: 1px solid rgba(83, 46, 28, 0.16);
}

.gramophone-featured-vinyl__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(34px, 4vw, 52px);
}

.gramophone-featured-vinyl__header .gramophone-kicker {
  margin-bottom: 9px;
}

.gramophone-featured-vinyl__header h2 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.98;
}

.gramophone-featured-vinyl__all {
  flex: 0 0 auto;
  margin-bottom: 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(83, 46, 28, 0.28);
  color: var(--gram-black) !important;
  font-size: 0.9rem;
  font-weight: 500;
}

.gramophone-featured-vinyl__all:hover,
.gramophone-featured-vinyl__all:focus-visible {
  opacity: 0.72;
}

.gramophone-featured-vinyl__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 30px);
}

/* Featured Vinyl cards reuse the collection-index card classes and purchase
   controls so both homepage product grids share one visual system. */
.gramophone-featured-vinyl-card.is-out-of-stock .gramophone-collection-index__image img {
  opacity: 0.62;
}

@media (max-width: 980px) {
  .gramophone-vinyl-gateways {
    margin-top: -18px;
    margin-bottom: 72px;
  }

  .gramophone-featured-vinyl__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 22px;
  }
}

@media (max-width: 700px) {
  .gramophone-vinyl-gateways {
    margin-top: 0;
    margin-bottom: 54px;
  }

  .gramophone-vinyl-gateways__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gramophone-vinyl-gateway {
    min-height: 230px;
  }

  .gramophone-vinyl-gateway__content {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .gramophone-vinyl-gateway__content strong {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .gramophone-vinyl-gateway__content span {
    padding-bottom: 0;
  }

  .gramophone-featured-vinyl {
    margin-top: 84px;
    padding-top: 48px;
  }

  .gramophone-featured-vinyl__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .gramophone-featured-vinyl__header h2 {
    font-size: clamp(2.45rem, 11vw, 3.7rem);
  }

  .gramophone-featured-vinyl__all {
    margin-bottom: 0;
  }

  .gramophone-featured-vinyl__grid {
    gap: 34px 12px;
  }

}

/* =========================
   WooCommerce catalogue / Shop
   ========================= */
body.gramophone-product-catalog .site-content > .ast-container {
  width: min(100% - 40px, 1380px);
  max-width: 1380px;
  padding-top: clamp(44px, 6vw, 82px);
  padding-bottom: clamp(72px, 8vw, 120px);
}

body.gramophone-product-catalog .woocommerce-products-header {
  margin-bottom: clamp(28px, 4vw, 48px);
}

body.gramophone-product-catalog .woocommerce-products-header__title.page-title,
body.gramophone-product-catalog .page-title {
  margin: 0;
  color: var(--gram-black);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

body.gramophone-product-catalog .term-description,
body.gramophone-product-catalog .page-description {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(15, 15, 15, 0.72);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.75;
}

body.gramophone-product-catalog .term-description > :last-child,
body.gramophone-product-catalog .page-description > :last-child {
  margin-bottom: 0;
}

body.gramophone-product-catalog .woocommerce-result-count {
  margin: 8px 0 24px;
  color: rgba(15, 15, 15, 0.58);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.82rem;
}

/* Keep WooCommerce's native ordering control visually consistent wherever it appears. */
body.woocommerce form.woocommerce-ordering,
body.woocommerce-page form.woocommerce-ordering {
  margin-bottom: 24px;
}

body.woocommerce form.woocommerce-ordering select.orderby,
body.woocommerce-page form.woocommerce-ordering select.orderby {
  width: auto;
  max-width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 8px 38px 8px 12px;
  border: 1px solid rgba(15, 15, 15, 0.18) !important;
  border-radius: 3px;
  background-color: var(--gram-cream) !important;
  color: var(--gram-ink) !important;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.84rem;
  line-height: 1.3;
  box-shadow: none !important;
  outline: none;
  transition: border-color 160ms ease, opacity 160ms ease;
}

body.woocommerce form.woocommerce-ordering select.orderby:hover,
body.woocommerce-page form.woocommerce-ordering select.orderby:hover {
  border-color: rgba(83, 46, 28, 0.42) !important;
  background-color: var(--gram-cream) !important;
}

body.woocommerce form.woocommerce-ordering select.orderby:focus,
body.woocommerce form.woocommerce-ordering select.orderby:focus-visible,
body.woocommerce-page form.woocommerce-ordering select.orderby:focus,
body.woocommerce-page form.woocommerce-ordering select.orderby:focus-visible {
  border-color: var(--gram-brass) !important;
  background-color: var(--gram-cream) !important;
  color: var(--gram-ink) !important;
  box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.18) !important;
  outline: none !important;
}

body.gramophone-product-catalog ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title,
body[class*="tax-pa_"] ul.products li.product .woocommerce-loop-product__title,
body.search-results.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  height: calc(1.24em * 3);
  min-height: calc(1.24em * 3);
  margin-bottom: 10px;
  overflow: hidden;
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.gramophone-product-catalog ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price,
body[class*="tax-pa_"] ul.products li.product .price,
body.search-results.woocommerce ul.products li.product .price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 2.9em;
  margin-bottom: 0;
}

body.gramophone-product-catalog ul.products li.product .astra-shop-summary-wrap > .button,
body.gramophone-product-catalog ul.products li.product .astra-shop-summary-wrap > a.button,
body.post-type-archive-product ul.products li.product .astra-shop-summary-wrap > .button,
body.post-type-archive-product ul.products li.product .astra-shop-summary-wrap > a.button,
body.tax-product_cat ul.products li.product .astra-shop-summary-wrap > .button,
body.tax-product_cat ul.products li.product .astra-shop-summary-wrap > a.button,
body.tax-product_tag ul.products li.product .astra-shop-summary-wrap > .button,
body.tax-product_tag ul.products li.product .astra-shop-summary-wrap > a.button,
body[class*="tax-pa_"] ul.products li.product .astra-shop-summary-wrap > .button,
body[class*="tax-pa_"] ul.products li.product .astra-shop-summary-wrap > a.button,
body.search-results.woocommerce ul.products li.product .astra-shop-summary-wrap > .button,
body.search-results.woocommerce ul.products li.product .astra-shop-summary-wrap > a.button {
  align-self: center;
  margin-top: 12px !important;
}

@media (max-width: 921px) {
  body.gramophone-product-catalog .site-content > .ast-container {
    width: min(100% - 32px, 1380px);
  }
}

@media (max-width: 600px) {
  body.gramophone-product-catalog .site-content > .ast-container {
    width: min(100% - 24px, 1380px);
    padding-top: 34px;
  }

  body.gramophone-product-catalog
    .woocommerce
    ul.products
    li.product
    .button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    font-size: 16px !important;
  }
}

/* =========================
   Catalogue search + native WooCommerce Product Filters drawer
   ========================= */
body.gramophone-product-catalog .gramophone-catalog-controls {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin: 0 0 26px;
}

body.gramophone-product-catalog .gramophone-catalog-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 680px;
}

body.gramophone-product-catalog .gramophone-catalog-search form.woocommerce-product-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

body.gramophone-product-catalog .gramophone-catalog-search .search-field {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid rgba(15, 15, 15, 0.18);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: #fff;
  color: var(--gram-black);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.86rem;
  line-height: 1.2;
  box-shadow: none;
}

body.gramophone-product-catalog .gramophone-catalog-search .search-field:focus {
  border-color: rgba(83, 46, 28, 0.58);
  outline: none;
}

body.gramophone-product-catalog .gramophone-catalog-search button[type="submit"] {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 9px 17px;
  border: 1px solid var(--gram-brown);
  border-radius: 0 3px 3px 0;
  background: var(--gram-brown);
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none;
  transform: none;
}

body.gramophone-product-catalog .gramophone-catalog-search button[type="submit"]:hover,
body.gramophone-product-catalog .gramophone-catalog-search button[type="submit"]:focus-visible {
  opacity: 0.8;
  transform: none;
}

/* The WooCommerce Sidebar remains the admin-controlled source of filter blocks. */
body.gramophone-product-catalog .gramophone-catalog-native-filters {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  min-width: 0;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters > .widget,
body.gramophone-product-catalog .gramophone-catalog-native-filters > .widget_block,
body.gramophone-product-catalog .gramophone-catalog-native-filters > aside,
body.gramophone-product-catalog .gramophone-catalog-native-filters > section {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Search is already permanently visible beside Filters, so do not duplicate it. */
body.gramophone-product-catalog .gramophone-catalog-native-filters .widget_product_search,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wp-block-search,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wp-block-woocommerce-product-search,
body.gramophone-product-catalog .gramophone-catalog-native-filters [data-block-name="woocommerce/product-search"],
body.gramophone-product-catalog .gramophone-catalog-native-filters .widget:has(.wp-block-search),
body.gramophone-product-catalog .gramophone-catalog-native-filters .widget_block:has(.wp-block-search) {
  display: none !important;
}

/* Use WooCommerce's own Product Filters button and Interactivity API drawer on every screen. */
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened {
  display: block !important;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--gram-black);
  font-family: "Poppins", Arial, sans-serif;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__open-overlay,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__open-overlay {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  padding: 9px 15px;
  border: 1px solid rgba(15, 15, 15, 0.2) !important;
  border-radius: 3px;
  background: #fff !important;
  color: var(--gram-black) !important;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__open-overlay:hover,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__open-overlay:focus-visible {
  background: #fff !important;
  color: var(--gram-black) !important;
  opacity: 0.72;
  transform: none;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__open-overlay svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  fill: currentColor;
}

/* Override WooCommerce's desktop inline mode so the native filter block remains a drawer. */
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  z-index: 99990 !important;
  width: 100% !important;
  height: 100dvh !important;
  background: transparent !important;
  color: var(--gram-black) !important;
  pointer-events: none !important;
  transition: background-color 220ms ease !important;
}

body.admin-bar.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay,
body.admin-bar.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay {
  top: 32px !important;
  height: calc(100dvh - 32px) !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay {
  background: rgba(15, 15, 15, 0.34) !important;
  pointer-events: auto !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-wrapper,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  color: inherit !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-dialog,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog {
  position: absolute !important;
  inset: 0 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: min(420px, 92vw) !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  background: #fff !important;
  color: var(--gram-black) !important;
  box-shadow: -18px 0 44px rgba(15, 15, 15, 0.16);
  transform: translateX(100%) !important;
  transition: transform 260ms ease !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog {
  transform: translateX(0) !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-header,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-header {
  display: flex !important;
  flex: 0 0 auto;
  flex-flow: row nowrap !important;
  align-items: center;
  justify-content: flex-end;
  min-height: 62px;
  padding: 12px 18px !important;
  border-bottom: 1px solid rgba(15, 15, 15, 0.1);
  background: #fff !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__close-overlay {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  margin: 0;
  padding: 6px 8px !important;
  border: 0 !important;
  border-radius: 3px;
  background: transparent !important;
  color: var(--gram-black) !important;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  transform: none;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__close-overlay:hover,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__close-overlay:focus-visible {
  background: rgba(15, 15, 15, 0.05) !important;
  color: var(--gram-black) !important;
  opacity: 0.75;
  transform: none;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__close-overlay svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  fill: currentColor;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-content,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-content {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 22px !important;
  min-height: 0;
  padding: 22px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: #fff !important;
  color: var(--gram-black) !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-content > *,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-content .wp-block-group,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-content .wp-block-group > div {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-content h2,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-content h3,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-content h4,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-content .wp-block-heading {
  margin: 0 0 10px !important;
  color: var(--gram-black);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.76rem !important;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filter-checkbox-list__list,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-components-checkbox-list {
  display: grid;
  gap: 9px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filter-checkbox-list__item,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-components-checkbox-list li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filter-checkbox-list__label,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-components-checkbox label,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-components-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(15, 15, 15, 0.8) !important;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.86rem !important;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: none !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filter-checkbox-list__input-wrapper,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-components-checkbox__input-wrapper {
  position: relative !important;
  display: block !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 18px !important;
  line-height: 18px !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filter-checkbox-list__input-wrapper::before {
  width: 18px !important;
  height: 18px !important;
  border-radius: 2px;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters input[type="checkbox"].wc-block-product-filter-checkbox-list__input,
body.gramophone-product-catalog .gramophone-catalog-native-filters input[type="checkbox"].wc-block-components-checkbox__input {
  appearance: none !important;
  display: block !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(15, 15, 15, 0.28) !important;
  border-radius: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters svg.wc-block-product-filter-checkbox-list__mark,
body.gramophone-product-catalog .gramophone-catalog-native-filters svg.wc-block-components-checkbox__mark {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: none;
  box-sizing: border-box !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 3px !important;
  color: var(--gram-brown) !important;
  fill: none;
  pointer-events: none;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters input[type="checkbox"].wc-block-product-filter-checkbox-list__input:checked + svg.wc-block-product-filter-checkbox-list__mark,
body.gramophone-product-catalog .gramophone-catalog-native-filters input[type="checkbox"].wc-block-components-checkbox__input:checked + svg.wc-block-components-checkbox__mark {
  display: block !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filter-checkbox-list__text-wrapper,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-components-checkbox__label {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(15, 15, 15, 0.8) !important;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.86rem !important;
  font-weight: 400;
  line-height: 1.4;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filter-checkbox-list__count {
  color: rgba(15, 15, 15, 0.45);
  font-size: 0.76rem;
}

/* Product Filters update immediately, so the native Apply footer is redundant here. */
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-footer,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-footer,
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__apply {
  display: none !important;
}

/* Preserve WooCommerce filtering while making category hierarchy easier to scan. */
body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filter-checkbox-list__item {
  padding-inline-start: calc(var(--gram-filter-depth, 0) * 16px) !important;
}

body.gramophone-product-catalog .gramophone-catalog-native-filters .gramophone-category-filter-context-hidden,
body.gramophone-product-catalog .gramophone-catalog-native-filters .gramophone-category-option-context-hidden {
  display: none !important;
}

@media (max-width: 782px) {
  body.admin-bar.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay,
  body.admin-bar.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay {
    top: 46px !important;
    height: calc(100dvh - 46px) !important;
  }
}

@media (max-width: 600px) {
  body.gramophone-product-catalog .gramophone-catalog-controls {
    gap: 7px;
    margin-bottom: 20px;
  }

  body.gramophone-product-catalog .gramophone-catalog-search .search-field,
  body.gramophone-product-catalog .gramophone-catalog-search button[type="submit"],
  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__open-overlay {
    min-height: 42px;
  }

  body.gramophone-product-catalog .gramophone-catalog-search .search-field {
    padding-inline: 11px;
    font-size: 0.8rem;
  }

  body.gramophone-product-catalog .gramophone-catalog-search button[type="submit"] {
    padding-inline: 11px;
    font-size: 0.76rem;
  }

  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__open-overlay {
    width: 42px;
    min-width: 42px;
    padding: 0 !important;
  }

  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__open-overlay span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-dialog,
  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog {
    width: 100% !important;
  }

  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-header {
    position: relative;
    min-height: 58px;
    padding-top: 18px !important;
    touch-action: none;
    cursor: grab;
  }

  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-header::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(15, 15, 15, 0.22);
    transform: translateX(-50%);
    pointer-events: none;
  }

  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog {
    transform: translate3d(
      var(--gram-filter-drag-x, 0px),
      var(--gram-filter-drag-y, 0px),
      0
    ) !important;
    transition: transform 180ms ease !important;
  }

  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-dialog.gramophone-filter-is-dragging {
    transition: none !important;
  }

  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-dialog.gramophone-filter-swipe-dismissed {
    transform: translate3d(
      var(--gram-filter-dismiss-x, 0px),
      var(--gram-filter-dismiss-y, 0px),
      0
    ) !important;
    transition: transform 170ms ease !important;
  }

  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-content,
  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-content {
    padding: 18px 16px 20px !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay,
  body.gramophone-product-catalog .gramophone-catalog-native-filters .wc-block-product-filters__overlay-dialog {
    transition: none !important;
  }
}


/* Catalogue card alignment: Astra keeps `woocommerce` on the body rather than
   wrapping the loop in a descendant `.woocommerce` element. Keep every archive
   card on the same visual rhythm while preserving uncropped source artwork. */
body.woocommerce:not(.single-product) ul.products li.product .astra-shop-thumbnail-wrap {
  box-sizing: border-box;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 5 / 6 !important;
  overflow: hidden !important;
}

body.woocommerce:not(.single-product) ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.woocommerce:not(.single-product) ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-loop-product__link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

body.woocommerce:not(.single-product) ul.products li.product .astra-shop-thumbnail-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}

body.woocommerce:not(.single-product) ul.products li.product .astra-shop-summary-wrap {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
}

body.woocommerce:not(.single-product) ul.products li.product .ast-woo-product-category {
  display: block;
  min-height: 1.4em;
  line-height: 1.4;
}

body.woocommerce:not(.single-product) ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box !important;
  box-sizing: border-box;
  height: calc(1.24em * 2) !important;
  min-height: calc(1.24em * 2) !important;
  max-height: calc(1.24em * 2) !important;
  margin-bottom: 4px !important;
  overflow: hidden !important;
  line-height: 1.24 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.woocommerce:not(.single-product) ul.products li.product .price {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  box-sizing: border-box;
  height: 1.65em !important;
  min-height: 1.65em !important;
  max-height: 1.65em !important;
  margin-bottom: 0 !important;
  overflow: hidden;
  line-height: 1.35;
}

body.woocommerce:not(.single-product) ul.products li.product .astra-shop-summary-wrap > a.button,
body.woocommerce:not(.single-product) ul.products li.product .astra-shop-summary-wrap > .button {
  align-self: center;
  margin-top: 6px !important;
}

/* Keep the theme's sale badge inside the catalogue media frame. */
body.woocommerce:not(.single-product) ul.products li.product > span.onsale,
body.woocommerce:not(.single-product) ul.products li.product .astra-shop-thumbnail-wrap > span.onsale {
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
}

/* Astra's extra on-image Sale and quick-cart controls duplicate the theme's
   existing SALE badge and the normal catalogue purchase button below the card. */
body.woocommerce:not(.single-product) ul.products li.product .ast-on-card-button.ast-onsale-card,
body.woocommerce:not(.single-product) ul.products li.product .ast-on-card-button.ast-select-options-trigger {
  display: none !important;
}

@media (max-width: 700px) {
  body.woocommerce:not(.single-product) ul.products li.product
    a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart,
  body.woocommerce:not(.single-product) ul.products li.product
    .button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    font-size: 16px !important;
  }
}


/* ==========================================================
   HOMEPAGE HERO + COLLECTION HEADING COMPACT REFINEMENT
   ========================================================== */

@media (min-width: 981px) {
  body.page-template-template-homepage .gramophone-hero {
    min-height: 0;
    padding: 138px 0 42px;
    background-position: 100% 100%;
  }

  body.page-template-template-homepage .gramophone-hero__copy {
    max-width: 443px;
    text-align: justify;
  }

  body.page-template-template-homepage .gramophone-hero__copy .gramophone-kicker {
    margin-bottom: 10px;
    font-size: 15px;
    text-align: justify;
  }

  body.page-template-template-homepage .gramophone-hero__title {
    max-width: 443px;
    font-size: 50px;
    line-height: 0.98;
    text-align: justify;
  }

  body.page-template-template-homepage .gramophone-hero .gramophone-rule {
    width: 100%;
    margin: 16px 0;
  }

  body.page-template-template-homepage .gramophone-hero__intro {
    max-width: 443px;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.55;
    text-align: justify;
  }

  body.page-template-template-homepage .gramophone-section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    align-items: start;
    gap: clamp(42px, 6vw, 88px);
    margin-bottom: 30px;
  }

  body.page-template-template-homepage .gramophone-warranty-banner {
    align-self: start;
    justify-content: flex-end;
    width: 100%;
    margin: 0;
  }

  body.page-template-template-homepage .gramophone-warranty-banner img {
    width: min(420px, 100%);
    height: auto;
    aspect-ratio: 2 / 1;
  }
}

body.page-template-template-homepage .gramophone-section-heading > div:first-child .gramophone-kicker {
  margin-bottom: 8px;
}

body.page-template-template-homepage .gramophone-section-heading h2 {
  margin-bottom: 10px;
}

body.page-template-template-homepage .gramophone-section-heading > div:first-child > p:not(.gramophone-kicker) {
  max-width: 620px;
  margin: 0;
}

body.page-template-template-homepage .gramophone-warranty-banner {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  body.page-template-template-homepage .gramophone-hero {
    min-height: 0;
    padding: 124px 0 46px;
    background-position: 50% 100%;
  }

  body.page-template-template-homepage .gramophone-hero__copy .gramophone-kicker {
    margin-bottom: 12px;
  }

  body.page-template-template-homepage .gramophone-hero .gramophone-rule {
    margin: 18px 0;
  }

  body.page-template-template-homepage .gramophone-hero__intro {
    margin-bottom: 20px;
  }

  body.page-template-template-homepage .gramophone-section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  body.page-template-template-homepage .gramophone-section-heading > div:first-child {
    order: 2;
  }

  body.page-template-template-homepage .gramophone-warranty-banner {
    order: 1;
    justify-content: center;
    width: 100%;
    margin: 0;
  }

  body.page-template-template-homepage .gramophone-warranty-banner img {
    width: min(360px, 82vw);
    height: auto;
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 700px) {
  body.page-template-template-homepage .gramophone-hero {
    min-height: 0;
    padding: 40vh 0 24px;
  }

  body.page-template-template-homepage .gramophone-hero__title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  body.page-template-template-homepage .gramophone-hero::before {
    height: 43vh;
    min-height: 43vh;
    background-image:
      linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.2) 0%,
        rgba(15, 15, 15, 0.36) 42%,
        rgba(15, 15, 15, 0.62) 78%,
        var(--gram-black) 100%
      ),
      url("assets/images/hero-bg.jpeg");
    background-position: 50% 100%;
  }

  body.page-template-template-homepage .gramophone-hero::after {
    top: calc(43vh - 90px);
    height: 92px;
  }

  body.page-template-template-homepage .gramophone-hero__actions {
    margin-top: 18px;
  }

  body.page-template-template-homepage .gramophone-section-heading {
    gap: 12px;
    margin-bottom: 22px;
  }

  body.page-template-template-homepage .gramophone-section-heading > div:first-child .gramophone-kicker {
    margin-bottom: 6px;
  }

  body.page-template-template-homepage .gramophone-section-heading h2 {
    margin-bottom: 8px;
  }

  body.page-template-template-homepage .gramophone-warranty-banner img {
    width: min(320px, 88vw);
  }
}

/* ==========================================================
   HOMEPAGE HERO - WIDE DESKTOP IMAGE STAGE
   Keep the hero artwork at full height on wide screens instead of
   stretching it across the whole viewport. Any remaining space on the
   left stays black.
   ========================================================== */
@media (min-width: 981px) {
  body.page-template-template-homepage .gramophone-hero {
    background-color: var(--gram-black);
    background-image: none;
  }

  body.page-template-template-homepage .gramophone-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 0;
    width: min(100%, 1600px);
    max-width: 1600px;
    pointer-events: none;
    background-color: var(--gram-black);
    background-image:
      linear-gradient(
        90deg,
        var(--gram-black) 0%,
        var(--gram-black) 10%,
        rgba(15, 15, 15, 0.99) 14%,
        rgba(15, 15, 15, 0.92) 20%,
        rgba(15, 15, 15, 0.88) 30%,
        rgba(15, 15, 15, 0.76) 45%,
        rgba(15, 15, 15, 0.2) 64%,
        rgba(15, 15, 15, 0) 72%
      ),
      linear-gradient(
        90deg,
        rgba(15, 15, 15, 0.96) 0%,
        rgba(15, 15, 15, 0.78) 26%,
        rgba(15, 15, 15, 0.2) 28%,
        rgba(15, 15, 15, 0.1) 100%
      ),
      linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.56) 0%,
        transparent 33%,
        transparent 95%,
        rgba(15, 15, 15, 0.62) 100%
      ),
      url("assets/images/hero-bg.jpeg");
    background-repeat: no-repeat, no-repeat, no-repeat, repeat-x;
    background-size: 100% 100%, 100% 100%, 100% 100%, auto 100%;
    background-position: center, center, center, 100% 100%;
  }
}

/* ==========================================================
   HOMEPAGE POLISH - COLLECTION / PAYMENT / WHY CHOOSE
   ========================================================== */
body.page-template-template-homepage .gramophone-section-heading {
  margin-bottom: 0;
}

body.page-template-template-homepage
  .gramophone-collection-payment-panel
  #gramophone-collection-payment-title {
  font-size: 1.3rem;
}

body.page-template-template-homepage
  .gramophone-collection-payment-panel
  .gramophone-payment-methods--collection
  .gramophone-payment-methods__item {
  max-width: 120px;
  height: 48px;
}

body.page-template-template-homepage
  .gramophone-collection-payment-panel
  .gramophone-payment-methods--collection
  .gramophone-payment-methods__logo {
  max-width: 120px;
  height: 48px;
  max-height: 48px;
}

body.page-template-template-homepage .gramophone-why-choose__item svg {
  width: 110px;
  height: 110px;
  margin-bottom: 16px;
}

body.page-template-template-homepage .gramophone-why-choose__item h3 {
  font-size: clamp(1.05rem, 1.45vw, 1.4rem);
}

@media (max-width: 900px) {
  body.page-template-template-homepage
    .gramophone-collection-payment-panel
    #gramophone-collection-payment-title {
    font-size: 1rem;
  }
}

@media (max-width: 700px) {
  body.page-template-template-homepage
    .gramophone-collection-payment-panel
    .gramophone-payment-methods--collection
    .gramophone-payment-methods__item {
    max-width: 78px;
    height: 38px;
  }

  body.page-template-template-homepage
    .gramophone-collection-payment-panel
    .gramophone-payment-methods--collection
    .gramophone-payment-methods__logo {
    max-width: 78px;
    height: 38px;
    max-height: 38px;
  }

  body.page-template-template-homepage .gramophone-why-choose__item svg {
    width: 84px;
    height: 84px;
    margin-bottom: 12px;
  }

  body.page-template-template-homepage .gramophone-why-choose__item h3 {
    font-size: 1.05rem;
  }
}

/* Larger three-column collection index on desktop. */
@media (min-width: 981px) {
  body.page-template-template-homepage section.gramophone-collection .gramophone-collection-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  body.page-template-template-homepage section.gramophone-collection .gramophone-collection-index__item {
    padding: 26px 18px 20px;
  }

  body.page-template-template-homepage section.gramophone-collection .gramophone-collection-index__image {
    min-height: 350px;
    padding: 14px 6px;
  }

  body.page-template-template-homepage section.gramophone-collection .gramophone-collection-index__image img {
    max-height: 330px;
  }
}

