/*
 * The Fine Print Studio — WooCommerce stylesheet
 * Full replacement for WooCommerce's default CSS.
 * Covers: Cart · Checkout · My Account · Shop · Single Product
 *
 * CSS custom properties (set dynamically from Customizer via wp_head):
 *   --fps-primary   button/heading colour   default #2B2925
 *   --fps-accent    link/price colour       default #5e7483
 *   --fps-font      font family stack
 *
 * Palette constants (not Customizer-controlled):
 *   bg page    #F7F5F2   bg card  #F0EDE7   bg muted  #E8E4DB
 *   text body  #2B2925   text sub #9a9690
 *   border     rgba(43,41,37,.12)
 */

/* ── Defaults for CSS vars (fallback when wp_head hasn't run yet) ─── */
:root {
  --fps-primary: #2B2925;
  --fps-accent:  #5e7483;
  --fps-font:    'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body.fps-woo-page {
  margin: 0; padding: 0;
  background: #F7F5F2;
  color: var(--fps-primary);
  font-family: var(--fps-font);
  font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.fps-woo-page a        { color: var(--fps-accent); text-decoration: none; }
body.fps-woo-page a:hover  { color: var(--fps-primary); }
body.fps-woo-page img      { max-width: 100%; height: auto; display: block; }
body.fps-woo-page ul       { margin: 0; padding: 0; list-style: none; }

body.fps-woo-page h1, body.fps-woo-page h2,
body.fps-woo-page h3, body.fps-woo-page h4 {
  font-family: var(--fps-font);
  font-weight: 300; letter-spacing: -.02em;
  color: var(--fps-primary); margin: 0 0 .75em;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION BAR
═══════════════════════════════════════════════════════════════════ */
.fps-nav {
  background: #F7F5F2;
  border-bottom: 1px solid rgba(43,41,37,.12);
  height: 72px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 72px;
  position: sticky; top: 0; z-index: 200;
}
.fps-nav a { color: var(--fps-primary); transition: opacity .2s; }
.fps-nav a:hover { opacity: .5; color: var(--fps-primary); }

.fps-nav__logo {
  font-size: 13px; font-weight: 400; letter-spacing: .04em;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; flex-shrink: 0; text-decoration: none;
}
.fps-nav__logo img {
  height: 32px; width: 32px;
  flex-shrink: 0; display: block;
}

.fps-nav__links { display: flex; align-items: center; gap: 32px; }
.fps-nav__link {
  font-size: 10px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: #9a9690;
}
.fps-nav__link:hover, .fps-nav__link.active {
  color: var(--fps-primary); opacity: 1 !important;
}
.fps-nav__basket {
  font-size: 10px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE LAYOUT
═══════════════════════════════════════════════════════════════════ */
.fps-content {
  max-width: 1100px; margin: 0 auto;
  padding: 4rem 72px 6rem;
}

/* WooCommerce adds its own wrappers — neutralise */
.fps-woo-page .woocommerce,
.fps-woo-page .woocommerce-page { display: block; }

.fps-woo-page .woocommerce > .woocommerce-notices-wrapper:first-child { margin-bottom: 24px; }

/* Page title */
.fps-woo-page h1.entry-title,
.fps-woo-page h1.page-title,
.fps-woo-page .woocommerce h1.page-title {
  font-size: clamp(22px, 3vw, 36px); font-weight: 300; letter-spacing: -.02em;
  padding-bottom: 1.5rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(43,41,37,.12);
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS  — unified across all WooCommerce pages
═══════════════════════════════════════════════════════════════════ */
.fps-woo-page .woocommerce a.button,
.fps-woo-page .woocommerce button.button,
.fps-woo-page .woocommerce input[type="submit"],
.fps-woo-page .woocommerce #respond input#submit,
.fps-woo-page .woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.fps-woo-page .woocommerce .button {
  display: inline-block;
  background: var(--fps-primary) !important;
  color: #F7F5F2 !important;
  border: none !important; border-radius: 0 !important;
  font-family: var(--fps-font) !important;
  font-size: 10px !important; font-weight: 600 !important;
  letter-spacing: .18em !important; text-transform: uppercase !important;
  text-decoration: none !important;
  padding: 14px 28px !important;
  cursor: pointer; transition: opacity .2s !important;
  line-height: 1 !important;
}
.fps-woo-page .woocommerce a.button:hover,
.fps-woo-page .woocommerce button.button:hover,
.fps-woo-page .woocommerce input[type="submit"]:hover {
  opacity: .75 !important; color: #F7F5F2 !important;
}
/* Full-width checkout button */
.fps-woo-page .wc-proceed-to-checkout { padding: 0; }
.fps-woo-page .wc-proceed-to-checkout a.checkout-button {
  display: block !important; text-align: center !important; width: 100% !important;
  padding: 16px !important;
}
/* Outline variant (coupon button) */
.fps-woo-page .woocommerce-cart .coupon .button {
  background: transparent !important;
  color: var(--fps-primary) !important;
  border: 1px solid rgba(43,41,37,.4) !important;
}
.fps-woo-page .woocommerce-cart .coupon .button:hover {
  background: var(--fps-primary) !important; color: #F7F5F2 !important; opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   FORMS  — inputs, labels, selects
═══════════════════════════════════════════════════════════════════ */
.fps-woo-page .woocommerce form .form-row         { margin-bottom: 20px; }
.fps-woo-page .woocommerce form label,
.fps-woo-page .woocommerce-form label             {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #9a9690; margin-bottom: 6px;
}
.fps-woo-page .woocommerce form input[type="text"],
.fps-woo-page .woocommerce form input[type="email"],
.fps-woo-page .woocommerce form input[type="tel"],
.fps-woo-page .woocommerce form input[type="password"],
.fps-woo-page .woocommerce form input[type="number"],
.fps-woo-page .woocommerce form textarea,
.fps-woo-page .woocommerce form select,
.fps-woo-page .woocommerce form .input-text       {
  width: 100%; padding: 12px 16px;
  border: 1px solid rgba(43,41,37,.2);
  background: #fff; color: var(--fps-primary);
  font-family: var(--fps-font); font-size: 14px;
  border-radius: 0; outline: none;
  transition: border-color .2s; -webkit-appearance: none;
}
.fps-woo-page .woocommerce form input:focus,
.fps-woo-page .woocommerce form textarea:focus,
.fps-woo-page .woocommerce form select:focus      { border-color: var(--fps-accent); }
.fps-woo-page .woocommerce form select            { appearance: auto; }

.fps-woo-page .woocommerce-form-login__rememberme,
.fps-woo-page .woocommerce-form-register__rememberme { font-size: 13px; color: #9a9690; }

/* Hide WooCommerce show-password toggle (shows as blank square without icon font) */
.fps-woo-page .show-password-input { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   NOTICES
═══════════════════════════════════════════════════════════════════ */
.fps-woo-page .woocommerce-notices-wrapper { margin-bottom: 24px; }
.fps-woo-page .woocommerce-message,
.fps-woo-page .woocommerce-info,
.fps-woo-page .woocommerce-error            {
  padding: 16px 20px; font-size: 14px; border-radius: 0 !important;
  border-left: 3px solid var(--fps-primary);
  background: #F0EDE7; margin-bottom: 16px; display: block;
}
/* WC icon font is not loaded on fps-theme — ::before shows as a square over the first letter */
.fps-woo-page .woocommerce-message::before,
.fps-woo-page .woocommerce-info::before,
.fps-woo-page .woocommerce-error::before {
  content: none !important;
  display: none !important;
}
.fps-woo-page .woocommerce-error            { border-left-color: #c0392b; background: #fdf6f5; }
.fps-woo-page .woocommerce-info             { border-left-color: var(--fps-accent); }

/* ═══════════════════════════════════════════════════════════════════
   SHARED TABLE (orders, etc.)
═══════════════════════════════════════════════════════════════════ */
.fps-woo-page table {
  width: 100%; border-collapse: collapse;
  border: 1px solid rgba(43,41,37,.12);
}
.fps-woo-page table th {
  background: #F0EDE7; font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 600;
  padding: 13px 16px; text-align: left;
  border-bottom: 1px solid rgba(43,41,37,.12); color: #9a9690;
}
.fps-woo-page table td {
  padding: 14px 16px; font-size: 14px; vertical-align: middle;
  border-bottom: 1px solid rgba(43,41,37,.07);
}
.fps-woo-page table tr:last-child td { border-bottom: none; }
.fps-woo-page table .woocommerce-Price-amount { font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════════
   CART PAGE
   Column widths are set via <colgroup> injected by functions.php
   (the HTML-standard way). table-layout:fixed is required for
   colgroup widths to take effect.
═══════════════════════════════════════════════════════════════════ */

/* Restore proper table display in case any plugin CSS overrides it.
   We override the structural containers (thead/tbody/tr) but NOT th/td —
   their browser-default table-cell display must stay intact so that
   attributes like colspan work correctly.                             */
.fps-woo-page table.cart        { display: table;               width: 100%; table-layout: fixed; border-collapse: collapse; }
.fps-woo-page table.cart thead  { display: table-header-group; }
.fps-woo-page table.cart tbody  { display: table-row-group;    }
.fps-woo-page table.cart tfoot  { display: table-footer-group; }
.fps-woo-page table.cart tr     { display: table-row;          }
.fps-woo-page table.cart th,
.fps-woo-page table.cart td     { padding: 14px 12px; vertical-align: middle; }

/* Column alignment — widths come from <colgroup>, only alignment here */
.fps-woo-page table.cart .product-remove   { text-align: center; }
.fps-woo-page table.cart .product-price,
.fps-woo-page table.cart .product-subtotal { text-align: right;  }
.fps-woo-page table.cart .product-quantity { text-align: center; }
.fps-woo-page table.cart .product-name     { word-wrap: break-word; }

/* Remove button */
.fps-woo-page table.cart td.product-remove a {
  font-size: 18px; color: #9a9690; text-decoration: none;
}
.fps-woo-page table.cart td.product-remove a:hover { color: #c0392b; }

/* Thumbnail — default product image */
.fps-woo-page table.cart td.product-thumbnail img {
  width: 64px; height: 64px; object-fit: cover; display: block;
  border: 1px solid rgba(43,41,37,.08);
}

/* Print preview thumbnail (customer image + paper aspect + margin %) */
.fps-woo-page .fps-cart-print-thumb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; vertical-align: middle;
  box-sizing: border-box;
}
.fps-woo-page .fps-cart-print-thumb__sheet {
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; max-width: 100%; max-height: 100%;
  background: #fff; border: 1px solid rgba(43,41,37,.1);
  overflow: hidden;
}
.fps-woo-page .fps-cart-print-thumb__img {
  display: block; max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
}

/* Product name */
.fps-woo-page table.cart td.product-name a {
  font-size: 14px; font-weight: 500; color: var(--fps-primary); display: block;
}
.fps-woo-page table.cart td.product-name a:hover { color: var(--fps-accent); }

/* Variation meta — "Label: Value · Label: Value"
   WooCommerce wraps each dd value in <p>; display:inline on every
   element keeps dt+dd pairs together when text wraps.               */
.fps-woo-page dl.variation           { margin: 5px 0 0; font-size: 11px; color: #9a9690; line-height: 1.7; }
.fps-woo-page dl.variation dt        { display: inline; font-weight: 600; margin: 0; }
.fps-woo-page dl.variation dt::after { content: ':\00a0'; }
.fps-woo-page dl.variation dd        { display: inline; margin: 0; }
.fps-woo-page dl.variation dd::after { content: '\00a0\00b7\00a0'; color: rgba(43,41,37,.3); }
.fps-woo-page dl.variation dd:last-of-type::after { content: ''; }
.fps-woo-page dl.variation dd p      { display: inline; margin: 0; }

/* Quantity input */
.fps-woo-page .quantity .qty {
  width: 56px; padding: 8px; text-align: center; border-radius: 0;
  border: 1px solid rgba(43,41,37,.2);
  font-family: var(--fps-font); font-size: 14px;
}

/* Cart actions row (coupon + update button) */
.fps-woo-page table.cart td.actions { padding: 16px; background: #F7F5F2; }
.fps-woo-page .woocommerce-cart-form .actions {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.fps-woo-page .coupon                { display: flex; gap: 8px; align-items: center; }
.fps-woo-page .coupon input.input-text {
  width: auto; min-width: 160px; max-width: 220px; padding: 11px 14px; font-size: 13px;
}

/* "Add another print" link */
.fps-woo-page .fpst-add-print { margin: 24px 0 0; }
.fps-woo-page .fpst-add-print__link {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fps-accent); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: opacity .2s;
}
.fps-woo-page .fpst-add-print__link:hover { opacity: .6; color: var(--fps-accent); }

/* Cart totals */
.fps-woo-page .cart-collaterals { margin-top: 40px; }
.fps-woo-page .cart_totals      { max-width: 440px; margin-left: auto; }
.fps-woo-page .cart_totals h2   {
  font-size: 18px; font-weight: 500;
  border-bottom: 1px solid rgba(43,41,37,.12);
  padding-bottom: 12px; margin-bottom: 20px;
}
.fps-woo-page .cart_totals table             { border: none; }
.fps-woo-page .cart_totals table th,
.fps-woo-page .cart_totals table td          {
  background: transparent; border-bottom: 1px solid rgba(43,41,37,.08);
  padding: 12px 0; font-size: 14px;
}
.fps-woo-page .cart_totals table th          { font-weight: 400; color: #9a9690; letter-spacing: normal; text-transform: none; font-size: 14px; }
.fps-woo-page .cart_totals .order-total th,
.fps-woo-page .cart_totals .order-total td   { font-weight: 600; font-size: 17px; border-bottom: none; }
.fps-woo-page .cart_totals .woocommerce-shipping-calculator { font-size: 13px; margin-top: 8px; }
.fps-woo-page .cart_totals .woocommerce-shipping-calculator a { color: var(--fps-accent); }

/* ═══════════════════════════════════════════════════════════════════
   CHECKOUT PAGE
═══════════════════════════════════════════════════════════════════ */

/* Fulfillment cards + notices span full width above the form grid */
.fps-woo-page .woocommerce-checkout .fps-checkout-fulfillment {
  margin-bottom: 24px;
}

.fps-woo-page .woocommerce-checkout #customer_details {
  margin-bottom: 0;
}

/* Billing + shipping stack vertically (not side-by-side) */
.fps-woo-page .woocommerce-checkout .col2-set {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fps-woo-page .woocommerce-checkout .col2-set .col-1,
.fps-woo-page .woocommerce-checkout .col2-set .col-2 {
  width: 100%;
  float: none;
  max-width: none;
}

/* Half-width field pairs (first name / last name, etc.) */
.fps-woo-page .woocommerce form .form-row-first,
.fps-woo-page .woocommerce form .form-row-last {
  width: calc(50% - 10px);
  float: left;
}

.fps-woo-page .woocommerce form .form-row-first {
  clear: left;
  margin-right: 20px;
}

.fps-woo-page .woocommerce form .form-row-last {
  float: right;
  margin-right: 0;
}

.fps-woo-page .woocommerce form .form-row-wide,
.fps-woo-page .woocommerce form .clear,
.fps-woo-page .woocommerce form #ship-to-different-address {
  clear: both;
}

.fps-woo-page .woocommerce-checkout h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(43,41,37,.12);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.fps-woo-page #order_review_heading {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(43,41,37,.12);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.fps-woo-page #order_review {
  background: #F0EDE7;
  padding: 24px;
  margin-top: 0;
}

.fps-woo-page #order_review table {
  border: none;
}

.fps-woo-page #order_review table th,
.fps-woo-page #order_review table td {
  background: transparent;
}

.fps-woo-page #payment {
  background: transparent;
  padding: 0;
  margin-top: 24px;
}

/* Desktop: form left, order summary + payment sticky right */
@media (min-width: 992px) {
  body.fps-woo-page.woocommerce-checkout .fps-content {
    max-width: 1200px;
  }

  .fps-woo-page .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    column-gap: 48px;
    row-gap: 20px;
    align-items: start;
  }

  .fps-woo-page .woocommerce-checkout form.checkout > :not(#order_review_heading):not(#order_review) {
    grid-column: 1;
  }

  .fps-woo-page .woocommerce-checkout form.checkout #order_review_heading {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .fps-woo-page .woocommerce-checkout form.checkout #order_review {
    grid-column: 2;
    grid-row: 2 / -1;
    position: sticky;
    top: 96px;
    align-self: start;
  }
}

@media (max-width: 991px) {
  .fps-woo-page .woocommerce-checkout form.checkout #order_review {
    margin-top: 32px;
  }
}
.fps-woo-page #payment .payment_methods { list-style: none; margin: 0 0 24px; padding: 0; }
.fps-woo-page #payment .payment_methods li {
  padding: 12px 0; border-bottom: 1px solid rgba(43,41,37,.1); font-size: 14px;
}
.fps-woo-page #payment .payment_methods li label { text-transform: none; font-size: 14px; letter-spacing: 0; color: var(--fps-primary); font-weight: 400; }
.fps-woo-page #payment .payment_box { font-size: 13px; color: #9a9690; margin: 8px 0 0 24px; }

/* Checkout block / PayPal stepped UI — "Edit" must stay clickable; panels must not be clipped */
.fps-woo-page .wc-block-checkout,
.fps-woo-page .wc-block-components-checkout-step__container {
  overflow: visible;
}
.fps-woo-page .wc-block-components-address-card__edit,
.fps-woo-page .wc-block-components-checkout-step__heading-content button,
.fps-woo-page .wc-block-components-checkout-step__heading-content a {
  cursor: pointer;
  pointer-events: auto;
}
.fps-woo-page .wc-block-components-checkout-step__content:not([hidden]) {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   SHIPPING METHODS — horizontal cards matching fulfillment style
═══════════════════════════════════════════════════════════════════ */

/* Container: horizontal row of cards */
.fps-woo-page .woocommerce-checkout-review-order-table ul#shipping_method {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

/* Each shipping option = a compact card */
.fps-woo-page .woocommerce-checkout-review-order-table ul#shipping_method li {
  background: #F7F5F2;
  border: 2px solid rgba(43, 41, 37, 0.12);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex: 1 1 0;
  min-width: 0;
}

.fps-woo-page .woocommerce-checkout-review-order-table ul#shipping_method li:hover {
  border-color: #5E7483;
  box-shadow: 0 0 0 3px rgba(94, 116, 131, 0.15);
}

/* Selected = same as .fps-fulfillment-card.is-active */
.fps-woo-page .woocommerce-checkout-review-order-table ul#shipping_method li:has(input[type="radio"]:checked) {
  border-color: #5E7483;
  box-shadow: 0 0 0 3px rgba(94, 116, 131, 0.2);
}

/* Radio: custom dot */
.fps-woo-page .woocommerce-checkout-review-order-table ul#shipping_method input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(43, 41, 37, 0.25);
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.fps-woo-page .woocommerce-checkout-review-order-table ul#shipping_method input[type="radio"]:checked {
  border-color: #5E7483;
  border-width: 5px;
  background: #fff;
}

/* Label: name + price inline */
.fps-woo-page .woocommerce-checkout-review-order-table ul#shipping_method li label {
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #2B2925;
  cursor: pointer;
  margin: 0;
}

.fps-woo-page .woocommerce-checkout-review-order-table ul#shipping_method li label .amount {
  color: #5E7483;
  font-weight: 600;
}

/* InPost locker selector */
.fps-woo-page #fps-inpost-locker-selector {
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   MY ACCOUNT — LOGIN / REGISTER
═══════════════════════════════════════════════════════════════════ */
.fps-woo-page .woocommerce-account:not(.logged-in) .woocommerce {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; overflow: hidden;
}
.fps-woo-page .woocommerce-account:not(.logged-in) .woocommerce > * {
  min-width: 0; overflow-wrap: break-word;
}
@media (max-width: 768px) {
  .fps-woo-page .woocommerce-account:not(.logged-in) .woocommerce { grid-template-columns: 1fr; }
}
.fps-woo-page .col2-set h2,
.fps-woo-page .woocommerce-MyAccount-content h2 {
  font-size: 18px; font-weight: 400;
  border-bottom: 1px solid rgba(43,41,37,.12);
  padding-bottom: 12px; margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════════
   MY ACCOUNT — LOGGED IN
═══════════════════════════════════════════════════════════════════ */
.fps-woo-page .woocommerce-account.logged-in .woocommerce {
  display: flex; gap: 48px; align-items: flex-start;
}

/* Sidebar */
.fps-woo-page .woocommerce-MyAccount-navigation { width: 220px; flex-shrink: 0; }
.fps-woo-page .woocommerce-MyAccount-navigation ul {
  border: 1px solid rgba(43,41,37,.12);
}
.fps-woo-page .woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid rgba(43,41,37,.12);
}
.fps-woo-page .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }
.fps-woo-page .woocommerce-MyAccount-navigation ul li a {
  display: block; padding: 13px 20px;
  font-size: 10px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: #9a9690; transition: all .2s;
}
.fps-woo-page .woocommerce-MyAccount-navigation ul li.is-active a,
.fps-woo-page .woocommerce-MyAccount-navigation ul li a:hover {
  color: var(--fps-primary); background: #F0EDE7;
}

/* Content */
.fps-woo-page .woocommerce-MyAccount-content { flex: 1; min-width: 0; }
.fps-woo-page .woocommerce-MyAccount-content > p:first-child { font-size: 14px; line-height: 1.7; color: #4a4540; }

/* Dashboard tiles — strip via JS, re-style here */
.fps-woo-page .woocommerce-MyAccount-content a[href*="my-account"],
.fps-woo-page .woocommerce-MyAccount-content [class*="tile"],
.fps-woo-page .woocommerce-MyAccount-content div[class*="grid"] > a,
.fps-woo-page .woocommerce-MyAccount-content div[class*="grid"] > div {
  background: #F0EDE7 !important; background-color: #F0EDE7 !important;
  color: var(--fps-primary) !important; border-radius: 0 !important;
  border: 1px solid rgba(43,41,37,.1) !important;
}
.fps-woo-page .woocommerce-MyAccount-content a[href*="my-account"]:hover { background: #E4E0D8 !important; }
.fps-woo-page .woocommerce-MyAccount-content svg,
.fps-woo-page .woocommerce-MyAccount-content svg * {
  color: var(--fps-primary) !important; fill: var(--fps-primary) !important;
}
.fps-woo-page .woocommerce-MyAccount-content .count {
  background: var(--fps-primary) !important; color: #F7F5F2 !important; border-radius: 50% !important;
}

/* Hide unresolved plugin shortcodes */
.fps-woo-page .woocommerce-account .woocommerce-MyAccount-navigation > *:first-child:not(ul) { display: none; }

/* Addresses */
.fps-woo-page .woocommerce-Addresses .woocommerce-Address { margin-bottom: 32px; }
.fps-woo-page .woocommerce-Addresses address {
  font-style: normal; font-size: 14px; line-height: 1.7; color: #4a4540;
  padding: 20px; border: 1px solid rgba(43,41,37,.12); background: #fff; margin-top: 8px;
}
.fps-woo-page .woocommerce-Addresses h3 {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px;
}

/* Order status badge */
.fps-woo-page .woocommerce-orders-table__cell-order-status mark {
  background: #F0EDE7; color: var(--fps-primary);
  font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid rgba(43,41,37,.15); border-radius: 0;
}

/* Lost password */
.fps-woo-page .woocommerce-LostPassword { font-size: 13px; color: #9a9690; margin-top: 12px; }
.fps-woo-page .woocommerce-LostPassword a { color: var(--fps-accent); }

/* ═══════════════════════════════════════════════════════════════════
   SHOP / PRODUCT ARCHIVE
═══════════════════════════════════════════════════════════════════ */
.fps-woo-page .woocommerce-products-header { margin-bottom: 24px; }
.fps-woo-page .woocommerce-result-count { font-size: 12px; color: #9a9690; margin: 0 0 20px; }
.fps-woo-page .woocommerce-ordering select {
  padding: 9px 14px; border: 1px solid rgba(43,41,37,.2);
  font-size: 12px; font-family: var(--fps-font);
  background: #fff; border-radius: 0; outline: none; -webkit-appearance: auto;
}

.fps-woo-page ul.products {
  display: grid; gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .fps-woo-page ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fps-woo-page ul.products { grid-template-columns: 1fr; } }

.fps-woo-page ul.products li.product { text-align: left; }
.fps-woo-page ul.products li.product a img {
  width: 100%; height: 260px; object-fit: cover;
  border: 1px solid rgba(43,41,37,.08); transition: opacity .2s;
}
.fps-woo-page ul.products li.product a img:hover { opacity: .85; }
.fps-woo-page ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px; font-weight: 500; margin: 14px 0 6px; color: var(--fps-primary);
}
.fps-woo-page ul.products li.product .price {
  font-size: 13px; color: var(--fps-accent); display: block; margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   SINGLE PRODUCT PAGE
═══════════════════════════════════════════════════════════════════ */
.fps-woo-page div.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
@media (max-width: 768px) { .fps-woo-page div.product { grid-template-columns: 1fr; } }

.fps-woo-page div.product .woocommerce-product-gallery__image img {
  width: 100%; border: 1px solid rgba(43,41,37,.08);
}
.fps-woo-page a.woocommerce-product-gallery__trigger { display: none; }

.fps-woo-page div.product .summary .product_title {
  font-size: clamp(22px, 2.5vw, 32px); font-weight: 300; margin-bottom: 12px;
}
.fps-woo-page div.product .summary .price {
  font-size: 22px; color: var(--fps-accent); display: block; margin-bottom: 24px;
}
.fps-woo-page div.product .summary .woocommerce-product-details__short-description {
  font-size: 14px; color: #4a4540; line-height: 1.7; margin-bottom: 24px;
}

/* Variation selects */
.fps-woo-page table.variations { width: 100%; border: none; }
.fps-woo-page table.variations th,
.fps-woo-page table.variations td { background: transparent; border: none; padding: 0 0 14px; }
.fps-woo-page table.variations td.label label {
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #9a9690; display: block; margin-bottom: 6px;
}
.fps-woo-page table.variations td.value select {
  width: 100%; padding: 12px 16px;
  border: 1px solid rgba(43,41,37,.2);
  background: #fff; font-size: 14px; border-radius: 0;
  font-family: var(--fps-font);
}
.fps-woo-page .reset_variations { font-size: 12px; color: #9a9690; display: inline-block; margin-top: 4px; }

/* Qty + add-to-cart row */
.fps-woo-page .cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.fps-woo-page .quantity .qty {
  width: 72px; padding: 12px 8px; text-align: center;
  border: 1px solid rgba(43,41,37,.2); font-size: 15px;
  font-family: var(--fps-font); border-radius: 0;
}

/* Product tabs */
.fps-woo-page .woocommerce-tabs { margin-top: 56px; border-top: 1px solid rgba(43,41,37,.12); }
.fps-woo-page .woocommerce-tabs ul.tabs {
  display: flex; border-bottom: 1px solid rgba(43,41,37,.12); margin: 0 0 28px;
}
.fps-woo-page .woocommerce-tabs ul.tabs::before,
.fps-woo-page .woocommerce-tabs ul.tabs li::before,
.fps-woo-page .woocommerce-tabs ul.tabs li::after { display: none !important; }
.fps-woo-page .woocommerce-tabs ul.tabs li { background: none; border: none; border-radius: 0; }
.fps-woo-page .woocommerce-tabs ul.tabs li a {
  display: block; padding: 10px 24px;
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #9a9690;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.fps-woo-page .woocommerce-tabs ul.tabs li.active a,
.fps-woo-page .woocommerce-tabs ul.tabs li a:hover {
  color: var(--fps-primary); border-bottom-color: var(--fps-accent);
}
.fps-woo-page .shop_attributes th { color: #9a9690; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

/* Breadcrumb */
.fps-woo-page .woocommerce-breadcrumb { font-size: 11px; color: #9a9690; margin-bottom: 24px; }
.fps-woo-page .woocommerce-breadcrumb a { color: #9a9690; }
.fps-woo-page .woocommerce-breadcrumb a:hover { color: var(--fps-primary); }
.fps-woo-page .posted_in { font-size: 12px; color: #9a9690; margin-top: 16px; }
.fps-woo-page .posted_in a { color: var(--fps-accent); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .fps-woo-page .woocommerce-account.logged-in .woocommerce { flex-direction: column; }
  .fps-woo-page .woocommerce-MyAccount-navigation { width: 100%; }
  .fps-woo-page .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; border: none; gap: 4px; }
  .fps-woo-page .woocommerce-MyAccount-navigation ul li { border: 1px solid rgba(43,41,37,.12) !important; }
}
@media (max-width: 768px) {
  .fps-nav { padding: 0 24px; }
  .fps-nav__links { gap: 16px; }
  .fps-content { padding: 2.5rem 24px 4rem; }
  .fps-woo-page table.cart th.product-price,
  .fps-woo-page table.cart td.product-price { display: none; }
}
@media (max-width: 520px) {
  .fps-woo-page table.cart th.product-thumbnail,
  .fps-woo-page table.cart td.product-thumbnail { display: none; }
}
