/* ==========================================================================
   Cookie Lane & Co. — theme additions
   Only WordPress/WooCommerce generated markup and functional states live here.
   Layout, typography and colour for source elements come from app.css.
   ========================================================================== */

:root {
  --shadow-elevated: 0 24px 60px -20px hsl(var(--cacao) / 0.4);
  --header-height: 64px;
  --logo-height: 40px;
  --checkout-gap: 3rem;
}

@media (min-width: 1024px) {
  :root {
    --header-height: 80px;
    --logo-height: 48px;
  }
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Logo sizing — one definition for every context
   -------------------------------------------------------------------------- */
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
}

/* --------------------------------------------------------------------------
   Reveal motion (ported from the design's frame-motion variants)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y, 24px));
  filter: blur(var(--reveal-blur, 0px));
  transition: opacity var(--reveal-dur, 0.7s) cubic-bezier(0.16, 1, 0.3, 1)
      var(--reveal-delay, 0s),
    transform var(--reveal-dur, 0.7s) cubic-bezier(0.16, 1, 0.3, 1)
      var(--reveal-delay, 0s),
    filter var(--reveal-dur, 0.7s) cubic-bezier(0.16, 1, 0.3, 1)
      var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Word by word headline reveal */
.word-reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(0.05s + var(--word-index, 0) * 0.07s);
  will-change: transform, opacity;
}

.word-reveal-word.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Customizer preview + no-JS fallbacks: never leave content hidden */
body.is-customizer .reveal,
body.is-customizer .word-reveal-word,
.no-js .reveal,
.no-js .word-reveal-word {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .word-reveal-word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header.is-hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   Mobile navigation panel
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .theme-mobile-nav {
    display: block;
  }
}

.theme-nav-link:focus-visible,
.site-header button:focus-visible,
.site-header a:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   General page shell for WordPress / WooCommerce generated pages
   -------------------------------------------------------------------------- */
.theme-page-main {
  padding-top: 6rem;
}

@media (min-width: 1024px) {
  .theme-page-main {
    padding-top: 7rem;
  }
}

/* Site container used by WordPress generated content */
.site-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .site-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Product card wrappers (equal height in every listing context)
   -------------------------------------------------------------------------- */
.theme-product-card-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.theme-product-card-wrap .theme-product-card-root {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   WooCommerce generated price / single product markup
   -------------------------------------------------------------------------- */
.price del {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  margin-right: 0.35rem;
}

.price ins {
  text-decoration: none;
}

/* Quantity control */
.theme-quantity-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  overflow: hidden;
  background: hsl(var(--background));
}

.theme-quantity-wrapper .theme-qty-minus,
.theme-quantity-wrapper .theme-qty-plus {
  padding: 0.75rem 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.theme-quantity-wrapper .theme-qty-minus:hover,
.theme-quantity-wrapper .theme-qty-plus:hover {
  background: hsl(var(--secondary));
}

.theme-quantity-wrapper .theme-qty-input {
  width: 3rem;
  min-width: 3rem;
  padding: 0.75rem 0.25rem;
  text-align: center;
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: hsl(var(--foreground));
  -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;
}

.theme-quantity-wrapper .theme-qty-input:focus {
  outline: none;
}

/* Add to cart row */
.single-product .theme-add-to-cart-area {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.single-product .theme-add-to-cart-area .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}

/* Disabled add to cart */
.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,
.single_add_to_cart_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;
}

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart */
.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;
}

/* Loading state */
.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;
}

/* --------------------------------------------------------------------------
   Single product layout
   -------------------------------------------------------------------------- */
.single-product .theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .single-product .theme-product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.single-product .theme-product-gallery,
.single-product .theme-product-info {
  min-width: 0;
  max-width: 100%;
}

.theme-product-main-image {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: hsl(var(--secondary));
  aspect-ratio: 3 / 4;
  margin-bottom: 1rem;
}

.theme-product-main-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-product .theme-product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.single-product .theme-product-thumbnails button {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.75rem;
  border-width: 2px;
  border-style: solid;
  border-color: transparent;
  opacity: 0.6;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  background: hsl(var(--secondary));
  display: block;
  padding: 0;
  cursor: pointer;
}

.single-product .theme-product-thumbnails button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-product .theme-product-thumbnails button:hover {
  opacity: 1;
}

.single-product .theme-product-thumbnails button.is-active {
  border-color: hsl(var(--primary));
  opacity: 1;
}

/* Long content safety */
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in,
.single-product .theme-product-description {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Variations table */
.single-product .variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}

.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: 0 0 0.75rem 0;
}

.single-product .variations tbody td.value {
  padding: 0;
}

.single-product .variations tbody td.label label {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  display: block;
}

.single-product .variations .theme-attr-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.theme-attr-select-hidden {
  display: none !important;
}

.single-product .single_variation_wrap {
  margin-top: 0.5rem;
}

.woocommerce-variation-price {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.woocommerce-variation-availability p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.reset_variations {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   WooCommerce notices
   -------------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none;
  border: 1px solid hsl(var(--border));
  border-left: 4px solid hsl(var(--primary));
  background: hsl(var(--card));
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.woocommerce-error {
  border-left-color: hsl(var(--destructive));
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  display: none;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  margin-left: auto;
}

/* Single product: drawer provides the add-to-cart feedback */
.single-product .woocommerce-message,
.single-product .woocommerce-info {
  display: none;
}

#theme-cart-drawer .woocommerce-message {
  display: none;
}

/* --------------------------------------------------------------------------
   Side cart drawer + overlay
   -------------------------------------------------------------------------- */
#theme-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

body.cart-open #theme-cart-drawer {
  transform: translateX(0);
  visibility: visible;
}

#theme-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: hsl(var(--foreground) / 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.cart-open {
  overflow: hidden;
}

#theme-cart-drawer.is-updating > * {
  opacity: 0.6;
  pointer-events: none;
}

.theme-cart-count:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   WooCommerce archive (shop) page
   -------------------------------------------------------------------------- */
.theme-shop-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .theme-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .theme-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* Fixed-cardinality related products grid */
.theme-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .theme-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.woocommerce-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.woocommerce-pagination ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* --------------------------------------------------------------------------
   Page title used on WordPress / WooCommerce pages
   -------------------------------------------------------------------------- */
.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  color: hsl(var(--foreground));
  margin: 0 0 1.5rem;
}

/* --------------------------------------------------------------------------
   WordPress generated content inside .entry-content
   -------------------------------------------------------------------------- */
.entry-content {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-display);
  color: hsl(var(--foreground));
  font-weight: 500;
  line-height: 1.15;
  margin: 2rem 0 1rem;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Contact / inquiry form feedback
   -------------------------------------------------------------------------- */
.theme-form-status {
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-radius: 1rem;
  padding: 0.875rem 1.25rem;
  margin-top: 1rem;
}

.theme-form-status.is-error {
  border: 1px solid hsl(var(--destructive) / 0.5);
  color: hsl(var(--destructive));
}

.theme-form-status.is-success {
  border: 1px solid hsl(var(--accent) / 0.6);
  color: hsl(var(--accent-foreground));
  background: hsl(var(--accent) / 0.12);
}

/* --------------------------------------------------------------------------
   Checkout block (native WooCommerce Blocks) — full design override
   -------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 4rem;
}

body.woocommerce-checkout .wc-block-checkout {
  display: block;
  font-family: var(--font-body);
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  body.woocommerce-checkout
    .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--checkout-gap, 3rem);
    align-items: start;
  }
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border-radius: 9999px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  min-height: 3.5rem !important;
  padding: 0.75rem 2rem !important;
  border: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  background-color: hsl(var(--primary) / 0.9) !important;
}

body.woocommerce-checkout .wc-block-components-button:not(.is-link):disabled {
  opacity: 0.5 !important;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-order-summary__title,
body.woocommerce-checkout h2 {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  color: hsl(var(--foreground)) !important;
  letter-spacing: 0 !important;
  font-size: 1.5rem !important;
  line-height: 1.2 !important;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  background-color: hsl(var(--background)) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 9999px !important;
  color: hsl(var(--foreground)) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
}

body.woocommerce-checkout .wc-block-components-textarea textarea {
  border-radius: 1.5rem !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
  border-color: hsl(var(--primary)) !important;
  outline: none !important;
  box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
  color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout label,
body.woocommerce-checkout .wc-block-components-checkbox__label,
body.woocommerce-checkout .wc-block-components-radio-control__label {
  font-family: var(--font-body) !important;
  color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
  border-radius: 1rem !important;
  border-color: hsl(var(--border)) !important;
  background: hsl(var(--card)) !important;
  color: hsl(var(--foreground)) !important;
  font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
  font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-product-price {
  color: hsl(var(--foreground)) !important;
  font-weight: 600 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step__container {
  background: transparent !important;
}

/* Cart & account pages share the checkout width treatment */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 4rem;
}

body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content,
body.theme-thankyou-page .entry-content {
  max-width: 100%;
}

body.woocommerce-cart .wc-block-cart {
  font-family: var(--font-body);
}

body.woocommerce-cart .wc-block-components-button:not(.is-link) {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border-radius: 9999px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  border: 0 !important;
}

body.woocommerce-account .woocommerce {
  font-family: var(--font-body);
  color: hsl(var(--foreground));
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* --------------------------------------------------------------------------
   Thank you page
   -------------------------------------------------------------------------- */
body.theme-thankyou-page {
  overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
  font-family: var(--font-body);
  color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  color: hsl(var(--foreground));
  padding: 0 0 1rem 0;
  margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none;
  padding: 1.5rem;
  margin: 0 0 2rem;
  display: grid;
  gap: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  background: hsl(var(--card));
}

body.theme-thankyou-page .woocommerce-order-overview li {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  border: 0;
  padding: 0;
  margin: 0;
  float: none;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid hsl(var(--border));
  text-align: left;
  vertical-align: top;
  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;
}

body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  font-style: normal;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: hsl(var(--card));
}

body.theme-thankyou-page .woocommerce-customer-details h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   WordPress accessibility helpers
   -------------------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: hsl(var(--background));
  border-radius: 3px;
  box-shadow: 0 0 2px 2px hsl(var(--foreground) / 0.6);
  clip: auto !important;
  clip-path: none;
  color: hsl(var(--foreground));
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Admin bar offset */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Product card lift on hover (motion equivalent of the design's spring hover) */
@media (hover: hover) {
  .theme-product-card:hover article {
    transform: translateY(-6px);
  }
}

/* --------------------------------------------------------------------------
   Section decoration + component transitions
   -------------------------------------------------------------------------- */
.theme-banner-glow {
  background: radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%);
  filter: blur(80px);
}

[data-owner-slide] {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-owner-slide].is-active {
  opacity: 1;
  transform: scale(1);
}

[data-faq-panel] {
  transition: height 0.4s cubic-bezier(0.25, 0.4, 0.25, 1),
    opacity 0.4s cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* Hero copy intro state */
[data-hero-eyebrow],
[data-hero-copy],
[data-hero-buttons] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-customizer [data-hero-eyebrow],
body.is-customizer [data-hero-copy],
body.is-customizer [data-hero-buttons] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-hero-eyebrow],
  [data-hero-copy],
  [data-hero-buttons],
  [data-owner-slide],
  [data-faq-panel] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Multi-paragraph product descriptions */
.theme-product-description p + p {
  margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   Classic WooCommerce cart / account markup (fallback for shortcode pages)
   -------------------------------------------------------------------------- */
body.woocommerce-cart .woocommerce {
  font-family: var(--font-body);
  color: hsl(var(--foreground));
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .cross-sells {
  margin-bottom: 2rem;
}

body.woocommerce-cart table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  overflow: hidden;
  background: hsl(var(--card));
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  text-align: left;
  font-size: 0.875rem;
  vertical-align: middle;
}

body.woocommerce-cart table.shop_table th {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}

body.woocommerce-cart table.shop_table img {
  width: 72px;
  height: auto;
  border-radius: 0.75rem;
}

body.woocommerce-cart .quantity input.qty {
  width: 4.5rem;
  min-height: 2.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  padding: 0 0.75rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
}

body.woocommerce-cart .cart_totals h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

body.woocommerce-cart .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

body.woocommerce-cart .coupon input.input-text {
  min-height: 2.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  padding: 0 1rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
}

body.woocommerce-cart .button,
body.woocommerce-account .button,
body.woocommerce-cart .woocommerce-cart-form .button,
body.woocommerce-cart .checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.5rem;
  border: 0;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.woocommerce-cart .button:hover,
body.woocommerce-account .button:hover {
  background: hsl(var(--primary) / 0.9);
}

body.woocommerce-cart .button[name="update_cart"] {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register,
body.woocommerce-account .woocommerce-form {
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: hsl(var(--card));
}

body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row textarea,
body.woocommerce-account .woocommerce form .form-row select {
  min-height: 2.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  padding: 0 1rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
}

/* Variation UI: keep the design's single price, hide WooCommerce extras */
.single-product .single_variation_wrap .woocommerce-variation-price,
.single-product .variations .reset_variations,
.single-product .woocommerce-variation-availability p.in-stock {
  display: none !important;
}

/* Logo sizing on small screens (header) and in the footer */
@media (max-width: 1023px) {
  .site-header .site-logo-img {
    height: calc(var(--logo-height) * 0.8333) !important;
  }
}

.site-logo-footer {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
}

/* Policies page hero spacing (matches the design's 128px / 160px offset) */
@media (min-width: 1024px) {
  .theme-policies-hero {
    padding-top: 3rem;
    padding-bottom: 5rem;
  }
}

/* Force the logo to a flat white on dark surfaces */
.site-logo-invert {
  filter: brightness(0) invert(1);
}
