/* ==========================================================================
   Legendary Nicknames — theme layer
   Only rules for markup with no source equivalent (WordPress / WooCommerce
   output, functional state hooks) plus the small utility shims WordPress
   needs. Source components keep the compiled source classes from app.css.
   ========================================================================== */

:root {
  --header-height: 144px; /* ticker 36px + nav 80px */
  --admin-bar-offset: 0px;
}

@media (max-width: 1199px) {
  :root {
    --header-height: 116px;
  }
}

/* WordPress admin bar (Customizer preview + logged-in front end) */
body.admin-bar {
  --admin-bar-offset: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    --admin-bar-offset: 46px;
  }
}

body.admin-bar .ln-header {
  top: var(--admin-bar-offset);
}

body.admin-bar #theme-mobile-menu {
  padding-top: calc(7rem + var(--admin-bar-offset));
}

body.customize-preview.admin-bar .ln-header {
  top: var(--admin-bar-offset);
}

html.theme-menu-open,
html.theme-cart-open,
html.theme-modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.theme-attr-select-hidden {
  display: none !important;
}

.theme-visually-hidden {
  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;
}

/* --------------------------------------------------------------------------
   Reveal / motion fallbacks (source animations live in app.css)
   -------------------------------------------------------------------------- */

html:has(body.is-customizer) {
  scroll-behavior: auto !important;
}

body.is-customizer {
  scroll-behavior: auto !important;
}

.no-js [data-reveal],
.no-js [data-card],
.no-js [data-reveal-words],
body.is-customizer [data-reveal],
body.is-customizer [data-card] {
  opacity: 1 !important;
  transform: none !important;
}

.no-js .w-word > span,
body.is-customizer .w-word > span {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-card] {
    opacity: 1 !important;
    transform: none !important;
  }
}

.shop-in {
  animation: shopIn 0.3s ease;
}

@keyframes shopIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Primary navigation (WP menu + fallback)
   -------------------------------------------------------------------------- */

.theme-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.theme-nav-list > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.theme-nav-list .ln-section-button,
.theme-nav-list a.ln-section-button {
  display: inline-flex;
  align-items: center;
}

#theme-site-header .theme-header-nav .theme-nav-list {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

#theme-mobile-menu .theme-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

#theme-mobile-menu .theme-nav-list .ln-section-button {
  justify-content: flex-start;
  font-size: 24px;
  text-align: left;
}

.theme-header-nav {
  display: none;
}

@media (min-width: 1200px) {
  .theme-header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Mobile menu panel */
.ln-mobile-panel .ln-section-button {
  justify-content: flex-start;
  font-size: 24px;
  text-align: left;
}

@media (min-width: 1200px) {
  .ln-mobile-panel {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Header state (source toggles .ln-header-solid, this only handles the
   inner-page variant which the source expresses with the Offset wrapper)
   -------------------------------------------------------------------------- */

.ln-header.ln-header-solid {
  color: hsl(var(--ink));
}

/* --------------------------------------------------------------------------
   Scroll offset compensation on inner pages (source Offset wrapper)
   -------------------------------------------------------------------------- */

.theme-page-offset {
  padding-top: 64px;
}

@media (min-width: 768px) {
  .theme-page-offset {
    padding-top: 68px;
  }
}

@media (min-width: 1200px) {
  .theme-page-offset {
    padding-top: 72px;
  }
}

body.home .theme-page-offset {
  padding-top: 0;
}

/* Inner pages sit below the fixed header (ticker + nav). */
body.theme-inner-page .site-main,
body.theme-inner-page .theme-shop-archive,
body.single-product main.product,
body.woocommerce-cart main,
body.woocommerce-checkout main {
  padding-top: calc(var(--header-height) + var(--admin-bar-offset, 0px));
  overflow-x: clip;
  max-width: 100%;
}

body.single-product {
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   WordPress core: alignment, captions, screen-reader text
   -------------------------------------------------------------------------- */

.alignwide {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.alignfull {
  width: 100%;
  max-width: 100%;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  font-size: 14px;
  line-height: 1.5;
  color: hsl(var(--muted-ink));
  margin-top: 0.5rem;
}

.sticky .ln-card-post::before {
  content: "";
}

.screen-reader-text,
.sr-only-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  clip: auto;
  background: hsl(var(--paper));
  color: hsl(var(--ink));
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

.post-password-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.post-password-form input[type="password"] {
  height: 48px;
  width: 100%;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0 16px;
  color: hsl(var(--ink));
  font-size: 16px;
  outline: none;
  margin-bottom: 1rem;
}

.post-password-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 35px;
  border: 0;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: var(--gradient-berry);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   WooCommerce: archive toolbar, ordering, notices, pagination
   -------------------------------------------------------------------------- */

.theme-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.woocommerce-result-count {
  font-size: 14px;
  line-height: 1.5;
  color: hsl(var(--muted-ink));
  margin: 0;
}

.woocommerce-ordering {
  margin: 0;
}

.woocommerce-ordering select {
  height: 40px;
  border-radius: 35px;
  border: 1px solid var(--line);
  background-color: #fff;
  color: hsl(var(--ink));
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  padding: 0 1rem;
  padding-right: 2.75rem;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23211C17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.125rem;
}

.woocommerce-ordering select:focus {
  border-color: hsl(var(--brick));
  box-shadow: 0 0 0 3px #f3e2b8;
}

.woocommerce-pagination {
  margin-top: 3rem;
}

.woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-pagination ul li {
  margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 35px;
  border: 1px solid var(--line);
  background: #fff;
  color: hsl(var(--ink));
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
  background: hsl(var(--ink));
  border-color: hsl(var(--ink));
  color: #fff;
}

/* Notices: styled to match the source palette, hidden only where the theme
   already gives feedback (single product + inside the drawer). */
.woocommerce-notices-wrapper {
  width: 100%;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: hsl(var(--ink));
  font-size: 15px;
  line-height: 1.5;
  list-style: none;
}

.woocommerce-error {
  border-color: rgba(178, 69, 47, 0.35);
  background: #fdf3f0;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  display: none;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 35px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--gradient-berry);
  border: 0;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
  display: none;
}

#theme-cart-drawer .woocommerce-message,
#theme-cart-drawer .woocommerce-info {
  display: none;
}

/* Hide WooCommerce's injected "View cart" link after AJAX add */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
  display: none !important;
}

/* --------------------------------------------------------------------------
   WooCommerce: add-to-cart button states
   -------------------------------------------------------------------------- */

.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}

.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
}

.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
  display: none !important;
}

/* WooCommerce-generated price fragments inherit the source card styles. */
.ln-shop-price .price,
.ln-shop-price .price ins,
.ln-shop-price ins {
  text-decoration: none;
  background: none;
}

.ln-shop-price .price del,
.ln-shop-price del {
  opacity: 0.6;
  font-weight: 400;
  margin-right: 0.35rem;
}

.theme-product-card-wrap {
  height: 100%;
}

/* --------------------------------------------------------------------------
   Single product page
   -------------------------------------------------------------------------- */

.single-product .theme-product-layout {
  min-width: 0;
}

.single-product .theme-product-gallery,
.single-product .theme-product-info {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .single-product .theme-product-info {
    position: sticky;
    top: calc(var(--header-height) + var(--admin-bar-offset, 0px) + 1rem);
    align-self: start;
  }
}

.single-product .container-wide {
  min-width: 0;
  max-width: 100%;
}

.theme-product-main-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 2rem;
  background-color: hsl(var(--nude));
  border: 0;
  padding: 0;
}

.theme-product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms ease;
}

.theme-product-main-img:hover img {
  transform: scale(1.05);
}

.single-product .theme-product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  max-width: 100%;
}

.single-product .theme-product-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: hsl(var(--nude));
  border: 1px solid hsl(var(--nude));
  padding: 0;
  cursor: pointer;
  transition: transform 300ms ease, box-shadow 300ms ease,
    border-color 300ms ease;
}

.single-product .theme-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-product .theme-product-thumb:hover {
  transform: translateY(-4px);
}

.single-product .theme-product-thumb.is-active {
  box-shadow: 0 0 0 2px hsl(var(--brick));
  border-color: hsl(var(--brick));
}

.single-product .theme-product-category-chip svg {
  width: 14px;
  height: 14px;
}

.single-product .posted_in {
  overflow-wrap: break-word;
  word-break: break-word;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description {
  overflow-wrap: break-word;
  word-break: break-word;
}

.theme-product-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.02;
  margin: 20px 0;
  color: hsl(var(--foreground));
  text-wrap: balance;
}

@media (min-width: 768px) {
  .theme-product-title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .theme-product-title {
    font-size: 3.1rem;
  }
}

.theme-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.theme-product-price-row .price {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  color: hsl(var(--strawberry));
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  background: none;
}

.theme-product-price-row .price del {
  font-size: 0.55em;
  opacity: 0.55;
  font-weight: 400;
  margin-right: 0.5rem;
}

.theme-product-price-row .price ins {
  text-decoration: none;
  background: none;
}

.theme-product-price-row .theme-price-currency {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--cocoa));
}

.theme-product-summary {
  font-size: 16px;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.theme-product-summary p {
  margin-bottom: 1rem;
}

.theme-product-summary p:last-child {
  margin-bottom: 0;
}

.theme-stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--brick-deep));
  margin-bottom: 1rem;
}

/* Quantity + button row */
.single-product .theme-add-to-cart-area {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.single-product .theme-add-to-cart-area .theme-quantity-wrapper {
  background-color: hsl(var(--cream));
  border: 1px solid hsl(var(--nude));
  border-radius: 35px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.theme-quantity-wrapper .theme-qty-minus,
.theme-quantity-wrapper .theme-qty-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 0;
  color: hsl(var(--ink));
  cursor: pointer;
  transition: background-color 200ms ease;
}

.theme-quantity-wrapper .theme-qty-minus:hover,
.theme-quantity-wrapper .theme-qty-plus:hover {
  background-color: hsl(var(--blush));
}

.theme-quantity-wrapper .theme-qty-minus svg,
.theme-quantity-wrapper .theme-qty-plus svg {
  width: 14px;
  height: 14px;
}

.theme-quantity-wrapper .theme-qty-input,
.theme-quantity-wrapper input.qty {
  width: 48px;
  min-width: 48px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--ink));
  padding: 0.75rem 0;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.theme-quantity-wrapper .theme-qty-input::-webkit-outer-spin-button,
.theme-quantity-wrapper .theme-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.single-product .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}

.single-product .theme-product-secondary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .single-product .theme-product-secondary {
    flex-direction: row;
  }

  .single-product .theme-product-secondary > * {
    flex: 1 1 0%;
  }
}

.theme-product-secondary .btn {
  width: 100%;
}

/* Details accordion */
.theme-product-details {
  margin-top: 2.5rem;
  border-top: 1px solid hsl(var(--nude));
}

.theme-product-details-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: hsl(var(--ink));
}

.theme-product-details-toggle .theme-details-label {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 300ms ease;
}

.theme-product-details-toggle:hover .theme-details-label {
  color: hsl(var(--raspberry));
}

.theme-product-details-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 300ms ease;
}

.theme-product-details-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.theme-product-details-panel {
  padding-bottom: 1.5rem;
  animation: fadeIn 0.6s ease forwards;
}

.theme-product-details-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.theme-product-details-panel li {
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  color: hsl(var(--muted-foreground));
}

.theme-product-details-panel li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.625rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  background-color: hsl(var(--raspberry));
}

/* Related products */
.theme-related-products {
  padding-block: 5rem;
  border-top: 1px solid hsl(var(--nude));
}

.theme-related-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .theme-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .theme-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.theme-related-heading {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  color: hsl(var(--foreground));
  margin-top: 1rem;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .theme-related-heading {
    font-size: 48px;
  }
}

/* Variable product: variations table reflow (label above control) */
.single-product .variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
  display: block;
  width: 100%;
}

.single-product .variations tbody td.label {
  padding-bottom: 0.25rem;
}

.single-product .variations tbody td.value {
  padding-top: 0;
  padding-bottom: 1rem;
}

.single-product .variations td.label label {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
}

.single-product .reset_variations {
  display: inline-block;
  font-size: 13px;
  color: hsl(var(--muted-ink));
  text-decoration: underline;
  margin-top: 0.25rem;
}

/* Attribute pills */
.theme-variation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.theme-variation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1.25rem;
  border-radius: 35px;
  border: 1px solid rgba(33, 28, 23, 0.24);
  background: transparent;
  color: hsl(var(--ink));
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease,
    border-color 300ms ease;
}

.theme-variation-pill:hover {
  border-color: hsl(var(--ink));
}

.theme-variation-pill.is-active {
  background: hsl(var(--ink));
  border-color: hsl(var(--ink));
  color: #fff;
}

.theme-variation-pill.is-unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.single-product .single_variation_wrap {
  margin-top: 0.5rem;
}

.single-product .woocommerce-variation-price {
  margin-bottom: 1rem;
}

.single-product .woocommerce-variation-price .price {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  color: hsl(var(--strawberry));
}

.single-product .woocommerce-variation-description p {
  font-size: 15px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Product card wrapper (WooCommerce loop context only)
   -------------------------------------------------------------------------- */

.theme-product-card-wrap {
  height: 100%;
}

/* --------------------------------------------------------------------------
   Shop archive layout
   -------------------------------------------------------------------------- */

.theme-shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 1.5rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .theme-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .theme-shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Side cart drawer
   -------------------------------------------------------------------------- */

#theme-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 49;
  background-color: hsla(26, 57%, 16%, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

body.cart-open #theme-cart-overlay {
  opacity: 1;
  visibility: visible;
}

#theme-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background-color: hsl(var(--cream));
  box-shadow: var(--shadow-elevated);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 400ms var(--ease-out), visibility 400ms;
  overflow: hidden;
}

body.cart-open #theme-cart-drawer {
  transform: none;
  visibility: visible;
}

#theme-cart-drawer.is-updating > * {
  opacity: 0.6;
  pointer-events: none;
}

.theme-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--nude));
}

.theme-cart-drawer__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  color: hsl(var(--foreground));
  margin: 0;
}

.theme-cart-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: hsl(var(--ink));
  cursor: pointer;
  transition: background-color 300ms ease, transform 300ms ease;
}

.theme-cart-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
}

.theme-cart-close svg {
  width: 20px;
  height: 20px;
}

.theme-cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.theme-cart-empty__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background-color: hsl(var(--blush));
  color: hsl(var(--raspberry));
}

.theme-cart-empty__icon svg {
  width: 32px;
  height: 32px;
}

.theme-cart-empty p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.theme-cart-items {
  flex: 1;
  overflow: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.theme-cart-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 1rem;
  transition: background-color 200ms ease;
}

.theme-cart-item:hover {
  background-color: hsl(var(--vanilla));
}

.theme-cart-item__thumb {
  width: 80px;
  height: 96px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background-color: hsl(var(--nude));
  display: block;
}

.theme-cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.theme-cart-item__thumb:hover img {
  transform: scale(1.05);
}

.theme-cart-item__body {
  flex: 1;
  min-width: 0;
}

.theme-cart-item__name {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px;
  line-height: 1.375;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 200ms ease;
}

.theme-cart-item__name:hover {
  color: hsl(var(--raspberry));
}

.theme-cart-item__price {
  font-size: 14px;
  font-weight: 600;
  margin-top: 0.25rem;
  color: hsl(var(--strawberry));
}

.theme-cart-item__meta {
  font-size: 13px;
  color: hsl(var(--muted-ink));
  margin-top: 0.25rem;
}

.theme-cart-item__meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-cart-item__meta-list li + li {
  margin-top: 0.15rem;
}

.theme-cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.theme-cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--nude));
  background: transparent;
  color: hsl(var(--ink));
  cursor: pointer;
  transition: background-color 200ms ease;
}

.theme-cart-qty-btn:hover {
  background-color: hsl(var(--blush));
}

.theme-cart-qty-btn svg {
  width: 12px;
  height: 12px;
}

.theme-cart-item__qty {
  font-size: 14px;
  width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.theme-cart-remove {
  margin-left: auto;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 200ms ease;
}

.theme-cart-remove:hover {
  color: hsl(var(--strawberry));
}

.theme-cart-drawer__foot {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid hsl(var(--nude));
}

.theme-cart-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.theme-cart-subtotal__label {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--foreground));
}

.theme-cart-subtotal__value {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  color: hsl(var(--strawberry));
}

.theme-cart-subtotal__value .amount {
  font: inherit;
  color: inherit;
}

.theme-cart-empty-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 36px;
  border: 0;
  border-radius: 35px;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 200ms ease;
}

.theme-cart-empty-btn svg {
  width: 16px;
  height: 16px;
}

.theme-cart-empty-btn:hover {
  color: hsl(var(--strawberry));
}

/* --------------------------------------------------------------------------
   Cart badge (empty state hides, source behaviour)
   -------------------------------------------------------------------------- */

.theme-cart-count:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   Page content shell for Checkout / Cart / Account (Blocks)
   -------------------------------------------------------------------------- */

.theme-page-shell {
  background-color: hsl(var(--paper));
}

.theme-page-shell__head {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.theme-page-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

@media (min-width: 810px) {
  .theme-page-title {
    font-size: 48px;
  }
}

@media (min-width: 1200px) {
  .theme-page-title {
    font-size: 60px;
  }
}

.theme-page-shell__intro {
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--muted-ink));
  max-width: 42rem;
}

body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
  max-width: 100%;
}

/* Checkout/Cart blocks use alignwide (1120px centered); flush with page shell title/intro. */
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout,
body.woocommerce-checkout .entry-content .wc-block-checkout.alignwide,
body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart,
body.woocommerce-cart .entry-content .wc-block-cart.alignwide {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
  padding-top: calc(var(--header-height) + var(--admin-bar-offset, 0px));
  padding-bottom: 4rem;
}

/* WooCommerce Blocks: strip default styling, adopt source values */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-cart .wc-block-components-select select {
  background-color: hsl(var(--vanilla)) !important;
  border: 1px solid hsl(var(--nude)) !important;
  border-radius: 12px !important;
  color: hsl(var(--foreground)) !important;
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-cart .wc-block-components-select select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.75rem !important;
  background-image: none !important;
}

/* Blocks ship their own .wc-blocks-components-select__expand icon; avoid a second theme chevron. */
body.woocommerce-checkout .wc-blocks-components-select__expand,
body.woocommerce-cart .wc-blocks-components-select__expand {
  width: 1.125rem;
  height: 1.125rem;
  right: 1rem;
  pointer-events: none;
}

body.woocommerce-checkout .wc-blocks-components-select__expand path,
body.woocommerce-cart .wc-blocks-components-select__expand path {
  fill: hsl(var(--foreground));
}

select.input-k.theme-form-select,
.theme-form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.75rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23211C17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1.125rem !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-cart .wc-block-components-text-input input:focus {
  border-color: hsl(var(--brick)) !important;
  box-shadow: 0 0 0 3px #f3e2b8 !important;
  outline: none !important;
}

body.woocommerce-checkout .wc-block-checkout {
  display: block;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    flex: 1 1 calc(50% - 1rem);
    width: calc(50% - 1rem);
  }
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: hsl(var(--cream));
  border: 1px solid hsl(var(--nude));
  border-radius: 1.75rem;
  padding: 1.5rem;
}

@media (min-width: 810px) {
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    padding: 2rem;
  }
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button {
  border-radius: 35px !important;
  background: var(--gradient-berry) !important;
  color: #fff !important;
  border: 0 !important;
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  height: 48px !important;
  box-shadow: var(--shadow-gold) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-cart .wc-block-components-notice-banner {
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  color: hsl(var(--ink)) !important;
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  font-size: 15px !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner.is-error,
body.woocommerce-cart .wc-block-components-notice-banner.is-error {
  border-color: rgba(178, 69, 47, 0.35) !important;
  background: #fdf3f0 !important;
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart-items {
  width: 100%;
}

body.woocommerce-cart .wc-block-cart {
  max-width: 100%;
}

body.woocommerce-cart .wc-block-cart-items__row {
  border-radius: 1rem;
}

body.woocommerce-cart .wc-block-cart__submit-button {
  width: 100%;
}

body.woocommerce-cart .wc-block-components-totals-coupon__button {
  border-radius: 35px !important;
}

/* WooCommerce Blocks product grids (empty-cart suggestions, "New in store") */
body.woocommerce-cart .wc-block-product-template,
body.woocommerce-checkout .wc-block-product-template {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

body.woocommerce-cart .wc-block-product,
body.woocommerce-checkout .wc-block-product {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0.625rem;
}

body.woocommerce-cart .wc-block-product img,
body.woocommerce-checkout .wc-block-product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

body.woocommerce-cart .wc-block-product .wp-block-post-title,
body.woocommerce-cart .wc-block-product h2,
body.woocommerce-checkout .wc-block-product h2 {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0.25rem 0 0;
  color: hsl(var(--ink));
}

body.woocommerce-cart .wc-block-product .price,
body.woocommerce-checkout .wc-block-product .price {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  color: hsl(var(--muted-ink));
}

body.woocommerce-cart .wc-block-product .wp-block-button__link,
body.woocommerce-cart .wc-block-product .add_to_cart_button,
body.woocommerce-checkout .wc-block-product .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-radius: 35px;
  background: hsl(var(--ink));
  color: #fff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
}

body.woocommerce-cart .wc-block-cart__empty-cart-wrapper,
body.woocommerce-checkout .wc-block-checkout__no-items {
  text-align: center;
}

body.woocommerce-cart .wc-block-cart__empty-cart-wrapper .wc-block-components-button,
body.woocommerce-checkout .wc-block-components-button {
  border-radius: 35px !important;
}

body.woocommerce-cart .wc-block-cart__empty-cart-wrapper .wp-block-heading,
body.woocommerce-cart .wc-block-cart__empty-cart-wrapper h2,
body.woocommerce-cart .wc-block-products__heading,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: hsl(var(--ink));
}

/* --------------------------------------------------------------------------
   Thank you page
   -------------------------------------------------------------------------- */

body.theme-thankyou-page {
  overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: hsl(var(--foreground));
  padding: 0 0 1rem 0;
  font-size: 26px;
  line-height: 1.15;
}

body.theme-thankyou-page .woocommerce-order > p {
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--muted-ink));
}

body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 1.5rem;
  border-radius: 1.75rem;
  background: hsl(var(--cream));
  border: 1px solid hsl(var(--nude));
}

body.theme-thankyou-page .woocommerce-order-overview li {
  flex: 1 1 160px;
  margin: 0;
  border: 0;
  padding: 0;
  font-size: 14px;
  color: hsl(var(--muted-ink));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  color: hsl(var(--ink));
}

body.theme-thankyou-page .woocommerce-order-details table,
body.theme-thankyou-page .woocommerce-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 15px;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem;
  border-bottom: 1px solid hsl(var(--nude));
  text-align: left;
  overflow-wrap: break-word;
}

body.theme-thankyou-page .woocommerce-order-details tfoot th {
  text-align: left;
}

body.theme-thankyou-page .woocommerce-order-details tfoot td {
  text-align: right;
}

body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  border: 1px solid hsl(var(--nude));
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
}

body.theme-thankyou-page .woocommerce-thankyou-order-received {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: hsl(var(--ink));
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Simple WordPress pages (about, contact, generic)
   -------------------------------------------------------------------------- */

.theme-prose {
  font-size: 17px;
  line-height: 1.7;
  color: hsl(var(--muted-ink));
  max-width: 46rem;
}

.theme-prose h2,
.theme-prose h3 {
  font-family: "Fraunces", Georgia, serif;
  color: hsl(var(--ink));
  margin: 2rem 0 0.75rem;
}

.theme-prose a {
  color: hsl(var(--brick));
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Free chapter reader + legal dialogs (Radix-equivalent markup)
   -------------------------------------------------------------------------- */

.theme-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.theme-dialog[data-state="open"] {
  opacity: 1;
  visibility: visible;
}

.theme-dialog__panel {
  position: relative;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 38px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 32rem;
  max-height: 85svh;
  overflow-y: auto;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 200ms ease, transform 200ms ease;
}

.theme-dialog[data-state="open"] .theme-dialog__panel {
  opacity: 1;
  transform: none;
}

@media (min-width: 640px) {
  .theme-dialog__panel {
    border-radius: 0.5rem;
  }
}

.theme-dialog__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: 0;
  background: transparent;
  border-radius: 0.125rem;
  padding: 0;
  color: hsl(var(--ink));
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 200ms ease;
  line-height: 0;
}

.theme-dialog__close:hover {
  opacity: 1;
}

.theme-dialog__close svg {
  width: 16px;
  height: 16px;
}

.theme-dialog--reader .theme-dialog__panel {
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: 85svh;
  overflow-y: auto;
  border: 0;
  display: block;
}

.theme-dialog--reader .ln-reader {
  padding: 32px;
  background: var(--ln-light);
  color: hsl(var(--ink));
}

.theme-dialog--reader .theme-dialog__panel > .btn {
  margin-top: 1.5rem;
}

.theme-dialog--legal .theme-dialog__panel {
  background: hsl(var(--paper));
  color: hsl(var(--ink));
  max-width: 36rem;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid hsl(var(--border));
}

.theme-legal-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  text-align: left;
  margin: 0;
}

.theme-legal-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.theme-legal-body p {
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--muted-ink));
  margin: 0;
}

.theme-legal-body a {
  color: hsl(var(--brick));
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Contact form output states (AJAX)
   -------------------------------------------------------------------------- */

.theme-form-status {
  font-size: 14px;
  line-height: 1.5;
  color: hsl(var(--ink));
}

.theme-form-error {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 0.25rem;
  color: hsl(var(--brick-deep));
}

.theme-field-invalid .input-k {
  border-color: hsl(var(--brick-deep));
}

/* --------------------------------------------------------------------------
   Category filter (JS-only, source behaviour)
   -------------------------------------------------------------------------- */

.shop-products-grid.filtered > * {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Footer link list (WP menu output inside the source footer grid)
   -------------------------------------------------------------------------- */

.theme-footer-menu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.theme-footer-menu-list .ln-section-button {
  justify-content: flex-start;
  padding-left: 0;
}

.theme-404-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--muted));
  text-align: center;
  padding: 4rem 1.25rem;
}

.theme-404-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

/* Brand brick / gold buttons: keep legible text when Tailwind hover utilities are present */
a.btn.btn-brick:hover,
button.btn.btn-brick:hover {
  color: #fff;
}

a.btn.ln-gold-button:hover,
button.btn.ln-gold-button:hover {
  color: var(--ln-navy);
}

/* --------------------------------------------------------------------------
   Clickable affordances
   -------------------------------------------------------------------------- */

a[href],
button:not(:disabled),
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
select:not(:disabled),
label[for],
button.chip,
a.chip,
.ln-section-button,
[data-section-link],
[data-cart-open],
[data-cart-close],
[data-menu-open],
[data-dialog-open],
[data-dialog-close],
.theme-dialog__close,
.theme-cart-close,
.reset_variations,
.woocommerce-loop-product__link,
.woocommerce a.button,
.woocommerce button.button,
.wc-block-components-button {
  cursor: pointer;
}

/* Decorative chips / badges (section eyebrows, category tags) */
span.chip,
span.tag,
.ln-showing,
.ln-topic-pill,
.ln-ticket-badge,
span.label {
  cursor: default;
}

button:disabled,
input:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

.theme-404-text {
  font-size: 20px;
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}

.theme-404-link {
  color: hsl(var(--primary));
  text-decoration: underline;
}
