/*
 * Rylan BlackGold Luxe 2.0
 * Final site-wide UI/UX layer. Loaded after the legacy theme styles so the
 * established black/gold identity is retained with calmer, consistent rules.
 */

:root {
  --rylan-black: #050506;
  --rylan-dark-gray: #090a0c;
  --rylan-panel: #121318;
  --rylan-panel-raised: #181a20;
  --rylan-gold: #c8a75a;
  --rylan-gold-strong: #efd789;
  --rylan-gold-soft: #a98b4b;
  --rylan-text: #f2eee5;
  --rylan-muted: #aaa69d;
  --rylan-line: rgba(215, 180, 106, 0.25);
  --rylan-line-soft: rgba(255, 255, 255, 0.075);
  --rylan-danger: #d27970;
  --rylan-font-heading: 'Cormorant Garamond', Georgia, serif;
  --rylan-font-label: 'Cinzel', Georgia, serif;
  --rylan-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rylan-radius-sm: 10px;
  --rylan-radius: 16px;
  --rylan-radius-lg: 22px;
  --rylan-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
  --rylan-content: 1420px;
  --rylan-reading: 880px;
}

html {
  scroll-behavior: smooth;
}

body.rylan-blackgold-active {
  color: var(--rylan-text) !important;
  background:
    radial-gradient(circle at 82% 6%, rgba(210, 174, 84, 0.055), transparent 30%),
    linear-gradient(180deg, #040405 0%, #07080a 58%, #050506 100%) !important;
  font-family: var(--rylan-font-body) !important;
  font-size: 16px;
  line-height: 1.72;
}

body.rylan-blackgold-active::before {
  opacity: 0.22 !important;
  animation: none !important;
}

body.rylan-blackgold-active img {
  height: auto;
  transition: opacity 180ms ease, transform 220ms ease !important;
}

body.rylan-blackgold-active img:hover {
  box-shadow: none !important;
  transform: none !important;
}

.site-content > .ast-container,
.site-primary-header-wrap,
.site-footer .ast-builder-grid-row-container-inner {
  width: min(calc(100% - 40px), var(--rylan-content));
  max-width: var(--rylan-content) !important;
  margin-right: auto;
  margin-left: auto;
}

/* ---------- Typography and hierarchy ---------- */
body.rylan-blackgold-active h1,
body.rylan-blackgold-active h2,
body.rylan-blackgold-active h3,
body.rylan-blackgold-active h4,
body.rylan-blackgold-active h5,
body.rylan-blackgold-active h6 {
  color: var(--rylan-gold-strong) !important;
  font-family: var(--rylan-font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: 0.012em !important;
  line-height: 1.16 !important;
  text-shadow: none !important;
  text-wrap: balance;
}

body.rylan-blackgold-active h1::after,
body.rylan-blackgold-active h2::after,
body.rylan-blackgold-active section::before {
  content: none !important;
}

body.rylan-blackgold-active h1 {
  font-size: clamp(38px, 4.4vw, 66px) !important;
}

body.rylan-blackgold-active h2 {
  font-size: clamp(30px, 3vw, 46px) !important;
}

body.rylan-blackgold-active h3 {
  font-size: clamp(21px, 1.65vw, 28px) !important;
}

body.rylan-blackgold-active p,
body.rylan-blackgold-active li,
body.rylan-blackgold-active td,
body.rylan-blackgold-active th,
body.rylan-blackgold-active blockquote,
body.rylan-blackgold-active .entry-content {
  font-family: var(--rylan-font-body) !important;
}

body.rylan-blackgold-active p,
body.rylan-blackgold-active li {
  color: #d8d4cb;
}

body.rylan-blackgold-active strong,
body.rylan-blackgold-active b {
  color: #f3e3b3;
}

/* ---------- Links and buttons ---------- */
body.rylan-blackgold-active a {
  color: var(--rylan-gold) !important;
  text-shadow: none !important;
}

body.rylan-blackgold-active a:hover {
  color: #f5dea0 !important;
  text-shadow: none !important;
}

body.rylan-blackgold-active button,
body.rylan-blackgold-active .button,
body.rylan-blackgold-active input[type='submit'],
body.rylan-blackgold-active .wp-block-button__link,
body.rylan-blackgold-active .elementor-button {
  min-height: 46px;
  padding: 12px 22px !important;
  color: #080808 !important;
  background: linear-gradient(110deg, #ae812f 0%, #ebce76 54%, #bc9140 100%) !important;
  border: 1px solid rgba(255, 235, 170, 0.34) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(177, 132, 47, 0.18) !important;
  font-family: var(--rylan-font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.095em !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease !important;
}

body.rylan-blackgold-active button:hover,
body.rylan-blackgold-active .button:hover,
body.rylan-blackgold-active input[type='submit']:hover,
body.rylan-blackgold-active .wp-block-button__link:hover,
body.rylan-blackgold-active .elementor-button:hover {
  color: #050505 !important;
  background: linear-gradient(110deg, #f4dfa1, #c69b45) !important;
  box-shadow: 0 12px 32px rgba(219, 179, 83, 0.27) !important;
  text-shadow: none !important;
  transform: translateY(-1px) !important;
}

body.rylan-blackgold-active .button.alt,
body.rylan-blackgold-active .single_add_to_cart_button,
body.rylan-blackgold-active .checkout-button {
  background: linear-gradient(110deg, #b98932 0%, #f2d77e 52%, #c1953f 100%) !important;
}

/* ---------- Header and navigation ---------- */
body.rylan-blackgold-active .site-header,
body.rylan-blackgold-active header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 6, 0.88) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(215, 180, 106, 0.14) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: background 180ms ease, box-shadow 180ms ease !important;
}

body.admin-bar.rylan-blackgold-active .site-header,
body.admin-bar.rylan-blackgold-active header.site-header {
  top: 32px;
}

body.rylan-blackgold-active .ast-primary-header-bar {
  position: relative;
  top: auto;
  background: rgba(5, 5, 6, 0.88) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(215, 180, 106, 0.14) !important;
  box-shadow: none !important;
}

body.rylan-blackgold-active .site-header.rylan-header-scrolled,
body.rylan-blackgold-active header.site-header.rylan-header-scrolled {
  background: rgba(3, 3, 4, 0.96) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32) !important;
}

body.rylan-blackgold-active .main-header-menu > .menu-item > .menu-link,
body.rylan-blackgold-active .ast-builder-menu-1 .menu-item > .menu-link,
body.rylan-blackgold-active .site-header .ast-header-account-wrap a {
  color: #d8d4ca !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: var(--rylan-font-body) !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-decoration: none !important;
  text-transform: uppercase;
}

body.rylan-blackgold-active .main-header-menu > .menu-item > .menu-link:hover,
body.rylan-blackgold-active .main-header-menu > .current-menu-item > .menu-link,
body.rylan-blackgold-active .ast-builder-menu-1 .menu-item > .menu-link:hover {
  color: var(--rylan-gold-strong) !important;
}

body.rylan-blackgold-active .main-header-menu .sub-menu {
  padding: 10px;
  background: rgba(12, 13, 16, 0.98) !important;
  border: 1px solid var(--rylan-line) !important;
  border-radius: 14px;
  box-shadow: var(--rylan-shadow) !important;
}

body.rylan-blackgold-active .main-header-menu .sub-menu .menu-link {
  padding: 11px 14px;
  color: #d6d1c8 !important;
  border-radius: 8px;
  text-decoration: none !important;
}

body.rylan-blackgold-active .main-header-menu .sub-menu .menu-link:hover {
  color: #f4dfa0 !important;
  background: rgba(215, 180, 106, 0.08) !important;
}

body.rylan-blackgold-active .ast-mobile-menu-trigger-minimal,
body.rylan-blackgold-active .main-header-menu-toggle {
  min-height: 44px;
  padding: 9px !important;
  color: #e1ca83 !important;
  background: transparent !important;
  border: 1px solid rgba(215, 180, 106, 0.24) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

/* ---------- Footer ---------- */
body.rylan-blackgold-active .site-footer,
body.rylan-blackgold-active footer.site-footer {
  padding-top: 28px;
  color: #aaa69c !important;
  background: #050506 !important;
  border-top: 1px solid rgba(215, 180, 106, 0.18) !important;
  box-shadow: none !important;
}

body.rylan-blackgold-active .site-footer h2,
body.rylan-blackgold-active .site-footer h3,
body.rylan-blackgold-active .site-footer h4 {
  color: #d8bd75 !important;
  font-family: var(--rylan-font-label) !important;
  font-size: 13px !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase;
}

body.rylan-blackgold-active .site-footer a {
  color: #aaa69c !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

body.rylan-blackgold-active .site-footer a:hover {
  color: #ebd38b !important;
}

/* ---------- Homepage ---------- */
body.home .entry-content {
  overflow: clip;
}

body.home .entry-content > section:not(.hero-full-bg),
body.home .entry-content > .flagship-wrapper {
  padding-top: clamp(58px, 6vw, 86px) !important;
  padding-bottom: clamp(58px, 6vw, 86px) !important;
}

body.home .hero-full-bg {
  min-height: clamp(650px, 82vh, 820px) !important;
  height: auto !important;
  padding: clamp(70px, 8vw, 118px) clamp(22px, 5vw, 72px) !important;
  background-position: center !important;
}

body.home .hero-full-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.52) 46%, rgba(0, 0, 0, 0.18) 100%);
}

body.home .hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  max-width: 680px;
}

body.home .hero-inner h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 70px) !important;
  line-height: 1.04 !important;
}

body.home .hero-inner p {
  max-width: 630px;
  margin-bottom: 16px;
  color: #d7d3ca !important;
  font-family: var(--rylan-font-body) !important;
  font-size: clamp(16px, 1.3vw, 19px) !important;
  line-height: 1.72 !important;
}

body.home .ry-cta-advanced,
body.home .ry-cta {
  min-height: 50px;
  padding: 14px 26px !important;
  color: #080808 !important;
  background: linear-gradient(110deg, #b78935, #ecd17b) !important;
  border: 1px solid rgba(255, 235, 171, 0.35) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(183, 137, 52, 0.22) !important;
  font-family: var(--rylan-font-body) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: 0.11em;
  text-decoration: none !important;
  text-transform: uppercase;
}

body.home .grid {
  display: grid !important;
  gap: clamp(16px, 2vw, 24px) !important;
}

body.home .grid.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.home .grid.grid-3,
body.home .fw-grid,
body.home .fc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.home .grid.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.home .brand-card.with-logo,
body.home .product-card.luxe,
body.home .fc-card {
  height: 100%;
  padding: 24px 22px !important;
  background: linear-gradient(155deg, rgba(23, 24, 29, 0.96), rgba(9, 10, 12, 0.98)) !important;
  border: 1px solid rgba(215, 180, 106, 0.24) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  transform: none !important;
}

body.home .brand-card.with-logo:hover,
body.home .product-card.luxe:hover,
body.home .fc-card:hover {
  border-color: rgba(231, 202, 126, 0.58) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34) !important;
  transform: translateY(-3px) !important;
}

body.home .brand-card .brand-logo {
  display: block;
  width: min(100%, 150px) !important;
  max-height: 74px;
  margin: 0 auto 14px !important;
  object-fit: contain;
  filter: none !important;
}

body.home .brand-card h3,
body.home .product-card h3,
body.home .fc-card h3 {
  margin: 8px 0 12px;
  color: #e5cd88 !important;
  font-family: var(--rylan-font-heading) !important;
  font-size: clamp(20px, 1.55vw, 25px) !important;
}

body.home .brand-card p,
body.home .product-card p,
body.home .fc-card p {
  color: #bdb8ae !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

body.home .best-sellers-table,
body.home .best-sellers-table tr,
body.home .best-sellers-table td {
  background: transparent !important;
  border-color: rgba(215, 180, 106, 0.18) !important;
  box-shadow: none !important;
}

body.home .best-sellers-table td {
  padding: 22px !important;
}

body.home .best-sellers-table img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #08090b;
  border-radius: 14px !important;
}

body.home .rylan-home-guide {
  width: min(calc(100% - 40px), 1120px);
  margin: clamp(48px, 6vw, 78px) auto;
  padding: 0 !important;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(24, 25, 30, 0.96), rgba(8, 9, 11, 0.98));
  border: 1px solid rgba(215, 180, 106, 0.30);
  border-radius: 20px;
  box-shadow: var(--rylan-shadow);
}

body.home .rylan-home-guide > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 94px;
  padding: 22px 68px 22px 28px;
  color: #efd98f !important;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  list-style: none;
}

body.home .rylan-home-guide > summary::-webkit-details-marker {
  display: none;
}

body.home .rylan-home-guide > summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  color: #d9b967;
  font-family: var(--rylan-font-body);
  font-size: 27px;
  font-weight: 300;
}

body.home .rylan-home-guide[open] > summary::after {
  content: '−';
}

body.home .rylan-home-guide > summary span {
  font-family: var(--rylan-font-heading);
  font-size: clamp(22px, 2.1vw, 31px);
  font-weight: 600;
}

body.home .rylan-home-guide > summary small {
  color: #97938a;
  font-family: var(--rylan-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.home .rylan-home-guide__content {
  border-top: 1px solid rgba(215, 180, 106, 0.18);
}

body.home .rylan-home-guide__content > section {
  padding: 52px 28px !important;
}

/* ---------- WooCommerce archives ---------- */
body.woocommerce-shop .ast-woocommerce-container,
body.tax-product_cat .ast-woocommerce-container,
body.tax-product_tag .ast-woocommerce-container {
  width: 100%;
  max-width: var(--rylan-content);
  margin: 0 auto;
}

body.woocommerce-shop .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.tax-product_tag .woocommerce-products-header {
  margin-bottom: 28px;
}

body.woocommerce-shop .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title,
body.tax-product_tag .woocommerce-products-header__title {
  max-width: 940px;
  margin: 28px 0 14px;
  font-size: clamp(38px, 4.2vw, 60px) !important;
}

.rylan-archive-intro {
  max-width: 820px;
  margin: 0 0 30px;
  padding-left: 18px;
  border-left: 2px solid rgba(215, 180, 106, 0.54);
}

.rylan-archive-intro p {
  margin: 0;
  color: #bdb8af !important;
  font-size: 15px;
  line-height: 1.7;
}

body.woocommerce-shop .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
  margin: 11px 0 24px !important;
  color: #918d84 !important;
  font-size: 13px;
}

body.woocommerce-shop .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
  margin: 0 0 24px !important;
}

body.woocommerce-shop .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
  min-height: 46px;
  padding: 0 42px 0 14px;
  color: #e7e1d6 !important;
  background-color: #101216 !important;
  border: 1px solid rgba(215, 180, 106, 0.28) !important;
  border-radius: 10px !important;
  font-family: var(--rylan-font-body) !important;
  font-size: 13px;
}

body.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2vw, 28px) !important;
  margin: 0 !important;
}

body.woocommerce ul.products::before,
body.woocommerce ul.products::after {
  display: none !important;
}

body.woocommerce ul.products li.product {
  display: flex !important;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 18px !important;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(22, 23, 27, 0.98), rgba(8, 9, 11, 0.99)) !important;
  border: 1px solid rgba(215, 180, 106, 0.22) !important;
  border-radius: 17px !important;
  box-shadow: none !important;
  transform: none !important;
}

body.woocommerce ul.products li.product:hover {
  border-color: rgba(231, 201, 123, 0.56) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38) !important;
  transform: translateY(-3px) !important;
}

body.woocommerce ul.products li.product > a:first-child,
body.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
body.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  color: inherit !important;
  text-decoration: none !important;
}

body.woocommerce ul.products li.product img {
  width: 100% !important;
  margin: 0 0 16px !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: radial-gradient(circle at 50% 38%, #25272d 0%, #08090b 72%);
  border-radius: 0 !important;
  transform: none !important;
}

body.woocommerce ul.products li.product:hover img {
  opacity: 0.96;
  transform: scale(1.018) !important;
}

body.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 4.2em;
  margin: 0 !important;
  padding: 0 17px !important;
  overflow: hidden;
  color: #ead28c !important;
  font-family: var(--rylan-font-heading) !important;
  font-size: clamp(17px, 1.3vw, 20px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.008em !important;
  line-height: 1.4 !important;
  text-shadow: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.woocommerce ul.products li.product .price {
  min-height: 28px;
  margin: auto 0 0 !important;
  padding: 11px 17px 0;
  color: #f1dfaa !important;
  font-family: var(--rylan-font-label) !important;
  font-size: 14px !important;
  font-weight: 600;
}

body.woocommerce ul.products li.product .rylan-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  margin: 15px 17px 0;
  padding: 10px 14px;
  color: #0a0a0a !important;
  background: linear-gradient(110deg, #b48634, #e8ca70) !important;
  border: 1px solid rgba(255, 236, 175, 0.26);
  border-radius: 10px;
  font-family: var(--rylan-font-body);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-decoration: none !important;
  text-transform: uppercase;
}

body.woocommerce ul.products li.product .rylan-card-cta::after {
  content: '→';
  font-size: 16px;
}

body.woocommerce ul.products li.product .rylan-card-cta:hover {
  color: #050505 !important;
  background: linear-gradient(110deg, #f1dea0, #c79b44) !important;
}

body.woocommerce .woocommerce-pagination {
  margin: 44px 0 24px;
}

body.woocommerce .woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border: 0 !important;
}

body.woocommerce .woocommerce-pagination ul.page-numbers li {
  border: 0 !important;
}

body.woocommerce .woocommerce-pagination .page-numbers a,
body.woocommerce .woocommerce-pagination .page-numbers span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px !important;
  color: #bdb7aa !important;
  background: #101216 !important;
  border: 1px solid rgba(215, 180, 106, 0.20) !important;
  border-radius: 9px;
  text-decoration: none !important;
}

body.woocommerce .woocommerce-pagination .page-numbers .current,
body.woocommerce .woocommerce-pagination .page-numbers a:hover {
  color: #090909 !important;
  background: #d8b85f !important;
  border-color: #d8b85f !important;
}

.rylan-archive-guide {
  clear: both;
  width: 100%;
  margin: 54px 0 18px;
}

.rylan-archive-guide > details {
  padding: 0 !important;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(22, 23, 28, 0.98), rgba(8, 9, 11, 0.99));
  border: 1px solid rgba(215, 180, 106, 0.28);
  border-radius: 20px;
  box-shadow: var(--rylan-shadow);
}

.rylan-archive-guide > details > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 21px 66px 21px 26px;
  color: #e9d28a !important;
  cursor: pointer;
  list-style: none;
}

.rylan-archive-guide > details > summary::-webkit-details-marker {
  display: none;
}

.rylan-archive-guide > details > summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  color: #d5b45e;
  font-family: var(--rylan-font-body);
  font-size: 26px;
}

.rylan-archive-guide > details[open] > summary::after {
  content: '−';
}

.rylan-archive-guide > details > summary span {
  font-family: var(--rylan-font-heading);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
}

.rylan-archive-guide > details > summary small {
  color: #969188;
  font-family: var(--rylan-font-body);
  font-size: 12px;
  font-weight: 600;
}

.rylan-archive-guide__content {
  padding: clamp(28px, 4vw, 54px) !important;
  border-top: 1px solid rgba(215, 180, 106, 0.17);
}

.rylan-archive-guide__content > :first-child {
  margin-top: 0 !important;
}

.rylan-archive-guide__content > :last-child {
  margin-bottom: 0 !important;
}

.rylan-archive-guide__content section,
.rylan-archive-guide__content .shop-featured,
.rylan-archive-guide__content .brand-block {
  padding: 42px 0 !important;
  background: transparent !important;
}

/* ---------- Single product ---------- */
body.single-product .woocommerce div.product {
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.single-product .woocommerce div.product:hover {
  box-shadow: none !important;
  transform: none !important;
}

body.single-product .site-content {
  padding-top: clamp(26px, 4vw, 58px);
  padding-bottom: 84px;
}

body.single-product .woocommerce-product-gallery {
  padding: clamp(10px, 1.4vw, 18px);
  background: linear-gradient(150deg, rgba(22, 23, 28, 0.98), rgba(7, 8, 10, 0.99));
  border: 1px solid rgba(215, 180, 106, 0.25);
  border-radius: 20px;
  box-shadow: var(--rylan-shadow);
}

/* Keep WooCommerce's native gallery sizing, slider and zoom behavior intact. */
body.single-product .woocommerce-product-gallery .flex-viewport {
  border-radius: 14px;
}

body.single-product .woocommerce-product-gallery__image img {
  height: auto;
  border-radius: 12px;
  transform: none !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 12px !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  overflow: hidden;
  border: 1px solid rgba(215, 180, 106, 0.18);
  border-radius: 9px;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  opacity: 0.62;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover {
  opacity: 1;
}

body.single-product .summary.entry-summary {
  padding: clamp(22px, 3vw, 38px) !important;
  background: linear-gradient(150deg, rgba(23, 24, 29, 0.98), rgba(8, 9, 11, 0.99));
  border: 1px solid rgba(215, 180, 106, 0.25);
  border-radius: 20px;
  box-shadow: var(--rylan-shadow);
}

body.single-product .summary .woocommerce-breadcrumb {
  margin-bottom: 18px;
  color: #817d74;
  font-size: 11px;
  line-height: 1.55;
}

body.single-product .summary .woocommerce-breadcrumb a {
  color: #9f9a90 !important;
  text-decoration: none !important;
}

body.single-product h1.product_title {
  margin-bottom: 16px;
  color: #efd98e !important;
  font-size: clamp(31px, 3.2vw, 48px) !important;
  line-height: 1.08 !important;
}

body.single-product .summary .price {
  margin: 0 0 16px !important;
  color: #f2dea4 !important;
  font-family: var(--rylan-font-label) !important;
  font-size: clamp(21px, 2vw, 28px) !important;
}

body.single-product .summary .ast-shipping-text {
  display: inline-block;
  margin: -7px 0 20px;
  color: #aaa59b;
  font-family: var(--rylan-font-body);
  font-size: 12px;
}

body.single-product .woocommerce-product-details__short-description {
  margin: 0 0 24px;
  color: #c9c4ba !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
}

body.single-product form.cart,
body.single-product form.variations_form {
  margin: 0 0 20px !important;
  padding: 20px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(215, 180, 106, 0.18);
  border-radius: 15px;
}

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

body.single-product table.variations th,
body.single-product table.variations td {
  padding: 7px 0 11px !important;
  text-align: left;
}

body.single-product table.variations label {
  color: #d9c47e;
  font-family: var(--rylan-font-body);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

body.single-product table.variations select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  color: #eee9df !important;
  background: #0b0d10 !important;
  border: 1px solid rgba(215, 180, 106, 0.28) !important;
  border-radius: 10px !important;
  font-family: var(--rylan-font-body) !important;
  font-size: 14px;
}

body.single-product .reset_variations {
  display: inline-block;
  margin-top: 8px;
  color: #9d988f !important;
  font-size: 11px;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

body.single-product .woocommerce-variation-price {
  margin: 5px 0 14px;
}

body.single-product .quantity {
  min-height: 50px;
  overflow: hidden;
  background: #0b0d10;
  border: 1px solid rgba(215, 180, 106, 0.25);
  border-radius: 10px;
}

body.single-product .quantity .qty {
  min-height: 48px;
  color: #f1ece2 !important;
  background: #111318 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.single-product .single_add_to_cart_button {
  min-height: 50px;
  padding-right: 28px !important;
  padding-left: 28px !important;
}

body.single-product .product_meta {
  margin: 0 0 20px;
  padding: 15px 17px;
  color: #817d75;
  background: rgba(255, 255, 255, 0.014);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  font-family: var(--rylan-font-body) !important;
  font-size: 11px;
  line-height: 1.65;
}

body.single-product .product_meta a {
  color: #bda968 !important;
  text-decoration: none !important;
}

body.single-product .rylan-shop-guarantee {
  margin: 0 !important;
  padding: 21px !important;
  background: linear-gradient(150deg, rgba(21, 22, 26, 0.96), rgba(8, 9, 11, 0.98)) !important;
  border: 1px solid rgba(215, 180, 106, 0.24) !important;
  border-radius: 15px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.single-product .rylan-shop-guarantee .guarantee-title {
  margin: 0 0 14px;
  color: #e7d18c !important;
  font-family: var(--rylan-font-heading);
  font-size: 20px !important;
  line-height: 1.3;
}

body.single-product .guarantee-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

body.single-product .guarantee-highlights span {
  position: relative;
  padding: 10px 8px 10px 27px;
  color: #c9c3b7;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(215, 180, 106, 0.13);
  border-radius: 8px;
  font-family: var(--rylan-font-body);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

body.single-product .guarantee-highlights span::before {
  content: '✓';
  position: absolute;
  top: 10px;
  left: 9px;
  color: #d9ba68;
  font-weight: 800;
}

body.single-product .guarantee-details {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.single-product .guarantee-details summary {
  color: #ac9b68 !important;
  font-family: var(--rylan-font-body) !important;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

body.single-product .guarantee-details .guarantee-list {
  margin: 15px 0 0;
  padding: 15px 0 0 19px;
  border-top: 1px solid rgba(215, 180, 106, 0.14);
}

body.single-product .guarantee-details .guarantee-list li {
  margin-bottom: 9px;
  color: #aaa59c !important;
  font-size: 12px !important;
  line-height: 1.58 !important;
}

body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .up-sells.products {
  clear: both;
  margin-top: clamp(48px, 6vw, 82px);
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  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 {
  content: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  background: #101216 !important;
  border: 1px solid rgba(215, 180, 106, 0.18) !important;
  border-radius: 999px !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  padding: 10px 18px !important;
  color: #aaa59b !important;
  font-family: var(--rylan-font-body) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  text-transform: uppercase;
}

body.single-product .woocommerce-tabs ul.tabs li.active {
  background: rgba(215, 180, 106, 0.12) !important;
  border-color: rgba(215, 180, 106, 0.48) !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #e6cf87 !important;
}

body.single-product .woocommerce-Tabs-panel {
  padding: clamp(24px, 4vw, 50px) !important;
  background: linear-gradient(150deg, rgba(21, 22, 26, 0.96), rgba(8, 9, 11, 0.98));
  border: 1px solid rgba(215, 180, 106, 0.20);
  border-radius: 18px;
}

/* Mobile product shortcut; it scrolls to the real form and never duplicates it. */
.rylan-sticky-buy {
  display: none;
}

/* ---------- Editorial reading template ---------- */
body.single-post .site-content > .ast-container,
body.page:not(.home):not(.woocommerce-page) .site-content > .ast-container {
  max-width: 1220px !important;
}

body.single-post .entry-title,
body.page:not(.home):not(.woocommerce-page) .entry-title {
  width: min(100%, 1000px);
  margin: 36px auto 34px;
  text-align: center;
}

body.single-post .entry-content > p,
body.single-post .entry-content > h2,
body.single-post .entry-content > h3,
body.single-post .entry-content > h4,
body.single-post .entry-content > ul,
body.single-post .entry-content > ol,
body.single-post .entry-content > blockquote,
body.single-post .entry-content > aside,
body.single-post .entry-content > details,
body.page:not(.home):not(.woocommerce-page) .entry-content > p,
body.page:not(.home):not(.woocommerce-page) .entry-content > h2,
body.page:not(.home):not(.woocommerce-page) .entry-content > h3,
body.page:not(.home):not(.woocommerce-page) .entry-content > h4,
body.page:not(.home):not(.woocommerce-page) .entry-content > ul,
body.page:not(.home):not(.woocommerce-page) .entry-content > ol,
body.page:not(.home):not(.woocommerce-page) .entry-content > blockquote,
body.page:not(.home):not(.woocommerce-page) .entry-content > aside,
body.page:not(.home):not(.woocommerce-page) .entry-content > details {
  width: min(100%, var(--rylan-reading));
  margin-right: auto;
  margin-left: auto;
}

body.single-post .entry-content > p,
body.page:not(.home):not(.woocommerce-page) .entry-content > p {
  color: #d2cec5 !important;
  font-size: clamp(16px, 1.2vw, 18px) !important;
  line-height: 1.84 !important;
}

body.single-post .entry-content > h2,
body.page:not(.home):not(.woocommerce-page) .entry-content > h2 {
  margin-top: clamp(48px, 6vw, 76px);
  margin-bottom: 22px;
  color: #e8d08a !important;
}

body.single-post .entry-content > h3,
body.page:not(.home):not(.woocommerce-page) .entry-content > h3 {
  margin-top: 38px;
  margin-bottom: 16px;
}

body.single-post .entry-content > figure,
body.page:not(.home):not(.woocommerce-page) .entry-content > figure {
  width: min(100%, 980px);
  margin: clamp(34px, 5vw, 58px) auto;
}

body.single-post .entry-content > figure img,
body.page:not(.home):not(.woocommerce-page) .entry-content > figure img {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 16px;
}

body.single-post .entry-content figcaption,
body.page:not(.home):not(.woocommerce-page) .entry-content figcaption {
  margin-top: 10px;
  color: #858178;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

body.single-post .entry-content a,
body.page:not(.home):not(.woocommerce-page) .entry-content a {
  text-decoration: underline !important;
  text-decoration-color: rgba(200, 167, 90, 0.52) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rylan-table-scroll {
  width: min(100%, 1100px);
  margin: 34px auto;
  overflow-x: auto;
  border: 1px solid rgba(215, 180, 106, 0.22);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.rylan-table-scroll table {
  min-width: 680px;
  margin: 0 !important;
  border: 0 !important;
}

/* ---------- Forms, account and checkout continuity ---------- */
body.rylan-blackgold-active input[type='text'],
body.rylan-blackgold-active input[type='email'],
body.rylan-blackgold-active input[type='tel'],
body.rylan-blackgold-active input[type='password'],
body.rylan-blackgold-active input[type='search'],
body.rylan-blackgold-active input[type='number'],
body.rylan-blackgold-active textarea,
body.rylan-blackgold-active select {
  min-height: 46px;
  color: #eee9df !important;
  background-color: #0e1013 !important;
  border: 1px solid rgba(215, 180, 106, 0.24) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-family: var(--rylan-font-body) !important;
}

body.rylan-blackgold-active textarea {
  padding: 13px 15px;
}

body.rylan-blackgold-active input:focus,
body.rylan-blackgold-active textarea:focus,
body.rylan-blackgold-active select:focus {
  border-color: #d3b363 !important;
  box-shadow: 0 0 0 3px rgba(211, 179, 99, 0.10) !important;
  outline: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account form.login,
body.woocommerce-account form.register,
body.woocommerce-checkout form.checkout_coupon,
body.woocommerce-checkout form.login {
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(150deg, rgba(21, 22, 26, 0.98), rgba(8, 9, 11, 0.99));
  border: 1px solid rgba(215, 180, 106, 0.23) !important;
  border-radius: 18px;
  box-shadow: var(--rylan-shadow);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 12px 14px;
  color: #b7b1a6 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  color: #ead28b !important;
  background: rgba(215, 180, 106, 0.06);
}

/* Checkout: a calmer and easier-to-scan final purchase step. */
body.woocommerce-checkout .site-content {
  padding-top: clamp(34px, 5vw, 70px);
  padding-bottom: clamp(68px, 8vw, 120px);
}

body.woocommerce-checkout .entry-title,
body.woocommerce-account .entry-title {
  margin-bottom: clamp(26px, 4vw, 46px);
  color: #f3dda0 !important;
}

@media (min-width: 982px) {
  body.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
    gap: 0 34px;
    align-items: start;
  }

  body.woocommerce-checkout form.checkout #customer_details {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
  }

  body.woocommerce-checkout form.checkout #order_review_heading {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
  }

  body.woocommerce-checkout form.checkout #order_review {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
  }
}

body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review,
body.woocommerce-account .woocommerce-MyAccount-content {
  color: #d4cfc5;
}

body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2,
body.woocommerce-checkout #order_review,
body.woocommerce-account .woocommerce-MyAccount-content {
  padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(150deg, rgba(20, 21, 25, 0.98), rgba(8, 9, 11, 0.99));
  border: 1px solid rgba(215, 180, 106, 0.22) !important;
  border-radius: 18px;
  box-shadow: var(--rylan-shadow);
}

body.woocommerce-checkout #customer_details .col-2 {
  margin-top: 22px;
}

body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
  float: none;
  width: 100%;
}

body.woocommerce-checkout #order_review_heading {
  margin: 0 0 15px;
  color: #ebd38c !important;
  font-size: clamp(26px, 3vw, 36px) !important;
}

body.woocommerce-checkout #order_review .shop_table {
  margin: 0 0 24px !important;
  border-collapse: collapse !important;
  border: 0 !important;
}

body.woocommerce-checkout #order_review .shop_table th,
body.woocommerce-checkout #order_review .shop_table td {
  padding: 15px 10px !important;
  color: #d8d3c9 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.woocommerce-checkout #payment {
  color: #d4cfc5 !important;
  background: #0c0e11 !important;
  border: 1px solid rgba(215, 180, 106, 0.18);
  border-radius: 14px !important;
}

body.woocommerce-checkout #payment ul.payment_methods,
body.woocommerce-checkout #payment div.form-row {
  padding: 20px !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.woocommerce-checkout #payment div.payment_box {
  color: #c8c2b7 !important;
  background: #15171b !important;
  border-radius: 10px !important;
}

body.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #15171b !important;
}

body.woocommerce-checkout #place_order {
  float: none !important;
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
}

body.woocommerce-checkout #payment .place-order {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.rylan-blackgold-active .select2-container--default .select2-selection--single {
  min-height: 46px;
  color: #eee9df !important;
  background: #0e1013 !important;
  border: 1px solid rgba(215, 180, 106, 0.24) !important;
  border-radius: 10px !important;
}

body.rylan-blackgold-active .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #eee9df !important;
  line-height: 44px !important;
}

body.rylan-blackgold-active .select2-dropdown,
body.rylan-blackgold-active .select2-search__field {
  color: #eee9df !important;
  background: #101216 !important;
  border-color: rgba(215, 180, 106, 0.24) !important;
}

/* Blog, search and non-product archive cards. */
body.blog .site-content,
body.search .site-content,
body.archive:not(.woocommerce-page) .site-content {
  padding-top: clamp(38px, 5vw, 72px);
  padding-bottom: clamp(70px, 8vw, 118px);
}

body.blog .site-main > .ast-row,
body.search .site-main > .ast-row,
body.archive:not(.woocommerce-page) .site-main > .ast-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.blog .site-main article,
body.search .site-main article,
body.archive:not(.woocommerce-page) .site-main article {
  height: 100%;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(20, 21, 25, 0.98), rgba(8, 9, 11, 0.99));
  border: 1px solid rgba(215, 180, 106, 0.20) !important;
  border-radius: 18px;
  box-shadow: var(--rylan-shadow-soft);
}

body.blog .site-main article .blog-layout-1,
body.search .site-main article .blog-layout-1,
body.archive:not(.woocommerce-page) .site-main article .blog-layout-1 {
  padding: clamp(20px, 2.6vw, 30px);
  border: 0 !important;
}

body.blog .post-thumb img,
body.search .post-thumb img,
body.archive:not(.woocommerce-page) .post-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

body.blog .entry-title,
body.search .entry-title,
body.archive:not(.woocommerce-page) article .entry-title {
  color: #ead28b !important;
  font-size: clamp(23px, 2.2vw, 31px) !important;
  line-height: 1.2 !important;
}

body.blog .entry-meta,
body.search .entry-meta,
body.archive:not(.woocommerce-page) .entry-meta {
  color: #8f8a80 !important;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Empty states and error pages keep visitors moving. */
body.error404 .site-content,
body.search-no-results .site-content {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 72px 22px;
  text-align: center;
}

body.error404 .ast-404-layout-1,
body.search-no-results .no-results {
  width: min(100%, 760px);
  padding: clamp(30px, 6vw, 64px);
  background: linear-gradient(150deg, rgba(22, 23, 28, 0.98), rgba(8, 9, 11, 0.99));
  border: 1px solid rgba(215, 180, 106, 0.24);
  border-radius: 22px;
  box-shadow: var(--rylan-shadow);
}

body.rylan-blackgold-active .widget_shopping_cart,
body.rylan-blackgold-active .woocommerce-mini-cart {
  color: #d7d1c6;
  background: #0c0d10 !important;
}

body.rylan-blackgold-active .woocommerce-mini-cart-item {
  padding: 13px 28px 13px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.rylan-blackgold-active .woocommerce-mini-cart-item img {
  border-radius: 8px;
}

body.rylan-blackgold-active .woocommerce-message,
body.rylan-blackgold-active .woocommerce-info,
body.rylan-blackgold-active .woocommerce-error {
  color: #e9e4da !important;
  background: linear-gradient(150deg, #17191d, #090a0c) !important;
  border: 1px solid rgba(215, 180, 106, 0.30) !important;
  border-radius: 14px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  body.home .grid.grid-4,
  body.woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.blog .site-main > .ast-row,
  body.search .site-main > .ast-row,
  body.archive:not(.woocommerce-page) .site-main > .ast-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .grid.grid-3,
  body.home .fw-grid,
  body.home .fc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 921px) {
  body.single-product .summary.entry-summary {
    margin-top: 24px;
  }

  body.single-product .guarantee-highlights {
    grid-template-columns: 1fr;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  body.admin-bar.rylan-blackgold-active .site-header,
  body.admin-bar.rylan-blackgold-active header.site-header {
    top: 46px;
  }

  body.blog .site-main > .ast-row,
  body.search .site-main > .ast-row,
  body.archive:not(.woocommerce-page) .site-main > .ast-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.woocommerce-checkout #customer_details .col-1,
  body.woocommerce-checkout #customer_details .col-2,
  body.woocommerce-checkout #order_review,
  body.woocommerce-account .woocommerce-MyAccount-content {
    padding: 20px;
  }

  .site-content > .ast-container,
  .site-primary-header-wrap,
  .site-footer .ast-builder-grid-row-container-inner {
    width: min(calc(100% - 28px), var(--rylan-content));
  }

  body.rylan-blackgold-active h1 {
    font-size: clamp(34px, 10vw, 46px) !important;
  }

  body.rylan-blackgold-active h2 {
    font-size: clamp(27px, 8vw, 36px) !important;
  }

  body.home .hero-full-bg {
    min-height: 670px !important;
    padding: 82px 20px 58px !important;
    align-items: center !important;
    background-position: 62% center !important;
  }

  body.home .hero-full-bg::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.83) 76%, rgba(0, 0, 0, 0.94) 100%);
  }

  body.home .hero-inner h1 {
    font-size: clamp(37px, 11vw, 48px) !important;
  }

  body.home .hero-inner p {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  body.home .entry-content > section:not(.hero-full-bg),
  body.home .entry-content > .flagship-wrapper {
    padding: 52px 14px !important;
  }

  body.home .grid.grid-4,
  body.woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.home .grid.grid-3,
  body.home .grid.grid-2,
  body.home .fw-grid {
    grid-template-columns: 1fr !important;
  }

  body.home .brand-card.with-logo {
    padding: 18px 12px !important;
    text-align: center;
  }

  body.home .brand-card.with-logo h3 {
    min-height: 2.7em;
    font-size: 18px !important;
    line-height: 1.35 !important;
  }

  body.home .brand-card.with-logo h3 + p {
    display: none;
  }

  body.home .brand-card.with-logo p {
    margin: 8px 0 !important;
    font-size: 11px !important;
  }

  body.home .brand-card .brand-logo {
    max-width: 112px !important;
    max-height: 54px;
  }

  body.home .best-sellers-table,
  body.home .best-sellers-table tbody {
    display: block;
    width: 100%;
  }

  body.home .best-sellers-table tr {
    display: flex;
    gap: 14px;
    width: 100%;
    padding: 4px 0 16px !important;
    overflow-x: auto;
    border: 0 !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  body.home .best-sellers-table td {
    flex: 0 0 min(82vw, 310px);
    scroll-snap-align: start;
  }

  body.home .fc-grid {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  body.home .fc-grid .fc-card {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }

  body.home .rylan-home-guide {
    width: calc(100% - 28px);
    margin: 42px auto;
    border-radius: 16px;
  }

  body.home .rylan-home-guide > summary,
  .rylan-archive-guide > details > summary {
    display: block;
    min-height: 0;
    padding: 20px 56px 20px 20px;
  }

  body.home .rylan-home-guide > summary span,
  .rylan-archive-guide > details > summary span {
    display: block;
    font-size: 22px;
    line-height: 1.25;
  }

  body.home .rylan-home-guide > summary small,
  .rylan-archive-guide > details > summary small {
    display: block;
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.5;
  }

  body.home .rylan-home-guide__content > section {
    padding: 38px 18px !important;
  }

  body.woocommerce-shop .woocommerce-products-header__title,
  body.tax-product_cat .woocommerce-products-header__title,
  body.tax-product_tag .woocommerce-products-header__title {
    margin-top: 20px;
    font-size: clamp(35px, 10vw, 46px) !important;
  }

  .rylan-archive-intro {
    margin-bottom: 22px;
  }

  body.woocommerce-shop .woocommerce-result-count,
  body.tax-product_cat .woocommerce-result-count,
  body.tax-product_tag .woocommerce-result-count,
  body.woocommerce-shop .woocommerce-ordering,
  body.tax-product_cat .woocommerce-ordering,
  body.tax-product_tag .woocommerce-ordering {
    float: none !important;
    width: 100%;
  }

  body.woocommerce-shop .woocommerce-ordering select,
  body.tax-product_cat .woocommerce-ordering select,
  body.tax-product_tag .woocommerce-ordering select {
    width: 100%;
  }

  body.woocommerce ul.products li.product {
    padding-bottom: 12px !important;
    border-radius: 13px !important;
  }

  body.woocommerce ul.products li.product img {
    margin-bottom: 11px !important;
  }

  body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 4.2em;
    padding: 0 11px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  body.woocommerce ul.products li.product .price {
    padding: 9px 11px 0;
    font-size: 12px !important;
  }

  body.woocommerce ul.products li.product .rylan-card-cta {
    min-height: 39px;
    margin: 11px 11px 0;
    padding: 9px 10px;
    font-size: 9px;
  }

  .rylan-archive-guide {
    margin-top: 42px;
  }

  .rylan-archive-guide__content {
    padding: 24px 16px !important;
  }

  body.single-product .site-content {
    padding-top: 18px;
    padding-bottom: 112px;
  }

  body.single-product .woocommerce-product-gallery,
  body.single-product .summary.entry-summary {
    border-radius: 16px;
  }

  body.single-product .summary.entry-summary {
    padding: 22px 18px !important;
  }

  body.single-product h1.product_title {
    font-size: clamp(31px, 9vw, 40px) !important;
  }

  body.single-product form.cart,
  body.single-product form.variations_form {
    padding: 16px;
  }

  body.single-product .single_add_to_cart_button {
    min-height: 50px;
  }

  body.single-product .guarantee-highlights {
    grid-template-columns: 1fr;
  }

  body.single-product .woocommerce-Tabs-panel {
    padding: 24px 17px !important;
    border-radius: 15px;
  }

  .rylan-sticky-buy {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    visibility: hidden;
    opacity: 0;
    background: rgba(11, 12, 15, 0.96);
    border: 1px solid rgba(215, 180, 106, 0.36);
    border-radius: 15px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(14px);
    transform: translateY(18px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .rylan-sticky-buy.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .rylan-sticky-buy__copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .rylan-sticky-buy__copy strong {
    display: block;
    overflow: hidden;
    color: #e7d18b;
    font-family: var(--rylan-font-heading);
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rylan-sticky-buy__copy span {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #aaa49a;
    font-family: var(--rylan-font-body);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rylan-sticky-buy__action {
    flex: 0 0 auto;
    min-height: 44px !important;
    padding: 10px 15px !important;
    font-size: 10px !important;
  }

  body.single-post .entry-title,
  body.page:not(.home):not(.woocommerce-page) .entry-title {
    margin-top: 26px;
    text-align: left;
  }

  body.single-post .entry-content > p,
  body.page:not(.home):not(.woocommerce-page) .entry-content > p {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }
}

@media (max-width: 430px) {
  body.home .grid.grid-4 {
    gap: 10px !important;
  }

  body.home .brand-card.with-logo {
    padding: 15px 9px !important;
  }

  body.home .brand-card.with-logo h3 {
    font-size: 16px !important;
  }

  body.woocommerce ul.products {
    gap: 10px !important;
  }

  body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
  }

  .rylan-sticky-buy__copy strong {
    max-width: 165px;
  }
}

/* ---------- Compatibility and touch refinements ---------- */
/* Chaty keeps its own green launcher; do not wrap it in the global gold button skin. */
body.rylan-blackgold-active .chaty-widget button.open-chaty,
body.rylan-blackgold-active .chaty-widget button.open-chaty:hover,
body.rylan-blackgold-active [id^='chaty-widget'] button.open-chaty,
body.rylan-blackgold-active [id^='chaty-widget'] button.open-chaty:hover {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  transform: none !important;
}

@media (max-width: 921px) {
  body.rylan-blackgold-active .ast-header-break-point .main-header-menu,
  body.rylan-blackgold-active.ast-header-break-point .main-header-menu {
    padding: 6px 12px 12px !important;
    background: rgba(5, 6, 8, 0.98) !important;
  }

  body.rylan-blackgold-active .ast-header-break-point .main-header-menu > .menu-item,
  body.rylan-blackgold-active.ast-header-break-point .main-header-menu > .menu-item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 52px !important;
    border-bottom: 1px solid rgba(215, 180, 106, 0.13) !important;
  }

  body.rylan-blackgold-active .ast-header-break-point .main-header-menu .menu-link,
  body.rylan-blackgold-active.ast-header-break-point .main-header-menu .menu-link {
    display: flex !important;
    min-height: 52px !important;
    align-items: center !important;
    padding: 13px 16px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  body.rylan-blackgold-active .ast-header-break-point .main-header-menu .menu-item-has-children > .menu-link,
  body.rylan-blackgold-active.ast-header-break-point .main-header-menu .menu-item-has-children > .menu-link {
    padding-right: 70px !important;
  }

  body.rylan-blackgold-active .ast-header-break-point .main-header-menu .menu-item-has-children > .menu-link .dropdown-menu-toggle,
  body.rylan-blackgold-active.ast-header-break-point .main-header-menu .menu-item-has-children > .menu-link .dropdown-menu-toggle {
    display: none !important;
  }

  body.rylan-blackgold-active .ast-header-break-point .main-header-menu .ast-menu-toggle,
  body.rylan-blackgold-active.ast-header-break-point .main-header-menu .ast-menu-toggle {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    z-index: 4 !important;
    display: grid !important;
    width: 56px !important;
    height: 44px !important;
    min-width: 56px !important;
    min-height: 44px !important;
    padding: 0 !important;
    place-items: center !important;
    color: #e5cb7e !important;
    background: rgba(215, 180, 106, 0.055) !important;
    border: 0 !important;
    border-left: 1px solid rgba(215, 180, 106, 0.18) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  body.rylan-blackgold-active .ast-header-break-point .main-header-menu .ast-menu-toggle:focus-visible,
  body.rylan-blackgold-active.ast-header-break-point .main-header-menu .ast-menu-toggle:focus-visible {
    outline-offset: -3px !important;
  }

  body.rylan-blackgold-active .ast-header-break-point .main-header-menu .sub-menu,
  body.rylan-blackgold-active.ast-header-break-point .main-header-menu .sub-menu {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 0 9px 12px !important;
    background: rgba(255, 255, 255, 0.018) !important;
    border: 0 !important;
    border-left: 1px solid rgba(215, 180, 106, 0.22) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.rylan-blackgold-active .ast-header-break-point .main-header-menu .sub-menu .menu-item,
  body.rylan-blackgold-active.ast-header-break-point .main-header-menu .sub-menu .menu-item {
    min-height: 48px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
  }

  body.rylan-blackgold-active .ast-header-break-point .main-header-menu .sub-menu .menu-link,
  body.rylan-blackgold-active.ast-header-break-point .main-header-menu .sub-menu .menu-link {
    min-height: 48px !important;
    padding: 12px 14px !important;
    border-radius: 0 !important;
    font-size: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body.rylan-blackgold-active a:focus-visible,
body.rylan-blackgold-active button:focus-visible,
body.rylan-blackgold-active input:focus-visible,
body.rylan-blackgold-active select:focus-visible,
body.rylan-blackgold-active summary:focus-visible,
body.rylan-blackgold-active [tabindex='0']:focus-visible {
  outline: 2px solid #f0d584 !important;
  outline-offset: 3px !important;
}
