/*
Theme Name: NexGenTrend
Theme URI: https://gcc.nexgentrend.com
Author: NexGenTrend
Description: Bilingual (English / Arabic, RTL) WooCommerce theme for a Saudi cash-on-delivery store. Based on the Stitch redesign.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nexgentrend
*/

/* ==========================================================================
   Fonts (self-hosted: put the .woff2 files in assets/fonts, see README)
   ========================================================================== */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: local("Plus Jakarta Sans"), url("assets/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Cairo";
	src: local("Cairo"), url("assets/fonts/Cairo-Variable.woff2") format("woff2");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Design tokens (from the Stitch design)
   ========================================================================== */
:root {
	--bg: #131315;
	--bg-lowest: #0e0e10;
	--bg-low: #1b1b1d;
	--bg-mid: #201f21;
	--bg-high: #2a2a2c;
	--bg-highest: #353437;
	--text: #e5e1e4;
	--text-dim: #dbc2b0;
	--primary: #ffb77d;
	--accent: #f59e0b;
	--accent-deep: #d97706;
	--gold: #f9bd22;
	--line: #554336;
	--wa: #25d366;
	--radius: 16px;
	--radius-sm: 10px;
	--font-latin: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-ar: "Cairo", "Plus Jakarta Sans", "Segoe UI", Tahoma, system-ui, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-latin);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.nxg-ar { font-family: var(--font-ar); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
body.nxg-ar h1, body.nxg-ar h2, body.nxg-ar h3, body.nxg-ar h4 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.nxg-skip {
	position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 200;
	background: var(--accent); color: #131315; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.nxg-skip:focus { top: 1rem; }
.nxg-container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.nxg-muted { color: var(--text-dim); }
.nxg-center { text-align: center; }
.nxg-icon { width: 22px; height: 22px; display: block; }

/* Buttons */
.nxg-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce-page a.button, .woocommerce-page button.button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--accent); color: #131315; font: inherit; font-weight: 700; line-height: 1.2;
	transition: background .2s, transform .2s;
}
.nxg-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--gold); color: #131315; }
.nxg-btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.nxg-btn--ghost:hover { background: var(--bg-high); color: var(--text); }
.nxg-btn--wa { background: var(--wa); color: #072b14; }
.nxg-btn--wa:hover { background: #3be07c; color: #072b14; }

/* ==========================================================================
   Header
   ========================================================================== */
.nxg-announce {
	background: var(--accent-deep); color: #131315; text-align: center;
	font-size: .85rem; font-weight: 700; padding: .45rem 1rem;
}
.nxg-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(19, 19, 21, .92); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.nxg-header__row { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.nxg-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.nxg-brand__mark {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
	background: var(--accent); color: #131315; font-size: .95rem; font-weight: 800;
}
.nxg-brand__name b { color: var(--accent); font-weight: 800; }
.custom-logo { max-height: 44px; width: auto; }

.nxg-nav { display: flex; align-items: center; gap: 1rem; flex: 1; justify-content: space-between; }
.nxg-menu { display: flex; gap: 1.5rem; }
.nxg-menu a { color: var(--text-dim); font-weight: 600; font-size: .95rem; transition: color .2s; }
.nxg-menu a:hover { color: var(--primary); }
.nxg-search input {
	width: 220px; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line);
	background: var(--bg-low); color: var(--text); font: inherit; font-size: .9rem;
}
.nxg-actions { display: flex; align-items: center; gap: .4rem; }
.nxg-iconbtn, .nxg-langbtn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	min-width: 42px; height: 42px; padding: 0 .6rem; border: 0; border-radius: 999px;
	background: transparent; color: var(--text); cursor: pointer; font: inherit; font-weight: 700;
}
.nxg-iconbtn:hover, .nxg-langbtn:hover { background: var(--bg-high); }
.nxg-langbtn { font-size: .85rem; border: 1px solid var(--line); }
.nxg-cart-count {
	position: absolute; top: 0; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px;
	display: grid; place-items: center; border-radius: 999px;
	background: var(--accent); color: #131315; font-size: .7rem; font-weight: 800; line-height: 1;
}
.nxg-navtoggle { display: none; }

@media (max-width: 900px) {
	.nxg-header__row { flex-wrap: wrap; }
	.nxg-navtoggle { display: inline-flex; margin-inline-start: auto; order: 2; }
	.nxg-actions { order: 3; }
	.nxg-nav {
		display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch;
		padding: .5rem 0 1rem;
	}
	.nxg-nav.is-open { display: flex; }
	.nxg-menu { flex-direction: column; gap: .2rem; }
	.nxg-menu a { display: block; padding: .6rem .2rem; }
	.nxg-search input { width: 100%; }
}

/* ==========================================================================
   Home: hero
   ========================================================================== */
.nxg-hero { padding: 4rem 0 3rem; background: radial-gradient(ellipse at 70% 0%, rgba(217, 119, 6, .18), transparent 60%); }
.nxg-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.nxg-pill {
	display: inline-block; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px;
	background: var(--bg-low); color: var(--text-dim); font-size: .8rem; font-weight: 700; margin-bottom: 1.2rem;
}
.nxg-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.4rem); font-weight: 800; }
.nxg-hero h1 em { text-decoration: underline wavy rgba(217, 119, 6, .5); text-underline-offset: .2em; }
.nxg-lead { font-size: 1.15rem; color: var(--text-dim); max-width: 36rem; }
.nxg-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.nxg-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--text-dim); font-size: .9rem; font-weight: 600; }
.nxg-trust li::before { content: "\2713"; color: var(--accent); margin-inline-end: .4rem; font-weight: 800; }

.nxg-hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.nxg-herocard {
	display: flex; flex-direction: column; gap: .4rem; padding: .8rem; border-radius: var(--radius);
	background: var(--bg-low); border: 1px solid var(--line); transition: transform .25s;
}
.nxg-herocard:hover { transform: translateY(-4px); }
.nxg-herocard--1 { margin-top: 2rem; }
.nxg-herocard__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.nxg-herocard__title { font-weight: 700; font-size: .95rem; }
.nxg-herocard__price { color: var(--primary); font-weight: 800; }
.nxg-herocard__price del { opacity: .6; font-weight: 500; }
.nxg-herocard__price ins { text-decoration: none; }

@media (max-width: 900px) {
	.nxg-hero { padding: 2.5rem 0 2rem; }
	.nxg-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Home: sections
   ========================================================================== */
.nxg-section { padding: 4.5rem 0; }
.nxg-section--alt { background: var(--bg-lowest); }
.nxg-sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.nxg-sechead h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin: 0; }
.nxg-sechead p { margin: 0; max-width: 28rem; }
.nxg-label { display: block; color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
body.nxg-ar .nxg-label { letter-spacing: 0; }

/* Category tiles */
.nxg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.nxg-tile {
	position: relative; display: block; min-height: 280px; overflow: hidden; border-radius: var(--radius);
	background: linear-gradient(160deg, var(--bg-high), var(--bg-low)); border: 1px solid var(--line);
}
.nxg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nxg-tile:hover img { transform: scale(1.06); }
.nxg-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 14, 16, .92), rgba(14, 14, 16, .05) 65%); }
.nxg-tile__text { position: absolute; z-index: 1; inset-inline: 1.1rem; bottom: 1.1rem; display: flex; flex-direction: column; }
.nxg-tile__text strong { font-size: 1.15rem; }
.nxg-tile__text small { color: var(--text-dim); }

/* Filter chips */
.nxg-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.nxg-chip {
	padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
	background: var(--bg-low); color: var(--text); font: inherit; font-size: .9rem; font-weight: 700;
}
.nxg-chip:hover { background: var(--bg-high); }
.nxg-chip.is-active { background: var(--accent); border-color: var(--accent); color: #131315; }

/* Product grid (home, shop, categories, related) */
ul.products, .nxg-grid {
	display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
	margin: 0 0 2rem !important; padding: 0; list-style: none;
}
ul.products::before, ul.products::after, .nxg-grid::before, .nxg-grid::after { display: none !important; content: none !important; }
ul.products li.product, .nxg-grid li.product, .nxg-card {
	float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important;
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--bg-low); border: 1px solid var(--line); border-radius: var(--radius);
	transition: transform .25s, border-color .25s;
}
.nxg-card:hover { transform: translateY(-4px); border-color: var(--accent-deep); }
.nxg-card__media { position: relative; display: block; background: var(--bg-mid); }
.nxg-card__media img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 !important; }
.nxg-badge {
	position: absolute; z-index: 2; top: .7rem; inset-inline-start: .7rem; padding: .2rem .65rem;
	border-radius: 999px; background: var(--accent); color: #131315; font-size: .72rem; font-weight: 800;
}
.nxg-card__body { display: flex; flex-direction: column; gap: .35rem; flex: 1; padding: 1rem; }
.nxg-card__cat { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
body.nxg-ar .nxg-card__cat { letter-spacing: 0; }
.nxg-card__title { font-size: 1rem; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nxg-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.nxg-price, .woocommerce .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--primary); font-weight: 800; }
.nxg-price del, .price del { opacity: .55; font-weight: 500; margin-inline-end: .3rem; }
.price ins, .nxg-price ins { text-decoration: none; }
.nxg-card .button { padding: .5rem .9rem; font-size: .85rem; white-space: nowrap; }
.nxg-card a.added_to_cart { display: none; }
.nxg-card .button.added::after { content: "\2713"; margin-inline-start: .3rem; font-family: inherit; }
.nxg-card .button.loading { opacity: .6; }
.nxg-card .button.loading::after { content: ""; }

@media (max-width: 1000px) { ul.products, .nxg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
	ul.products, .nxg-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
	.nxg-card__body { padding: .75rem; }
	.nxg-card__foot { flex-direction: column; align-items: stretch; }
	.nxg-card .button { width: 100%; }
}

/* Why us */
.nxg-cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.nxg-card4 { padding: 1.5rem; background: var(--bg-low); border: 1px solid var(--line); border-radius: var(--radius); }
.nxg-card4__n {
	display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 1rem; border-radius: 50%;
	background: rgba(245, 158, 11, .15); color: var(--accent); font-weight: 800;
}
.nxg-card4 h3 { font-size: 1.1rem; }
.nxg-card4 p { margin: 0; }
.nxg-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.5rem; }
.nxg-stats div { display: flex; flex-direction: column; }
.nxg-stats strong { font-size: 2.4rem; line-height: 1; color: var(--primary); }
.nxg-stats span { color: var(--text-dim); font-size: .9rem; }

/* Reviews */
.nxg-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.nxg-review { margin: 0; padding: 1.5rem; background: var(--bg-low); border: 1px solid var(--line); border-radius: var(--radius); }
.nxg-stars { color: var(--gold); letter-spacing: .15em; margin-bottom: .6rem; }
.nxg-review blockquote { margin: 0 0 1rem; color: var(--text); }
.nxg-review figcaption { color: var(--text-dim); font-size: .9rem; font-weight: 700; }
.nxg-verified { margin-inline-start: .5rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(37, 211, 102, .15); color: var(--wa); font-size: .72rem; }

/* Contact */
.nxg-contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.nxg-contact h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.nxg-infocard { padding: 1.5rem; background: var(--bg-low); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: .8rem; }
.nxg-infocard span { color: var(--accent); font-weight: 800; }
@media (max-width: 800px) { .nxg-contact { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ==========================================================================
   Footer and WhatsApp button
   ========================================================================== */
.nxg-footer { margin-top: 2rem; background: var(--bg-lowest); border-top: 1px solid var(--line); }
.nxg-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.nxg-footer h4 { font-size: .9rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
body.nxg-ar .nxg-footer h4 { letter-spacing: 0; }
.nxg-footlist { display: grid; gap: .5rem; }
.nxg-footlist a { color: var(--text-dim); }
.nxg-footlist a:hover { color: var(--primary); }
.nxg-brand--footer { margin-bottom: 1rem; }
.nxg-footer__bar { border-top: 1px solid var(--line); padding: 1.2rem 0; font-size: .85rem; color: var(--text-dim); }
.nxg-footer__bar p { margin: 0 0 .3rem; }
@media (max-width: 720px) { .nxg-footer__grid { grid-template-columns: 1fr; } }

.nxg-wafloat {
	position: fixed; z-index: 90; bottom: 1.2rem; inset-inline-end: 1.2rem;
	display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
	background: var(--wa); color: #072b14; box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.nxg-wafloat .nxg-icon { width: 28px; height: 28px; }

/* ==========================================================================
   Inner pages and WooCommerce (shop, product, cart, checkout, account)
   ========================================================================== */
.nxg-page { padding: 2.5rem 0 3rem; }
.nxg-pagetitle { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.nxg-content { overflow-wrap: anywhere; }
.nxg-content a:not(.button):not(.nxg-btn) { color: var(--primary); text-decoration: underline; }
.nxg-post { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }

.woocommerce-breadcrumb { margin: 0 0 1.5rem; color: var(--text-dim); font-size: .85rem; }
.woocommerce-breadcrumb a { color: var(--primary); }
.woocommerce-products-header__title, .woocommerce .page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.woocommerce-result-count { color: var(--text-dim); font-size: .9rem; }
.woocommerce-ordering select { width: auto; }
.woocommerce .woocommerce-ordering, .woocommerce .woocommerce-result-count { margin-bottom: 1.2rem; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="search"], input[type="url"], select, textarea, .select2-container--default .select2-selection--single {
	width: 100%; padding: .7rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--bg-low); color: var(--text); font: inherit;
}
.select2-container--default .select2-selection--single { height: auto; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text); line-height: 1.6; padding: 0; }
label { font-weight: 700; font-size: .9rem; }
.woocommerce form .form-row { margin-bottom: 1rem; }
.woocommerce form .form-row label { display: block; margin-bottom: .35rem; }
.woocommerce form .form-row .required { color: var(--accent); text-decoration: none; }
.woocommerce .quantity .qty { width: 5rem; text-align: center; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
	margin: 0 0 1.5rem; padding: 1rem 1.2rem; list-style: none; border-radius: var(--radius-sm);
	background: var(--bg-low); border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); color: var(--text);
}
.woocommerce-error { border-inline-start-color: #ef4444; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none !important; }
.woocommerce-message .button, .woocommerce-info .button { float: none !important; margin-inline-end: 1rem; }

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: 100% !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; width: 100%; float: none; clear: both; }
.woocommerce div.product div.images img { border-radius: var(--radius); }
.woocommerce-product-gallery__trigger { display: none; }
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 1.6rem; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1.2rem 0; }
.woocommerce div.product form.cart .button { padding: .9rem 2rem; }
.woocommerce div.product .product_meta { color: var(--text-dim); font-size: .9rem; display: grid; gap: .3rem; }
.woocommerce span.onsale {
	position: absolute; z-index: 2; top: .8rem; inset-inline-start: .8rem; min-width: 0; min-height: 0;
	padding: .25rem .75rem; line-height: 1.4; border-radius: 999px; background: var(--accent); color: #131315; font-weight: 800;
}
.woocommerce div.product div.images { position: relative; }
.woocommerce .stock { color: var(--wa); font-weight: 700; }
.woocommerce .stock.out-of-stock { color: #ef4444; }
.woocommerce-tabs ul.tabs { display: flex; gap: .5rem; padding: 0 !important; margin: 0 0 1rem !important; list-style: none; border-bottom: 1px solid var(--line); overflow: visible; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { background: transparent !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.woocommerce-tabs ul.tabs li a { display: block; padding: .7rem 1rem; color: var(--text-dim); font-weight: 700; }
.woocommerce-tabs ul.tabs li.active a { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.woocommerce .related > h2, .woocommerce .upsells > h2 { margin: 2rem 0 1rem; }
@media (max-width: 800px) { .woocommerce div.product { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Cart */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; background: var(--bg-low); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 1rem; border-top: 1px solid var(--line); text-align: start; vertical-align: middle; }
.woocommerce table.shop_table thead th { border-top: 0; color: var(--text-dim); font-size: .85rem; }
.woocommerce table.shop_table img { width: 64px; border-radius: 8px; }
.woocommerce a.remove { color: #ef4444 !important; font-size: 1.4rem; text-decoration: none; }
.woocommerce a.remove:hover { background: #ef4444 !important; color: #fff !important; }
.woocommerce td.actions .coupon { display: flex; gap: .5rem; float: none; }
.woocommerce td.actions .coupon input { width: 12rem; }
.woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; max-width: 28rem; margin-inline-start: auto; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; padding: 1rem; font-size: 1.05rem; }
.woocommerce-cart table.cart td.actions .button { margin-top: .4rem; }
@media (max-width: 720px) {
	.woocommerce table.shop_table_responsive tr td::before { color: var(--text-dim); font-weight: 700; }
	.woocommerce table.shop_table_responsive tr { background: transparent; }
}

/* Checkout */
.woocommerce-checkout h3, #order_review_heading { font-size: 1.25rem; margin: 0 0 1rem; }
.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review { background: var(--bg-low); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.woocommerce-checkout #order_review_heading { margin-top: 1.5rem; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { padding: 0; border-bottom: 1px solid var(--line); list-style: none; }
.woocommerce-checkout #payment div.payment_box { background: var(--bg-high); color: var(--text); border-radius: var(--radius-sm); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #place_order { width: 100%; padding: 1rem; font-size: 1.05rem; float: none; }
.woocommerce form.checkout .col2-set { width: 100%; float: none; }
.woocommerce form.checkout .col2-set .col-1, .woocommerce form.checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-order-received .woocommerce-order { background: var(--bg-low); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.woocommerce ul.order_details { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; list-style: none; }
.nxg-wa-order { margin: 1.5rem 0 0; }

/* My account */
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.woocommerce-MyAccount-navigation a { display: block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim); font-weight: 700; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--accent); border-color: var(--accent); color: #131315; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; }
.woocommerce-form-login, .woocommerce-form-register { background: var(--bg-low); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem !important; }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul, .nav-links { display: flex; justify-content: center; gap: .4rem; border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	display: block; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-low); color: var(--text);
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--accent); border-color: var(--accent); color: #131315; }

/* Reviews form on product pages */
.woocommerce #reviews #comments ol.commentlist { padding: 0; list-style: none; }
.woocommerce #reviews #comments ol.commentlist li .comment-text { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-low); padding: 1rem; margin-inline-start: 4rem; }
.woocommerce #reviews #comments ol.commentlist li img.avatar { border-radius: 50%; background: var(--bg-high); border: 0; padding: 0; }
.woocommerce p.stars a { color: var(--gold); }
.woocommerce .star-rating span::before { color: var(--gold); }

/* RTL touches for WooCommerce rules that use physical directions */
[dir="rtl"] .woocommerce div.product div.images, [dir="rtl"] .woocommerce div.product div.summary { float: none !important; }
[dir="rtl"] .woocommerce-message .button, [dir="rtl"] .woocommerce-info .button { float: none !important; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   v1.1: category strip and payment badges
   ========================================================================== */
.nxg-strip { background: var(--bg-lowest); border-bottom: 1px solid var(--line); }
.nxg-strip__row { display: flex; align-items: center; gap: .4rem; padding-block: .4rem; }
.nxg-strip__list { display: flex; gap: .4rem; flex: 1; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.nxg-strip__list::-webkit-scrollbar { display: none; }
.nxg-strip__list a {
	display: block; white-space: nowrap; padding: .4rem .95rem; border-radius: 999px;
	color: var(--text-dim); font-size: .85rem; font-weight: 700;
}
.nxg-strip__list a:hover { background: var(--bg-high); color: var(--text); }
.nxg-strip__list a.is-current { background: var(--accent); color: #131315; }
.nxg-strip__arrow {
	flex-shrink: 0; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%;
	background: var(--bg-low); color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.nxg-strip__arrow:hover { background: var(--bg-high); }

.nxg-pay { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.nxg-pay li {
	padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 6px;
	background: var(--bg-low); color: var(--text); font-size: .75rem; font-weight: 700;
}
