/*
 * pixel-lock.css — single source of truth for all artboard-derived overrides.
 * Replaces the three "Mockup pixel pass" blocks in main.css.
 * Loaded last via loria_enqueue_assets() so every rule wins without !important.
 *
 * Artboard reference widths (canvas px at 1440):
 *  – topbar              1440 × 98
 *  – PLP (pdp.ai)        1440 × 2283
 *  – PDP (plp.ai)        1440 × 2678
 *  – cart-drawer         1440 × 863
 *  – filter-drawer       1440 × 861
 *  – search-drawer       1440 × 379
 *  – variant / measure   1440 × 1243
 *  – cart                1440 × 1236
 *  – checkout            1440 × 1122
 *  – wishlist filled     1440 × 1236
 *  – order-summary       1440 × 1236
 *  – contact-us          1440 × 1119
 *  – footer              1440 × 347
 */

/* ─── 1. HEADER ─────────────────────────────────────────────────────────── */

/* Artboard: 66 px tall, 40 px inline padding, brand left, nav center, actions right. */
.loria-header-main__inner {
  min-height: var(--loria-header-h); /* 66px in :root */
  padding-inline: var(--loria-page-gutter); /* 40px */
}

/* Hide account icon on desktop — topbar.ai shows search + wishlist + cart only.
   The PHP Redux option show_header_account is set false, but CSS backs it up. */
.loria-header-account,
a.loria-header-account {
  display: none !important;
}

/* Person/account SVG in header actions area — hide it regardless of class name */
@media (min-width: 992px) {
  .loria-header-actions a:has(svg circle) {
    display: none !important;
  }
}

/* WhatsApp FAB is not on any artboard — remove from desktop; keep mobile. */
@media (min-width: 992px) {
  #loria-floating-whatsapp {
    display: none !important;
  }
}

/* ─── 2. ANNOUNCEMENT BAR ───────────────────────────────────────────────── */
/* Already set to 32px in :root override above */

/* ─── 3. PLP (pdp.ai) ────────────────────────────────────────────────────── */

/*
 * Archive header: breadcrumb + title in a single-column start block;
 * description below the title in a collapsed "read more" expander.
 * Artboard shows title right-aligned, short description beneath, no side grid.
 */
.loria-archive-header .loria-container {
  display: block;
}

.loria-archive-header__main {
  text-align: start;
}

/* Description below title, clamped to 2 lines matching the artboard layout */
.loria-archive-header .loria-archive-description {
  max-width: 700px;
  margin: 12px 0 0;
}

.loria-archive-header .loria-archive-desc-inner {
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loria-archive-header .loria-archive-description.is-expanded .loria-archive-desc-inner {
  display: block;
  -webkit-line-clamp: unset;
}

.loria-archive-title {
  font-size: 36px;
  font-weight: 500;
  margin: 4px 0 0;
}

.loria-archive-header .loria-subcats {
  margin-top: 20px;
}

/*
 * Toolbar: count on the right (RTL), sort + filter controls on the left.
 * Artboard has a thin top+bottom rule, 18px vertical pad.
 */
.loria-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  margin-bottom: 24px;
  border-top: 1px solid #e8e4df;
  border-bottom: 1px solid #e8e4df;
}

.loria-shop-toolbar__sort-label {
  font-size: 14px;
  margin-inline-end: 8px;
}

.loria-shop-toolbar .loria-filters-toggle {
  border: 1px solid #4e4d4d;
  background: #fff;
  min-height: 40px;
  padding: 0 16px;
  color: inherit;
}

/* Cards: no ATC bar on PLP, homepage, search, or related grids.
   The artboard shows heart / badges / image / title / price / rating / swatches only.
   ATC stays in variant modal, wishlist, and cart context. */
.loria-product-card__atc {
  display: none !important;
}

/* But keep ATC in wishlist add-all row */
.yith-wcwl-form .loria-product-card__atc,
.wishlist_table .loria-product-card__atc {
  display: flex !important;
}

/* Card info alignment */
.loria-product-card__title {
  font-size: 14px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

.loria-product-card__price,
.loria-product-card__rating {
  justify-content: center;
}

.loria-plp-swatches {
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}

/* Wishlist grid — 4 col matching wishlist.ai */
.loria-wishlist ul.products,
.yith-wcwl-form ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}

/* Wishlist add-all button */
.yith-wcwl-form .yith-add-all-to-cart,
.wishlist_table .button.add_all_to_cart {
  display: flex;
  margin: 32px auto 0;
  min-width: 240px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* ─── 4. PDP (plp.ai) ────────────────────────────────────────────────────── */

/*
 * Two-column PDP grid: gallery on the left ~50%, summary on the right.
 * Artboard breadcrumb + title/summary do not show a side-by-side grid for
 * gallery at the very top — the gallery is a 2×2 square grid.
 */
.loria-single-product__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  align-items: start;
}

/* 2×2 gallery grid matching plp.ai layout */
.loria-product-gallery__grid,
.woocommerce-product-gallery__wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.loria-product-gallery .woocommerce-product-gallery__image {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  aspect-ratio: 1;
}

.loria-product-gallery .woocommerce-product-gallery__image a,
.loria-product-gallery .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.loria-product-gallery .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* Summary: hide meta items not on the artboard */
.loria-single-product__summary .loria-pdp-sku,
.loria-single-product__summary .loria-pdp-share,
.loria-single-product__summary .product_meta,
.loria-single-product__summary .quantity,
.loria-single-product__summary .woocommerce-variation-add-to-cart .quantity {
  display: none !important;
}

/* Short description hidden — artboard uses accordion only */
.loria-single-product__summary .woocommerce-product-details__short-description {
  display: none;
}

/* Full-width ATC row */
.loria-single-product__summary form.cart,
.loria-single-product__summary .woocommerce-variation-add-to-cart,
.loria-pdp-atc-row {
  display: flex !important;
  align-items: stretch;
  gap: 12px;
  width: 100% !important;
  max-width: 100%;
}

.loria-pdp-atc-row .single_add_to_cart_button {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 52px;
  font-size: 16px;
}

.loria-pdp-atc-wish {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  border: 1px solid #d9d2cb;
  flex: 0 0 52px;
}

/* Benefits icons: 4-col row */
.loria-pdp-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.loria-pdp-benefits li {
  padding: 8px 4px 12px;
}

.loria-pdp-benefits__icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  display: block;
}

/* Complete-the-look strip */
.loria-pdp-complete {
  display: grid;
  grid-template-columns: 1fr auto;
  border-top: 1px solid #e8e4df;
  border-bottom: 1px solid #e8e4df;
  padding: 18px 0;
}

.loria-pdp-complete .loria-btn {
  min-height: 40px;
  padding: 0 18px;
}

.loria-pdp-complete__item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  background: #f3f1ee;
}

/* Help/inquiry strip */
.loria-pdp-help {
  background: #f3f1ee;
  padding: 18px 20px;
  margin-top: 16px;
}

/* Bestseller / related section heading */
.loria-single-product .related.products > h2,
.loria-pdp-bestsellers > h2 {
  font-size: 28px;
  font-weight: 600;
  text-align: start;
  margin: 48px 0 24px;
}

/* ─── 5. SEARCH DRAWER (topbar-search-drawer.ai) ────────────────────────── */

/*
 * 72px white bar with: title + close on the start edge, magnifier prefix,
 * full-width input, grey veil below.
 */
.loria-search-drawer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 var(--loria-page-gutter);
  background: #fff;
}

.loria-search-form--drawer {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  max-width: 800px;
}

.loria-search-form .search-field {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  background: transparent;
  color: var(--loria-text);
}

/* ─── 6. FILTER DRAWER (product-filter.ai geometry) ─────────────────────── */

/*
 * Artboard: ~42% of 1440 = ~600px start-edge sheet.
 * CSS uses 420px (pixel-pass 2) vs 800px (base). Lock at 560px (Zaban sheet ~≈42%).
 */
.loria-drawer--filters {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  width: min(560px, 92vw);
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  overflow: hidden;
  pointer-events: none;
}

.loria-drawer--filters.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

html[dir="rtl"] .loria-drawer--filters,
body.rtl .loria-drawer--filters {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

html[dir="rtl"] .loria-drawer--filters.is-open,
body.rtl .loria-drawer--filters.is-open {
  transform: translateX(0);
}

.loria-drawer--filters .loria-filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.loria-drawer--filters .loria-filters__title {
  font-size: 20px;
  font-weight: 600;
}

.loria-drawer--filters .loria-filters__inner,
.loria-drawer--filters .loria-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 0 24px 100px; /* extra bottom for sticky footer */
  -webkit-overflow-scrolling: touch;
}

.loria-drawer--filters .widget {
  margin: 0;
  padding: 0;
  border: 0;
}

.loria-drawer--filters .widget-title {
  position: relative;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  margin: -1px 0 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  border-top: 1px solid #e8e4df;
  cursor: pointer;
}

.loria-drawer--filters .widget-title::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.loria-drawer--filters .widget.is-collapsed .widget-title::after {
  content: "−";
}

.loria-drawer--filters .widget > :not(.widget-title) {
  padding-bottom: 16px;
}

.loria-drawer--filters .widget.is-collapsed > :not(.widget-title) {
  display: none;
}

/* Sticky Apply / Clear footer */
.loria-filters__footer {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid #e8e4df;
  direction: rtl;
}

.loria-filters__footer .loria-btn {
  flex: 1;
}

/* ─── 7. CART DRAWER (cart-drawer.ai) ────────────────────────────────────── */

/*
 * Artboard: end-edge panel on the physical RIGHT, full height, ~420px wide.
 * Items: 88px thumb, name, color, qty stepper + remove.
 * Footer: subtotal, Checkout + View cart buttons.
 *
 * The base main.css uses inset-inline-end: 0 (= physical left in RTL).
 * The pixel-pass block in main.css corrects to right: 0 (physical right).
 * We preserve that correction here with higher specificity.
 */
#loria-mini-cart.loria-mini-cart {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  inset-inline-end: auto !important;
  z-index: 100002;
  display: flex;
  flex-direction: column;
  width: min(420px, 92vw);
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow: hidden;
  pointer-events: none;
}

#loria-mini-cart.loria-mini-cart.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

/* Cart drawer header */
.loria-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e8e4df;
}

.loria-drawer__title {
  font-size: 18px;
  font-weight: 600;
}

/* Cart drawer body */
.loria-mini-cart > .loria-drawer__body,
.loria-mini-cart > #loria-mini-cart-body {
  flex: 1;
  overflow: auto;
  padding: 0 24px;
}

/* Cart item row */
.loria-mini-cart__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.loria-cart-product__thumb img,
.loria-mini-cart__item img {
  width: 88px !important;
  height: 88px !important;
  object-fit: cover;
  background: #f7f6f4;
  max-width: none !important;
}

/* Qty stepper */
.loria-mini-cart .loria-qty,
.loria-mini-cart .quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* Subtotal */
.loria-mini-cart__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #e8e4df;
  font-weight: 500;
}

/* Actions footer */
.loria-mini-cart__actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
}

.loria-mini-cart:has(.loria-mini-cart__empty) .loria-mini-cart__actions {
  display: none;
}

.loria-mini-cart__actions .loria-btn {
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loria-mini-cart__actions .loria-btn--ghost {
  border-color: #4e4d4d;
  color: #4e4d4d;
}

/* ─── 8. VARIANT MODAL (choose-variant-modal.ai) ─────────────────────────── */

/*
 * Artboard: centered card ~420px wide, close on top-start, title, measure link,
 * four size-row buttons, ATC at bottom. No overlay-wide PDP bleed.
 */
.loria-variant-modal {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.loria-variant-modal[hidden] {
  display: none;
}

.loria-variant-modal__panel {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  background: #fff;
  padding: 36px 28px 28px;
}

.loria-variant-modal__close {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  inset-inline-end: auto;
  border: 0;
  background: none;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.loria-variant-modal__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  text-align: start;
}

.loria-variant-modal__measure,
.loria-variant-modal__back {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}

.loria-variant-modal__measure-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #4e4d4d;
  border-radius: 50%;
}

.loria-variant-modal__back::before {
  content: "›";
}

.loria-variant-modal__options {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.loria-variant-option {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d9d2cb;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
}

.loria-variant-option.is-selected {
  border-color: #4e4d4d;
}

.loria-variant-modal__atc {
  width: 100%;
  min-height: 48px;
  background: #4e4d4d;
  color: #fff;
  border: 0;
  font-size: 15px;
  cursor: pointer;
}

/* ─── 9. MEASURE / SIZE-GUIDE MODAL (measurement-modal.ai) ──────────────── */

.loria-size-guide.is-open,
.loria-size-guide:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.loria-size-guide__panel {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  background: #fff;
  padding: 36px 32px;
}

/* ─── 10. CART PAGE (cart.ai) ────────────────────────────────────────────── */

/*
 * Artboard: table full width, summary stack on the start (right in RTL).
 * Thumb 88×88, remove underline, coupon-note note, checkout button full-width.
 */
.loria-cart .shop_table {
  border: 0;
}

.loria-cart .shop_table thead th,
.loria-cart .shop_table td {
  border-left: 0;
  border-right: 0;
  background: transparent;
  font-weight: 500;
}

.loria-cart-product__thumb img,
.woocommerce table.cart img {
  width: 88px !important;
  height: 88px !important;
  max-width: none !important;
  object-fit: cover;
}

.loria-cart .product-remove .remove {
  width: auto;
  height: auto;
  background: none !important;
  color: inherit !important;
  font-size: 14px;
  text-decoration: underline;
}

.loria-cart-actions-row {
  display: none;
}

/* Summary block — start edge, reasonable max width */
.cart-collaterals {
  max-width: 360px;
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.cart_totals h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
}

.cart_totals .shop_table,
.cart_totals .shop_table td,
.cart_totals .shop_table th,
.cart_totals {
  border: 0 !important;
  background: transparent !important;
}

.loria-cart-coupon-note {
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: #f3f1ee;
  font-size: 14px;
  white-space: normal;
  line-height: 1.5;
  max-width: 280px;
  margin-inline-start: auto;
}

.wc-proceed-to-checkout .checkout-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.cross-sells,
.woocommerce-cart .cross-sells {
  display: none !important;
}

.woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-message {
  display: none !important;
}

/* Cart qty stepper */
.loria-cart .product-quantity .quantity,
.loria-cart .loria-qty {
  border: 1px solid #d9d2cb;
}

/* ─── 11. CHECKOUT (checkout.ai) ─────────────────────────────────────────── */

/* Checkout page: no header, footer, FAB, or promo bar */
body.loria-checkout-page .loria-header,
body.loria-checkout-page .loria-footer,
body.loria-checkout-page .loria-floating-whatsapp,
body.loria-checkout-page #loria-floating-whatsapp,
body.loria-checkout-page .loria-promo-bar {
  display: none !important;
}

body.loria-checkout-page {
  padding-top: 0;
}

body.loria-checkout-page .loria-main {
  padding: 0;
}

body.loria-checkout-page .loria-container,
body.woocommerce-checkout .loria-main > .loria-container {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Two-column checkout form + summary */
.loria-checkout-wrap {
  display: block;
}

.loria-checkout.loria-checkout--ltr {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  width: 100%;
  min-height: 100vh;
  direction: ltr;
}

.loria-checkout--ltr .loria-checkout__primary,
.loria-checkout--ltr .loria-checkout__summary {
  direction: rtl;
}

.loria-checkout--ltr .loria-checkout__primary {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 40px 80px;
  background: #fff;
}

.loria-checkout--ltr .loria-checkout__summary {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  background: #f4f1ec;
  padding: 56px 8% 80px;
}

/* Logo in checkout */
.loria-checkout__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.loria-checkout__logo img,
.loria-checkout__logo svg,
.loria-checkout__logo .custom-logo {
  max-height: 56px;
  width: auto;
}

/* Checkout block header */
.loria-checkout-block {
  margin-bottom: 32px;
}

.loria-checkout-block__title {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #f4f1ec;
  font-size: 16px;
  font-weight: 500;
}

/* Billing fields two-column grid */
.loria-checkout .woocommerce-billing-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "first last"
    "phone email"
    "city address1"
    "postcode apt";
  gap: 12px 16px;
  direction: rtl;
}

.loria-checkout .woocommerce-billing-fields__field-wrapper > .form-row {
  display: none !important;
}

.loria-checkout #billing_first_name_field { display: block !important; grid-area: first; }
.loria-checkout #billing_last_name_field  { display: block !important; grid-area: last; }
.loria-checkout #billing_phone_field      { display: block !important; grid-area: phone; }
.loria-checkout #billing_email_field      { display: block !important; grid-area: email; }
.loria-checkout #billing_address_1_field  { display: block !important; grid-area: address1; }
.loria-checkout #billing_city_field       { display: block !important; grid-area: city; }
.loria-checkout #billing_postcode_field   { display: block !important; grid-area: postcode; }
.loria-checkout #billing_address_2_field  { display: block !important; grid-area: apt; }

.loria-checkout .woocommerce-billing-fields__field-wrapper > .form-row.hidden,
.loria-checkout #billing_country_field,
.loria-checkout #billing_state_field {
  display: none !important;
}

.loria-checkout .col2-set,
.loria-checkout .col-1,
.loria-checkout .col-2 {
  width: 100% !important;
  float: none !important;
  max-width: none !important;
}

/* Individual form rows */
.loria-checkout .form-row {
  position: relative;
  margin: 0 0 12px;
}

.loria-checkout .form-row label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
}

.loria-checkout .form-row .input-text,
.loria-checkout .form-row textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d9d2cb;
  border-radius: 0;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
}

.loria-checkout .form-row .optional,
.loria-checkout .woocommerce-additional-fields h3 {
  display: none !important;
}

/* Shipping fields hidden unless toggled */
.loria-checkout .woocommerce-shipping-fields .shipping_address,
.loria-checkout .woocommerce-shipping-fields > h3 {
  display: none !important;
}

.loria-checkout #ship-to-different-address {
  display: block;
  margin: 12px 0 0;
  text-align: start;
}

/* Payment block — VISIBLE (previously hidden) */
.loria-checkout #payment,
.loria-checkout .woocommerce-checkout-payment {
  width: 100%;
  background: transparent !important;
}

/* Hide payment box text / privacy but keep methods & submit */
.loria-checkout #payment .payment_box,
.loria-checkout .woocommerce-privacy-policy-text {
  display: none;
}

/* Terms checkbox visible */
.loria-checkout .woocommerce-terms-and-conditions-wrapper {
  order: 1;
  width: 100%;
}

.loria-checkout .woocommerce-terms-and-conditions-link {
  display: inline !important;
}

/* Place order button */
.loria-checkout #place_order {
  width: 100% !important;
  margin-top: 16px;
  min-height: 52px;
  background: #4e4d4d;
  color: #fff;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

/* Coupon row */
.loria-checkout-coupon-row td {
  padding: 8px 0 20px !important;
}

.loria-checkout-coupon-row,
.loria-checkout-coupon-row td {
  border: 0 !important;
}

/* Summary side item */
.loria-checkout-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.loria-checkout-item__thumb {
  flex: 0 0 56px;
  width: 56px;
}

.loria-checkout-item__info {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  display: block;
}

.loria-checkout-item__price {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: start;
}

/* Woo cart/checkout entry-title (hidden by page chrome) */
body.woocommerce-checkout .entry-title {
  display: none;
}

body.loria-checkout-page .woocommerce-notices-wrapper {
  display: none;
}

/* Gift-card redeem hidden — not on checkout.ai */
.loria-gift-card-redeem {
  display: none;
}

/* Create-account block hidden — not on checkout.ai artboard */
.loria-checkout .woocommerce-account-fields,
.loria-checkout #createaccount_field,
.loria-checkout .create-account,
.woocommerce-checkout .woocommerce-account-fields {
  display: none !important;
}

/* Woo "login to continue" prompt — hidden on Loria checkout */
.woocommerce-checkout .woocommerce-info {
  display: none !important;
}

/* ─── 12. THANK-YOU / ORDER SUMMARY (order-summary.ai) ───────────────────── */

/*
 * Artboard: standard header/footer present (not stripped like checkout),
 * success banner, big order-number heading, then a table of items + totals.
 */
.loria-thankyou {
  max-width: var(--loria-container);
  margin: 0 auto 48px;
  padding: 0 var(--loria-page-gutter);
}

.loria-thankyou__banner {
  display: block;
  padding: 20px 24px;
  margin: 0 0 32px;
  background: #f4f1ec;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.loria-thankyou__order-title {
  font-size: 36px;
  font-weight: 500;
  text-align: start;
  margin: 0 0 4px;
}

.loria-thankyou__title {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 500;
}

.loria-thankyou__lede {
  margin: 0 0 28px;
  color: var(--loria-muted, #6f6a64);
}

.loria-thankyou__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.loria-thankyou__cta {
  margin-top: 32px;
}

/* ─── 13. CONTACT (contact-us.ai) ────────────────────────────────────────── */

/*
 * Artboard: title/lede centered-start, 2-col form grid, full-width submit.
 * "More ways" row: phone, WhatsApp, Instagram — each with a 40px round icon.
 */
.loria-contact-page {
  max-width: 920px;
  margin: 0 auto 48px;
  text-align: start;
}

.loria-contact-page__head {
  margin: 8px 0 36px;
}

.loria-contact-page__title {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 600;
}

.loria-contact-page__lede {
  margin: 0;
  color: var(--loria-muted, #6f6a64);
}

.loria-contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}

.loria-contact-page__field {
  margin: 0;
}

.loria-contact-page__field label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
}

.loria-contact-page__field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d9d2cb;
  border-radius: 0;
  background: #fff;
  padding: 8px 12px;
}

/* Submit: full-width, matching the artboard's button spanning the form width */
.loria-contact-page__submit {
  display: block;
  width: 100%;
  margin: 24px 0 0;
  min-height: 48px;
  background: #4e4d4d;
  color: #fff;
  border: 0;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}

/* "More ways" section */
.loria-contact-page__more {
  background: #f3f1ee;
  padding: 36px 0;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}

.loria-contact-page__more-title,
.loria-contact-page__more-items {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--loria-page-gutter);
  box-sizing: border-box;
}

.loria-contact-page__more-title {
  margin-bottom: 20px;
  text-align: start;
  font-weight: 600;
}

.loria-contact-page__more-items {
  display: flex;
  justify-content: flex-start;
  gap: 48px;
}

.loria-contact-page__more-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.loria-contact-page__more-item span span {
  display: block;
  font-size: 13px;
}

/* Icon circles — SVG filled in PHP, but the circle sizing must match artboard */
.loria-contact-page__more-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5dfd6;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loria-contact-page__more-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── 14. FOOTER (footer.ai) ─────────────────────────────────────────────── */

/*
 * Artboard: cream bg, brand logo on the far end (RTL = left), three text
 * columns evenly spaced. Bottom row: centered copyright.
 * Gap between logo and nav is looser than the 80px in main.css.
 */
.loria-footer {
  padding: 56px 0 36px;
  background: #f7f6f4;
}

.loria-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 64px;
  flex-wrap: nowrap;
}

.loria-footer__brand {
  flex: 0 0 auto;
}

.loria-footer__brand .loria-logo-img,
.loria-footer__brand .custom-logo {
  height: 44px;
  width: auto;
  max-height: 44px;
}

.loria-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  flex: 1;
}

.loria-footer__col {
  min-width: 120px;
}

.loria-footer__heading {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}

.loria-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.loria-footer__menu li {
  margin: 0 0 8px;
}

.loria-footer__menu a {
  font-size: 14px;
  font-weight: 400;
  color: inherit;
}

.loria-footer__bottom {
  margin-top: 48px;
}

.loria-footer__copy {
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ─── 15. MISC LABEL / BADGE ──────────────────────────────────────────────── */

.loria-label,
.loria-label--sale,
.loria-label--bestseller,
.loria-label--new {
  background: #e8e2d9;
  color: #4e4d4d;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  font-weight: 500;
}

.loria-product-card__wish {
  inset-inline-end: 10px;
  inset-inline-start: auto;
}

/* ─── 16. WISHLIST PAGE ───────────────────────────────────────────────────── */

.loria-wishlist-head {
  margin: 8px 0 28px;
}

.loria-wishlist-title,
.loria-wishlist-page .entry-title,
.loria-wishlist .wishlist-title,
.yith-wcwl-form h2 {
  font-size: 36px;
  font-weight: 500;
  text-align: start;
  margin: 8px 0 0;
}

.loria-wishlist-empty {
  display: block;
  padding: 36px 24px;
  background: #f4f1ec;
  text-align: center;
}

.loria-wishlist-empty .loria-btn {
  margin-top: 16px;
}

/* ─── 16b. THANK-YOU TABLE STYLES ─────────────────────────────────────────── */

.loria-thankyou__table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.loria-thankyou__table thead th {
  font-size: 13px;
  font-weight: 600;
  text-align: start;
  padding: 0 0 12px;
  border-bottom: 1px solid #e8e4df;
  color: var(--loria-muted);
}

.loria-thankyou__table tbody td {
  padding: 16px 0;
  border-bottom: 1px solid #e8e4df;
  vertical-align: middle;
}

.loria-thankyou__table tfoot th,
.loria-thankyou__table tfoot td {
  padding: 10px 0;
  font-weight: 500;
}

.loria-thankyou__total th,
.loria-thankyou__total td {
  font-size: 18px;
  font-weight: 700;
  padding-top: 16px;
}

.loria-thankyou__col-qty,
.loria-thankyou__col-total {
  text-align: start;
  white-space: nowrap;
}

.loria-thankyou__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.loria-thankyou__item-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #f7f6f4;
}

.loria-thankyou__item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 500;
}

.loria-cart-item-attr {
  font-size: 12px;
  color: var(--loria-muted);
  font-weight: 400;
}

/* ─── 17. RESPONSIVE BREAKPOINTS ─────────────────────────────────────────── */

/* 1024px — tablet: keep two columns, shrink paddings */
@media (max-width: 1024px) {
  :root {
    --loria-page-gutter: 24px;
    --loria-header-h: 60px;
  }

  .loria-checkout.loria-checkout--ltr {
    grid-template-columns: 1fr 1fr;
  }

  .loria-single-product__grid {
    gap: 0 32px;
  }

  .loria-pdp-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 991px — collapse checkout summary below form */
@media (max-width: 991px) {
  .loria-checkout.loria-checkout--ltr {
    grid-template-columns: 1fr !important;
  }

  .loria-checkout--ltr .loria-checkout__primary,
  .loria-checkout--ltr .loria-checkout__summary {
    grid-column: 1 !important;
    grid-row: auto !important;
    max-width: none;
  }

  .loria-archive-header .loria-container {
    display: block;
  }

  .loria-product-gallery__grid,
  .woocommerce-product-gallery__wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .loria-single-product__grid {
    grid-template-columns: 1fr;
  }

  .loria-single-product__gallery {
    margin-bottom: 24px;
  }

  .loria-mini-cart__actions {
    flex-direction: column;
  }

  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 768px — tablet portrait */
@media (max-width: 768px) {
  :root {
    --loria-page-gutter: 16px;
  }

  .loria-checkout .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "first"
      "last"
      "phone"
      "email"
      "city"
      "address1"
      "postcode"
      "apt";
  }

  .loria-contact-page__grid {
    grid-template-columns: 1fr;
  }

  .loria-contact-page__more-items {
    flex-direction: column;
    gap: 24px;
  }

  .loria-footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .loria-footer__nav {
    gap: 24px 40px;
  }

  .loria-wishlist ul.products,
  .yith-wcwl-form ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 390px — mobile */
@media (max-width: 430px) {
  :root {
    --loria-page-gutter: 16px;
  }

  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loria-checkout.loria-checkout--ltr {
    grid-template-columns: 1fr;
  }

  .loria-product-gallery__grid,
  .woocommerce-product-gallery__wrapper {
    grid-template-columns: 1fr;
  }

  .loria-pdp-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loria-mini-cart {
    width: 100vw;
  }

  .loria-drawer--filters {
    width: 100vw;
  }

  .loria-contact-page__submit {
    width: 100%;
  }
}
