/* ============================================================
   woocommerce-overrides.css — Toptrail
   ============================================================
   Підключається ПІСЛЯ woocommerce-general.css
   Повністю перекриває дефолтні WC стилі під дизайн.

   Структура:
   1.  CSS vars (inherit from style.css)
   2.  Cart button + badge (хедер)
   3.  Mini-cart dropdown
   4.  Checkout steps breadcrumb
   5.  Cart page (woocommerce-cart)
   6.  Checkout page (woocommerce-checkout)
   7.  Order complete page
   8.  Shared WC form fields
   9.  Responsive
   ============================================================ */
 

/* ============================================================
   2. MINI-CART DROPDOWN
   ============================================================ */

.mc-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 420px;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  z-index: 1000;
  overflow: hidden;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.cart-wrap.is-open .mc-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header */
.mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.mc-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.1px;
}

.mc-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-mid);
  transition: background var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
}

.mc-close:hover { background: var(--cream-2); color: var(--text-dark); }
.mc-close svg   { width: 14px; height: 14px; }

/* Body scroll */
.mc-body {
  max-height: 450px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.mc-body::-webkit-scrollbar { width: 4px; }
.mc-body::-webkit-scrollbar-track { background: transparent; }
.mc-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Item list ───────────────────────────────────────────── */
.mc-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}

.mc-item:last-child { border-bottom: none; }
.mc-item:hover { background: var(--cream); }

/* Thumbnail */
.mc-item-img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--cream-2);
}

.mc-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mc-item-img a { display: block; height: 100%; }

/* Info */
.mc-item-info {
  flex: 1;
  min-width: 0;
}

.mc-item-name {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 4px;
  white-space: normal;
}

.mc-item-name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

.mc-item-name a:hover { color: var(--orange); }

.mc-item-qty {
  display: block;
  font-size: 12.5px;
  color: var(--text-light);
}

/* Right: price + remove */
.mc-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.mc-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

/* Remove button */
.mc-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  background: var(--white);
}

.mc-item-remove:hover {
  border-color: var(--text-mid);
  color: var(--text-dark);
  background: var(--cream);
}

.mc-item-remove svg { width: 14px; height: 14px; }

/* Highlighted last item (3rd one in mockup has cream bg) */
.mc-item:last-child { background: var(--cream); }
.mc-item:last-child:hover { background: var(--cream-2); }

/* ── Footer: total + buttons ─────────────────────────────── */
.mc-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
}

.mc-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mc-total-label {
  font-size: 13px;
  color: var(--text-mid);
}

.mc-total-price {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.mc-btn-checkout {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: var(--white);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: background var(--t-fast), transform 0.14s;
  margin-bottom: 10px;
}

.mc-btn-checkout:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.mc-btn-viewcart {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--white);
  color: var(--text-dark);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.mc-btn-viewcart:hover {
  border-color: var(--border-dark);
  background: var(--cream);
}

/* ── Empty state ─────────────────────────────────────────── */
.mc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px;
  text-align: center;
}

.mc-empty-icon {
  width: 44px;
  height: 44px;
  color: var(--border-dark);
  margin-bottom: 14px;
}

.mc-empty-text {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.mc-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  transition: gap var(--t-fast);
}

.mc-empty-link:hover { gap: 10px; }
.mc-empty-link svg { width: 14px; height: 14px; }



/* ============================================================
   3. CHECKOUT STEPS BREADCRUMB
   Figma: 112px height, centered, Inter font for active num
   ============================================================ */

/* ============================================================
   3. CHECKOUT STEPS BREADCRUMB
   Figma: Frame 427321296 — 1440×112px, bg #ffffff
   Container: 1200px, steps centered
   ============================================================ */

.wc-checkout-steps {
 
  border-bottom: 1px solid #e6e6e6;
  padding: 0;
}

.wc-steps-inner {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.wc-step {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Figma: inactive — rgba(white,0.5) on cream bg = visible circle, 48×48, radius 32, #999 */
.wc-step-num {
  width: 48px;
  height: 48px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #999999;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid #e0e0e0;
  flex-shrink: 0;
  transition: all var(--t-base);
  position: relative;
}

.wc-step-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #999999;
  white-space: nowrap;
}

/* Figma: active — bg #203e31, no border, white text, Inter Medium 18px */
.wc-step.is-active .wc-step-num {
  background: #203e31;
  border: none;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
}

.wc-step.is-active .wc-step-label {
  color: #203e31;
  font-weight: 400;
}

/* Figma: done — bg #214033, no border, checkmark via ::after */
.wc-step.is-done .wc-step-num {
  background: #214033;
  border: none;
  color: transparent;
  font-size: 0;
}

.wc-step.is-done .wc-step-num::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 8px;
  border-left: 2.5px solid #ffffff;
  border-bottom: 2.5px solid #ffffff;
  transform: rotate(-45deg) translateY(-2px);
}

.wc-step.is-done .wc-step-label {
  color: #203e31;
  font-weight: 400;
}

/* Separator arrow — #ccc */
.wc-step-sep {
  margin: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
  flex-shrink: 0;
}

.wc-step-sep svg { width: 24px; height: 24px; }

/* ============================================================
   4. CART PAGE — woocommerce-cart
   Figma: white bg content area, 2-col grid 1fr + 378px
   ============================================================ */

/* Content area background */
.wc-cart-content-wrap {
  background: var(--white);
}

/* 2-column layout: table + sidebar */
.wc-cart-wrap {
  display: grid;
  grid-template-columns: 1fr 378px;
  gap: 32px;
  padding: 40px 15px 80px;
  align-items: start;
}

/* ── Cart table ─────────────────────────────────────────────── */
.wc-cart-left { min-width: 0; }
.cart_totals table .order-total td bdi{     font-weight: 500 !important; }
.shop_table {
  width: 100%;
  border-collapse: collapse; table-layout: fixed;
}
.shop_table .product-name {
  width: auto;width: 200px;
}
.shop_table .product-quantity{
  width: 160px;
}
/* Figma: header — Montserrat Regular 16px, #222 */
.shop_table thead th {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #222222;
  padding: 0 16px 16px 0;
  text-align: left;
  border-bottom: 1px solid #e6e6e6;
  text-transform: none;
  letter-spacing: 0;
}

.shop_table thead th:last-child { padding-right: 0; }
.shop_table .product-thumbnail { width: 96px; padding: 0 16px 16px 0; }

/* Figma: thumbnail — 96×96, border-radius 12px */
.shop_table td.product-thumbnail img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Figma: product row height 96px, divider #e6e6e6 */
.shop_table tbody tr.cart_item {
  border-bottom: 1px solid #e6e6e6;
}

.shop_table tbody tr.cart_item td {
  padding: 16px 16px 16px 0;
  vertical-align: middle;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #222222;
}

.shop_table tbody tr.cart_item td:last-child { padding-right: 0; }

/* Figma: product name — Regular 16px */
.shop_table td.product-name a {
  font-weight: 400;
  color: #222222;
  text-decoration: none;
  line-height: 1.4;
}

.shop_table td.product-name a:hover { color: var(--orange); }

/* Figma: price + subtotal — Medium 16px */
.shop_table td.product-price,
.shop_table td.product-subtotal { font-weight: 500; }

/* Figma: qty input — 144×48px, border #e6e6e6, radius 8px */
.shop_table td.product-quantity .quantity {
  display: inline-flex;
  align-items: center;
  width: 144px;
  height: 48px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

/* Minus/plus buttons — 48×48px each, separated by border */
.shop_table .qty-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}

.shop_table .qty-btn:first-child, .shop_table .qty-btn.qty-btn--minus { border-right: 1px solid #e6e6e6; }
.shop_table .qty-btn:last-child  { border-left:  1px solid #e6e6e6; }
.shop_table .qty-btn:hover { background: var(--cream); color: #222222; }
.shop_table .qty-btn svg { width: 16px; height: 16px; pointer-events: none; }

.shop_table td.product-quantity .qty {
  width: 48px;
  height: 48px;
  border: none;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #222222;
  background: transparent;
  -moz-appearance: textfield;
  outline: none;
  padding: 0;
}

.shop_table .qty::-webkit-inner-spin-button,
.shop_table .qty::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Figma: remove — 24×24 icon, color #999 */
.shop_table td.product-remove {
  width: 32px;
  text-align: center;
}

.shop_table td.product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  font-size: 0;
  text-decoration: none;
  transition: color var(--t-fast);
}



.shop_table td.product-remove a.remove:hover { color: #333333; }

.shop_table td.product-remove a.remove svg { width: 20px; height: 20px; display: block; }

/* Actions row — Figma: 2 outlined pill buttons, border #999, radius 56px, 52px height */
.shop_table td.actions {
  padding: 24px 0 0;
  border-top: none;
  border-bottom: none;
}

.cart-actions-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border: 1.5px solid #999999;
  border-radius: 56px;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #222222;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast);
  white-space: nowrap;
}

.cart-action-btn:hover { background: var(--cream); }

/* ── Cart totals sidebar — Figma: 378px, bg #f5f1eb, radius 12px, padding 24px ── */
.wc-cart-right { flex-shrink: 0; 
    background: #f5f1eb;
    border-radius: 12px;
    padding: 24px;
}

.cart-collaterals .cart_totals,
.cart_totals {
/*  background: #f5f1eb;*/
/*  border-radius: 12px;*/
/*  padding: 24px;*/
}

/* Figma: "Cart totals" title — Montserrat Medium 16px */
.cart_totals h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #222222;
  margin-bottom: 16px;
  letter-spacing: 0;
  text-transform: none;
}

/* Totals table */
.cart_totals .shop_table,
.cart_totals table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

/* Figma: rows — Regular 16px label, Medium 16px value */
.cart_totals table th,
.cart_totals table td {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #222222;
  padding: 10px 0;
  border: none;
  text-transform: none;
  letter-spacing: 0;
}

.cart_totals table th { font-weight: 400; text-align: left; }
.cart_totals table td { font-weight: 500; text-align: right; }

/* Figma: divider before total — #cccccc */
.cart_totals table tr.order-total {
  border-top: 1px solid #cccccc;
}

/* Figma: Price total label — Medium 16px; value — Medium 24px */
.cart_totals table .order-total th { font-weight: 500; }
.cart_totals table .order-total td {
  font-size: 22px;
  font-weight: 500;
  text-align: right;
}
.cart_totals table .cart-subtotal td{ text-align: right; }

/* Figma: Checkout button — bg #fe9c29, radius 56px, full width 330px, 52px, text #222 Medium 16px */
.wc-proceed-to-checkout .checkout-button,
.cart_totals .checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: #fe9c29;
  border: none;
  border-radius: 56px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #222222;
  text-decoration: none;
  cursor: pointer;
  margin: 16px 0;
  transition: background var(--t-fast);
  letter-spacing: 0;
}

.wc-proceed-to-checkout .checkout-button:hover,
.cart_totals .checkout-button:hover { background: #e88f1a; }

/* Coupon below checkout button */
.wc-cart-coupon { margin-top: 0; }

.wc-coupon-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #222222;
  margin-bottom: 8px;
  display: block;
}

/* Figma: coupon input — white, 330×48px, radius 8px, padding-left 24px, placeholder #999 */
.wc-cart-coupon input[type="text"],
.wc-cart-coupon .input-text {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 0 16px 0 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #222222;
  outline: none;
  margin-bottom: 8px;
  display: block;
  transition: border-color var(--t-fast);
}

.wc-cart-coupon input::placeholder { color: #999999; }
.wc-cart-coupon input:focus { border-color: #222222; }

/* Figma: Apply coupon — outlined pill, border #999, radius 56px, 330×52px */
.wc-coupon-apply-btn {
  width: 100%;
  height: 52px;
  border: 1.5px solid #999999;
  border-radius: 56px;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #222222;
  cursor: pointer;
  transition: background var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wc-coupon-apply-btn:hover { background: rgba(0,0,0,0.04); }


/* ============================================================
/* ============================================================
   5. CHECKOUT PAGE
   Цільова WC HTML структура (реальний output):

   .woocommerce-checkout (body class)
   .woocommerce
     .woocommerce-form-coupon-toggle (info banner)
     form.checkout.woocommerce-checkout
       .col2-set#customer_details
         .col-1  ← billing fields
         .col-2  ← shipping + notes
       h3#order_review_heading
       #order_review.woocommerce-checkout-review-order
         table.shop_table (order items)
         #payment
           ul.payment_methods
           .place-order

   Figma:
     bg: #ffffff
     container: 1200px
     grid: 600px left + 32px gap + 378px right sidebar
     padding-top: 40px
   ============================================================ */

/* ── Сторінка wrapper ─────────────────────────────────────── */
.woocommerce-checkout.woocommerce-page {
  background: #f5f1eb;
}

/* ── Обгортка всього WC контенту ─────────────────────────── */
.woocommerce-checkout .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

/* Coupon toggle */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
  max-width: 1200px;
  margin: 0 auto 0;
  padding: 15px 15px;
}

.woocommerce-checkout .woocommerce-info {
  background: #f5f1eb !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px  ;
  color: #222222  ;
  padding: 12px 0 ;
  margin: 0 !important;
}
.woocommerce-checkout .woocommerce-info::before { display: none !important; }
.woocommerce-checkout .woocommerce-info a { color: #fe9c29 !important; }

/* Coupon form */
.woocommerce-checkout .checkout_coupon {
  background: #f5f1eb !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 20px 15px !important;
  margin: 0 auto 24px !important;
  display: flex !important;
  gap: 12px !important;
  align-items: flex-end !important;
  flex-wrap: wrap !important;
}

.woocommerce-checkout .checkout_coupon .form-row {
  flex: 1 !important;
  min-width: 200px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
}

.woocommerce-checkout .checkout_coupon input#coupon_code {
  height: 48px !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 8px !important;
  padding: 0 16px 0 24px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  color: #222222 !important;
  background: #ffffff !important;
  width: 100% !important;
  outline: none !important;
}

.woocommerce-checkout .checkout_coupon .button[name="apply_coupon"] {
  height: 48px !important;
  padding: 0 24px !important;
  border: 1.5px solid #999999 !important;
  border-radius: 56px !important;
  background: transparent !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #222222 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* ── Головна checkout форма ───────────────────────────────── */
form.woocommerce-checkout {
  display: grid  ;
  grid-template-columns: 1fr 378px ;
  grid-template-rows: auto ;
  gap: 0 32px  ;
  padding: 40px 0 80px  ;
  align-items: start  ;
}

/* col2-set — лівий стовпець (billing + shipping + notes) */
#customer_details.col2-set {
  grid-column: 1 ;
  grid-row: 1 ;
  width: 100% ;
  float: none ;
}

/* Order review heading — прихований, ми показуємо контент в sidebar */
h3#order_review_heading {
  display: none !important;
}

/* Order review sidebar — правий стовпець */
#order_review.woocommerce-checkout-review-order {
  grid-column: 2 ;
  grid-row: 1 ;
  background: #f5f1eb ;
  border-radius: 12px ;
  padding: 24px ;
  position: sticky ;
  top: 96px ;
  width: 100% ;
}

/* WC default col widths reset */
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
  width: 100% !important;
  float: none !important;
  display: block !important;
}

/* ── h3 секцій (Billing, Shipping, Additional) ────────────── */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  color: #222222 !important;
  margin: 0 0 24px !important;
  line-height: 1.33 !important;
  letter-spacing: 0 !important;
  border: none !important;
  padding: 0 !important;
}

/* Секція відступи */
.woocommerce-billing-fields { margin-bottom: 40px; }
.woocommerce-shipping-fields { margin-bottom: 40px; }
.woocommerce-additional-fields { margin-bottom: 24px; }

/* ── Field wrappers ────────────────────────────────────────── */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  /* WC uses float layout — need clearfix */
}

/* ── form-row ──────────────────────────────────────────────── */
.woocommerce-checkout .form-row {
  margin: 0 0 24px !important;
  padding: 0 !important;
  display: block !important;
}

/* Два поля поруч (first/last name) */
.woocommerce-checkout .form-row-first {
  float: left !important;
  width: calc(50% - 8px) !important;
  margin-right: 16px !important;
}

.woocommerce-checkout .form-row-last {
  float: right !important;
  width: calc(50% - 8px) !important;
  margin-right: 0 !important;
}

/* Wide поля (address, city тощо) */
.woocommerce-checkout .form-row-wide {
  clear: both !important;
  width: 100% !important;
  float: none !important;
}

/* notes textarea */
.woocommerce-checkout .notes .form-row {
  clear: both !important;
  width: 100% !important;
}

/* Figma: label — Montserrat Regular 16px, #222 */
.woocommerce-checkout .form-row label {
  display: block !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #222222 !important;
  margin-bottom: 8px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.4 !important;
}

.woocommerce-checkout .form-row label .required { color: #fe9c29 !important; }
.woocommerce-checkout .form-row label .optional {
  color: #999999 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

/* Figma: input — 48px height, border #e6e6e6, radius 8, padding-left 24px */
.woocommerce-checkout input.input-text {
  width: 100% !important;
  height: 48px !important;
  background: #ffffff !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 8px !important;
  padding: 0 16px 0 24px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #222222 !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: border-color 0.2s !important;
  display: block !important;
}

.woocommerce-checkout input.input-text:focus {
  border-color: #222222 !important;
  box-shadow: none !important;
}

.woocommerce-checkout input.input-text::placeholder { color: #999999 !important; }

/* Select (country/state) */
.woocommerce-checkout select {
  width: 100% !important;
  height: 48px !important;
  background: #ffffff !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 8px !important;
  padding: 0 40px 0 24px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  color: #222222 !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5l4 4 4-4' stroke='%23888' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
}

/* Select2 (WC AJAX dropdown) */
.woocommerce-checkout .select2-container {
  width: 100% !important;
  display: block !important;
}

.woocommerce-checkout .select2-container .select2-selection--single {
  height: 48px !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  outline: none !important;
  display: flex !important;
  align-items: center !important;
}

.woocommerce-checkout .select2-container .select2-selection--single:focus,
.woocommerce-checkout .select2-container--focus .select2-selection--single {
  border-color: #222222 !important;
  outline: none !important;
  box-shadow: none !important;
}

.woocommerce-checkout .select2-selection__rendered {
  padding: 0 40px 0 24px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  color: #222222 !important;
  line-height: 48px !important;
}

.woocommerce-checkout .select2-selection__arrow {
  height: 46px !important;
  right: 12px !important;
}

.woocommerce-checkout .select2-selection__arrow b {
  border-color: #888 transparent transparent transparent !important;
}

/* Textarea (order notes) */
.woocommerce-checkout textarea#order_comments {
  width: 100% !important;
  height: 160px !important;
  background: #ffffff !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 8px !important;
  padding: 14px 24px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  color: #222222 !important;
  outline: none !important;
  resize: none !important;
  line-height: 1.6 !important;
  box-shadow: none !important;
}

.woocommerce-checkout textarea::placeholder { color: #999999 !important; }
.woocommerce-checkout textarea:focus { border-color: #222222 !important; }

/* Validation */
.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid select,
.woocommerce-checkout .woocommerce-invalid .select2-selection {
  border-color: #e74c3c !important;
}
.woocommerce-checkout .woocommerce-validated input.input-text,
.woocommerce-checkout .woocommerce-validated select {
  border-color: #27ae60 !important;
}

/* Ship toggle */
.woocommerce-shipping-fields #ship-to-different-address label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #222222 !important;
  cursor: pointer !important;
  margin-bottom: 16px !important;
}

/* ── Order review table (products list) ───────────────────── */
.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 16px !important;
  font-family: 'Montserrat', sans-serif !important;
}

.woocommerce-checkout-review-order-table thead th {
  display: none !important; /* Figma: no header row */
}

.woocommerce-checkout-review-order-table tbody .cart_item td {
  padding: 10px 0 !important;
  font-size: 14px !important;
  color: #222222 !important;
  border-bottom: 1px solid #cccccc !important;
  vertical-align: top !important;
}

.woocommerce-checkout-review-order-table .product-name {
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.woocommerce-checkout-review-order-table .product-quantity {
  font-weight: 500 !important;
  color: #999999 !important;
}

.woocommerce-checkout-review-order-table .product-total {
  text-align: right !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}

.woocommerce-checkout-review-order-table dl.variation {
  margin: 4px 0 0 !important;
  padding: 0 !important;
}
.woocommerce-checkout-review-order-table dl.variation dt,
.woocommerce-checkout-review-order-table dl.variation dd {
  font-size: 12px !important;
  color: #999999 !important;
  margin: 0 !important;
  float: none !important;
  display: inline !important;
}
.woocommerce-checkout-review-order-table dl.variation dt::after { content: ': '; }
.woocommerce-checkout-review-order-table dl.variation dd::after { content: '\A'; white-space: pre; }

/* Totals rows */
.woocommerce-checkout-review-order-table tfoot tr th,
.woocommerce-checkout-review-order-table tfoot tr td {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  color: #222222 !important;
  padding: 10px 0 !important;
  border-bottom: none !important;
}

.woocommerce-checkout-review-order-table tfoot tr th {
  font-weight: 400 !important;
  text-align: left !important;
}

.woocommerce-checkout-review-order-table tfoot tr td {
  text-align: right !important;
  font-weight: 500 !important;
}

.woocommerce-checkout-review-order-table tfoot .cart-subtotal th,
.woocommerce-checkout-review-order-table tfoot .cart-subtotal td {
  padding-top: 16px !important;
}

.woocommerce-checkout-review-order-table tfoot .order-total {
  border-top: 1px solid #cccccc !important;
}

.woocommerce-checkout-review-order-table tfoot .order-total th { font-weight: 500 !important; }
.woocommerce-checkout-review-order-table tfoot .order-total td {
  font-size: 24px !important;
  font-weight: 500 !important;
}

/* ── Payment section ──────────────────────────────────────── */
#payment.woocommerce-checkout-payment {
  border-top: 1px solid #cccccc !important;
  padding-top: 16px !important;
  background: transparent !important;
}

#payment .payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
}

#payment .wc_payment_method {
  padding: 12px 16px !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 8px !important;
  margin-bottom: 8px !important;
  background: #ffffff !important;
}

#payment .wc_payment_method:has(input:checked) {
  border-color: #203e31 !important;
}

#payment .wc_payment_method label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #222222 !important;
  cursor: pointer !important;
  margin: 0 !important;
}

#payment .wc_payment_method input[type="radio"] {
  accent-color: #203e31 !important;
  display: block !important;
  flex-shrink: 0 !important;
}

#payment .payment_box {
  background: #f5f1eb !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  margin-top: 10px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  color: #222222 !important;
}

/* Terms */
.woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 16px !important;
}

.woocommerce-terms-and-conditions-wrapper label,
.woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  color: #222222 !important;
  cursor: pointer !important;
  line-height: 1.5 !important;
}

/* Privacy policy text */
.woocommerce-privacy-policy-text {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  color: #222222 !important;
  line-height: 1.65 !important;
  margin-bottom: 12px !important;
}

.woocommerce-privacy-policy-text a { color: #fe9c29; }

/* Figma: Place order button — #fe9c29, radius 56px, 52px, Medium 16px #222 */
#payment #place_order,
.woocommerce-checkout #place_order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 52px !important;
  background: #fe9c29 !important;
  border: none !important;
  border-radius: 56px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #222222 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.2s !important;
  margin-top: 8px !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-shadow: none !important;
}

#payment #place_order:hover,
.woocommerce-checkout #place_order:hover {
  background: #e88f1a !important;
  color: #222222 !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
/*  form.woocommerce-checkout {*/
/*    grid-template-columns: 1fr !important;*/
/*    gap: 32px 0 !important;*/
/*    padding: 32px 0 64px !important;*/
/*  }*/

  #customer_details.col2-set { grid-column: 1 ; grid-row: 1 ; }
  #order_review { grid-column: 1 ; grid-row: 2 ; position: static; }
}
@media (max-width: 768px) {
  form.checkout.woocommerce-checkout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 32px !important;
  }

  #customer_details.col2-set {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  #order_review.woocommerce-checkout-review-order {
    grid-column: 1 !important;
    grid-row: 2 !important;
    position: static !important;
    width: 100% !important;
  }
}
@media (max-width: 640px) {
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
  }
  form.woocommerce-checkout { padding: 24px 0 48px !important; }
  .woocommerce-checkout .form-row label, .woocommerce-checkout .checkout_coupon input#coupon_code,
  .woocommerce-checkout input.input-text, .woocommerce-checkout .select2-selection__rendered{ font-size: 15px !important; }
  .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3{ font-size: 20px !important; }
}


/* ============================================================
   6. ORDER COMPLETE PAGE
   Figma: Order complete (246:5993)

   Виміри:
     Page: 1440×1665px, bg #f5f1eb
     Frame 529 (content): bg #ffffff, 1440×1060px
     Thank you heading (Frame 954): y=232, centered
       icon: 32×32, bg #307b5a, radius 50%
       text: Playfair Display Medium 24px, #307b5a
     Frame 943 container: x=21758, width=1010px
       padding-top: 344-152=192px від nav → відступ контенту 40px від steps
       Left (Frame 34): 600px
       Right card (Frame 940): 378px, bg #f5f1eb, radius 24px, height 268px
       Gap: 22390-21758-600=32px
     Card padding: 24px (22414-22390=24)
   ============================================================ */

/* Page bg */
.woocommerce-order-received .site-wrap,
.wc-thankyou-content-wrap {
  background: #ffffff;
}

.wc-thankyou-wrap {
  padding: 0 0 80px;
}

/* ── Heading ─────────────────────────────────────────────── */
/* Figma: flex row, icon left + text, padding-top ~40px від steps */
.wc-thankyou-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 48px 0 40px;
}

/* Figma: circle 32×32px, bg #307b5a */
.wc-thankyou-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #307b5a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wc-thankyou-icon svg { display: block; }

/* Figma: Playfair Display Medium 24px, #307b5a */
.woocommerce-thankyou-order-received {
  font-family: 'Playfair Display', serif !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  color: #307b5a !important;
  line-height: 1.33 !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
}

/* ── 2-col body: 600px left + 32px gap + 378px right ─────── */
.wc-thankyou-body {
  display: grid;
  grid-template-columns: 600px 378px;
  gap: 32px;
  align-items: start;
}

.wc-thankyou-left {}

/* Figma: section titles — Playfair Display Medium 24px, #222 */
.wc-order-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: #222222;
  margin: 40px 0 24px;
  line-height: 1.33;
  letter-spacing: 0;
}

.wc-order-section-title:first-child { margin-top: 0; }

/* Figma: items table — Regular 16px name, Medium 16px price */
.wc-order-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.wc-order-items-table tr { border-bottom: 1px solid #cccccc; }

.wc-order-items-table td {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #222222;
  padding: 12px 0;
  vertical-align: middle;
  line-height: 1.4;
}

.wc-order-items-table td:last-child {
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
  padding-left: 16px;
}

.wc-item-qty {
  font-size: 13px;
  color: #999999;
  margin-left: 4px;
}

/* Divider between sections */
.wc-section-divider {
  border: none;
  border-top: 1px solid #cccccc;
  margin: 24px 0 40px;
}

/* Figma: info tables — Regular 16px label left, Medium 16px value right */
.wc-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.wc-info-table tr { border-bottom: 1px solid #cccccc; }

.wc-info-table td {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #222222;
  padding: 12px 0;
  vertical-align: top;
  line-height: 1.4;
}

.wc-info-table td:first-child { font-weight: 400; width: 50%; }
.wc-info-table td:last-child { text-align: right; font-weight: 500; }

/* ── Right card — Figma: bg #f5f1eb, radius 24px, padding 24px ── */
.wc-thankyou-card {
  background: #f5f1eb;
  border-radius: 24px;        /* Figma: 24px — не 12px! */
  padding: 24px;
  position: sticky;
  top: 96px;
  border: none;
}

/* Figma: meta table rows — Regular 16px label, Medium 16px value right */
.wc-order-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.wc-order-meta-table td {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #222222;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: middle;
  line-height: 1.4;
}

.wc-order-meta-table tr:last-child td { border-bottom: none; }
.wc-order-meta-table td:first-child { font-weight: 400; }
.wc-order-meta-table td:last-child  { text-align: right; font-weight: 500; }

/* Figma: Download Invoice — outlined pill, border #999, radius 56px, 330×52px */
.wc-download-invoice {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border: 1.5px solid #999999;
  border-radius: 56px;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #222222;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0;
}

.wc-download-invoice:hover { background: rgba(0, 0, 0, 0.04); }

/* Hide WC default order overview (ми рендеримо своє) */
.woocommerce-order { max-width: none !important; padding: 0 !important; text-align: left !important; }
.woocommerce-order .woocommerce-order-overview { display: none !important; }
.woocommerce-order h2.woocommerce-column__title { display: none !important; }
.woocommerce-order address { font-style: normal; }

/* Checkout page wrap */
.wc-checkout-page-wrap { background: #ffffff; }
.wc-checkout-page-wrap .container { padding-top: 0; }

   8. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce {
    grid-template-columns: 1fr;
    padding: 32px 24px 64px;
  }

  #order_review { position: static; }

/*  .wc-checkout-steps { padding: 0 24px; }*/

  .mc-dropdown { width: 360px; }
}

@media (max-width: 640px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce { padding: 24px 16px 48px; }

  .mc-dropdown {
    width: calc(100vw - 32px);
    right: -8px;
  }

  .wc-steps-inner { gap: 0; }
/*  .wc-step-label { display: none; }*/
  .wc-step.is-active .wc-step-label { display: block; }

  .woocommerce-cart table.cart thead .product-price,
  .woocommerce-cart table.cart td.product-price { display: none; }
}


/* ============================================================
   CART PAGE — оновлений layout для нашого шаблону
   ============================================================ */

.wc-cart-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding: 48px 15px 80px;
}

.wc-cart-empty {
  padding: 64px 40px;
  text-align: center;
}

/* Кнопки Continue Shopping / Update Cart */
.wc-cart-wrap .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 0;
  border-top: 1.5px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.cart-actions-buttons {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.cart-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  padding: 11px 22px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 100px !important;
  background: var(--white) !important;
  font-family: var(--sans) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: border-color var(--t-fast), background var(--t-fast) !important;
}

.cart-action-btn:hover {
  border-color: var(--border-dark) !important;
  background: var(--cream) !important;
}

/* Coupon row */
.wc-cart-wrap .coupon {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
}

.wc-cart-wrap .coupon input#coupon_code {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  width: 200px;
  transition: border-color var(--t-fast);
}

.wc-cart-wrap .coupon input#coupon_code:focus { border-color: var(--text-mid); }
.wc-cart-wrap .coupon input#coupon_code::placeholder { color: var(--text-light); }

.wc-cart-wrap .coupon .button {
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.wc-cart-wrap .coupon .button:hover {
  border-color: var(--border-dark);
  background: var(--cream);
}

/* Cart totals right column */

/* ── Cart sidebar coupon (below Proceed button) ─────────────── */
.wc-cart-coupon {
  margin-top: 16px;
}

/*.wc-coupon-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 8px;
}*/

.wc-coupon-form input#coupon_code_sidebar {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--t-fast);
  margin-bottom: 8px;
  box-sizing: border-box;
}

.wc-coupon-form input#coupon_code_sidebar:focus { border-color: var(--text-mid); }
.wc-coupon-form input#coupon_code_sidebar::placeholder { color: var(--text-light); }

.wc-coupon-apply-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--white);
  color: var(--text-dark);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.wc-coupon-apply-btn:hover {
  border-color: var(--border-dark);
  background: var(--cream);
}

.wc-cart-right .cart_totals {
  position: sticky;
  top: 96px;
}

/* Add-Ons meta в cart */
.woocommerce-cart-form dl.variation,
.woocommerce-cart-form .wc-item-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.woocommerce-cart-form dl.variation dt,
.woocommerce-cart-form .wc-item-meta dt {
  font-weight: 500;
  display: inline;
}

.woocommerce-cart-form dl.variation dd,
.woocommerce-cart-form .wc-item-meta dd {
  display: inline;
  margin: 0;
}

.woocommerce-cart-form dl.variation dd::after { content: '\A'; white-space: pre; }


/* ============================================================
/* ============================================================
   MINI-CART — стилі для нашого mc-* markup
   (додаємо те що відсутнє в поточному файлі)
   ============================================================ */

/* Empty state */
.mc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.mc-empty-icon {
  color: var(--border-dark);
  margin-bottom: 14px;
}

.mc-empty-text {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.mc-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  transition: gap var(--t-fast);
}

.mc-empty-link:hover { gap: 10px; }

/* Ensure cart-wrap opens properly */
.cart-wrap { position: relative; flex-shrink: 0; }

/* Badge on white header */
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--orange);
  color: var(--white);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 9px 14px;
  background: transparent;
  border: none;
/*  border: 1.5px solid var(--border);*/
/*  border-radius: 100px;*/
/*  background: var(--white);*/
/*  font-family: var(--sans);*/
/*  font-size: 13.5px;*/
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
  line-height: 1;
  border: none;
}

.cart-link:hover {
/*  border-color: var(--border-dark);*/
/*  background: var(--cream);*/
}

.page-main .cart-link {
  color: var(--white);
/*  background: rgba(255,255,255,0.1);*/
/*  border: 1.5px solid rgba(255,255,255,0.25);*/
/*  backdrop-filter: blur(8px);*/
}

.page-main .cart-link:hover {
/*  background: rgba(255,255,255,0.18);*/
/*  border-color: rgba(255,255,255,0.45);*/
}

.cart-wrap.is-open .cart-link {
  background: var(--cream);
}






/**
 * shop-page.css — Toptrail Shop / Archive Products
 * Підключити в functions.php або вставити в style.css
 * 
 * Кольори: bg #f5f1eb (cream), accent #fe9c29 (orange), dark #214033 (forest)
 * Fonts: Playfair Display (serif), Montserrat (sans)
 */

/* ── Shop Hero ─────────────────────────────────────────────────── */
.shop-hero {
    background: #214033;
    padding: 56px 0 40px;
    position: relative;
    overflow: hidden;
}

/* Topographic bg pattern (same as hero section) */
.shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='200' viewBox='0 0 1440 200'%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
}

.shop-hero .container { position: relative; z-index: 1; }

.shop-hero-content {
    margin-top: 24px;
    text-align: center;
}

.shop-eyebrow {
    font-family: var(--sans, 'Montserrat', sans-serif);
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    margin-bottom: 12px;
    letter-spacing: 0;
}

.shop-title {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.14;
    margin: 0;
}

.shop-title span {
    color: #fe9c29;      /* Назва моделі виділена orange */
}

/* ── Filter Bar ────────────────────────────────────────────────── */
.shop-filter-bar {
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.shop-filters-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Pills */
.shop-model-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-pill {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 56px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    font-family: var(--sans, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.shop-pill:hover {
    border-color: #214033;
    color: #214033;
}

.shop-pill.is-active {
    background: #214033;
    border-color: #214033;
    color: #ffffff;
}

/* Results + ordering row */
.shop-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shop-count {
    font-family: var(--sans, 'Montserrat', sans-serif);
    font-size: 14px;
    color: #888;
}

/* WC ordering select */
.woocommerce-ordering select {
    height: 36px;
    padding: 0 32px 0 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-family: var(--sans, 'Montserrat', sans-serif);
    font-size: 14px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%23888' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
}

/* ── Products Section ──────────────────────────────────────────── */
.shop-products {
    background: #f5f1eb;
    padding: 56px 0 80px;
    min-height: 60vh;
}

/* WC ul.products grid */
.shop-products ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    .shop-products ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .shop-products ul.products { grid-template-columns: 1fr; }
}

/* Product card */
.shop-products ul.products li.product {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.shop-products ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(33,64,51,0.12);
}

/* Product image */
.shop-products ul.products li.product a img,
.shop-products ul.products li.product .woocommerce-loop-product__link img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* Product info area */
.shop-products .woocommerce-loop-product__title,
.shop-products ul.products li.product h2 {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: 20px;
    font-weight: 500;
    color: #222;
    padding: 16px 20px 4px;
    margin: 0;
    line-height: 1.3;
}

/* Price */
.shop-products ul.products li.product .price {
    display: block;
    padding: 4px 20px 16px;
    font-family: var(--sans, 'Montserrat', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: #214033;
}

.shop-products ul.products li.product .price del {
    color: #999;
    font-weight: 400;
    font-size: 14px;
}

/* Add to cart button */
.shop-products ul.products li.product .button,
.shop-products ul.products li.product .add_to_cart_button {
    display: block;
    margin: 0 20px 20px;
    padding: 0 24px;
    height: 44px;
    line-height: 44px;
    background: #fe9c29;
    color: #222222;
    border: none;
    border-radius: 56px;
    font-family: var(--sans, 'Montserrat', sans-serif);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

.shop-products ul.products li.product .button:hover {
    background: #e88f1a;
}

/* ── Pagination ────────────────────────────────────────────────── */
.shop-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.shop-pagination .woocommerce-pagination ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-pagination .woocommerce-pagination ul li a,
.shop-pagination .woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e6e6e6;
    font-family: var(--sans, 'Montserrat', sans-serif);
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: all 0.18s;
}

.shop-pagination .woocommerce-pagination ul li span.current,
.shop-pagination .woocommerce-pagination ul li a:hover {
    background: #214033;
    border-color: #214033;
    color: #ffffff;
}

/* ── No products found ─────────────────────────────────────────── */
.shop-no-products {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-no-products-inner {
    text-align: center;
    max-width: 480px;
    padding: 40px;
}

.shop-no-products-inner svg {
    margin-bottom: 24px;
    opacity: 0.6;
}

.shop-no-products-inner h2 {
    font-family: var(--serif, 'Playfair Display', serif);
    font-size: 32px;
    font-weight: 500;
    color: #222;
    margin-bottom: 12px;
}

.shop-no-products-inner p {
    font-family: var(--sans, 'Montserrat', sans-serif);
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 28px;
}

.shop-no-products-inner .btn-primary {
    display: inline-flex;
    align-items: center;
    height: 52px;
    padding: 0 32px;
    background: #214033;
    color: #ffffff;
    border-radius: 56px;
    font-family: var(--sans, 'Montserrat', sans-serif);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s;
}

.shop-no-products-inner .btn-primary:hover { background: #1a3228; }

/* ── Responsive filter bar ─────────────────────────────────────── */
@media (max-width: 768px) {
    .shop-filter-bar { position: static; }
    .shop-filters-inner { flex-direction: column; align-items: flex-start; }
    .shop-model-pills { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; }
    .shop-title { font-size: 32px; }
    .shop-hero { padding: 40px 0 32px; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .wc-cart-wrap,
  .wc-checkout-wrap {
    grid-template-columns: 1fr;
    padding: 32px 15px 64px;
    gap: 32px;
  }

  .wc-cart-right .cart_totals,
  .wc-order-summary { position: static; }

/*  .wc-checkout-steps { padding: 0 24px; }*/
}

@media (max-width: 640px) {
  .wc-cart-wrap,
  .wc-checkout-wrap { padding: 20px 15px 45px; }

/*  .wc-steps-inner { gap: 0; }*/
/*  .wc-step-label   { display: none; }*/
  .wc-step.is-active .wc-step-label,
  .wc-step.is-done .wc-step-label  { display: block; font-size: 12px; }

  .wc-checkout-form .form-row-first,
  .wc-checkout-form .form-row-last {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
  }

  .woocommerce-cart table.cart thead .product-price,
  .woocommerce-cart table.cart td.product-price { display: none; }
}


/* ============================================================
   SINGLE PRODUCT — car model dropdown + WC form overrides
   ============================================================ */

/* cfg-car-selector dropdown — той самий стиль що в конфігураторі */
.cfg-car-selector {
  position: relative;
  margin-bottom: 20px;
}

/* Кнопка-тригер — виглядає як prod-car-selector-row */
.cfg-car-selector .prod-car-selector-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color var(--t-base);
  font-family: var(--sans);
  text-align: left;
}
.cfg-car-selector .prod-car-selector-row:hover { border-color: var(--border-dark); }
.cfg-car-selector .prod-car-selector-row[aria-expanded="true"] { border-color: var(--text-mid); }
.cfg-car-selector .prod-car-selector-chevron { transition: transform var(--t-fast); margin-left: auto; flex-shrink: 0; }
.cfg-car-selector .prod-car-selector-row[aria-expanded="true"] .prod-car-selector-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.cfg-car-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 500;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-fast), visibility var(--t-fast), transform var(--t-fast);
  pointer-events: none;
}
.cfg-car-dropdown.is-open {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.cfg-car-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-md);
  color: var(--text-mid); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: background var(--t-fast), color var(--t-fast);
}
.cfg-car-item:hover { background: var(--cream); color: var(--text-dark); }
.cfg-car-item.is-selected { background: var(--cream); color: var(--text-dark); }
.cfg-car-item .di-img { width: 44px; height: 30px; flex-shrink: 0; display: flex; align-items: center; }
.cfg-car-item .di-img img { width: 44px; height: 30px; object-fit: contain; }
.cfg-car-item .di-check { margin-left: auto; width: 14px; height: 14px; flex-shrink: 0; opacity: 0; color: var(--orange); transition: opacity var(--t-fast); }
.cfg-car-item.is-selected .di-check { opacity: 1; }

/* Ховаємо WC variation select для car_model —
   він дублює наш cfg-car-selector dropdown */
.variations tr:has([data-attribute_name="attribute_car_model"]),
.variations tr:has([name*="car_model"]),
.woocommerce-variation-add-to-cart .variations .car_model-row,
table.variations tr.car_model { display: none !important; }

/* Стилізуємо WC стандартну форму add to cart */
.woocommerce div.product form.cart { margin: 0 !important; }

/* Qty + button від WC */
.woocommerce div.product form.cart .qty {
  width: 48px;
  height: 52px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md) 0 0 var(--r-md);
  border-right: none;
  text-align: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  -moz-appearance: textfield;
  outline: none;
  padding: 0;
}
.woocommerce div.product form.cart .qty::-webkit-inner-spin-button,
.woocommerce div.product form.cart .qty::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Variations table */
.woocommerce div.product .variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.woocommerce div.product .variations td,
.woocommerce div.product .variations th {
  padding: 0 0 12px;
  vertical-align: middle;
  border: none;
}
.woocommerce div.product .variations .label label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.3px;
  padding-right: 16px;
  white-space: nowrap;
}
.woocommerce div.product .variations .value select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5l4 4 4-4' stroke='%23888' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.woocommerce div.product .variations .value select:focus { border-color: var(--text-mid); }

/* Single add to cart button */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 14px 24px !important;
  background: var(--orange) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--r-md) !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  letter-spacing: 0.1px !important;
  transition: background var(--t-fast), transform 0.14s !important;
  height: 52px !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce div.product form.cart .button:hover {
  background: var(--orange-hover) !important;
  transform: translateY(-1px) !important;
}

/* Qty + button layout */
.woocommerce div.product form.cart .quantity { margin-right: 12px !important; }

/* Variation price */
.woocommerce-variation-price .price {
  font-family: var(--sans);
/*  font-size: clamp(24px, 3vw, 36px);*/
  font-size: 32px;
  font-weight: 500;
  color: var(--text-dark);
/*  letter-spacing: -0.4px;*/
}
/*.woocommerce-variation-price{
  margin-bottom: 32px;
}*/
/*.wc-pao-addons-container{ padding-bottom: 32px; }*/
.single_variation_wrap .wc-pao-addons-container .wc-pao-legend{
  font-family: var(--sans);
  font-size: 14px;
  color: #222;
  font-weight: 400;
  text-transform: none;
  margin-bottom: 10px;
}
.wc-pao-addon-image-swatch{
  outline-width: 1px;
    border-radius: 8px;
        outline-color: transparent;
}
.wc-pao-addon-image-swatch.selected{     outline-color: #000; }
.wc-pao-addon-image-swatch-selected-swatch{ display: none; }
/* ============================================================
   SINGLE PRODUCT — qty stepper + add to cart button
   Стилізуємо WC стандартний markup після вибору варіації
   ============================================================ */

/* Рядок qty + button */
.woocommerce div.product .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart .variations_button {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 20px !important;
}

/* Qty wrapper */
.woocommerce div.product .woocommerce-variation-add-to-cart .quantity,
.woocommerce div.product form.cart .quantity {
  display: flex !important;
  align-items: center !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-md) !important;
  overflow: hidden !important;
  background: var(--white) !important;
  flex-shrink: 0 !important;
  height: 52px !important;
}

/* +/- кнопки — наші qty-btn всередині .quantity */
.woocommerce-variation-add-to-cart .quantity{ 
  display: inline-flex;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    height: 52px;
}
.woocommerce-variation-add-to-cart .quantity .qty-btn {
  width: 44px !important;
  height: 52px !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-mid) !important;
  transition: background var(--t-fast), color var(--t-fast) !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}
.woocommerce div.product .quantity .qty-btn:hover {
  background: var(--cream) !important;
  color: var(--text-dark) !important;
}
.woocommerce div.product .quantity .qty-btn svg {
  width: 14px !important;
  height: 14px !important;
  pointer-events: none !important;
}
.woocommerce-variation-add-to-cart .quantity .qty{
    width: 46px !important;
  height: 52px !important;
}
/* Числовий input */
.woocommerce-variation-add-to-cart  .quantity input.qty {
  width: 46px !important;
  height: 52px !important;
  border: none !important;
  border-left: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
  text-align: center !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  background: transparent !important;
  -moz-appearance: textfield !important;
  outline: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.woocommerce div.product .quantity input.qty::-webkit-inner-spin-button,
.woocommerce div.product .quantity input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
}

/* Screen reader label — прибираємо з flex flow повністю */
.woocommerce div.product .quantity label.screen-reader-text,
.woocommerce div.product .quantity .screen-reader-text {
  /* display:contents щоб label не займав місце у flex але screen readers бачили */
  display: contents !important;
  width: 0 !important; height: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: 0 !important;
}

/* Add to cart button — pill стиль */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex: 1 !important;
  height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 8px 0 24px !important;
  background: var(--orange) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 100px !important;
  font-family: var(--sans) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  letter-spacing: 0.1px !important;
  text-transform: none !important;
  text-decoration: none !important;
  transition: background var(--t-fast), transform 0.14s !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button::after,
.woocommerce div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button::after {
  content: '';
  display: block;
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.15) url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 9h10M10 5l4 4-4 4' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-radius: 50%;
  flex-shrink: 0;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
  background: var(--orange-hover) !important;
  transform: translateY(-1px) !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button.disabled {
  background: var(--border-dark) !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 0.7 !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button.disabled::after,
.woocommerce div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button.disabled::after {
  background-color: rgba(0,0,0,0.1) !important;
}

/* Short description — під варіаційною ціною, перед qty */
.product-short-desc {
  font-size: 14px !important;
  color: var(--text-mid) !important;
  line-height: 1.75 !important;
  margin: 32px 0 !important;
  padding-bottom: 32px !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Variation price */
.woocommerce div.product .woocommerce-variation-price {
  margin: 0 !important;
  padding-top: 16px !important;
}
.woocommerce div.product .woocommerce-variation-price .price {
  font-family: var(--serif) !important;
  font-size: clamp(26px, 3vw, 38px) !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  letter-spacing: -0.4px !important;
  line-height: 1.1 !important;
}


/* ── Short description — завжди видима, JS переміщує її ─── */
.product-short-desc {
  display: block !important;
  visibility: visible !important;
  font-size: 14px !important;
  color: var(--text-mid) !important;
/*  line-height: 1.75 !important;*/
/*  margin: 16px 0 !important;*/
/*  padding-bottom: 16px !important;*/
  border-bottom: 1px solid var(--border) !important;
}

/* WC іноді ховає woocommerce-variation-description — переконуємось що видна */
.woocommerce-variation-description { display: none !important; } /* це WC окремий блок, не наш */


/* ── Product page: price-section (перед WC form) ────────────── */
.product-options .price-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.product-options .price-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.product-options .price-amount {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}
/*.product-options .price-amount .woocommerce-Price-amount {
 font-size: inherit !important;
  }*/

/* ── Short description ───────────────────────────────────────── */
.product-short-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}

/*.woocommerce-cart-form dl.variation dt, .woocommerce-cart-form .wc-item-meta dt,
.woocommerce-cart-form dl.variation dd, .woocommerce-cart-form .wc-item-meta dd{ display: inline-block;   }
*//*.woocommerce-cart-form dl.variation dt::before {
  content: '';
  display: block;    width: 100%;
    white-space: pre;
}*/

.woocommerce-cart-form dl.variation dd::after{ content: none; }

.woocommerce-cart-form dl.variation dt {
  display: inline;
  margin: 0;
}

.woocommerce-cart-form dl.variation dd {
  display: inline;
  margin: 0;
}

/* перенос перед кожним новим рядком */
.woocommerce-cart-form dl.variation dt:not(:first-child)::before {
  content: "\A";
  white-space: pre;
}
 

/* КЛЮЧ: прибрати <p> всередині dd */
.woocommerce-cart-form dl.variation dd p {
  display: inline;
  margin: 0;
}

 

 

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 13.5px;
  margin-bottom: 20px;
  border-left: 3px solid;
  list-style: none;
}

.woocommerce-message {
  background: rgba(60, 170, 90, 0.07);
  border-color: rgba(60, 170, 90, 0.5);
  color: var(--text-dark);
}

.woocommerce-info {
  background: transparent;
  border-color: var(--orange);
  color: var(--text-dark);
}

.woocommerce-error {
  background: rgba(220, 60, 60, 0.07);
  border-color: rgba(220, 60, 60, 0.5);
  color: var(--text-dark);
}

.woocommerce-message::before,
.woocommerce-info::before { display: none; } /* remove WC icons */


/*.woocommerce-cart-form dl.variation dt::after{     content: '\A'; white-space: pre; }*/
/* ============================================================
   RESPONSIVE — Cart / Checkout / Thankyou (Figma corrections)
   ============================================================ */
 



@media (max-width: 1100px) {
  .wc-cart-wrap,
  .wc-checkout-wrap {
    grid-template-columns: 1fr;
    padding: 32px 15px 64px;
    gap: 32px;
  }

  .wc-thankyou-body {
    grid-template-columns: 1fr;
  }
   .wc-thankyou-body { grid-template-columns: 1fr; gap: 32px; }
  .wc-thankyou-card { position: static; min-height: 0; }
  .wc-cart-right     { width: 100%; }
  .wc-thankyou-card  { position: static; }
  .wc-order-summary  { position: static; }

  .wc-checkout-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
/*  .wc-steps-inner { height: 80px; gap: 8px; }*/
.breadcrumb-wrap{     padding: 25px 0px 35px; }
.wc-steps-inner {
        height: max-content;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0;
        margin-top: 0px;         margin-bottom: 15px;
    }
  .wc-step-num    { width: 36px; height: 36px; font-size: 14px; }
  .wc-step-sep svg { width: 16px; height: 16px; }
  .wc-step-label  { font-size: 13px; }

  .cart-actions-buttons { flex-direction: column; }
  .cart-action-btn      { width: 100%; }

  .wc-thankyou-heading  { padding: 32px 0 24px; }
  .woocommerce-thankyou-order-received { font-size: 18px; }

  .wc-order-section-title { font-size: 20px; }
  .wc-checkout-section-title { font-size: 20px; }
   .wc-thankyou-heading { padding: 40px 0 24px; flex-wrap: wrap; }
  .woocommerce-thankyou-order-received { font-size: 20px !important; }
  .wc-order-section-title { font-size: 20px; }
  .wc-thankyou-wrap { padding: 0 0 48px; }
  .wc-info-table td:first-child { width: 45%; }
}

@media (max-width: 480px) {
/*  .wc-step-label { display: none; }*/
  .wc-step.is-active .wc-step-label { display: block; }
}

/* ============================================================
   CHECKOUT PAGE — container context override
   ============================================================ */

.wc-checkout-page-wrap {
  background: #ffffff;
}

 
 

/* Coupon/notices поза формою */
.woocommerce-checkout .woocommerce-notices-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.woocommerce-form-coupon-toggle { max-width: 1230px; margin: 0 auto; padding: 0 120px; }
.checkout_coupon.woocommerce-form-coupon { max-width: 1230px; margin: 0 auto; }

/* Responsive */
@media (max-width: 1280px) {
  .wc-checkout-page-wrap .container { padding: 0 40px; }
  .woocommerce-form-coupon-toggle { padding: 0 40px; }
}

@media (max-width: 768px) {
  .wc-checkout-page-wrap .container { padding: 0 16px; }
  .woocommerce-form-coupon-toggle { padding: 0 16px; }
}

/* ── Order complete responsive ─────────────────────────────── */
@media (max-width: 1100px) {
  .wc-thankyou-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .wc-thankyou-card { position: static; }
}

@media (max-width: 768px) {
  .wc-thankyou-heading { padding: 32px 0 24px; flex-wrap: wrap; }
  .woocommerce-thankyou-order-received { font-size: 20px !important; }
  .wc-order-section-title { font-size: 20px; }
  .wc-thankyou-wrap { padding: 0 0 48px; }
}




/* ============================================================
   THANKYOU — приховуємо WC дефолтний вивід
   WC додає: p.woocommerce-notice, ul.woocommerce-order-overview,
   section.woocommerce-order-details, section.woocommerce-customer-details
   Ми їх ховаємо бо наш thankyou.php виводить свій кастомний layout
   ============================================================ */

/* Ховаємо WC дефолтний notice (p.woocommerce-notice--success) */
.woocommerce-order > p.woocommerce-notice,
.woocommerce-order > p.woocommerce-thankyou-order-received { display: none !important; }

/* Ховаємо WC order overview list */
.woocommerce-order ul.woocommerce-order-overview,
.woocommerce-order .woocommerce-order-details,
.woocommerce-order .woocommerce-customer-details,
.woocommerce-order > p:not(.woocommerce-thankyou-order-received) { display: none !important; }

/* Ховаємо "Pay with cash upon delivery." параграф */
.woocommerce-order > p { display: none !important; }

/* Показуємо наш кастомний контент */
.wc-thankyou-content-wrap { display: block !important; }
.woocommerce-order .breadcrumb-wrap { display: block !important; }

/* Фон сторінки order-received */
.woocommerce-order-received #page,
.woocommerce-order-received .site-main,
.woocommerce-order-received .entry-content { background: #f5f1eb; }

/* .woocommerce-order — без зайвого padding/margin */
.woocommerce-order {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* ============================================================
   CHECKOUT — фікс layout коли форма всередині .woocommerce
   ============================================================ */

/* Переконуємось що .woocommerce на checkout не обмежує ширину */
.woocommerce-checkout .woocommerce,
.woocommerce-page.woocommerce-checkout .woocommerce {
  max-width: none !important;
  padding: 0 !important;
}

/* Checkout page bg */
.woocommerce-checkout #page,
.woocommerce-checkout .site-main,
.woocommerce-checkout .entry-content {
  background: #f5f1eb;
}

/* Coupon toggle + форма — обмежуємо і центруємо */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .checkout_coupon.woocommerce-form-coupon {
/*  max-width: 1440px !important;*/
/*  margin: 0 auto !important;*/
/*  background: #f5f1eb !important;*/
}

/* Checkout форма: white bg обгортка */
.woocommerce-checkout form.woocommerce-checkout {
  background: #ffffff;
}

/* Breadcrumb wrap на checkout/thankyou */
.woocommerce-checkout .breadcrumb-wrap,
.woocommerce-order-received .breadcrumb-wrap {
  background: #f5f1eb;
  display: block !important;
}

/* Steps на checkout */
.woocommerce-checkout .wc-checkout-steps {
  display: block !important;
}



.single-product-wrap{ background: #FFF; padding: 1px 0 40px;}
.single-product-wrap .breadcrumb { margin: 40px 0; }
.single-product-wrap .product-details{ max-width: 800px; padding-bottom: 40px;}
.woocommerce-variation-add-to-cart{
  display: flex;     gap: 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border) !important;
  align-items: center;
  margin-bottom: 32px;
}
.add-to-cart-btn, .single_add_to_cart_button{
  border-radius: 100px; position: relative;
  padding: 3px 3px 3px 22px;
    display: flex;
    justify-content: space-between;
    color: #222;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
  
}
.single_add_to_cart_button:after{
  content: "+";
  display: inline-block;
  width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
/*        position: absolute;*/
/*    right: 3px;*/
    color: #222;
}
/* ============================================================
   PRODUCT CATEGORY ARCHIVE — taxonomy-product_cat.php
   Toptrail
   ============================================================ */

.tt-cat-page {
  background: #f5f1eb;
}

/*.tt-cat-page .container {*/
/*  max-width: 1200px;*/
/*  margin: 0 auto;*/
/*  padding-left: 24px;*/
/*  padding-right: 24px;*/
/*}*/

/* ============================================================
   HERO
   ============================================================ */

.tt-cat-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #d9d2c8;
}

.tt-cat-hero__bg {
  position: absolute;
  inset: 0;
}

.tt-cat-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.18) 42%, rgba(0,0,0,0.08) 100%);
}

.tt-cat-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tt-cat-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.tt-cat-hero__content {
/*  max-width: 760px;*/
  padding: 80px 0;
}

.tt-cat-hero__title {
  margin: 0;
  color: #ffffff;
  font-family: var(--serif, "Playfair Display", serif);
/*  font-size: clamp(38px, 5vw, 64px);*/
  font-size: 48px;
  font-weight: 500;
  line-height: 1.08;
/*  letter-spacing: -0.02em;*/
}

.tt-cat-hero__text {
  margin-top: 18px;
  max-width: 640px;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  line-height: 1.75;
}

.tt-cat-hero__text p:last-child {
  margin-bottom: 0;
}


.tt-car-filter-label{ margin-bottom: 20px; }
.tt-car-filter-clear{ padding: 2px 5.5px;
    border-radius: 50%;
    border: 2px solid var(--orange, #fe9c29);
    margin: 0 3px; }
/* ============================================================
   BREADCRUMBS
   ============================================================ */

.tt-cat-breadcrumbs {
  padding: 22px 0 10px;
}

.tt-cat-breadcrumbs .woocommerce-breadcrumb {
  margin: 0;
  font-size: 13px;
  color: #8b8b8b;
  line-height: 1.5;
}

.tt-cat-breadcrumbs .woocommerce-breadcrumb a {
  color: #6f6f6f;
  text-decoration: none;
  transition: color var(--t-fast, 0.2s ease);
}

.tt-cat-breadcrumbs .woocommerce-breadcrumb a:hover {
  color: var(--orange, #fe9c29);
}

/* ============================================================
   TABS
   ============================================================ */

.tt-cat-tabs {
  padding: 40px 0 40px;
}

.tt-cat-tabs__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.tt-cat-tabs__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 12px;
  color: #2a2a2a;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast, 0.2s ease);
}

.tt-cat-tabs__link:hover {
  color: #111111;
}

.tt-cat-tabs__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background var(--t-fast, 0.2s ease);
}

.tt-cat-tabs__link.is-active::after,
.tt-cat-tabs__link:hover::after {
  background: var(--orange, #fe9c29);
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */

.tt-cat-products {
  padding: 6px 0 86px;
}

.tt-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 18px;
}

.tt-product-card {
  min-width: 0;
}

.tt-product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tt-product-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: #ebe5dc;
  margin-bottom: 16px;
}

.tt-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tt-product-card__link:hover .tt-product-card__image img {
  transform: scale(1.03);
}

.tt-product-card__content {
  padding-right: 8px;
}

.tt-product-card__title {
  margin: 0 0 6px;
  color: #222222;
  font-family: var(--serif, "Playfair Display", serif);
/*  font-size: clamp(24px, 2vw, 35px);*/
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
/*  letter-spacing: -0.02em;*/
}

.tt-product-card__meta {
  margin-bottom: 10px;
  color: #6f6f6f;
  font-size: 14px;
  line-height: 1.45;
}

.tt-product-card__price {
  color: #222222;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.tt-product-card__price .price,
.tt-product-card__price .amount,
.tt-product-card__price bdi,
.tt-product-card__price .woocommerce-Price-amount {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.tt-product-card__price del {
  opacity: 0.55;
  margin-right: 8px;
}

.tt-product-card__price ins {
  text-decoration: none;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.tt-cat-products .woocommerce-pagination {
  margin-top: 42px;
}

.tt-cat-products .woocommerce-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tt-cat-products .woocommerce-pagination ul.page-numbers li {
  border: none;
}

.tt-cat-products .woocommerce-pagination .page-numbers a,
.tt-cat-products .woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d7d0c7;
  background: #ffffff;
  color: #222222;
  font-size: 14px;
  text-decoration: none;
  transition: border-color var(--t-fast, 0.2s ease), background var(--t-fast, 0.2s ease), color var(--t-fast, 0.2s ease);
}

.tt-cat-products .woocommerce-pagination .page-numbers a:hover {
  border-color: #222222;
  background: #f5f1eb;
}

.tt-cat-products .woocommerce-pagination .page-numbers.current {
  background: #203e31;
  border-color: #203e31;
  color: #ffffff;
}

/* ============================================================
   NO PRODUCTS
   ============================================================ */

.tt-cat-products .woocommerce-info,
.tt-cat-products .woocommerce-no-products-found {
  margin-top: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .tt-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .tt-cat-tabs__nav {
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .tt-cat-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tt-cat-hero {
    min-height: 280px;
  }

  .tt-cat-hero__content {
    padding: 48px 0;
  }

  .tt-cat-hero__title {
    font-size: clamp(32px, 8vw, 44px);
  }

  .tt-cat-hero__text {
    font-size: 15px;
    line-height: 1.65;
  }

  .tt-cat-tabs {
    padding: 18px 0 28px;
  }

  .tt-cat-tabs__nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .tt-cat-tabs__link {
    font-size: 16px;
    padding-bottom: 10px;
  }

  .tt-product-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .tt-product-card__title {
    font-size: 30px;
  }

  .tt-product-card__price {
    font-size: 18px;
  }

  .tt-cat-products {
    padding-bottom: 56px;
  }

  .tt-cat-products .woocommerce-pagination {
    margin-top: 30px;
  }
  
  .shop_table .product-name { width: auto; }
  .shop_table td.product-thumbnail img {    width: 80px;    height: 70px;}
  .shop_table tbody tr.cart_item td{            font-size: 14px;    }
  .shop_table .qty-btn, .shop_table td.product-quantity .qty {    width: 40px;    height: 40px;}
  .shop_table td.product-quantity .quantity{ width: 120px;   }
  .shop_table .product-quantity{width: 140px;  }
}
@media (max-width: 480px){
    table.shop_table_responsive tr td {
    	display: block;
     text-align: center;
        margin: 0 auto;
    	clear: both;
    }
    .shop_table tbody tr.cart_item td {    padding: 5px 10px 5px 0;}
    .cart-actions-buttons{     margin-right: auto; }
    .cart_totals table .order-total td, .cart_totals table .cart-subtotal td{ text-align: center; }
}


.woocommerce-shipping-methods{ list-style: none; }