/* SipPrint theme additions.
   Visual parity comes from assets/css/app.css (the compiled source stylesheet).
   This file only adds: motion helpers, WooCommerce/WordPress generated markup,
   and functional state rules. */

/* ---------------------------------------------------------------
   1. Scroll / entrance reveals (framer-motion equivalents)
   --------------------------------------------------------------- */
/* The hidden attribute must win over utility display classes
   (e.g. the Show More button carries `inline-flex`). */
[hidden] {
  display: none !important;
}

.reveal-up {
  opacity: 0;
  transform: translateY(var(--reveal-y, 40px));
  transition: opacity var(--reveal-dur, 0.7s) cubic-bezier(0.25, 0.4, 0.25, 1),
    transform var(--reveal-dur, 0.7s) cubic-bezier(0.25, 0.4, 0.25, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { --reveal-delay: calc(1 * var(--reveal-step, 0.12s)); }
.reveal-d2 { --reveal-delay: calc(2 * var(--reveal-step, 0.12s)); }
.reveal-d3 { --reveal-delay: calc(3 * var(--reveal-step, 0.12s)); }
.reveal-d4 { --reveal-delay: calc(4 * var(--reveal-step, 0.12s)); }
.reveal-d5 { --reveal-delay: calc(5 * var(--reveal-step, 0.12s)); }
.reveal-d6 { --reveal-delay: calc(6 * var(--reveal-step, 0.12s)); }
.reveal-d7 { --reveal-delay: calc(7 * var(--reveal-step, 0.12s)); }
.reveal-d8 { --reveal-delay: calc(8 * var(--reveal-step, 0.12s)); }
.reveal-d9 { --reveal-delay: calc(9 * var(--reveal-step, 0.12s)); }
.reveal-d10 { --reveal-delay: calc(10 * var(--reveal-step, 0.12s)); }
.reveal-d11 { --reveal-delay: calc(11 * var(--reveal-step, 0.12s)); }
.reveal-d12 { --reveal-delay: calc(12 * var(--reveal-step, 0.12s)); }

.reveal--offerings { --reveal-step: 0.08s; --reveal-dur: 0.6s; --reveal-y: 30px; }
.reveal--faq { --reveal-step: 0.1s; --reveal-dur: 0.6s; --reveal-y: 30px; }
.reveal--contact { --reveal-step: 0.06s; --reveal-dur: 0.6s; --reveal-y: 24px; }
.reveal--shop { --reveal-step: 0.1s; }
.reveal--cta-1 { --reveal-dur: 0.6s; --reveal-y: 20px; }
.reveal--cta-2 { --reveal-dur: 0.8s; --reveal-y: 30px; --reveal-delay: 0.1s; }
.reveal--cta-3 { --reveal-dur: 0.7s; --reveal-y: 20px; --reveal-delay: 0.25s; }
.reveal--cta-4 { --reveal-dur: 0.7s; --reveal-y: 20px; --reveal-delay: 0.4s; }

body.is-customizer .reveal-up,
body.is-customizer .theme-product-card-wrap.reveal-up {
  opacity: 1 !important;
  transform: none !important;
}

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

/* Slide-in-left (About portrait) */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.4, 0.25, 1),
    transform 0.8s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}
body.is-customizer .reveal-left {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------------------------------------------------------------
   2. Hero slideshow + parallax
   --------------------------------------------------------------- */
.theme-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.4s cubic-bezier(0.25, 0.4, 0.25, 1),
    transform 6s cubic-bezier(0.25, 0.4, 0.25, 1);
  will-change: opacity, transform;
}
.theme-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.theme-hero-parallax {
  transform-origin: center top;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .theme-hero-slide {
    transition: opacity 0.2s linear;
    transform: none;
  }
}

/* ---------------------------------------------------------------
   3. Product cards (hover motion from the source component)
   --------------------------------------------------------------- */
.theme-product-card-wrap {
  min-width: 0;
  height: 100%;
}
.theme-product-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.theme-product-card-wrap:hover .theme-product-card {
  transform: translateY(-4px);
}
.theme-product-card__img {
  transition: transform 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
  will-change: transform;
}
.theme-product-card-wrap:hover .theme-product-card__img {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .theme-product-card,
  .theme-product-card__img {
    transition: none !important;
  }
  .theme-product-card-wrap:hover .theme-product-card,
  .theme-product-card-wrap:hover .theme-product-card__img {
    transform: none !important;
  }
}
.theme-product-card__image-link {
  display: block;
}

/* ---------------------------------------------------------------
   4. Shop filters: collapsible price panel
   --------------------------------------------------------------- */
.theme-price-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s cubic-bezier(0.25, 0.4, 0.25, 1),
    opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-price-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.theme-price-panel > div {
  overflow: hidden;
}

/* Dual-handle price slider (Radix slider visual parity) */
.theme-range {
  position: relative;
  display: flex;
  width: 100%;
  touch-action: none;
  user-select: none;
  align-items: center;
  height: 1.25rem;
}
.theme-range__track {
  position: absolute;
  left: 0;
  right: 0;
  height: 0.5rem;
  background-color: hsl(var(--secondary));
  border-radius: 9999px;
  overflow: hidden;
}
.theme-range__fill {
  position: absolute;
  height: 100%;
  background-color: hsl(var(--primary));
}
.theme-range__input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}
.theme-range__input::-webkit-slider-runnable-track {
  background: transparent;
  height: 100%;
}
.theme-range__input::-moz-range-track {
  background: transparent;
  height: 100%;
}
.theme-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--primary));
  background-color: hsl(var(--background));
  cursor: pointer;
  box-shadow: 0 0 0 0 hsl(var(--ring) / 0);
  transition: box-shadow 0.15s ease;
}
.theme-range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--primary));
  background-color: hsl(var(--background));
  cursor: pointer;
}
.theme-range__input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}
.theme-range__input:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}
.theme-range__input--max { z-index: 3; }
.theme-range__input--min { z-index: 4; }

/* ---------------------------------------------------------------
   5. FAQ accordion (height animation, 0.35s)
   --------------------------------------------------------------- */
.theme-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s cubic-bezier(0.25, 0.4, 0.25, 1),
    opacity 0.35s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-faq-answer > div {
  overflow: hidden;
}
.theme-faq-answer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.theme-faq-toggle[aria-expanded="false"] .theme-faq-icon-open,
.theme-faq-toggle[aria-expanded="true"] .theme-faq-icon-closed {
  display: none;
}

/* ---------------------------------------------------------------
   6. Header states (source classes are toggled by main.js;
      this only handles the WordPress admin bar offset)
   --------------------------------------------------------------- */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
.site-header.is-solid {
  border-bottom: 1px solid hsl(var(--border));
}
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
}
.site-logo-text {
  line-height: var(--logo-height);
  display: block;
}

/* Home hero sits beneath the fixed transparent header */
:root {
  --header-height: 64px;
}
@media (min-width: 640px) {
  :root {
    --header-height: 72px;
  }
}
.theme-main {
  padding-top: 96px;
}
@media (min-width: 1024px) {
  .theme-main {
    padding-top: 112px;
  }
}
.home .theme-main {
  padding-top: 0 !important;
}

/* ---------------------------------------------------------------
   7. Cart drawer (open / close + loading state)
   --------------------------------------------------------------- */
#theme-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: hsl(var(--foreground) / 0.2);
}
body.cart-open #theme-cart-overlay {
  display: block;
  animation: fadeIn 0.6s var(--transition-smooth) forwards;
}
#theme-cart-drawer {
  display: none;
}
body.cart-open #theme-cart-drawer {
  display: flex;
  animation: slideUp 0.6s var(--transition-smooth) forwards;
}
@media (prefers-reduced-motion: reduce) {
  body.cart-open #theme-cart-overlay,
  body.cart-open #theme-cart-drawer {
    animation: none;
  }
}
#theme-cart-drawer.is-updating > * {
  opacity: 0.6;
  pointer-events: none;
}
.theme-cart-count:empty {
  display: none;
}
body.cart-open {
  overflow: hidden;
}
a.added_to_cart.wc-forward,
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward {
  display: none !important;
}

/* ---------------------------------------------------------------
   8. 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;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
  display: none !important;
}
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* ---------------------------------------------------------------
   9. Single product layout (responsive guards)
   --------------------------------------------------------------- */
.single-product .theme-product-layout,
.single-product .theme-product-gallery,
.single-product .theme-product-info {
  min-width: 0;
  max-width: 100%;
}
.single-product .theme-product-thumbnails {
  flex-wrap: wrap;
  max-width: 100%;
}
.single-product .theme-add-to-cart-area {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1rem;
}
.single-product .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}
.single-product .theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid hsl(var(--border));
}
.single-product .theme-qty-input {
  width: 3rem;
  min-width: 48px;
  text-align: center;
  border: 0;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.single-product .theme-qty-input::-webkit-outer-spin-button,
.single-product .theme-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.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: label above control */
.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
  display: block;
  width: 100%;
}
/* Attribute pills replace the native dropdowns: the selects stay in the DOM
   (hidden, not disabled) so wc-add-to-cart-variation.js keeps resolving them. */
.theme-attr-select-hidden {
  display: none !important;
}
.single-product .variations tbody td.label {
  display: none;
}
.single-product .variations {
  width: 100%;
  margin-bottom: 1.5rem;
}
.single-product .variations.theme-variations-pills {
  margin-bottom: 0;
}
.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 tbody td.label label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.single-product .variations select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0;
  outline: none;
}
.single-product .variations select:focus {
  border-color: hsl(var(--primary));
}
.single-product .woocommerce-variation-price {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.5rem;
}
.single-product .single_variation_wrap {
  margin-top: 0.5rem;
}
.single-product .reset_variations {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.single-product .stock.out-of-stock {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
}

/* Product description "Details" list (source bullet dots) */
.single-product .theme-product-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.single-product .theme-product-details li {
  position: relative;
  padding-left: 1.125rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.single-product .theme-product-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
}
.single-product .theme-product-details p {
  margin-bottom: 0.75rem;
}

/* Product gallery main image fills its 3/4 frame */
.theme-product-gallery .theme-gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-product-gallery .theme-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------------
   10. WooCommerce: notices, quantity, tables (generated markup)
   --------------------------------------------------------------- */
.woocommerce-notices-wrapper {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-family: var(--font-body);
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  list-style: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.woocommerce-error {
  border-color: hsl(var(--destructive));
  background-color: hsl(var(--destructive) / 0.06);
}
.woocommerce-message {
  border-left: 3px solid hsl(var(--primary));
}
.single-product .woocommerce-message,
.single-product .woocommerce-info {
  display: none;
}
#theme-cart-drawer .woocommerce-message {
  display: none;
}
.woocommerce-notices-wrapper a.button,
.woocommerce-message a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1rem;
  margin-left: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary-foreground));
  background-color: hsl(var(--primary));
  border-radius: 9999px;
}

/* Quantity inputs generated by WooCommerce */
.woocommerce .quantity input.qty,
.woocommerce-cart .quantity input.qty {
  width: 3rem;
  text-align: center;
  font-family: var(--font-body);
}

/* ---------------------------------------------------------------
   11. Checkout block overrides (scoped)
   --------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
  padding-top: 96px;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  body.woocommerce-checkout .site-main {
    padding-top: 112px;
  }
}
body.woocommerce-checkout .theme-page-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title,
body.theme-thankyou-page .page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  body.woocommerce-checkout .page-title,
  body.woocommerce-cart .page-title,
  body.woocommerce-account .page-title,
  body.theme-thankyou-page .page-title {
    font-size: 2.25rem;
  }
}
body.woocommerce-checkout .wc-block-checkout {
  display: block;
  font-family: var(--font-body);
  color: hsl(var(--foreground));
}
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-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large
    .wc-block-checkout__sidebar {
    order: 2;
  }
}
body.woocommerce-checkout .wc-block-components-notice-banner {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  border-radius: var(--radius);
  border-color: hsl(var(--border));
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -0.01em;
}
/* Checkout fields: identical to the design system input
   (the block's own internal padding/height is intentionally untouched). */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-address-form 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-checkout .wc-block-components-address-form__select,
body.woocommerce-checkout .wc-block-components-address-form select,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input,
body.woocommerce-checkout .wc-block-components-country-input input,
body.woocommerce-checkout .wc-block-components-state-input input {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: hsl(var(--foreground)) !important;
  background-color: hsl(var(--background)) !important;
  background-image: none !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth),
    background-color 0.3s var(--transition-smooth), color 0.3s var(--transition-smooth) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible,
body.woocommerce-checkout .wc-block-components-address-form input:focus,
body.woocommerce-checkout .wc-block-components-address-form input:focus-visible,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus-visible,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-select select:focus-visible,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus-visible,
body.woocommerce-checkout .wc-block-components-address-form__select:focus,
body.woocommerce-checkout .wc-block-components-address-form__select:focus-visible,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input:focus,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input:focus-visible,
body.woocommerce-checkout .wc-block-components-country-input input:focus,
body.woocommerce-checkout .wc-block-components-state-input input:focus {
  outline: none !important;
  border-color: hsl(var(--primary)) !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-address-form input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input::placeholder {
  color: hsl(var(--muted-foreground)) !important;
  opacity: 1 !important;
}
body.woocommerce-checkout .wc-block-components-text-input.has-error input,
body.woocommerce-checkout .wc-block-components-textarea.has-error textarea,
body.woocommerce-checkout .wc-block-components-select.has-error select,
body.woocommerce-checkout .wc-blocks-components-select.has-error .wc-blocks-components-select__select {
  border-color: hsl(var(--destructive)) !important;
}
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label,
body.woocommerce-checkout .wc-block-components-checkbox label,
body.woocommerce-checkout .wc-block-components-radio-control label {
  font-family: var(--font-body);
  color: hsl(var(--muted-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 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary-foreground)) !important;
  background-color: hsl(var(--primary)) !important;
  border-radius: 9999px;
  height: 2.75rem;
  padding: 0 2rem;
  border: 0;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  background-color: hsl(var(--primary) / 0.9) !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: hsl(var(--secondary) / 0.4);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-totals-item {
  font-family: var(--font-body);
}
body.woocommerce-checkout .wc-block-cart-item__image img {
  border-radius: 0;
}

/* Cart / account / thank-you width + alignment parity */
body.woocommerce-cart .theme-page-container,
body.woocommerce-account .theme-page-container,
body.theme-thankyou-page .theme-page-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
body.woocommerce-cart .woocommerce,
body.woocommerce-account .woocommerce {
  font-family: var(--font-body);
}
body.woocommerce-cart .woocommerce-cart-form__cart-item td,
body.woocommerce-cart .cart_totals table td,
body.woocommerce-cart .cart_totals table th {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}
body.woocommerce-cart .cart_totals h2,
body.woocommerce-account .woocommerce h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
body.woocommerce-cart .button,
body.woocommerce-account .button,
body.woocommerce .checkout-button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary-foreground));
  background-color: hsl(var(--primary));
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li {
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-bottom: 1px solid hsl(var(--border));
}

/* ---------------------------------------------------------------
   12. 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,
body.theme-thankyou-page .woocommerce-column__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-thankyou-order-received {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding: 1.5rem;
  list-style: none;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--secondary) / 0.4);
}
body.theme-thankyou-page .woocommerce-order-overview li {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
}
body.theme-thankyou-page .woocommerce-order-overview li strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  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 th,
body.theme-thankyou-page .woocommerce-order-details td {
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
  text-align: left;
  font-weight: 400;
}
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: 0.875rem;
  line-height: 1.7;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
}

/* ---------------------------------------------------------------
   13. Page title / entry content (page.php)
   --------------------------------------------------------------- */
.theme-page-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.theme-page-content {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--foreground));
}
.theme-page-content a {
  color: hsl(var(--primary));
}
.theme-page-content h1,
.theme-page-content h2,
.theme-page-content h3 {
  font-family: var(--font-display);
}

/* ---------------------------------------------------------------
   14. Contact form feedback
   --------------------------------------------------------------- */
.theme-contact-message {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.theme-contact-message.is-error {
  color: hsl(var(--destructive));
}

/* ---------------------------------------------------------------
   15. Accessibility helper for interactive price/faq buttons
   --------------------------------------------------------------- */
.theme-cat-filter:focus-visible,
.theme-price-toggle:focus-visible,
.theme-faq-toggle:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}
