/*
Theme Name:  SUD Market
Theme URI:   https://sud-market.vercel.app/
Description: Child theme of Astra for the SUD Market store. Matches the SUD Market Figma and the landing page: brand fonts and colours, the landing page's header and footer, and the shop, product, cart and Dokan vendor pages.
Author:      SUD Market
Template:    astra
Version:     1.0.3
Requires at least: 6.5
Requires PHP: 7.4
License:     GPL-2.0-or-later
Text Domain: sud-market
*/

/* ========================================================================== Tokens (same as the landing page) */

@font-face { font-family: "Archivo"; src: url("assets/fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("assets/fonts/OpenSans.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
	--sud-red: #c52f2f;
	--sud-green: #0e6e38;
	--sud-green-dark: #0a501a;
	--sud-gold: #d6a429;
	--sud-gold-border: #b8860b33;
	--sud-gold-tint: #b8860b1a;
	--sud-ink: #272827;
	--sud-navy: #272e6e;
	--sud-navy-dark: #0a1050;
	--sud-bg: #f4e9dc;
	--sud-cream: #fbf6f0;
	--sud-grey: #999999;
	--sud-grey-light: #b3b3b3;
	--sud-muted: #6b6560; /* secondary text on white or cream (≥ 4.5:1) */
	--sud-max: 1560px;
	--sud-gutter: 80px;
	--sud-pill: 32px;
	--sud-heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--sud-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

	/* Astra's palette, so anything Astra or WooCommerce draws picks up the brand */
	--ast-border-color: rgba(184, 134, 11, .2);
	--ast-global-color-0: #c52f2f;
	--ast-global-color-1: #272e6e;
	--ast-global-color-2: #272827;
	--ast-global-color-3: #272827;
	--ast-global-color-4: #f4e9dc;
	--ast-global-color-5: #ffffff;
	--ast-global-color-6: #fbf6f0;
	--ast-global-color-7: #0e6e38;
	--ast-global-color-8: #d6a429;
}

@media (max-width: 1023px) { :root { --sud-gutter: 20px; } }

/* ========================================================================== Base */

body.sud-theme,
body.sud-theme .site,
body.sud-theme .site-content,
body.sud-theme.ast-plain-container,
body.sud-theme .ast-plain-container {
	background: var(--sud-bg);
}
body.sud-theme {
	color: var(--sud-ink);
	font-family: var(--sud-body);
	font-size: 16px;
	line-height: 1.5;
}
body.sud-theme h1, body.sud-theme h2, body.sud-theme h3, body.sud-theme h4,
body.sud-theme .entry-title, body.sud-theme .sud-h1, body.sud-theme .sud-h2 {
	font-family: var(--sud-heading);
	font-weight: 700;
	color: var(--sud-ink);
}
body.sud-theme a { color: var(--sud-red); }
body.sud-theme a:hover { color: var(--sud-navy); }

.sud-wrap { width: 100%; max-width: var(--sud-max); margin: 0 auto; padding-left: var(--sud-gutter); padding-right: var(--sud-gutter); box-sizing: border-box; }

/* Astra's own content container: same width and gutters as the landing page */
body.sud-theme .site-content > .ast-container {
	max-width: var(--sud-max);
	padding: 64px var(--sud-gutter);
	display: block;
}
/* Backstop for Astra's "Boxed" container style (white box behind shop and Dokan store pages) */
body.sud-theme .ast-woocommerce-container,
body.sud-theme.ast-separate-container .ast-woocommerce-container,
body.sud-theme.ast-separate-container .ast-article-single,
body.sud-theme.ast-separate-container .ast-article-post { background: transparent; padding: 0; box-shadow: none; }
body.sud-theme #primary,
body.sud-theme.ast-plain-container #primary,
body.sud-theme.ast-plain-container.ast-no-sidebar #primary { margin: 0; padding: 0; }
body.sud-theme.ast-plain-container .site-main,
body.sud-theme .ast-woocommerce-container { margin: 0; padding: 0; }

.sud-h1, body.sud-theme .entry-header .entry-title, body.sud-theme .woocommerce-products-header__title {
	font-size: 48px; line-height: 1.2; margin: 0;
}
.sud-h2 { font-size: 48px; line-height: 1.2; margin: 0; }
@media (max-width: 767px) { .sud-h1, .sud-h2, body.sud-theme .entry-header .entry-title { font-size: 36px; } }

/* Buttons: pills, Archivo 16/500 */
.sud-btn,
body.sud-theme .button,
body.sud-theme button.button,
body.sud-theme a.button,
body.sud-theme input[type="submit"],
body.sud-theme .wc-block-components-button:not(.is-link),
body.sud-theme .dokan-btn-theme,
body.sud-theme .dokan-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	font-family: var(--sud-heading); font-size: 16px; line-height: 16px; font-weight: 500; text-transform: capitalize;
	padding: 12px 24px; border-radius: var(--sud-pill); border: 1px solid transparent;
	background: var(--sud-red); color: #fff; text-decoration: none; cursor: pointer; box-shadow: none;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.sud-btn:hover,
body.sud-theme .button:hover,
body.sud-theme button.button:hover,
body.sud-theme a.button:hover,
body.sud-theme input[type="submit"]:hover,
body.sud-theme .wc-block-components-button:not(.is-link):hover,
body.sud-theme .dokan-btn-theme:hover,
body.sud-theme .dokan-btn:hover { background: #a92525; border-color: #a92525; color: #fff; }
/* Link buttons: beat the site-wide link colours (red, navy on hover) so the text stays readable in every state */
body.sud-theme a.sud-btn, body.sud-theme a.sud-btn:hover, body.sud-theme a.sud-btn:focus { color: #fff; }
body.sud-theme a.sud-btn:hover { background: #a92525; }
body.sud-theme .sud-btn--outline, body.sud-theme a.sud-btn--outline, body.sud-theme a.sud-btn--outline:focus { background: transparent; color: var(--sud-navy); border-color: var(--sud-navy); }
body.sud-theme .sud-btn--outline:hover, body.sud-theme a.sud-btn--outline:hover { background: var(--sud-navy); color: #fff; border-color: var(--sud-navy); }
.sud-btn img { width: 24px; height: 24px; }

/* Shared states: keyboard focus ring, press, disabled */
.sud-btn:focus-visible, body.sud-theme .button:focus-visible, body.sud-theme input[type="submit"]:focus-visible,
body.sud-theme .wc-block-components-button:focus-visible, body.sud-theme .sud-chip:focus-visible,
body.sud-theme .woocommerce-pagination .page-numbers:focus-visible, body.sud-theme .sud-qty__btn:focus-visible {
	outline: 3px solid rgba(39, 46, 110, .35); outline-offset: 2px;
}
/* Press feedback lands on pointer-down (the Apple guidance): a slight, quick shrink */
.sud-btn:active, body.sud-theme .button:active, body.sud-theme input[type="submit"]:active,
body.sud-theme .wc-block-components-button:not(.is-link):active, body.sud-theme .sud-chip:active { transform: scale(.97); transition: transform .1s ease-out; }
body.sud-theme .button:disabled, body.sud-theme .button.disabled, body.sud-theme .button:disabled:hover, body.sud-theme .button.disabled:hover {
	opacity: .45; cursor: not-allowed; background: var(--sud-red); color: #fff; transform: none;
}

/* Forms */
body.sud-theme input[type="text"], body.sud-theme input[type="email"], body.sud-theme input[type="tel"],
body.sud-theme input[type="password"], body.sud-theme input[type="number"], body.sud-theme input[type="search"],
body.sud-theme select, body.sud-theme textarea {
	font-family: var(--sud-body); font-size: 16px; color: var(--sud-ink);
	background: #fff; border: 1px solid rgba(39, 40, 39, .2); border-radius: 12px; padding: 12px 16px; box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
body.sud-theme input:focus, body.sud-theme select:focus, body.sud-theme textarea:focus { outline: 0; border-color: var(--sud-navy); box-shadow: 0 0 0 3px rgba(39, 46, 110, .15); }

/* ========================================================================== Header (landing page's) */

.sud-header { position: relative; z-index: 50; background: #fff; font-family: var(--sud-heading); }
.sud-header__top, .sud-header__nav { border-bottom: 1px solid var(--sud-gold-border); background: #fff; }
.sud-header__row { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 16px; padding-bottom: 16px; }
.sud-logo img { display: block; width: 104px; height: 40px; object-fit: contain; }
.sud-header__desktop { display: flex; align-items: center; gap: 32px; flex: 1; min-width: 0; }
.sud-search { position: relative; flex: 1; min-width: 0; margin: 0; }
.sud-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; pointer-events: none; }
body.sud-theme .sud-search input.sud-search__input {
	width: 100%; box-sizing: border-box; padding: 12px 12px 12px 48px; border-radius: var(--sud-pill);
	background: var(--sud-bg); border: 1px solid var(--sud-gold-border); font-size: 14px;
}
.sud-search__input::placeholder { color: var(--sud-grey); }
.sud-header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
body.sud-theme .sud-link, body.sud-theme .sud-nav__link {
	font-family: var(--sud-heading); font-size: 16px; line-height: 16px; font-weight: 500; color: var(--sud-ink); text-decoration: none; transition: color .3s ease;
}
body.sud-theme .sud-link:hover, body.sud-theme .sud-nav__link:hover, body.sud-theme .sud-nav__link.is-active { color: var(--sud-red); }
.sud-cart-count.is-bumped { display: inline-block; animation: sud-bump .4s ease; }
@keyframes sud-bump { 40% { transform: scale(1.35); } }
.sud-nav { display: flex; align-items: center; gap: 40px; }
body.sud-theme .sud-nav__vendor {
	display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0;
	font-family: var(--sud-heading); font-size: 16px; line-height: 16px; font-weight: 500; color: var(--sud-green); text-decoration: none;
}
body.sud-theme .sud-nav__vendor:hover { color: var(--sud-red); }
.sud-nav__vendor img { width: 24px; height: 24px; }

.sud-header__mobile { display: none; align-items: center; gap: 24px; }
.sud-header__mobile img { display: block; width: 24px; height: 24px; }
.sud-mobile-cart { position: relative; }
.sud-mobile-cart .sud-cart-count {
	position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
	border-radius: 9px; background: var(--sud-red); color: #fff; font: 600 11px/18px var(--sud-body); text-align: center;
}
.sud-mobile-cart .sud-cart-count.is-zero { display: none; }
body.sud-theme .sud-header button.sud-burger, body.sud-theme .sud-header button.sud-burger:hover, body.sud-theme .sud-header button.sud-burger:focus { background: none; border: 0; box-shadow: none; padding: 0; }
.sud-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 9px; width: 40px; height: 40px; padding: 0; background: none; border: 0; cursor: pointer; }
.sud-burger span { display: block; height: 3px; width: 32px; background: var(--sud-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.sud-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(12px) rotate(45deg); }
.sud-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sud-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }
.sud-mobile-menu { display: flex; flex-direction: column; gap: 20px; padding: 16px var(--sud-gutter) 24px; border-bottom: 1px solid var(--sud-gold-border); background: #fff; }
.sud-mobile-menu[hidden] { display: none; }

@media (max-width: 1023px) {
	.sud-header__desktop, .sud-header__nav { display: none; }
	.sud-header__mobile { display: flex; }
}
@media (min-width: 1024px) { .sud-mobile-menu { display: none !important; } }

/* ========================================================================== Footer (landing page's) */

.sud-footer { background: var(--sud-ink); color: #fff; font-family: var(--sud-body); }
.sud-footer .sud-wrap { display: flex; flex-direction: column; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.sud-footer__cols { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 1024px) { .sud-footer__cols { flex-direction: row; justify-content: space-between; } }
.sud-footer__brand { display: flex; flex-direction: column; gap: 24px; max-width: 320px; }
.sud-footer__brand img { width: 74px; height: 64px; object-fit: contain; }
.sud-footer__brand p { margin: 0; color: #fff; font-size: 16px; line-height: 24px; }
.sud-footer__col { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.sud-eyebrow { font-family: var(--sud-body); font-size: 14px; line-height: 21px; font-weight: 700; letter-spacing: 1.68px; text-transform: uppercase; color: var(--sud-gold); margin-bottom: 4px; }
body.sud-theme .sud-footer__col a { color: var(--sud-grey-light); font-size: 16px; line-height: 24px; font-weight: 700; text-decoration: none; }
body.sud-theme .sud-footer__col a:hover { color: #fff; }
.sud-footer hr { border: 0; border-top: 1px solid var(--sud-gold-border); margin: 0; width: 100%; }
.sud-footer__copy { margin: 0; text-align: center; color: var(--sud-grey); font-size: 16px; line-height: 24px; }

/* ========================================================================== Shop intro + category chips */

.sud-shop-intro { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; }
.sud-shop-intro__text { display: flex; flex-direction: column; gap: 12px; }
.sud-shop-intro__text p { margin: 0; font-size: 16px; line-height: 24px; }
.sud-chips { display: flex; flex-wrap: wrap; gap: 12px; }
body.sud-theme .sud-chip {
	padding: 12px 24px; border-radius: var(--sud-pill); background: #fff; border: 1px solid var(--sud-gold-border);
	font-family: var(--sud-heading); font-size: 16px; line-height: 16px; font-weight: 500; color: var(--sud-ink); text-decoration: none;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
body.sud-theme .sud-chip:hover { border-color: var(--sud-navy); color: var(--sud-navy); }
body.sud-theme .sud-chip.is-active, body.sud-theme .sud-chip.is-active:hover { background: var(--sud-navy); border-color: var(--sud-navy); color: #fff; }
body.sud-theme .woocommerce-products-header { margin: 0; padding: 0; }
body.sud-theme .woocommerce-breadcrumb, body.sud-theme .ast-woocommerce-container > .woocommerce-breadcrumb { display: none; }

/* ========================================================================== Product grid + cards */

body.sud-theme ul.products,
body.sud-theme .woocommerce ul.products,
body.sud-theme.woocommerce ul.products {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none;
}
body.sud-theme ul.products::before, body.sud-theme ul.products::after { display: none; }
/* !important: Astra's Customizer column settings (e.g. "mobile-columns-2") would otherwise override the Figma grid */
body.sud-theme ul.products[class*="columns-"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1023px) { body.sud-theme ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 599px) { body.sud-theme ul.products[class*="columns-"] { grid-template-columns: 1fr !important; } }

body.sud-theme ul.products li.product.sud-card {
	width: auto; float: none; margin: 0; padding: 10px; box-sizing: border-box;
	display: flex; flex-direction: column; gap: 12px;
	background: #fff; border: 1px solid var(--sud-gold-border); border-radius: var(--sud-pill); text-align: left;
}
.sud-card__media { position: relative; display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--sud-cream); }
body.sud-theme .sud-card__media img.sud-card__img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.sud-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.sud-badge {
	display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 20px; background: var(--sud-gold); color: var(--sud-ink);
	font-family: var(--sud-body); font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: 1.44px; text-transform: uppercase;
}
.sud-badge--sale { margin-left: auto; background: var(--sud-red); color: #fff; }
.sud-card__soldout {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 20px; border-radius: var(--sud-pill);
	background: rgba(255,255,255,.92); color: var(--sud-ink); font: 600 14px/1 var(--sud-heading); text-transform: uppercase; letter-spacing: 1px;
}
.sud-card__body { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 20px 10px; flex: 1; }
.sud-card__text { display: flex; flex-direction: column; gap: 12px; }
body.sud-theme .sud-vendor {
	font-family: var(--sud-body); font-size: 14px; line-height: 21px; font-weight: 700; letter-spacing: 1.68px; text-transform: uppercase;
	color: var(--sud-green); text-decoration: none;
}
body.sud-theme .sud-vendor:hover { color: var(--sud-red); }
body.sud-theme .sud-card__title { font-family: var(--sud-body); font-size: 16px; line-height: 24px; color: var(--sud-ink); text-decoration: none; }
body.sud-theme .sud-card__title:hover { color: var(--sud-red); }
.sud-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sud-card__price, body.sud-theme .sud-card__price .amount {
	font-family: var(--sud-heading); font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -1.2px; color: var(--sud-ink);
}
body.sud-theme .sud-card__price del, body.sud-theme .sud-card__price del .amount {
	font-size: 18px; line-height: 1; color: var(--sud-grey); font-weight: 500; letter-spacing: 0; text-decoration: line-through; margin-right: 6px;
}
.sud-card__price ins { text-decoration: none; }
body.sud-theme ul.products li.product .button { margin: 0; }
body.sud-theme ul.products li.product .added_to_cart { display: none; }

/* AJAX "Add To Cart": a spinner while it adds, then green with a tick (the header count updates too) */
body.sud-theme .button.loading, body.sud-theme .button.loading:hover { position: relative; opacity: 1; color: transparent; pointer-events: none; }
body.sud-theme .button.loading::after {
	content: ""; position: absolute; top: 50%; left: 50%; right: auto; width: 18px; height: 18px; margin: -9px 0 0 -9px; box-sizing: border-box;
	border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; font-family: inherit; animation: sud-spin .7s linear infinite;
}
body.sud-theme .button.added { background: var(--sud-green); }
body.sud-theme .button.added:hover { background: var(--sud-green-dark); }
body.sud-theme .button.added::after {
	content: ""; display: inline-block; width: 5px; height: 10px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 2px 2px 0;
	transform: rotate(45deg); font-family: inherit; vertical-align: middle;
}
@keyframes sud-spin { to { transform: rotate(360deg); } }

/* Pagination: round buttons under the grid */
body.sud-theme .woocommerce-pagination, body.sud-theme nav.woocommerce-pagination { margin: 48px 0 0; padding: 0; text-align: center; }
body.sud-theme .woocommerce-pagination ul.page-numbers {
	display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; white-space: normal;
}
body.sud-theme .woocommerce-pagination ul.page-numbers li { float: none; display: block; margin: 0; border: 0; overflow: visible; }
body.sud-theme .woocommerce-pagination ul.page-numbers li .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; box-sizing: border-box;
	border-radius: var(--sud-pill); border: 1px solid var(--sud-gold-border); background: #fff; color: var(--sud-ink);
	font: 500 16px/1 var(--sud-heading); text-decoration: none; transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
body.sud-theme .woocommerce-pagination ul.page-numbers li a.page-numbers:hover { border-color: var(--sud-navy); color: var(--sud-navy); background: #fff; }
body.sud-theme .woocommerce-pagination ul.page-numbers li span.current { background: var(--sud-navy); border-color: var(--sud-navy); color: #fff; }
body.sud-theme .woocommerce-pagination ul.page-numbers li .dots { background: transparent; border-color: transparent; min-width: 24px; padding: 0; }
body.sud-theme .woocommerce-pagination ul.page-numbers li .prev, body.sud-theme .woocommerce-pagination ul.page-numbers li .next { font-size: 20px; }

/* ========================================================================== Product page */

.sud-single { display: flex; flex-direction: column; gap: 32px; }
body.sud-theme .sud-back { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; font: 500 16px/16px var(--sud-heading); color: var(--sud-red); text-decoration: none; }
.sud-back img { width: 24px; height: 24px; }
.sud-single__grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 768px) { .sud-single__grid { grid-template-columns: 1fr 1fr; } }
.sud-single__media img.sud-single__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; background: var(--sud-cream); }
.sud-single__thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sud-single__thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; display: block; }
.sud-single__info { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
body.sud-theme div.product .sud-single__info.summary,
body.sud-theme #content div.product div.summary.sud-single__info { float: none; width: auto; margin: 0; clear: none; }
body.sud-theme .sud-single__buy .stock,
body.sud-theme .sud-single__info .ast-stock-detail { display: none; }
body.sud-theme .sud-single__title,
body.sud-theme div.product .summary h1.product_title.sud-single__title { font-size: 48px; line-height: 1.2; margin: 0; }
body.sud-theme .sud-single img, body.sud-theme ul.products img { box-shadow: none; }
body.sud-theme .sud-single__price, body.sud-theme .sud-single__price .amount {
	font-family: var(--sud-heading); font-size: 48px; line-height: 1.2; font-weight: 700; letter-spacing: -1.2px; color: var(--sud-navy); margin: 0;
}
body.sud-theme .sud-single__price del, body.sud-theme .sud-single__price del .amount { font-size: 28px; color: var(--sud-grey); text-decoration: line-through; margin-right: 8px; }
.sud-single__price ins { text-decoration: none; }
@media (max-width: 767px) { body.sud-theme .sud-single__title, body.sud-theme .sud-single__price, body.sud-theme .sud-single__price .amount { font-size: 36px; } }
.sud-stock { margin: 0; font-size: 16px; line-height: 24px; color: var(--sud-gold); }
.sud-stock--out { color: var(--sud-red); }
.sud-single__excerpt p { margin: 0; font-size: 16px; line-height: 24px; }
.sud-single__buy { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
body.sud-theme .sud-single__buy form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; }
/* Astra's clearfix pseudo-elements would take a flex gap of their own and push the row inwards */
body.sud-theme .sud-single__buy form.cart::before, body.sud-theme .sud-single__buy form.cart::after { display: none; }
body.sud-theme .sud-single__buy form.cart div.quantity, body.sud-theme .sud-single__buy form.cart .single_add_to_cart_button { margin: 0; }
body.sud-theme .sud-single__buy .quantity input.qty { width: 72px; text-align: center; border-radius: var(--sud-pill); padding: 11px 8px; background: #fff; }
/* Quantity stepper (assets/sud.js adds the − / + buttons) */
body.sud-theme .sud-single__buy .quantity.sud-qty {
	display: inline-flex; align-items: stretch; height: 44px; margin: 0; box-sizing: border-box; overflow: hidden;
	border: 1px solid var(--sud-gold-border); border-radius: var(--sud-pill); background: #fff; transition: border-color .3s ease, box-shadow .3s ease;
}
body.sud-theme .sud-single__buy .quantity.sud-qty:focus-within { border-color: var(--sud-navy); box-shadow: 0 0 0 3px rgba(39, 46, 110, .15); }
body.sud-theme .sud-single__buy .sud-qty input.qty {
	width: 40px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; outline: 0;
	font: 600 16px/1 var(--sud-heading); color: var(--sud-ink); -moz-appearance: textfield; appearance: textfield;
}
body.sud-theme .sud-qty input.qty::-webkit-outer-spin-button, body.sud-theme .sud-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.sud-theme .sud-qty button.sud-qty__btn {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; margin: 0; padding: 0; border: 0; border-radius: 0;
	background: transparent; color: var(--sud-ink); font: 400 22px/1 var(--sud-heading); box-shadow: none; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
body.sud-theme .sud-qty button.sud-qty__btn:hover { background: var(--sud-bg); color: var(--sud-navy); }
body.sud-theme .sud-qty button.sud-qty__btn:focus-visible { outline-offset: -3px; }
body.sud-theme .sud-qty button.sud-qty__btn:disabled, body.sud-theme .sud-qty button.sud-qty__btn:disabled:hover { background: transparent; color: var(--sud-grey-light); cursor: not-allowed; }
.sud-qty__btn svg { display: block; }
/* Error from "Add To Cart" (e.g. not enough stock), shown under the buttons by assets/sud.js */
.sud-buy-msg { flex-basis: 100%; margin: 0; padding: 12px 16px; border-radius: 12px; background: #fbebeb; border: 1px solid rgba(197, 47, 47, .25); color: var(--sud-red); font-size: 14px; line-height: 21px; }
body.sud-theme .sud-single__buy form.variations_form { flex-direction: column; align-items: flex-start; }
body.sud-theme .sud-single__buy table.variations { margin: 0; border: 0; }
body.sud-theme .sud-single__buy table.variations th, body.sud-theme .sud-single__buy table.variations td { border: 0; padding: 4px 12px 4px 0; background: none; font-family: var(--sud-heading); }
body.sud-theme .sud-single__buy .single_variation_wrap .woocommerce-variation-add-to-cart { display: flex; gap: 16px; align-items: center; }
body.sud-theme .sud-single__buy .reset_variations { font-size: 14px; }
.sud-note { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 12px; border: 1px solid var(--sud-gold-border); background: var(--sud-gold-tint); width: 100%; box-sizing: border-box; }
.sud-note__row { display: flex; align-items: center; gap: 12px; }
.sud-note img, .sud-note svg { width: 24px; height: 24px; flex-shrink: 0; }
.sud-note p { margin: 0; font-size: 14px; line-height: 21px; }
.sud-single__details { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; max-width: 840px; }
.sud-single__description p { font-size: 16px; line-height: 24px; }
body.sud-theme .related.products { margin-top: 32px; }
body.sud-theme .related.products > h2 { font-size: 48px; line-height: 1.2; margin: 0 0 32px; }
@media (max-width: 767px) { body.sud-theme .related.products > h2 { font-size: 36px; } }

/* WooCommerce notices */
body.sud-theme .woocommerce-message, body.sud-theme .woocommerce-info, body.sud-theme .woocommerce-error {
	border-radius: 12px; border: 1px solid var(--sud-gold-border); border-top: 3px solid var(--sud-green); background: #fff; font-family: var(--sud-body);
}
body.sud-theme .woocommerce-error { border-top-color: var(--sud-red); }

/* ==========================================================================
   Commerce pages: cart, checkout, order confirmation, account
   No Figma screens exist for these, so they follow the shop's language: cream page, white cards with the gold hairline,
   Archivo for names and money, the green vendor eyebrow, red for the one main action, navy for totals and selection.
   Type scale: page title 48 → card title 22 → item name 18 (16 in summaries) → body 15–16 → meta 13–14 (muted).
   ========================================================================== */

body.sud-theme.woocommerce-cart .site-content > .ast-container,
body.sud-theme.woocommerce-checkout .site-content > .ast-container,
body.sud-theme.woocommerce-account .site-content > .ast-container { max-width: 1320px; }
body.sud-theme.woocommerce-cart .entry-header, body.sud-theme.woocommerce-checkout .entry-header, body.sud-theme.woocommerce-account .entry-header { margin-bottom: 32px; }
body.sud-theme .woocommerce-cart-form, body.sud-theme .cart-collaterals { background: #fff; border-radius: 24px; padding: 32px; box-sizing: border-box; } /* classic cart, if ever used */
body.sud-theme .wp-block-woocommerce-cart, body.sud-theme .wp-block-woocommerce-checkout,
body.sud-theme .entry-content .wp-block-woocommerce-cart.alignwide, body.sud-theme .entry-content .wp-block-woocommerce-checkout.alignwide { background: transparent; padding: 0; margin: 0; width: auto; max-width: none; } /* Astra pulls "wide" blocks outward on phones */

/* Two columns: content card + summary card that stays in view */
body.sud-theme .wc-block-components-sidebar-layout { margin: 0; }
body.sud-theme .wc-block-components-sidebar-layout.is-large { flex-wrap: nowrap; align-items: flex-start; gap: 32px; }
body.sud-theme .wc-block-components-sidebar-layout.is-large .wc-block-components-main { flex: 1 1 auto; width: auto; min-width: 0; }
body.sud-theme .wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar { flex: 0 0 400px; width: 400px; position: sticky; top: 24px; }
/* Tablet and phone: WooCommerce stacks the columns; keep both cards full width */
body.sud-theme .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-main,
body.sud-theme .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-sidebar { width: 100%; max-width: none; }
body.sud-theme .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-sidebar { margin-top: 16px; }

body.sud-theme .wc-block-components-sidebar-layout .wc-block-components-main.wc-block-cart__main,
body.sud-theme .wc-block-components-sidebar-layout .wc-block-components-main.wc-block-checkout__main,
body.sud-theme .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	background: #fff; border: 1px solid var(--sud-gold-border); border-radius: 24px; box-sizing: border-box;
}
body.sud-theme .wc-block-components-sidebar-layout .wc-block-components-main.wc-block-cart__main { padding: 8px 32px; }
body.sud-theme .wc-block-components-sidebar-layout .wc-block-components-main.wc-block-checkout__main { padding: 40px; }
body.sud-theme .wc-block-components-sidebar-layout .wc-block-components-sidebar { padding: 28px; }
@media (max-width: 767px) {
	body.sud-theme .wc-block-components-sidebar-layout .wc-block-components-main.wc-block-cart__main { padding: 4px 20px; }
	body.sud-theme .wc-block-components-sidebar-layout .wc-block-components-main.wc-block-checkout__main { padding: 24px 20px; }
	body.sud-theme .wc-block-components-sidebar-layout .wc-block-components-sidebar { padding: 20px; }
}

/* Free-shipping progress (functions.php renders it, assets/sud.js keeps it live) */
.sud-freeship {
	display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; margin: 0 0 24px; padding: 18px 24px;
	background: #fff; border: 1px solid var(--sud-gold-border); border-radius: 20px;
}
.sud-freeship[hidden] { display: none; }
.sud-freeship__icon { width: 24px; height: 24px; }
body.sud-theme .sud-freeship__text { margin: 0; font-size: 15px; line-height: 22px; color: var(--sud-ink); }
.sud-freeship__text strong { font-weight: 700; }
.sud-freeship.is-unlocked .sud-freeship__text { color: var(--sud-green); }
.sud-freeship__bar { grid-column: 1 / -1; display: block; height: 8px; border-radius: 4px; background: var(--sud-gold-tint); overflow: hidden; }
.sud-freeship__fill { display: block; height: 100%; border-radius: inherit; background: var(--sud-gold); transition: width .5s cubic-bezier(.2, .8, .2, 1), background-color .3s ease; }
.sud-freeship.is-unlocked .sud-freeship__fill { background: var(--sud-green); }

/* Cart items */
body.sud-theme table.wc-block-cart-items { margin: 0; border: 0; width: 100%; border-collapse: collapse; }
body.sud-theme table.wc-block-cart-items thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.sud-theme table.wc-block-cart-items td { background: transparent; border: 0; }
body.sud-theme .wc-block-cart.is-large table.wc-block-cart-items td { padding: 24px 0; vertical-align: top; border-top: 1px solid var(--sud-gold-border); }
body.sud-theme .wc-block-cart table.wc-block-cart-items tbody tr:first-child td { border-top: 0; }
body.sud-theme .wc-block-cart.is-large .wc-block-cart-item__image { width: 112px; padding-right: 20px !important; }
/* Tablet and phone: WooCommerce turns each row into a grid; give the price its own column so it never spills out */
body.sud-theme .wc-block-cart:not(.is-large) table.wc-block-cart-items .wc-block-cart-items__row {
	grid-template-columns: 72px minmax(0, 1fr) auto; padding: 20px 0; border-bottom: 1px solid var(--sud-gold-border);
}
body.sud-theme .wc-block-cart:not(.is-large) table.wc-block-cart-items .wc-block-cart-items__row:last-child { border-bottom: 0; }
body.sud-theme .wc-block-cart:not(.is-large) table.wc-block-cart-items .wc-block-cart-item__image { padding: 0 14px 0 0; }
body.sud-theme .wc-block-cart:not(.is-large) table.wc-block-cart-items .wc-block-cart-item__product { grid-column: 2 / 3; padding: 0 12px 0 0; }
body.sud-theme .wc-block-cart:not(.is-large) table.wc-block-cart-items .wc-block-cart-item__total { grid-column: 3 / 4; grid-row: 1; padding: 0; }
body.sud-theme .wc-block-cart:not(.is-large) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name { font-size: 16px; }
body.sud-theme .wc-block-cart-item__image a { display: block; }
body.sud-theme .wc-block-cart-item__image img { display: block; width: 100%; max-width: 112px; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 16px; background: var(--sud-cream); }
body.sud-theme .wc-block-cart-item__wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
body.sud-theme .wc-block-cart-item__wrap > * { margin: 0; }
body.sud-theme .wc-block-cart-item__total { text-align: right; }

/* Product line (cart and checkout summary): vendor eyebrow above the name, no description */
body.sud-theme .wc-block-cart-item__wrap .wc-block-components-product-metadata,
body.sud-theme .wc-block-components-order-summary-item__description .wc-block-components-product-metadata { order: -1; margin: 0; }
body.sud-theme .wc-block-components-product-metadata__description { display: none; }
body.sud-theme .wc-block-components-product-details { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 20px; color: var(--sud-muted); }
body.sud-theme .wc-block-components-product-details__vendor { order: -1; flex-basis: 100%; font: 700 12px/18px var(--sud-body); letter-spacing: 1.44px; text-transform: uppercase; color: var(--sud-green); }
body.sud-theme .wc-block-components-product-details__vendor .wc-block-components-product-details__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.sud-theme .wc-block-components-product-name,
body.sud-theme table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name { display: block; font: 600 18px/1.3 var(--sud-heading); letter-spacing: -.01em; color: var(--sud-ink); text-decoration: none; }
body.sud-theme a.wc-block-components-product-name:hover { color: var(--sud-red); }
body.sud-theme table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices, body.sud-theme .wc-block-components-order-summary-item__individual-prices { font-size: 14px; line-height: 20px; color: var(--sud-muted); }
body.sud-theme .wc-block-cart-item__prices .wc-block-components-product-price__value { color: inherit; font-weight: 400; }
body.sud-theme table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-product-price,
body.sud-theme table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-product-price__value { font: 700 18px/1.3 var(--sud-heading); color: var(--sud-ink); font-variant-numeric: tabular-nums; }
body.sud-theme .wc-block-cart-item__total .wc-block-components-sale-badge,
body.sud-theme .wc-block-components-product-badge {
	display: inline-flex; margin: 6px 0 0; padding: 4px 10px; border: 0; border-radius: 12px; background: var(--sud-gold); color: var(--sud-ink);
	font: 700 11px/16px var(--sud-body); letter-spacing: 1.2px; text-transform: uppercase;
}
body.sud-theme .wc-block-cart-item__total .wc-block-components-sale-badge { background: var(--sud-red); color: #fff; }
body.sud-theme .wc-block-cart-item__quantity { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* Quantity: the same white − / + pill as the product page */
body.sud-theme .wc-block-components-quantity-selector {
	display: inline-flex; width: auto; min-width: 0; height: 40px; margin: 0; box-sizing: border-box; overflow: hidden;
	border: 1px solid var(--sud-gold-border); border-radius: var(--sud-pill); background: #fff; transition: border-color .3s ease, box-shadow .3s ease;
}
body.sud-theme .wc-block-components-quantity-selector::after { display: none; }
body.sud-theme .wc-block-components-quantity-selector:focus-within { border-color: var(--sud-navy); box-shadow: 0 0 0 3px rgba(39, 46, 110, .15); }
body.sud-theme .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	width: 36px; min-width: 36px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0;
	font: 600 15px/1 var(--sud-heading); color: var(--sud-ink); text-align: center;
}
body.sud-theme .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	width: 38px; min-width: 38px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; opacity: 1;
	background: transparent; color: var(--sud-ink); font: 400 20px/1 var(--sud-heading); cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
body.sud-theme .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover,
body.sud-theme .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus { background: var(--sud-bg); color: var(--sud-navy); }
body.sud-theme .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible { outline: 3px solid rgba(39, 46, 110, .35); outline-offset: -3px; }
body.sud-theme .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled,
body.sud-theme .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled:hover { background: transparent; color: var(--sud-grey-light); cursor: not-allowed; }

/* Remove: a quiet round icon button that turns red on hover */
body.sud-theme button.wc-block-cart-item__remove-link {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--sud-muted); box-shadow: none; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
body.sud-theme button.wc-block-cart-item__remove-link:hover { background: #fbebeb; color: var(--sud-red); }
body.sud-theme button.wc-block-cart-item__remove-link:focus-visible { outline: 3px solid rgba(39, 46, 110, .35); outline-offset: 0; }

/* Summary card (cart + checkout) */
body.sud-theme .wc-block-cart__totals-title,
body.sud-theme .wc-block-components-checkout-order-summary__title-text {
	margin: 0 0 8px; padding: 0; font: 600 22px/1.25 var(--sud-heading); letter-spacing: -.01em; text-transform: none; color: var(--sud-ink);
}
body.sud-theme .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title { margin: 0; padding: 0 0 8px; border: 0; }
body.sud-theme .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-text { padding: 0; }
body.sud-theme .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { margin: 0; padding: 0; border: 0; border-radius: 0; }
body.sud-theme .wc-block-checkout__main .wp-block-woocommerce-checkout-order-summary-block { border: 1px solid var(--sud-gold-border); border-radius: 16px; padding: 4px 16px; }
body.sud-theme .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content,
body.sud-theme .wc-block-components-sidebar .wc-block-components-totals-wrapper,
body.sud-theme .wc-block-components-sidebar .wc-block-components-totals-coupon,
body.sud-theme .wc-block-components-sidebar .wc-block-components-panel__button { padding-left: 0; padding-right: 0; }
body.sud-theme .wc-block-components-totals-wrapper { padding: 14px 0; border-top: 1px solid var(--sud-gold-border); }
body.sud-theme .wc-block-components-totals-wrapper:empty { display: none; }
body.sud-theme .wc-block-components-totals-wrapper:first-child { border-top: 0; }
body.sud-theme .wc-block-components-totals-item { align-items: baseline; padding: 4px 0; font-size: 15px; line-height: 22px; color: var(--sud-ink); }
body.sud-theme .wc-block-components-totals-item__value { font-weight: 600; font-variant-numeric: tabular-nums; }
body.sud-theme .wc-block-components-totals-item__description { font-size: 13px; color: var(--sud-muted); }
body.sud-theme .wc-block-components-totals-shipping .wc-block-components-totals-item__value strong { font-weight: 600; text-transform: none; color: var(--sud-green); }
body.sud-theme .wc-block-components-totals-footer-item { padding-top: 8px; }
body.sud-theme .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font: 600 18px/1.3 var(--sud-heading); }
body.sud-theme .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.sud-theme .wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax-value {
	font: 700 28px/1.1 var(--sud-heading); letter-spacing: -.02em; color: var(--sud-navy); font-variant-numeric: tabular-nums;
}
/* Coupon: a quiet disclosure, with a secondary (outline) Apply button */
body.sud-theme .wc-block-components-panel__button { padding: 4px 0; font: 600 15px/22px var(--sud-body); color: var(--sud-ink); }
body.sud-theme .wc-block-components-panel__button:hover { color: var(--sud-navy); }
body.sud-theme .wc-block-components-totals-coupon__button.wc-block-components-button {
	background: transparent; color: var(--sud-navy); border: 1px solid var(--sud-navy); height: auto; min-height: 48px; padding: 0 20px;
}
body.sud-theme .wc-block-components-totals-coupon__button.wc-block-components-button:hover { background: var(--sud-navy); color: #fff; }
/* The one main action */
body.sud-theme .wc-block-cart__submit { margin: 8px 0 0; }
body.sud-theme .wc-block-cart__submit-container:not(.wc-block-cart__submit-container--sticky) { padding: 0; }
/* Phones: WooCommerce pins a copy of the button to the bottom of the screen */
body.sud-theme .wc-block-cart__submit-container--sticky {
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--sud-gold-border); box-shadow: 0 -8px 24px rgba(39, 40, 39, .06);
}
body.sud-theme .wc-block-cart__submit-container--sticky::before { display: none; }
body.sud-theme .wc-block-cart__submit-button, body.sud-theme .wc-block-components-checkout-place-order-button { width: 100%; min-height: 56px; font-size: 17px; font-weight: 600; }
body.sud-theme .wc-block-cart__submit-container:not(.wc-block-cart__submit-container--sticky)::after {
	content: "Secure checkout"; display: block; width: max-content; margin: 14px auto 0; padding-left: 20px; font: 13px/16px var(--sud-body); color: var(--sud-muted);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%236b6560' stroke-width='1.4'%3E%3Crect x='2.5' y='6' width='9' height='6.5' rx='1.5'/%3E%3Cpath d='M4.5 6V4.5a2.5 2.5 0 0 1 5 0V6'/%3E%3C/svg%3E") no-repeat left center / 14px;
}

/* Checkout: numbered steps in one white card */
body.sud-theme .wc-block-checkout__form { counter-reset: sud-step; margin: 0; }
body.sud-theme .wc-block-checkout__main fieldset.wc-block-components-checkout-step { counter-increment: sud-step; }
body.sud-theme .wc-block-checkout__main .wc-block-components-checkout-step { margin: 0; padding: 32px 0; border: 0; border-top: 1px solid var(--sud-gold-border); }
body.sud-theme .wc-block-checkout__main .wc-block-components-checkout-step:first-of-type { padding-top: 0; border-top: 0; }
body.sud-theme .wc-block-components-checkout-step__heading { margin: 0 0 20px; }
body.sud-theme .wc-block-components-checkout-step__title {
	display: flex; align-items: center; gap: 12px; margin: 0; font: 600 22px/1.25 var(--sud-heading); letter-spacing: -.01em; color: var(--sud-ink);
}
body.sud-theme .wc-block-checkout__main fieldset.wc-block-components-checkout-step .wc-block-components-checkout-step__title::before {
	content: counter(sud-step); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px;
	border-radius: 50%; background: var(--sud-navy); color: #fff; font: 600 14px/1 var(--sud-heading);
}
body.sud-theme .wc-block-components-checkout-step__description,
body.sud-theme .wc-block-checkout__guest-checkout-notice { margin: 8px 0 0; font-size: 13px; line-height: 20px; color: var(--sud-muted); }
body.sud-theme .wc-block-components-address-form .wc-block-components-address-form__address_2-toggle,
body.sud-theme .wc-block-components-checkout-step__heading-content a { font: 600 14px/20px var(--sud-body); color: var(--sud-red); }
body.sud-theme .wc-block-checkout__terms { margin: 24px 0 16px; padding: 0; border: 0; font-size: 13px; line-height: 20px; color: var(--sud-muted); }
body.sud-theme .wc-block-checkout__actions { padding: 0; }
body.sud-theme .wc-block-checkout__actions_row { gap: 16px; }

/* Fields: white, hairline border, navy focus ring, red errors */
body.sud-theme .wc-block-components-text-input input,
body.sud-theme .wc-block-components-text-input input[type],
body.sud-theme .wc-blocks-components-select .wc-blocks-components-select__select,
body.sud-theme .wc-block-components-combobox .wc-block-components-combobox-control input,
body.sud-theme .wc-block-components-textarea {
	background: #fff; border: 1px solid rgba(39, 40, 39, .2); border-radius: 12px; box-shadow: none; color: var(--sud-ink); font-family: var(--sud-body);
	transition: border-color .2s ease, box-shadow .2s ease;
}
body.sud-theme .wc-block-components-text-input input:focus,
body.sud-theme .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.sud-theme .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.sud-theme .wc-block-components-textarea:focus { outline: 0; border-color: var(--sud-navy); box-shadow: 0 0 0 3px rgba(39, 46, 110, .15); }
body.sud-theme .wc-block-components-text-input label, body.sud-theme .wc-blocks-components-select__label { color: var(--sud-muted); }
body.sud-theme .wc-block-components-text-input.has-error input,
body.sud-theme .wc-blocks-components-select.has-error .wc-blocks-components-select__select { border-color: var(--sud-red); box-shadow: 0 0 0 3px rgba(197, 47, 47, .12); }
body.sud-theme .wc-block-components-validation-error { color: var(--sud-red); font-size: 13px; }

/* Checkboxes and radios: navy when chosen */
body.sud-theme .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border-color: rgba(39, 40, 39, .35); border-radius: 6px; }
body.sud-theme .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--sud-navy); border-color: var(--sud-navy); }
body.sud-theme .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }
body.sud-theme .wc-block-components-checkbox label { font-size: 14px; color: var(--sud-ink); }
body.sud-theme .wc-block-components-radio-control .wc-block-components-radio-control__input { border-color: rgba(39, 40, 39, .35); }
body.sud-theme .wc-block-components-radio-control .wc-block-components-radio-control__input:checked { border-color: var(--sud-navy); }
body.sud-theme .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--sud-navy); }

/* Shipping and payment choices as cards: hairline by default, navy outline and tint when chosen */
body.sud-theme .wc-block-components-radio-control--highlight-checked::after,
body.sud-theme .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option::after,
body.sud-theme .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option::after { display: none; }
body.sud-theme .wc-block-components-radio-control--highlight-checked { border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 10px; }
body.sud-theme .wc-block-components-radio-control > .wc-block-components-radio-control__option,
body.sud-theme .wc-block-components-radio-control-accordion-option {
	margin: 0; border: 1px solid var(--sud-gold-border); border-radius: 12px; background: #fff; box-shadow: none; transition: border-color .2s ease, background-color .2s ease;
}
body.sud-theme .wc-block-components-radio-control > .wc-block-components-radio-control__option:has(input:checked),
body.sud-theme .wc-block-components-radio-control-accordion-option:has(> .wc-block-components-radio-control__option input:checked) {
	border-color: var(--sud-navy); box-shadow: inset 0 0 0 1px var(--sud-navy); background: #f7f7fb;
}
body.sud-theme .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option { border: 0; box-shadow: none; background: transparent; }
body.sud-theme .wc-block-components-radio-control__label, body.sud-theme .wc-block-components-radio-control__option-layout { font-size: 15px; font-weight: 600; color: var(--sud-ink); }
body.sud-theme .wc-block-components-radio-control__secondary-label { font-weight: 600; color: var(--sud-ink); }
body.sud-theme .wc-block-components-radio-control__description,
body.sud-theme .wc-block-components-radio-control-accordion-content { font-size: 14px; color: var(--sud-muted); }

/* Checkout summary lines: thumbnail with a navy quantity badge, as on Shopify-style checkouts */
body.sud-theme .wc-block-components-order-summary { padding: 0; }
body.sud-theme .wc-block-components-order-summary .wc-block-components-order-summary__content { display: flex; flex-direction: column; gap: 4px; }
body.sud-theme .wc-block-components-order-summary-item { align-items: flex-start; gap: 14px; padding: 10px 0; border: 0; }
body.sud-theme .wc-block-components-order-summary-item__image { flex: 0 0 64px; width: 64px; margin: 0; padding: 0; position: relative; }
body.sud-theme .wc-block-components-order-summary-item__image img { display: block; width: 64px; height: 64px; max-width: none; object-fit: cover; border-radius: 12px; border: 1px solid var(--sud-gold-border); }
body.sud-theme .wc-block-components-order-summary-item__quantity {
	top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border: 2px solid #fff; border-radius: 11px; box-shadow: none;
	background: var(--sud-navy); color: #fff; font: 600 12px/18px var(--sud-heading);
}
body.sud-theme .wc-block-components-order-summary-item__description { flex: 1; min-width: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
body.sud-theme .wc-block-components-order-summary-item__description > * { margin: 0; }
body.sud-theme .wc-block-components-order-summary .wc-block-components-order-summary-item .wc-block-components-product-name { font-size: 15px; line-height: 1.35; }
body.sud-theme .wc-block-components-order-summary-item .wc-block-components-product-details__vendor { font-size: 11px; line-height: 16px; letter-spacing: 1.2px; }
body.sud-theme .wc-block-components-order-summary-item__total-price { padding: 0; font: 600 15px/1.35 var(--sud-heading); color: var(--sud-ink); font-variant-numeric: tabular-nums; }

/* Empty cart: Figma's centred 840px column with the dashed card */
body.sud-theme .wp-block-woocommerce-empty-cart-block, body.sud-theme .wp-block-woocommerce-cart:has(.sud-empty-cart) { background: transparent; padding: 0; }
body.sud-theme.sud-cart-empty .entry-header, body.sud-theme.sud-cart-empty .entry-content { max-width: 840px; margin-left: auto; margin-right: auto; }
body.sud-theme.sud-cart-empty .sud-freeship { display: none; }
body.sud-theme .sud-empty-cart { border-color: rgba(184, 134, 11, .35); }
.sud-empty-cart {
	display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 24px; max-width: 840px; margin: 0 auto;
	background: #fff; border: 2px dashed var(--sud-gold-border); border-radius: 20px; text-align: center;
}
.sud-empty-cart p { margin: 0; color: var(--sud-grey); font-size: 16px; }
body.sud-theme .sud-arrow-link { display: inline-flex; align-items: center; gap: 12px; font: 500 16px/16px var(--sud-heading); color: var(--sud-red); text-decoration: none; }
.sud-arrow-link img { width: 24px; height: 24px; }

/* Order confirmation */
.sud-thanks { display: flex; flex-direction: column; gap: 24px; }
.sud-thanks__hero { display: flex; align-items: flex-start; gap: 20px; padding: 32px; background: #fff; border: 1px solid var(--sud-gold-border); border-radius: 24px; }
.sud-thanks__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--sud-green); }
.sud-thanks__intro { display: flex; flex-direction: column; gap: 8px; }
body.sud-theme .sud-thanks__intro > * { margin: 0; }
/* The hero carries the page heading, so the plain "Order confirmed" title would only repeat it */
body.sud-theme.woocommerce-order-received .entry-header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.sud-thanks__eyebrow { font: 700 12px/18px var(--sud-body); letter-spacing: 1.44px; text-transform: uppercase; color: var(--sud-green); }
body.sud-theme .sud-thanks__title { margin: 0; font-size: 40px; line-height: 1.15; letter-spacing: -.02em; }
.sud-thanks__lead { font-size: 16px; line-height: 24px; color: var(--sud-ink); }
body.sud-theme ul.sud-thanks__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
body.sud-theme ul.sud-thanks__facts li {
	display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 18px 20px; float: none; border: 1px solid var(--sud-gold-border); border-radius: 16px;
	background: #fff; font-size: 13px; line-height: 18px; text-transform: none; color: var(--sud-muted);
}
body.sud-theme ul.sud-thanks__facts::before, body.sud-theme ul.sud-thanks__facts::after,
body.sud-theme ul.sud-thanks__facts li::before, body.sud-theme ul.sud-thanks__facts li::after { display: none; }
body.sud-theme ul.sud-thanks__facts li strong { font: 600 17px/1.3 var(--sud-heading); color: var(--sud-ink); text-transform: none; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { body.sud-theme ul.sud-thanks__facts { grid-template-columns: 1fr 1fr; } .sud-thanks__hero { padding: 24px 20px; } body.sud-theme .sud-thanks__title { font-size: 28px; } }
.sud-thanks__next { padding: 28px 32px; background: var(--sud-gold-tint); border: 1px solid var(--sud-gold-border); border-radius: 24px; }
body.sud-theme .sud-thanks__next h3 { margin: 0 0 16px; font-size: 20px; line-height: 1.3; }
.sud-thanks__next ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: sud-next; }
.sud-thanks__next li { display: flex; flex-direction: column; gap: 4px; padding-left: 40px; position: relative; counter-increment: sud-next; font-size: 14px; line-height: 21px; }
.sud-thanks__next li::before {
	content: counter(sud-next); position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
	border-radius: 50%; background: var(--sud-navy); color: #fff; font: 600 14px/1 var(--sud-heading);
}
.sud-thanks__next li strong { font: 600 16px/1.4 var(--sud-heading); color: var(--sud-ink); }
@media (max-width: 767px) { .sud-thanks__next ol { grid-template-columns: 1fr; } .sud-thanks__next { padding: 24px 20px; } }
.sud-thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Order details + addresses (confirmation page and My Account → View order): cards instead of ruled tables */
body.sud-theme .woocommerce-order-details, body.sud-theme .woocommerce-customer-details .woocommerce-column,
body.sud-theme .woocommerce-customer-details > address {
	margin: 0; padding: 28px 32px; background: #fff; border: 1px solid var(--sud-gold-border); border-radius: 24px; box-sizing: border-box;
}
body.sud-theme .woocommerce-order-details__title, body.sud-theme .woocommerce-column__title, body.sud-theme .woocommerce-customer-details h2 {
	margin: 0 0 16px !important; padding: 0 !important; background: none !important; border: 0 !important; font-size: 20px !important; line-height: 1.3;
}
body.sud-theme .woocommerce table.shop_table, body.sud-theme table.shop_table { margin: 0; border: 0; border-collapse: collapse; border-radius: 0; width: 100%; background: transparent; }
body.sud-theme table.shop_table th, body.sud-theme table.shop_table td { padding: 14px 0 !important; border: 0 !important; border-top: 1px solid var(--sud-gold-border) !important; background: transparent; font-size: 15px; line-height: 22px; text-align: left; vertical-align: top; }
body.sud-theme table.shop_table thead th { border-top: 0 !important; padding-top: 0 !important; font: 700 12px/18px var(--sud-body); letter-spacing: 1.2px; text-transform: uppercase; color: var(--sud-muted); }
body.sud-theme table.shop_table th:last-child, body.sud-theme table.shop_table td:last-child { text-align: right; padding-left: 16px !important; }
body.sud-theme table.shop_table td.product-name a { font: 600 16px/1.4 var(--sud-heading); color: var(--sud-ink); text-decoration: none; }
body.sud-theme table.shop_table td.product-name a:hover { color: var(--sud-red); }
body.sud-theme table.shop_table .product-quantity { font-weight: 600; color: var(--sud-muted); }
body.sud-theme table.shop_table .wc-item-meta { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--sud-muted); }
body.sud-theme table.shop_table .wc-item-meta li, body.sud-theme table.shop_table .wc-item-meta p { display: inline; margin: 0; }
body.sud-theme table.shop_table tfoot th { font-weight: 400; color: var(--sud-ink); }
body.sud-theme table.shop_table tfoot tr:nth-last-child(2) th, body.sud-theme table.shop_table tfoot tr:nth-last-child(2) td { font: 700 18px/1.3 var(--sud-heading); color: var(--sud-navy); }
body.sud-theme .woocommerce-customer-details { margin: 0; }
body.sud-theme .woocommerce-customer-details .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0; }
body.sud-theme .woocommerce-customer-details .col2-set::before, body.sud-theme .woocommerce-customer-details .col2-set::after { display: none; }
body.sud-theme .woocommerce-customer-details .col2-set .woocommerce-column { float: none; width: auto; max-width: none; }
body.sud-theme .woocommerce-customer-details address { margin: 0; padding: 0; border: 0; font-style: normal; font-size: 15px; line-height: 24px; color: var(--sud-ink); }
@media (max-width: 767px) {
	body.sud-theme .woocommerce-customer-details .col2-set { grid-template-columns: 1fr; }
	body.sud-theme .woocommerce-order-details, body.sud-theme .woocommerce-customer-details .woocommerce-column { padding: 20px; }
}

/* ========================================================================== My Account */

/* Signed out: "Sign in" and "Create account" as two equal cards, heading inside each */
body.sud-theme #customer_login.col2-set, body.sud-theme .woocommerce .u-columns.col2-set {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin: 0;
}
body.sud-theme #customer_login::before, body.sud-theme #customer_login::after { display: none; }
body.sud-theme #customer_login > .u-column1, body.sud-theme #customer_login > .u-column2 {
	float: none; width: auto; max-width: none; margin: 0; padding: 32px; box-sizing: border-box; background: #fff; border: 1px solid var(--sud-gold-border); border-radius: 24px;
}
@media (max-width: 767px) { body.sud-theme #customer_login.col2-set { grid-template-columns: 1fr; } body.sud-theme #customer_login > .u-column1, body.sud-theme #customer_login > .u-column2 { padding: 24px 20px; } }
body.sud-theme #customer_login h2 { margin: 0 0 6px; padding: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
body.sud-theme .woocommerce form.login, body.sud-theme .woocommerce form.register { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.sud-form-intro { margin: 0 0 24px; font-size: 15px; line-height: 22px; color: var(--sud-muted); }
body.sud-theme .woocommerce form .form-row::before, body.sud-theme .woocommerce form .form-row::after { display: none; }
body.sud-theme .woocommerce form .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 0; }
body.sud-theme .woocommerce form .form-row label:not(.woocommerce-form__label-for-checkbox):not(.radio) { font: 600 14px/20px var(--sud-body); color: var(--sud-ink); margin: 0; }
body.sud-theme .woocommerce form .form-row .required { color: var(--sud-red); text-decoration: none; }
body.sud-theme .woocommerce form .form-row input.input-text, body.sud-theme .woocommerce form .form-row select { width: 100%; height: 50px; box-sizing: border-box; }
body.sud-theme .woocommerce form.login .form-row:has(.woocommerce-form-login__rememberme) { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 16px; }
body.sud-theme .woocommerce form .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
body.sud-theme .woocommerce form .woocommerce-form__label-for-checkbox input { accent-color: var(--sud-navy); width: 16px; height: 16px; margin: 0; }
body.sud-theme .woocommerce form.login .woocommerce-form-login__submit, body.sud-theme .woocommerce form.register .woocommerce-form-register__submit { width: 100%; min-height: 52px; margin: 8px 0 0; }
body.sud-theme .woocommerce form.login .woocommerce-LostPassword { margin: 16px 0 0; text-align: center; font-size: 14px; }
body.sud-theme .woocommerce form.register > p:not(.form-row):not(.sud-form-intro),
body.sud-theme .woocommerce form .woocommerce-privacy-policy-text p { margin: 0 0 16px; font-size: 13px; line-height: 20px; color: var(--sud-muted); }
body.sud-theme .sud-form-intro { margin: 0 0 24px; font-size: 15px; line-height: 22px; color: var(--sud-muted); }
/* Dokan's "I am a customer / I am a vendor" as a two-way switch */
body.sud-theme .woocommerce form.register .vendor-customer-registration { flex-direction: row; gap: 8px; }
body.sud-theme .woocommerce form.register .vendor-customer-registration label.radio { flex: 1 1 0; white-space: nowrap; }
@media (max-width: 480px) { body.sud-theme .woocommerce form.register .vendor-customer-registration label.radio { padding: 12px 8px; font-size: 13px; } }
body.sud-theme .woocommerce form.register .vendor-customer-registration br { display: none; }
body.sud-theme .woocommerce form.register .vendor-customer-registration label.radio {
	display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px 16px; border: 1px solid var(--sud-gold-border); border-radius: var(--sud-pill);
	background: #fff; font: 600 14px/20px var(--sud-heading); color: var(--sud-ink); cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
}
body.sud-theme .woocommerce form.register .vendor-customer-registration label.radio:has(input:checked) { border-color: var(--sud-navy); box-shadow: inset 0 0 0 1px var(--sud-navy); background: #f7f7fb; color: var(--sud-navy); }
body.sud-theme .woocommerce form.register .vendor-customer-registration input { accent-color: var(--sud-navy); margin: 0; }

/* Signed in: navigation card + content card */
body.sud-theme.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
body.sud-theme.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
body.sud-theme.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after { display: none; }
@media (max-width: 921px) { body.sud-theme.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: 1fr; } }
body.sud-theme .woocommerce-MyAccount-navigation, body.sud-theme .woocommerce-MyAccount-content { float: none; width: auto; margin: 0; }
body.sud-theme .woocommerce-MyAccount-navigation { padding: 12px; background: #fff; border: 1px solid var(--sud-gold-border); border-radius: 24px; }
body.sud-theme .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border: 0; }
body.sud-theme .woocommerce-MyAccount-navigation ul li { margin: 0; padding: 0; border: 0; }
body.sud-theme .woocommerce-MyAccount-navigation a {
	display: block; padding: 12px 16px; border-radius: 14px; background: transparent; color: var(--sud-ink); text-decoration: none;
	font: 500 15px/20px var(--sud-heading); transition: background-color .2s ease, color .2s ease;
}
body.sud-theme .woocommerce-MyAccount-navigation a:hover { background: var(--sud-bg); color: var(--sud-navy); }
body.sud-theme .woocommerce-MyAccount-navigation .is-active a { background: var(--sud-navy); color: #fff; }
body.sud-theme .woocommerce-MyAccount-content { padding: 32px; background: #fff; border: 1px solid var(--sud-gold-border); border-radius: 24px; box-sizing: border-box; font-size: 15px; line-height: 24px; }
body.sud-theme .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
body.sud-theme .woocommerce-MyAccount-content .woocommerce-order-details,
body.sud-theme .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column { padding: 0; border: 0; border-radius: 0; }
body.sud-theme .woocommerce-MyAccount-content .woocommerce-customer-details { margin-top: 24px; }
body.sud-theme .woocommerce-orders-table__cell-order-number a { font: 600 15px var(--sud-heading); }
body.sud-theme .woocommerce-orders-table .button { padding: 8px 16px; font-size: 14px; }
@media (max-width: 767px) { body.sud-theme .woocommerce-MyAccount-content { padding: 20px; } }

/* ========================================================================== Dokan: vendor store pages + store list */

body.sud-theme .dokan-store-wrap, body.sud-theme #dokan-seller-listing-wrap { font-family: var(--sud-body); }
body.sud-theme .profile-frame, body.sud-theme .dokan-single-store .profile-frame { border-radius: 20px; overflow: hidden; }
body.sud-theme .dokan-store-tabs ul.dokan-list-inline { border-radius: 0 0 20px 20px; }
body.sud-theme #dokan-seller-listing-wrap ul.dokan-seller-wrap li .store-wrapper { border-radius: 20px; overflow: hidden; border: 1px solid var(--sud-gold-border); box-shadow: none; }
body.sud-theme .store-name, body.sud-theme .dokan-store-info .store-name { font-family: var(--sud-heading) !important; }
body.sud-theme .dokan-form-control { border-radius: 12px; }
body.sud-theme select,
body.sud-theme .dokan-store-products-filter-area select,
body.sud-theme select.orderby { height: auto; min-height: 44px; line-height: 1.4; padding: 10px 36px 10px 16px; }
/* Round "visit store" arrow on the store list is an icon font: keep its font */
body.sud-theme .dashicons.dokan-btn-theme, body.sud-theme .dashicons.dokan-btn {
	font-family: dashicons; padding: 0; width: 40px; height: 40px; line-height: 40px; font-size: 20px; text-transform: none; border-radius: 50%;
}
/* Single store page: no blog sidebar; products use the full width */
body.sud-theme #dokan-secondary.dokan-store-sidebar { display: none; }
body.sud-theme #dokan-primary.dokan-single-store { width: 100%; float: none; }

/* ========================================================================== Reduced motion */

@media (prefers-reduced-motion: reduce) {
	.sud-cart-count.is-bumped { animation: none; }
	.sud-btn:active, body.sud-theme .button:active, body.sud-theme input[type="submit"]:active,
	body.sud-theme .wc-block-components-button:not(.is-link):active, body.sud-theme .sud-chip:active { transform: none; }
	.sud-freeship__fill { transition: none; }
	body.sud-theme .button.loading::after { animation-duration: 1.6s; }
}

/* Astra's back-to-top button, in the brand's round navy */
body.sud-theme #ast-scroll-top { width: 44px; height: 44px; border-radius: 50%; background: var(--sud-navy); color: #fff; font-size: 16px; line-height: 44px; box-shadow: 0 6px 18px rgba(39, 46, 110, .25); }
body.sud-theme #ast-scroll-top:hover { background: var(--sud-navy-dark); }
