/* ==========================================================================
   طلای صدف · Tala Sadaf — WooCommerce styles
   1. Product card (loop)
   2. Shop layout: header, toolbar, ordering, sidebar/filters
   3. Pagination & notices
   4. Single product: gallery, summary, price, qty, add-to-cart, tabs, related
   5. Cart
   6. Checkout
   7. My Account
   8. Misc (badges, store notice, widgets)
   ========================================================================== */

/* Hide default WC page title (we render our own header). */
.woocommerce-products-header__title.page-title { display: none; }

/* ---- WC pages get full-width content (override narrow prose) ---- */
.woocommerce-cart .tala-prose,
.woocommerce-checkout .tala-prose,
.woocommerce-account .tala-prose,
.woocommerce-page .tala-prose { max-width: var(--maxw); }

/* 1. ─────────────────────── PRODUCT CARD ──────────────────────────────── */
ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
/* Kill WooCommerce core's clearfix pseudo-elements. In a CSS-grid `ul.products`
   they otherwise become grid ITEMS and eat a cell (an empty slot, usually the
   first/rightmost). Core's `.woocommerce ul.products::before` (0,2,2) outranks a
   plain `ul.products::before` (0,1,2), so we match its specificity AND force it. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after { content: none !important; display: none !important; }
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }

.tala-product-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column; transition: var(--ease);
}
.tala-product-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }

.tala-product-card__media { position: relative; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; flex: none; }
.tala-product-card__link { display: block; width: 100%; height: 100%; }
.tala-product-card__img,
.tala-product-card__media img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .45s ease; display: block; }
.tala-product-card:hover .tala-product-card__img { transform: scale(1.04); }

.tala-product-card__badges { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 2; }
.tala-product-card__badges .tala-badge,
.tala-product-card__badges .onsale { margin: 0; }

.tala-product-card__wish,
.tala-wish {
	position: absolute; top: 8px; left: 8px; z-index: 3;
	width: 34px; height: 34px; border-radius: 50%; border: none;
	background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
	color: var(--ink-soft); cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; transition: var(--ease);
}
.tala-product-card__wish:hover, .tala-wish:hover { color: var(--gold-deep); }
.tala-wish.is-active { color: var(--sale); }
.tala-wish.is-active .tala-icon { fill: var(--sale); }

.tala-product-card__soldout {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(250,249,246,.55); z-index: 2;
}
.tala-product-card__soldout .tala-badge { background: var(--ink); color: #f3ede2; font-weight: 700; padding: 8px 18px; }

.tala-product-card__quickview {
	position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; z-index: 2;
	opacity: 0; transform: translateY(8px); transition: var(--ease); pointer-events: none;
}
.tala-product-card:hover .tala-product-card__quickview { opacity: 1; transform: none; pointer-events: auto; }

.tala-product-card__body { padding: 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tala-product-card__cat { font-size: 11px; color: var(--ink-soft); }
.tala-product-card__title { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0; }
.tala-product-card__title a { color: var(--ink); }
.tala-product-card__title a:hover { color: var(--gold-deep); }
.tala-product-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.tala-product-card__foot { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: auto; padding-top: 6px; }
.tala-product-card__price { font-size: 16px; font-weight: 700; color: var(--ink); }
.tala-product-card__price del { color: var(--sale); font-size: 11.5px; font-weight: 500; display: block; line-height: 1.2; }
.tala-product-card__price ins { text-decoration: none; }
.tala-product-card__price .woocommerce-Price-amount { font-weight: 700; }
.tala-product-card__price .woocommerce-Price-currencySymbol { font-size: 11px; font-weight: 500; color: var(--ink-soft); margin-right: 2px; }

/* Clear, branded AJAX add-to-cart action. */
.tala-cart-button,
.tala-product-card__foot a.add_to_cart_button,
.tala-product-card__foot a.added_to_cart,
.tala-product-card__foot a.product_type_variable,
.tala-product-card__foot a.product_type_grouped,
.tala-product-card__foot a.button {
	width: 100%; min-height: 42px; padding: 10px 15px; border-radius: 10px;
	background: var(--navy); color: #fff; border: 1px solid var(--navy); cursor: pointer; box-shadow: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.5;
	white-space: nowrap; position: relative; transition: var(--ease);
}
.tala-product-card__foot a.button:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); filter: none; box-shadow: var(--shadow-md); }
.tala-product-card__foot a.loading { opacity: .7; }
.tala-cart-button.disabled { background: var(--surface); color: var(--ink-faint); cursor: not-allowed; border-color: var(--line); }
.tala-product-card__foot a.added_to_cart { display: none !important; }

/* 2. ─────────────────────── SHOP LAYOUT ───────────────────────────────── */
.tala-shop-toolbar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 14px 18px; margin-bottom: 24px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.tala-shop-toolbar__count { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.woocommerce-result-count { margin: 0 !important; }
.tala-shop-toolbar__actions { display: flex; align-items: center; gap: 12px; }
.tala-shop-toolbar__order { margin: 0; }
.woocommerce-ordering { margin: 0 !important; }
.woocommerce-ordering select { min-width: 190px; }

.tala-shop-layout { display: block; }
.tala-shop-layout.has-filters { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 30px; align-items: start; }

.tala-shop-sidebar { background: transparent; }
.tala-shop-sidebar__head { display: none; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tala-shop-sidebar__head span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.tala-shop-sidebar__body { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 150px; }
.tala-shop-sidebar__overlay { display: none; }

.tala-shop-widget,
.tala-shop-sidebar .widget {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.tala-shop-sidebar .widgettitle,
.tala-shop-sidebar .widget-title,
.tala-shop-sidebar .tala-widget__title {
	font-size: 14.5px; font-weight: 700; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.tala-shop-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tala-shop-sidebar ul li { font-size: 14px; color: var(--ink-soft); }
.tala-shop-sidebar a:hover { color: var(--gold-deep); }
.tala-shop-sidebar .count { color: var(--ink-faint); font-size: 12px; }

/* Layered nav (attribute) chips */
.tala-shop-sidebar .woocommerce-widget-layered-nav-list { gap: 9px; }
.tala-shop-sidebar .woocommerce-widget-layered-nav-list__item a { display: inline-flex; align-items: center; }
.tala-shop-sidebar .chosen a, .woocommerce-widget-layered-nav-list__item--chosen a { color: var(--gold-deep); font-weight: 600; }

/* ---- Native theme filter form ---- */
.tala-filters { display: flex; flex-direction: column; }
.tala-filter-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 16px; margin-bottom: 14px; }
.tala-filter-group__head {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 13px 0; background: none; border: none; cursor: pointer; text-align: right;
	font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.tala-filter-group__head .tala-icon { color: var(--ink-soft); transition: transform var(--ease); flex: none; }
.tala-filter-group.is-collapsed .tala-filter-group__head .tala-icon { transform: rotate(-90deg); }
.tala-filter-group__body { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 14px; }
.tala-filter-group__head + .tala-filter-group__body { border-top: 1px solid var(--line); padding-top: 12px; }
.tala-filter-group.is-collapsed .tala-filter-group__body { display: none; }
.tala-filter-check { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.tala-filter-check input[type="checkbox"] { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--gold-deep); cursor: pointer; }
.tala-filter-check__label { flex: 1; line-height: 1.5; }
.tala-filter-check__count { font-size: 12px; color: var(--ink-faint); }
.tala-filter-check:hover .tala-filter-check__label { color: var(--gold-deep); }
.tala-filter-price { display: flex; align-items: center; gap: 8px; }
.tala-filter-price input { text-align: center; padding: 10px 8px; font-size: 13px; }
.tala-filter-price__sep { color: var(--ink-faint); flex: none; }
.tala-filters__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }

/* Price slider */
.price_slider_wrapper .price_slider { margin-bottom: 1.2em; }
.ui-slider { position: relative; height: 4px; background: var(--line); border-radius: 4px; }
.ui-slider .ui-slider-range { position: absolute; height: 4px; background: var(--gold); border-radius: 4px; }
.ui-slider .ui-slider-handle { position: absolute; width: 16px; height: 16px; top: -6px; margin-right: -8px; background: #fff; border: 2px solid var(--gold); border-radius: 50%; cursor: pointer; }
.price_slider_amount .button { float: left; font-size: 12px; padding: 7px 16px; }
.price_slider_amount .price_label { font-size: 13px; color: var(--ink-soft); padding-top: 8px; }

/* Active filters */
.woocommerce-widget-layered-nav-dropdown__submit { margin-top: 10px; }

.tala-shop-pagination { margin-top: 40px; }

/* 3. ───────────────── PAGINATION & NOTICES ────────────────────────────── */
/* High-specificity selectors so WooCommerce core's segmented "connected box"
   pagination is fully replaced by the brand pill style. */
.tala-shop-pagination,
.woocommerce nav.woocommerce-pagination { text-align: center; }
.woocommerce nav.woocommerce-pagination ul,
.woocommerce-pagination ul {
	display: inline-flex; justify-content: center; flex-wrap: wrap; gap: 8px;
	list-style: none; border: none !important; margin: 0; padding: 0;
}
.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-pagination ul li {
	border: none !important; margin: 0 !important; padding: 0; overflow: visible; display: inline-flex;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px; margin: 0;
	border: 1px solid var(--line) !important; border-radius: var(--radius-sm) !important;
	background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); float: none; line-height: 1;
	transition: var(--ease);
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li a:hover { border-color: var(--gold) !important; color: var(--gold-deep); background: #fff; }
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a.current,
.woocommerce-pagination ul li span.current { background: var(--gold-grad); border-color: transparent !important; color: #fff; }
.woocommerce nav.woocommerce-pagination ul li span.dots,
.woocommerce-pagination ul li span.dots { border: none !important; background: none; min-width: auto; }

.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, .wc-block-components-notice-banner {
	border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
	padding: 14px 18px 14px 18px; font-size: 14px; color: var(--ink);
	border-top: 3px solid var(--gold); list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.woocommerce-message { border-top-color: var(--success); }
.woocommerce-error { border-top-color: var(--sale); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { margin-right: auto; }
.demo_store, .woocommerce-store-notice { background: var(--ink); color: #f3ede2; font-size: 13px; padding: 10px; text-align: center; }

/* 4. ─────────────────────── SINGLE PRODUCT ────────────────────────────── */
.single-product div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; margin: 0; align-items: start; }
/* Override WooCommerce's default 48% float widths so each fills its grid column. */
.single-product div.product > .woocommerce-product-gallery,
.single-product div.product > .summary.entry-summary { width: 100% !important; float: none !important; margin: 0 !important; }
.single-product .woocommerce-product-gallery { position: relative; }
.single-product .woocommerce-product-gallery img { display: block; height: auto; width: 100%; }
.single-product .woocommerce-product-gallery__wrapper { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.single-product .woocommerce-product-gallery img { border-radius: 0; }
.single-product .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 0; list-style: none; }
.single-product .flex-control-thumbs li { width: 74px !important; }
.single-product .flex-control-thumbs img { border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: pointer; opacity: .7; transition: var(--ease); }
.single-product .flex-control-thumbs img.flex-active, .single-product .flex-control-thumbs img:hover { opacity: 1; border-color: var(--gold); }
.single-product .woocommerce-product-gallery__trigger {
	position: absolute; top: 12px; left: 12px; z-index: 4; width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}

.single-product .summary.entry-summary { margin: 0; display: flex; flex-direction: column; }
.single-product .summary > * { margin-bottom: 0; }
.single-product .product_title { font-size: clamp(24px, 3.4vw, 32px); margin: 4px 0 12px; line-height: 1.3; }
.tala-spec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tala-spec-metal { background: #fff; border: 1px solid var(--gold-line); color: var(--gold-deep); }
.tala-spec-weight { background: var(--surface); color: var(--ink-soft); }
.tala-spec-stone { background: rgba(91,110,132,.12); color: var(--info); }

/* PDP: selectable weight options */
.tala-weight-opts { width: 100%; margin: 0 0 4px; }
.tala-weight-opts__label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 9px; }
.tala-weight-opts__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tala-weight-chip {
	font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 9px 16px; cursor: pointer; line-height: 1; transition: var(--ease);
}
.tala-weight-chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.tala-weight-chip.is-active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold) inset; }

.single-product .price,
.single-product p.price { font-size: 26px; font-weight: 700; color: var(--ink); margin: 0 0 18px; }
.single-product .price del { color: var(--sale); font-size: 16px; font-weight: 500; margin-left: 10px; }
.single-product .price ins { text-decoration: none; }
.single-product .price .woocommerce-Price-currencySymbol { font-size: 14px; font-weight: 500; color: var(--ink-soft); }

.woocommerce-product-details__short-description { color: var(--ink-soft); font-size: 15px; line-height: 1.95; margin-bottom: 22px; }

.single-product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 20px; padding: 18px; background: var(--surface); border-radius: var(--radius); }
.single-product form.cart .quantity { margin: 0; background: #fff; }
.single-product .single_add_to_cart_button { padding: 15px 32px; font-size: 15px; flex: 1 1 auto; min-width: 200px; }
.single-product form.cart .variations { width: 100%; margin-bottom: 8px; border-collapse: collapse; }
.single-product form.cart .variations td, .single-product form.cart .variations th { padding: 6px 0; text-align: right; vertical-align: middle; }
.single-product form.cart .variations label { font-weight: 600; }
.single-product .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; width: 100%; }
.single-product .reset_variations { font-size: 13px; color: var(--ink-soft); }

.single-product .product_meta { font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.single-product .product_meta > span { display: block; }
.single-product .product_meta a:hover { color: var(--gold-deep); }

.tala-single-trust { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; padding: 18px; background: var(--surface); border-radius: var(--radius); }
.tala-single-trust li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.tala-single-trust .tala-icon { color: var(--gold-deep); }

/* Tabs */
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 56px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs::before { content: none; }
.woocommerce-tabs ul.tabs li { background: none; border: none; border-radius: 0; margin: 0; padding: 0; }
.woocommerce-tabs ul.tabs li a {
	display: block; padding: 12px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
	border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.woocommerce-tabs ul.tabs li.active a, .woocommerce-tabs ul.tabs li a:hover { color: var(--gold-deep); border-bottom-color: var(--gold); }
.woocommerce-tabs .panel { font-size: 15px; line-height: 2; color: #34302a; padding: 0; }
.woocommerce-tabs .panel h2 { font-size: 20px; }
.woocommerce-Tabs-panel table.shop_attributes { width: 100%; border-collapse: collapse; }
.shop_attributes th, .shop_attributes td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: right; font-size: 14px; }
.shop_attributes th { background: var(--surface); font-weight: 600; width: 30%; }
.shop_attributes td { color: var(--ink-soft); }

/* Reviews */
#reviews .commentlist { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; }
#reviews .commentlist li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
#reviews .comment-text { margin-right: 64px; }
#reviews .avatar { border-radius: 50%; }
.star-rating { color: var(--gold); }
.star-rating span::before { color: var(--gold); }
p.stars a { color: var(--gold); }
#review_form .comment-reply-title { font-weight: 700; }

/* Related / upsells */
.related.products, .upsells.products { grid-column: 1 / -1; margin-top: 60px; }
.related.products > h2, .upsells.products > h2, .cross-sells > h2 { font-size: 22px; margin-bottom: 24px; }

/* 5. ──────────────────────────── CART ─────────────────────────────────── */
.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 30px; align-items: start; }
.woocommerce-cart table.shop_table {
	border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; width: 100%;
}
.woocommerce-cart table.shop_table th { background: var(--surface); padding: 14px 16px; font-size: 13px; font-weight: 700; text-align: right; border: none; }
.woocommerce-cart table.shop_table td { padding: 16px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.woocommerce-cart .product-thumbnail img { width: 70px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.woocommerce-cart .product-name a { font-weight: 600; }
.woocommerce-cart .product-name a:hover { color: var(--gold-deep); }
.woocommerce-cart td.product-remove a.remove {
	width: 26px; height: 26px; border-radius: 50%; background: var(--surface) !important; color: var(--sale) !important;
	display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
}
.woocommerce-cart td.product-remove a.remove:hover { background: var(--sale) !important; color: #fff !important; }
.woocommerce-cart .actions { padding: 14px 16px !important; }
.woocommerce-cart .coupon { display: flex; gap: 10px; }
.woocommerce-cart .coupon input { max-width: 200px; }

.cart-collaterals, .cart_totals { width: 100% !important; float: none !important; }
.cart_totals { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 150px; }
.cart_totals h2 { font-size: 18px; margin-bottom: 16px; }
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals table th, .cart_totals table td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; text-align: right; }
.cart_totals .order-total th, .cart_totals .order-total td { font-size: 16px; font-weight: 700; border-bottom: none; }
.cart_totals .checkout-button { width: 100%; margin-top: 18px; padding: 14px; }
.wc-proceed-to-checkout { padding: 0 !important; }

/* 6. ──────────────────────── CHECKOUT ─────────────────────────────────── */
.woocommerce-checkout .col2-set, .woocommerce-checkout #customer_details { width: 100%; }
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 32px; align-items: start; }
.woocommerce-checkout #customer_details { grid-column: 1; }
.woocommerce-checkout #order_review, .woocommerce-checkout #order_review_heading { grid-column: 2; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; margin-bottom: 24px; }
.woocommerce-checkout h3 { font-size: 18px; margin-bottom: 16px; }
.woocommerce-checkout .form-row { margin-bottom: 14px; padding: 0; }
.woocommerce-checkout label { display: block; margin-bottom: 6px; }
.woocommerce-checkout .woocommerce-billing-fields, .woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
#order_review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 150px; }
#order_review_heading { font-size: 18px; margin-bottom: 14px; }
.woocommerce-checkout #payment { background: var(--surface); border-radius: var(--radius); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); padding: 16px; list-style: none; }
.woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: var(--radius-sm); font-size: 13px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #place_order { width: 100%; padding: 15px; font-size: 15px; }
.woocommerce-checkout table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce-checkout table.shop_table th, .woocommerce-checkout table.shop_table td { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: right; }

/* 7. ─────────────────────── MY ACCOUNT ────────────────────────────────── */
.woocommerce-account .woocommerce { display: block; }
.woocommerce-account .woocommerce-MyAccount-navigation { width: 250px; float: right; margin-left: 32px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm);
	font-size: 14px; font-weight: 500; color: var(--ink);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--surface); color: var(--gold-deep); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--gold-grad); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content { width: calc(100% - 282px); float: right; }
.woocommerce-account .woocommerce-MyAccount-content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.woocommerce-account .woocommerce-MyAccount-content h2, .woocommerce-account .woocommerce-MyAccount-content h3 { font-size: 18px; margin-bottom: 14px; }
.woocommerce-account table.shop_table, .woocommerce-MyAccount-content table.account-orders-table { width: 100%; border-collapse: collapse; }
.woocommerce-account table th, .woocommerce-account table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: right; }

/* Login / register page — branded to match the design system */
.woocommerce-account:not(.logged-in) .woocommerce { max-width: 920px; margin-inline: auto; }
.tala-account-intro { text-align: center; margin-bottom: 30px; }
.tala-account-intro__mark {
	width: 46px; height: 46px; border-radius: 50%; display: inline-block; margin: 0 auto 14px;
	background: var(--gold-grad-145); box-shadow: 0 0 0 5px var(--gold-soft);
}
.tala-account-intro__title { font-size: 24px; margin: 0 0 8px; }
.tala-account-intro__lead { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

.woocommerce-account:not(.logged-in) .woocommerce > .u-columns,
.woocommerce .col2-set#customer_login,
.u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.woocommerce .col2-set#customer_login .col-1,
.woocommerce .col2-set#customer_login .col-2,
.u-columns.col2-set .u-column1,
.u-columns.col2-set .u-column2 { width: 100% !important; float: none !important; margin: 0 !important; }

.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon, .woocommerce form.lost_reset_password {
	border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: #fff; box-shadow: var(--shadow-sm);
}
.woocommerce .col2-set#customer_login > div > h2,
.woocommerce form.login h2, .woocommerce form.register h2 { font-size: 19px; margin: 0 0 6px; }
.woocommerce form.login .form-row, .woocommerce form.register .form-row { margin-bottom: 16px; }
.woocommerce form.login label, .woocommerce form.register label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.woocommerce form.login .button, .woocommerce form.register .button { width: 100%; padding: 13px; margin-top: 4px; }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft); margin: 4px 0 12px; }
.woocommerce-form-login__rememberme input { width: auto; }
.woocommerce-LostPassword { font-size: 13px; margin-top: 12px; }
.woocommerce-LostPassword a { color: var(--gold-deep); font-weight: 600; }
.woocommerce form .form-row.woocommerce-form-row { padding: 0; }
.woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }
@media (max-width: 640px) {
	.woocommerce .col2-set#customer_login, .u-columns.col2-set { grid-template-columns: 1fr; }
}

/* 8. ──────────────────────────── MISC ─────────────────────────────────── */
span.onsale, .tala-badge.onsale { position: static; }
.single-product span.onsale {
	position: absolute; top: 12px; right: 12px; z-index: 5; min-height: 0; min-width: 0;
	line-height: 1; padding: 6px 12px; border-radius: var(--radius-pill);
}
mark { background: var(--gold-soft); color: var(--ink); padding: 0 4px; border-radius: 3px; }
.added_to_cart.wc-forward { display: none; }

/* Quantity in cart row */
.woocommerce-cart .product-quantity .quantity { border: 1px solid var(--line); }

/* ---- WooCommerce Blocks (modern cart/checkout) compatibility ---- */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { max-width: var(--maxw); margin-inline: auto; }
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	background: var(--gold-grad) !important; color: #fff !important; border: none !important;
	border-radius: var(--radius) !important; font-weight: 600 !important; box-shadow: var(--shadow-sm) !important;
}
.wc-block-components-button:not(.is-link):hover { filter: brightness(1.07); }
.wc-block-components-text-input input, .wc-block-components-text-input input[type="text"],
.wc-block-checkout__form input, .wc-block-components-form input {
	border-radius: var(--radius-sm) !important; border-color: var(--line) !important;
}
.wc-block-card, .wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout-order-summary-block {
	border-radius: var(--radius) !important;
}
.wc-block-components-product-price__value, .wc-block-formatted-money-amount { font-weight: 700; }
.wc-block-grid__products, .wc-block-product-template, .wp-block-woocommerce-product-collection ul.products {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none;
}
.wc-block-components-notice-banner { border-radius: var(--radius); }

/* Mini-cart widget (if used) */
.widget_shopping_cart .cart_list { list-style: none; }
.widget_shopping_cart .cart_list li { padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; }
.widget_shopping_cart .cart_list img { width: 48px; border-radius: var(--radius-xs); float: left; margin-left: 10px; }

/* Responsive */
@media (max-width: 1024px) {
	.single-product div.product { grid-template-columns: 1fr; gap: 28px; }
	.single-product .woocommerce-product-gallery { position: static; width: 100% !important; margin-bottom: 8px; }
	.single-product .woocommerce-product-gallery .flex-viewport,
	.single-product .woocommerce-product-gallery__wrapper { height: auto !important; }
	.woocommerce-cart .woocommerce,
	.woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
	.cart_totals, #order_review { position: static; }
	ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.tala-shop-layout.has-filters { grid-template-columns: 1fr; }
	/* Filter sidebar becomes a drawer */
	.tala-shop-sidebar {
		position: fixed; inset: 0 auto 0 0; z-index: 210; width: min(86vw, 340px);
		background: var(--bg); transform: translateX(-100%); transition: transform .3s ease;
		box-shadow: 10px 0 40px rgba(28,46,94,.18); overflow-y: auto; padding: 16px 16px 0;
		display: flex; flex-direction: column;
	}
	.tala-shop-sidebar.is-open { transform: translateX(0); }
	.tala-shop-sidebar__head { display: flex; position: sticky; top: 0; background: var(--bg); padding-bottom: 12px; z-index: 2; }
	.tala-shop-sidebar__body { position: static; }
	.tala-shop-sidebar__overlay.is-open { display: block; position: fixed; inset: 0; background: rgba(19,32,71,.48); z-index: 205; }
	body.tala-filters-open { overflow: hidden; }
	/* Keep the "apply filters" button pinned to the bottom of the drawer. */
	.tala-shop-sidebar .tala-filters__actions {
		position: sticky; bottom: 0; background: var(--bg); padding: 14px 0;
		border-top: 1px solid var(--line); z-index: 2;
	}
}
@media (max-width: 720px) {
	ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content { width: 100%; float: none; margin: 0 0 20px; }
	.u-columns.col2-set, .woocommerce .col2-set#customer_login { grid-template-columns: 1fr; }
	.tala-shop-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
	.woocommerce-ordering select { width: 100%; }
	.tala-product-card__body { padding: 12px; }
}
@media (max-width: 420px) {
	ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* 9. ───────── PURCHASE FLOW: STEPS · FREE-SHIP BAR · MINI-CART ─────────── */

/* Step indicator (cart → checkout → done) */
.tala-steps { list-style: none; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; margin: 0 0 28px; padding: 0; }
.tala-step { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); }
.tala-step__dot {
	width: 38px; height: 38px; border-radius: 50%; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--line); color: var(--ink-faint);
}
.tala-step__label { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tala-step.is-active { color: var(--ink); }
.tala-step.is-active .tala-step__dot { background: var(--gold-grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-sm); }
.tala-step.is-done { color: var(--gold-deep); }
.tala-step.is-done .tala-step__dot { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-deep); }
.tala-step:not(:last-child)::after { content: ""; width: 46px; height: 2px; background: var(--line); margin: 0 12px; }
.tala-step.is-done:not(:last-child)::after { background: var(--gold-line); }
@media (max-width: 560px) {
	.tala-step__label { font-size: 12px; }
	.tala-step__dot { width: 32px; height: 32px; }
	.tala-step:not(:last-child)::after { width: 18px; margin: 0 6px; }
}

/* Free-shipping progress bar */
.tala-freeship { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 22px; }
.tala-freeship__text { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); margin-bottom: 10px; line-height: 1.6; }
.tala-freeship__text .tala-icon { color: var(--gold-deep); flex: none; }
.tala-freeship__text .amount { font-weight: 700; color: var(--gold-deep); }
.tala-freeship__track { height: 7px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.tala-freeship__fill { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--gold-grad); transition: width .4s ease; }
.tala-freeship.is-complete .tala-freeship__text,
.tala-freeship.is-complete .tala-freeship__text .tala-icon { color: var(--success); }
.tala-freeship.is-complete .tala-freeship__fill { background: linear-gradient(90deg, var(--success), #5c9070); }

/* Cart page: keep steps / notices / free-ship bar full width above the 2-col grid */
.woocommerce-cart .woocommerce > * { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce-cart-form { grid-column: 1; }
.woocommerce-cart .cart-collaterals { grid-column: 2; }

/* Slide-in mini-cart drawer */
.tala-cart-drawer { position: fixed; inset: 0; z-index: 220; }
.tala-cart-drawer[hidden] { display: none; }
.tala-cart-drawer__overlay { position: absolute; inset: 0; background: rgba(19,32,71,.48); opacity: 0; transition: opacity .25s ease; }
.tala-cart-drawer.is-open .tala-cart-drawer__overlay { opacity: 1; }
.tala-cart-drawer__panel {
	position: absolute; top: 0; bottom: 0; right: 0; width: min(92vw, 400px);
	background: var(--bg); display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
	box-shadow: -10px 0 40px rgba(28,46,94,.18);
}
.tala-cart-drawer.is-open .tala-cart-drawer__panel { transform: translateX(0); }
.tala-cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.tala-cart-drawer__title { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
.tala-cart-drawer__title .tala-icon { color: var(--gold-deep); }
.tala-cart-drawer__body { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; }
.tala-cart-drawer__body > .tala-freeship { margin: 16px 20px 0; }
.tala-cart-drawer__mini { display: flex; flex-direction: column; flex: 1; padding: 16px 20px 20px; }
body.tala-cart-open { overflow: hidden; }

/* Mini-cart contents inside the drawer */
.tala-cart-drawer .woocommerce-mini-cart.cart_list { list-style: none; margin: 0; padding: 0; flex: 1; }
.tala-cart-drawer .woocommerce-mini-cart__empty-message { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.tala-cart-drawer .cart_list li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); }
.tala-cart-drawer .cart_list li:first-child { padding-top: 4px; }
.tala-cart-drawer .cart_list li a:not(.remove) { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.tala-cart-drawer .cart_list li a:not(.remove):hover { color: var(--gold-deep); }
.tala-cart-drawer .cart_list img { width: 54px !important; height: 54px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 0 !important; float: none !important; }
.tala-cart-drawer .cart_list .quantity { display: block; margin-top: 7px; padding-right: 66px; font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.tala-cart-drawer .cart_list .quantity .amount { color: var(--gold-deep); font-weight: 700; }
.tala-cart-drawer .cart_list a.remove {
	position: absolute; top: 16px; left: 0; width: 24px; height: 24px; border-radius: 50%;
	background: var(--surface) !important; color: var(--sale) !important; font-size: 15px; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center;
}
.tala-cart-drawer .cart_list a.remove:hover { background: var(--sale) !important; color: #fff !important; }
.tala-cart-drawer .woocommerce-mini-cart__total {
	display: flex; align-items: center; justify-content: space-between;
	margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px;
}
.tala-cart-drawer .woocommerce-mini-cart__total .amount { font-weight: 700; color: var(--ink); }
.tala-cart-drawer .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.tala-cart-drawer .woocommerce-mini-cart__buttons a { width: 100%; margin: 0; padding: 13px; }
.tala-cart-drawer .woocommerce-mini-cart__buttons a.button:not(.checkout) {
	background: #fff; color: var(--gold-deep); border: 1px solid var(--gold); box-shadow: none;
}
.tala-cart-drawer .woocommerce-mini-cart__buttons a.button:not(.checkout):hover { background: var(--gold-soft); filter: none; box-shadow: none; }

/* ==========================================================================
   LIVE GOLD PRICE — prices that follow the market rate
   ========================================================================== */

/* The price itself: the wrapper stays, only the value is swapped by JS. */
.tala-live-price,
.tala-live-price__value { display: inline-block; }
.tala-live-price__soon { font-size: 13.5px; font-weight: 600; color: var(--ink-faint); }
.tala-live-price.is-refreshed .tala-live-price__value { animation: tala-price-in .55s ease; }
@keyframes tala-price-in {
	0%   { color: var(--gold-deep); transform: translateY(-2px); }
	100% { color: inherit; transform: none; }
}

/* The pulsing "this is live" dot. */
.tala-goldrate__dot,
.tala-goldcalc__dot {
	width: 7px; height: 7px; flex: none; border-radius: 50%;
	background: var(--gold); animation: tala-goldpulse 2.2s ease-out infinite;
}
@keyframes tala-goldpulse {
	0%   { box-shadow: 0 0 0 0 rgba(197, 160, 89, .55); }
	70%  { box-shadow: 0 0 0 7px rgba(197, 160, 89, 0); }
	100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* Rate chip — top bar + [tala_gold_rate]. */
.tala-goldrate { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; white-space: nowrap; }
.tala-goldrate__label { opacity: .85; }
.tala-goldrate__value { font-weight: 700; color: var(--gold); }
.tala-goldrate__value .woocommerce-Price-currencySymbol { font-size: .85em; font-weight: 500; opacity: .8; }
.tala-goldrate__per { font-size: 11px; opacity: .65; }
.tala-topbar .tala-goldrate { color: #f2ece1; }

/* Price breakdown on the product page. */
.tala-goldcalc {
	margin: 0 0 22px; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden;
}
.tala-goldcalc__head {
	display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
	padding: 11px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
	font-size: 13px; color: var(--ink);
}
.tala-goldcalc__live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.tala-goldcalc__rate { display: inline-flex; align-items: baseline; gap: 5px; margin-inline-start: auto; }
.tala-goldcalc__rate b { font-weight: 700; color: var(--gold-deep); }
.tala-goldcalc__per { font-size: 11.5px; color: var(--ink-soft); }
.tala-goldcalc__time { font-size: 11.5px; color: var(--ink-faint); }
.tala-goldcalc__rows { list-style: none; margin: 0; padding: 4px 16px; }
.tala-goldcalc__rows li {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 9px 0; font-size: 13.5px; color: var(--ink-soft);
	border-bottom: 1px dashed var(--line);
}
.tala-goldcalc__rows li:last-child { border-bottom: 0; }
.tala-goldcalc__rows b { font-weight: 600; color: var(--ink); }
.tala-goldcalc__total {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 13px 16px; background: var(--gold-soft);
	border-top: 1px solid var(--gold-line); font-size: 14.5px; font-weight: 600;
}
.tala-goldcalc__total b { font-size: 20px; font-weight: 800; color: var(--ink); }
.tala-goldcalc__total b .woocommerce-Price-currencySymbol { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
@media (max-width: 600px) {
	.tala-goldcalc__head { font-size: 12px; }
	.tala-goldcalc__rate { margin-inline-start: 0; }
	.tala-goldcalc__total b { font-size: 18px; }
}

/* "prices follow the market" reminder in cart & checkout. */
.tala-goldnotice {
	display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 15px;
	background: var(--gold-soft); border: 1px dashed var(--gold-line);
	border-radius: var(--radius-sm); font-size: 13px; color: var(--gold-deep);
}
.tala-goldnotice .tala-icon { flex: none; margin-top: 1px; }

/* [tala_gold_rates] — the market board. */
.tala-ratetable {
	margin: 0 0 24px; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden;
}
.tala-ratetable__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px; background: var(--ink); color: #f2ece1; font-size: 13px;
}
.tala-ratetable__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.tala-ratetable__time { font-size: 11.5px; opacity: .8; }
.tala-ratetable__list { list-style: none; margin: 0; padding: 0; }
.tala-ratetable__list li {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.tala-ratetable__list li:last-child { border-bottom: 0; }
.tala-ratetable__label { color: var(--ink-soft); }
.tala-ratetable__value b { font-weight: 700; color: var(--gold-deep); }
.tala-ratetable__value small { margin-inline-start: 6px; font-size: 11px; color: var(--ink-faint); }
