/* ==========================================================================
   Odaline: WooCommerce (archive, product, quick view, cart, checkout, account)
   ========================================================================== */

/* ---------- Collection archive ---------- */
.collection { position: relative; }
.collection__banner { height: clamp(220px, 34vw, 460px); background: var(--cream); overflow: hidden; }
.collection__img { width: 100%; height: 100%; object-fit: cover; }
.collection__text { padding: clamp(32px, 5vw, 64px) var(--gutter) 24px; max-width: 880px; }
.collection__title { font-size: clamp(38px, 6vw, 84px); }
.collection__desc { margin: 16px 0 0; max-width: 560px; color: var(--ink-soft); font-size: 14px; line-height: 1.85; }

.toolbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
	padding: 14px var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	position: sticky; top: var(--header-h); z-index: 20; background: var(--ivory);
}
.toolbar__cats { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.toolbar__cats a { color: var(--ink-mute); padding: 8px 0; }
.toolbar__cats a:hover, .toolbar__cats a[aria-current="page"] { color: var(--ink); }
.toolbar__tools { display: flex; align-items: center; gap: 22px; }
.toolbar__count { color: var(--ink-soft); }
.toolbar__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.toolbar__sort select {
	appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink);
	font: 400 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
	padding: 12px 18px 12px 0; cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%232a2724' stroke-width='1'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") right center no-repeat;
}
.grid--archive { padding: 36px var(--gutter) 0; }
.site-main--archive .navigation.pagination { padding: 0 var(--gutter) 80px; }

.filters__group { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.filters__group legend { padding: 0; margin-bottom: 14px; font: 400 22px/1 var(--serif); }
.filters__options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
	border: 1px solid var(--line); font-size: 12px; letter-spacing: 0.08em; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.filters .panel__body { padding: 24px; }
.filters__price { display: flex; gap: 10px; }
.filters__price input { width: 100%; }

/* ---------- Form fields (shared) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], textarea, select {
	font: 300 14px/1.4 var(--sans); color: var(--ink);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.filters__price input,
.woocommerce-cart .coupon input.input-text {
	width: 100%; min-height: 48px; padding: 10px 14px;
	background: var(--paper); border: 1px solid var(--line); border-radius: 0; transition: border-color 0.25s;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.filters__price input:focus { outline: 0; border-color: var(--ink); }
.woocommerce form .form-row { margin: 0 0 16px; }
.woocommerce form .form-row label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.woocommerce form .form-row .required { color: var(--ink); text-decoration: none; }
.select2-container--default .select2-selection--single { height: 48px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 14px; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr); gap: 0; }
.pdp .gallery { display: grid; gap: 4px; background: var(--ivory); }
.gallery__item { margin: 0; background: var(--cream); }
.gallery__img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.pdp__summary {
	position: sticky; top: var(--header-h); align-self: start; max-height: calc(100svh - var(--header-h)); overflow-y: auto;
	padding: clamp(28px, 4vw, 64px); scrollbar-width: thin;
}
.pdp__cat { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.pdp__title { font-size: clamp(34px, 4vw, 54px); margin-bottom: 12px; }
.pdp__short { color: var(--ink-soft); font-size: 14px; line-height: 1.85; margin: 18px 0 8px; }
.pdp__form { margin: 26px 0 6px; }
.pdp__details { margin-top: 28px; border-top: 1px solid var(--line); }
.pdp__details details { border-bottom: 1px solid var(--line); }
.pdp__details summary {
	list-style: none; cursor: pointer; padding: 18px 0; font: 400 22px/1 var(--serif);
	display: flex; justify-content: space-between; align-items: center;
}
.pdp__details summary::-webkit-details-marker { display: none; }
.pdp__details summary::after { content: "+"; font: 300 20px/1 var(--sans); }
.pdp__details details[open] summary::after { content: "\2212"; }
.pdp__details .entry { padding-bottom: 20px; font-size: 14px; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 13px; }
.woocommerce-product-attributes th { text-align: left; font-weight: 400; color: var(--ink-soft); width: 38%; padding: 8px 0; }
.woocommerce-product-attributes td { padding: 8px 0; }
.woocommerce-product-attributes td p { margin: 0; }

@media (max-width: 899.98px) {
	.pdp { grid-template-columns: 1fr; }
	.pdp .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 3px; }
	.pdp .gallery::-webkit-scrollbar { display: none; }
	.pdp .gallery .gallery__item { flex: 0 0 88%; scroll-snap-align: start; }
	.pdp .gallery .gallery__item:only-child { flex-basis: 100%; }
	.pdp__summary { position: static; max-height: none; overflow: visible; padding: 28px var(--gutter) 40px; }
}

/* Variations: swatches replace the native selects */
.variations { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.variations tr { display: block; margin-bottom: 18px; }
.variations th, .variations td { display: block; padding: 0; text-align: left; }
.variations label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 10px; }
.variations select.is-swatched { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
	min-width: 48px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line);
	font-size: 12px; letter-spacing: 0.08em; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.swatch:hover:not(:disabled) { border-color: var(--ink); }
.swatch.is-on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.swatch:disabled { color: var(--ink-mute); text-decoration: line-through; cursor: not-allowed; opacity: 0.6; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.single_variation_wrap .woocommerce-variation-price { display: none; }
.woocommerce-variation-availability { font-size: 12px; color: var(--ink-soft); margin-bottom: 12px; }
.woocommerce-variation-availability p { margin: 0; }
.stock.out-of-stock { color: #8a4b3d; }

.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.single_add_to_cart_button { flex: 1; min-width: 180px; min-height: 46px; padding: 0 28px; border: 1px solid var(--ink); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: opacity 0.3s, background 0.3s; }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { opacity: 0.35; cursor: not-allowed; }
.single_add_to_cart_button.is-busy { opacity: 0.55; }

/* ---------- Quick view ---------- */
.qv { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.qv__media { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--cream); max-height: 90svh; }
.qv__media::-webkit-scrollbar { display: none; }
.qv__media .gallery__item { flex: 0 0 100%; scroll-snap-align: start; }
.qv__media .gallery__img { height: 100%; aspect-ratio: auto; min-height: 100%; }
.qv__body { padding: clamp(24px, 4vw, 48px); overflow-y: auto; }
.qv__title { font-size: clamp(28px, 3vw, 40px); margin: 0 0 8px; }
.qv__desc { color: var(--ink-soft); font-size: 13px; margin: 14px 0 20px; }
.qv__desc p { margin: 0; }
.qv__links { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; gap: 8px; }
.qv-loading, .qv-error { padding: 80px 24px; text-align: center; color: var(--ink-soft); }
@media (max-width: 700px) {
	.qv { grid-template-columns: 1fr; }
	.qv__media { max-height: 46svh; }
}

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
	margin: 0 var(--gutter) 24px; padding: 16px 20px; list-style: none;
	background: var(--cream); font-size: 13px;
}
.page-wrap .woocommerce-message, .page-wrap .woocommerce-info, .page-wrap .woocommerce-error { margin-left: 0; margin-right: 0; }
.woocommerce-error { background: #f1e1da; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 38px; padding: 0 18px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Cart ---------- */
.woocommerce-cart .page-wrap, .woocommerce-checkout .page-wrap, .woocommerce-account .page-wrap { max-width: 1240px; }
.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr); gap: 0 clamp(28px, 5vw, 80px); align-items: start; }
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce > .woocommerce-message { grid-column: 1 / -1; }
.woocommerce-cart-form { min-width: 0; }
table.shop_table { width: 100%; border-collapse: collapse; }
table.shop_table th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding: 0 0 14px; border-bottom: 1px solid var(--line); }
table.shop_table td { padding: 20px 10px 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table .product-thumbnail img { width: 84px; height: 108px; object-fit: cover; background: var(--cream); }
table.shop_table .product-name a { font: 400 20px/1.2 var(--serif); }
table.shop_table .product-remove a { font-size: 22px; color: var(--ink-soft); }
table.shop_table dl.variation { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); }
table.shop_table dl.variation dt, table.shop_table dl.variation dd { display: inline; margin: 0; }
table.shop_table dl.variation dd p { display: inline; margin: 0; }
.woocommerce-cart table.cart td.actions { padding: 24px 0 0; border: 0; }
.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 10px; float: left; }
.woocommerce-cart table.cart td.actions > .button { float: right; }
.woocommerce-cart table.cart td.actions .button { min-height: 48px; }
.cart-collaterals { background: var(--paper); padding: clamp(22px, 3vw, 36px); position: sticky; top: calc(var(--header-h) + 20px); }
.cart_totals h2 { font-size: 28px; margin-bottom: 16px; }
.cart_totals table th { padding: 12px 0; font-size: 11px; }
.cart_totals table td { padding: 12px 0; text-align: right; }
.wc-proceed-to-checkout .button { width: 100%; margin-top: 18px; background: var(--ink); color: var(--ivory); min-height: 52px; }
.cart-empty { font: 400 28px/1.2 var(--serif); text-align: center; padding: 48px 0 12px; grid-column: 1 / -1; }
.return-to-shop { text-align: center; grid-column: 1 / -1; }
@media (max-width: 899.98px) {
	.woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
	.cart-collaterals { position: static; margin-top: 32px; }
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: grid; grid-template-columns: 90px 1fr; gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
	table.shop_table_responsive td { display: block; padding: 0; border: 0; text-align: left !important; }
	table.shop_table_responsive td::before { content: attr(data-title) ": "; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
	table.shop_table_responsive td.product-thumbnail { grid-row: 1 / span 4; }
	table.shop_table_responsive td.product-thumbnail::before, table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.product-name::before, table.shop_table_responsive td.actions::before { display: none; }
	table.shop_table_responsive td.product-remove { position: absolute; top: 14px; right: 0; }
	.woocommerce-cart table.cart td.actions { grid-column: 1 / -1; }
	.woocommerce-cart table.cart td.actions .coupon, .woocommerce-cart table.cart td.actions > .button { float: none; width: 100%; }
	.woocommerce-cart table.cart td.actions > .button { margin-top: 10px; }
}

/* ---------- Checkout ---------- */
form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 0 clamp(28px, 5vw, 80px); align-items: start; }
form.checkout #customer_details { min-width: 0; }
form.checkout .col2-set .col-1, form.checkout .col2-set .col-2 { width: 100%; float: none; }
form.checkout h3, #order_review_heading { font: 400 28px/1.1 var(--serif); margin: 0 0 20px; }
form.checkout .col-2 { margin-top: 28px; }
form.checkout .form-row-first, form.checkout .form-row-last { width: calc(50% - 8px); float: left; }
form.checkout .form-row-first { margin-right: 16px; }
form.checkout .form-row-wide, form.checkout .notes { clear: both; }
#order_review_heading, #order_review { grid-column: 2; }
#order_review { background: var(--paper); padding: clamp(20px, 3vw, 32px); }
#payment { margin-top: 24px; }
#payment ul.payment_methods { list-style: none; margin: 0 0 18px; padding: 0; }
#payment ul.payment_methods li { padding: 14px 0; border-bottom: 1px solid var(--line); }
#payment .payment_box { margin-top: 10px; padding: 14px; background: var(--cream); font-size: 13px; }
#payment .payment_box p:last-child { margin: 0; }
#place_order { width: 100%; min-height: 54px; border: 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 12px 0; }
.woocommerce-checkout-review-order-table .product-name { font-size: 13px; }
.woocommerce-privacy-policy-text { font-size: 12px; color: var(--ink-soft); }
.woocommerce-form-coupon-toggle, form.checkout_coupon { grid-column: 1 / -1; }
@media (max-width: 899.98px) {
	form.checkout { grid-template-columns: 1fr; }
	#order_review_heading, #order_review { grid-column: 1; }
	form.checkout .form-row-first, form.checkout .form-row-last { width: 100%; float: none; margin-right: 0; }
}

/* ---------- Account ---------- */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 520px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 0; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { color: var(--ink); }
.woocommerce-MyAccount-content { min-width: 0; }
.u-columns.col2-set { display: grid; gap: 40px; }
.woocommerce-form-login, .woocommerce-form-register { padding: 0; border: 0; margin: 0; }
.woocommerce h2 { font-size: 30px; margin-bottom: 18px; }
.woocommerce-address-fields .button, .woocommerce-form-login .button, .woocommerce-form-register .button, .woocommerce-EditAccountForm .button { background: var(--ink); color: var(--ivory); }
.woocommerce-orders-table .button, .woocommerce-orders-table__cell-order-actions .button { min-height: 36px; padding: 0 16px; font-size: 11px; }
.woocommerce-Addresses { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 899.98px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; } }

/* Wishlist page */
.wishlist .grid { margin-top: 8px; }
