/*!
Theme Name: SmartShoppers Lite
Theme URI: https://smartshoppers.pk/
Author: SmartShoppers
Author URI: https://smartshoppers.pk/
Description: A from-scratch, minimal WooCommerce theme for smartshoppers.pk. A headless Next.js frontend renders home/category/product/search pages; this theme renders only what remains on the classic WordPress side: cart, checkout, my-account (login/register/orders/downloads/addresses/edit-account/logout), and order-received/thank-you. Built directly on WooCommerce's standard template hierarchy and hooks (no page builder, no customizer dependency) so future WooCommerce core updates don't break it.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartshoppers-lite
Tags: e-commerce, custom-menu, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* --------------------------------------------------------------
   0. Design tokens
-------------------------------------------------------------- */
:root {
	/* Brand */
	--c-primary: #c52627;
	--c-primary-dark: #a11e1f;
	--c-primary-darker: #841819;
	--c-primary-light: #fbe9e9;
	--c-accent: #f1b516;
	--c-accent-dark: #cf9a0f;

	/* Neutrals */
	--c-ink: #1a1a1a;
	--c-body: #29282a;
	--c-muted: #6b6b70;
	--c-line: #e6e4e2;
	--c-line-strong: #d7d4d1;
	--c-surface: #ffffff;
	--c-surface-sunk: #faf9f8;
	--c-footer-bg: #1c1a1d;
	--c-footer-bg-2: #141213;

	/* Feedback */
	--c-success: #1a7a33;
	--c-success-bg: #eaf7ee;
	--c-error: #c0392b;
	--c-error-bg: #fdeaea;
	--c-info-bg: #f4f2ff;
	--c-info-line: #6a5fc7;

	/* Type */
	--font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-display: "Plus Jakarta Sans", var(--font-sans);

	/* Radius / shadow */
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 2px rgba(20, 18, 15, 0.06);
	--shadow-md: 0 4px 16px rgba(20, 18, 15, 0.08);
	--shadow-lg: 0 12px 32px rgba(20, 18, 15, 0.10);
	--focus-ring: 0 0 0 4px rgba(197, 38, 39, 0.14);

	/* Spacing scale */
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 24px;
	--sp-6: 32px;
	--sp-7: 48px;
	--sp-8: 64px;
}

/* --------------------------------------------------------------
   1. Reset / base
-------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

/* No rubber-band bounce / stretch at the page ends. On a Mac trackpad
 * (Chromium) flicking past the bottom dragged the sticky header off screen
 * (owner's recording, 2026-10-18); Android's stretch did the same on phones
 * (Pixel recordings, 2026-10-20: header cut in ~20% of frames, 0% with this).
 * Trade-off: no pull-to-refresh on the site. */
html {
	overscroll-behavior-y: none;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-body);
	background: var(--c-surface-sunk);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--c-primary);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover,
a:focus {
	color: var(--c-primary-dark);
	text-decoration: underline;
}

/* Links inside running text stay underlined, so they don't rely on colour
   alone (WCAG link-in-text-block; e.g. "privacy policy" on My Account). */
.woocommerce-privacy-policy-text a {
	text-decoration: underline;
}

ul,
ol {
	padding-left: 1.25em;
}

hr {
	border: none;
	border-top: 1px solid var(--c-line);
	margin: var(--sp-5) 0;
}

/* Consistent, brand-tinted focus state instead of the harsh browser default,
   but still visible for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
}

/* --------------------------------------------------------------
   2. Layout
-------------------------------------------------------------- */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Header — mirrors the storefront header (smart-headless Header.tsx). */
.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--c-primary);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 8px 24px -16px rgba(0, 0, 0, 0.45);
}

/* Logged-in admins: stick below WordPress's fixed admin bar (32px, 46px up to
   782px; from 600px down the bar scrolls away, so back to 0). */
.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-announcement {
	background: var(--c-accent);
	color: #171414;
	padding: 6px 16px;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.025em;
	line-height: 16px;
}

.site-header__inner {
	max-width: 1464px;
	margin: 0 auto;
	padding: 10px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-branding {
	flex-shrink: 0;
	display: block;
	line-height: 0;
}

.site-branding img {
	height: 48px;
	width: auto;
}

.main-navigation {
	flex: 1;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.main-navigation ul,
.mobile-navigation ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
}

.main-navigation ul {
	gap: 32px;
}

.main-navigation a,
.mobile-navigation a {
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus,
.mobile-navigation a:hover,
.mobile-navigation a:focus {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

.header-actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 8px;
}

.header-action {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 12px;
	border-radius: 9999px;
	color: rgba(255, 255, 255, 0.9);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.header-action:hover,
.header-action:focus {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	text-decoration: none;
}

.header-action__label {
	margin-left: 6px;
}

.header-cart__count {
	position: absolute;
	top: -2px;
	left: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9999px;
	background: var(--c-accent);
	color: #171414;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 0 0 2px var(--c-primary);
}

.header-cart__count[hidden] {
	display: none;
}



.mobile-navigation {
	display: none;
}

.mobile-navigation {
	overflow-x: auto;
	scrollbar-width: none;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-navigation::-webkit-scrollbar {
	display: none;
}

.mobile-navigation ul {
	width: max-content;
	gap: 20px;
	padding: 10px 16px;
}

.mobile-navigation a {
	font-size: 13px;
}

/* Header search (same look as the storefront's): a field on desktop, an icon on phones. */
.header-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 256px;
	height: 40px;
	padding: 0 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
	color: #fff;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.header-search:focus-within {
	width: 360px;
	background: #fff;
	color: #171414;
}

/* !important: the theme's general input styles (white box, border) would win. */
.site-header .header-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	min-height: 0;
	border: 0 !important;
	border-radius: 0;
	padding: 0 !important;
	background: transparent !important;
	color: inherit;
	font: inherit;
	font-size: 14px;
	box-shadow: none !important;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.header-search input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.header-search:focus-within input::placeholder {
	color: #8a8382;
}

.header-action--search-icon {
	display: none;
}

/* Below lg: icon-only search/cart, as on the storefront. */
@media (max-width: 1023px) {
	.header-action {
		width: 40px;
		padding: 0;
	}

	.header-action__label {
		display: none;
	}

	.header-cart__count {
		left: auto;
		right: -2px;
	}

	.main-navigation ul {
		gap: 24px;
	}
}

/* Below md: menu moves to a swipeable row under the bar. */
@media (max-width: 767px) {
	.header-search {
		display: none;
	}

	.header-action--search-icon {
		display: flex;
	}

	.main-navigation {
		display: none;
	}

	.mobile-navigation {
		display: block;
	}
}

@media (max-width: 639px) {
	.site-announcement {
		font-size: 11px;
	}

	.site-header__inner {
		padding: 10px 16px;
	}

	.site-branding img {
		height: 44px;
	}

	.header-actions {
		gap: 4px;
	}

}

@media (min-width: 640px) {
	.site-announcement {
		font-size: 12px;
	}
}

.site-main {
	flex: 1 0 auto;
	max-width: 1464px;
	width: 100%;
	margin: 0 auto;
	padding: var(--sp-7) 32px var(--sp-8);
}

/* --------------------------------------------------------------
   3. Footer
-------------------------------------------------------------- */
.site-footer {
	background: linear-gradient(180deg, var(--c-footer-bg) 0%, var(--c-footer-bg-2) 100%);
	color: #cfced3;
	margin-top: auto;
}

.site-footer a {
	color: #f2f1f2;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--c-accent);
}

.footer-widgets {
	max-width: 1400px;
	margin: 0 auto;
	padding: var(--sp-6) 32px 0;
}

.footer-contact-bar {
	max-width: 1400px;
	margin: 0 auto;
	padding: var(--sp-6) 32px;
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.92rem;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.09);
	padding: 10px 18px;
	border-radius: 999px;
}

.footer-contact-bar__item a:hover,
.footer-contact-bar__item a:focus {
	text-decoration: none;
}

.footer-social {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: var(--sp-4) 20px 0;
	list-style: none;
}
.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #e8e6ea;
	transition: background 0.15s ease;
}
.footer-social a:hover {
	background: #c52627;
	color: #fff;
}
.footer-social svg {
	width: 16px;
	height: 16px;
}

.footer-policy-links {
	max-width: 1400px;
	margin: 0 auto;
	padding: var(--sp-4) 20px 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	font-size: 0.85rem;
}
.footer-policy-links a {
	color: #c9c7cc;
	text-decoration: none;
}
.footer-policy-links a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-bottom {
	text-align: center;
	font-size: 0.82rem;
	letter-spacing: 0.01em;
	padding: var(--sp-4) 20px var(--sp-6);
	color: #8b898f;
}

/* --------------------------------------------------------------
   4. Headings / type scale
-------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	line-height: 1.2;
	margin: 0 0 0.6em;
	color: var(--c-ink);
	font-weight: 700;
	letter-spacing: -0.015em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

.page-title {
	font-size: 2.1rem;
	letter-spacing: -0.02em;
	margin-bottom: 0.8em;
}

small,
.meta,
.woocommerce-Price-amount + .woocommerce-Price-currencySymbol {
	color: var(--c-muted);
}

/* --------------------------------------------------------------
   5. Forms
-------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
select,
textarea {
	width: 100%;
	max-width: 480px;
	padding: 12px 14px;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius-sm);
	font-size: 1rem;
	font-family: inherit;
	background: var(--c-surface);
	color: var(--c-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="url"]:hover,
input[type="search"]:hover,
select:hover,
textarea:hover {
	border-color: #b9b6b2;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: var(--focus-ring);
}

textarea {
	max-width: 100%;
}

label {
	display: block;
	font-weight: 600;
	font-size: 0.92rem;
	letter-spacing: -0.005em;
	color: var(--c-ink);
	margin-bottom: 6px;
}

.form-row {
	margin-bottom: var(--sp-4);
}

.woocommerce form .form-row label {
	font-weight: 600;
}

.woocommerce-input-wrapper {
	display: block;
}

.required {
	color: var(--c-primary);
	text-decoration: none;
}

.select2-container--default .select2-selection--single,
select.select2-hidden-accessible + .select2-container .select2-selection {
	border: 1px solid var(--c-line-strong) !important;
	border-radius: var(--radius-sm) !important;
	height: auto !important;
	padding: 6px 4px;
}

/* --------------------------------------------------------------
   6. Buttons
-------------------------------------------------------------- */
button,
input[type="submit"],
input[type="button"],
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--c-primary);
	color: #fff !important;
	border: 1px solid var(--c-primary);
	border-radius: 12px;
	padding: 13px 26px;
	font-size: 0.98rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--c-primary-dark);
	border-color: var(--c-primary-dark);
	color: #fff;
	box-shadow: var(--shadow-md);
}

button:active,
input[type="submit"]:active,
.button:active,
.woocommerce a.button:active,
.woocommerce button.button:active {
	background: var(--c-primary-darker);
	border-color: var(--c-primary-darker);
	box-shadow: none;
	transform: translateY(1px);
}

button:disabled,
input[type="submit"]:disabled,
.button:disabled,
.button.disabled,
.woocommerce a.button.disabled {
	background: #d9d7d5 !important;
	border-color: #d9d7d5 !important;
	color: #8b8985 !important;
	cursor: not-allowed;
	box-shadow: none;
}

/* "alt" is WooCommerce's marker for the headline CTA (Place order,
   Update totals) - keep it visually identical to the primary button since
   these already are the primary action on the page. */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--c-primary);
	color: #fff !important;
	border-color: var(--c-primary);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--c-primary-dark);
	border-color: var(--c-primary-dark);
}

#place_order {
	width: 100%;
	padding: 16px 26px;
	font-size: 1.05rem;
}

/* Secondary / tertiary navigation-style actions - "Return to shop",
   "Continue shopping", pagination - should read as a lower-emphasis action
   next to a real CTA, not an identical red button. Note: WooCommerce's
   "Proceed to checkout" button also carries "wc-forward" (alongside "alt"),
   so these rules deliberately exclude ".alt" to avoid demoting that CTA. */
.woocommerce a.button.wc-backward,
.woocommerce a.button.wc-forward:not(.alt),
.woocommerce-button.wc-forward:not(.alt),
.woocommerce-Button--previous,
.woocommerce-Button--next {
	background: var(--c-surface) !important;
	color: var(--c-ink) !important;
	border: 1px solid var(--c-line-strong) !important;
	box-shadow: none;
}

.woocommerce a.button.wc-backward:hover,
.woocommerce a.button.wc-forward:not(.alt):hover,
.woocommerce-button.wc-forward:not(.alt):hover,
.woocommerce-Button--previous:hover,
.woocommerce-Button--next:hover {
	background: var(--c-surface-sunk) !important;
	border-color: #b9b6b2 !important;
	box-shadow: none;
}

/* --------------------------------------------------------------
   7. WooCommerce notices
-------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
	list-style: none;
	background: var(--c-info-bg);
	border: 1px solid var(--c-line);
	border-left: 4px solid var(--c-info-line);
	border-radius: var(--radius-sm);
	padding: var(--sp-4) var(--sp-5);
	margin: 0 0 var(--sp-5);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
}

.woocommerce-message .button,
.woocommerce-info .button {
	margin-left: auto;
}

.woocommerce-error {
	background: var(--c-error-bg);
	border-left-color: var(--c-error);
	/* Room for WooCommerce's red error icon, which is absolutely positioned. */
	padding-left: calc(var(--sp-5) + 26px);
	/* Several errors (checkout validation) read as a list, one per line. */
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-2);
}

.woocommerce-error::before {
	top: var(--sp-4);
	left: var(--sp-5);
}

.woocommerce-message {
	background: var(--c-success-bg);
	border-left-color: var(--c-success);
}

/* --------------------------------------------------------------
   8. Tables / cards (cart, checkout order review, my-account)
-------------------------------------------------------------- */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-bottom: var(--sp-5);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border: none;
	border-bottom: 1px solid var(--c-line);
	padding: 18px 16px;
	text-align: left;
	vertical-align: middle;
}

.woocommerce table.shop_table tr:last-child td {
	border-bottom: none;
}

.woocommerce table.shop_table thead th {
	background: var(--c-surface-sunk);
	color: var(--c-muted);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px solid var(--c-line);
}

.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td {
	background: var(--c-surface-sunk);
}

.woocommerce table.shop_table tr.order-total th,
.woocommerce table.shop_table tr.order-total td {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--c-ink);
}

.woocommerce-cart-form__cart-item img,
.cart_item img {
	max-width: 72px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--c-line);
}

.woocommerce .quantity .qty {
	max-width: 90px;
	padding: 8px 10px;
}

.woocommerce table.shop_table .product-remove a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: var(--c-muted) !important;
	font-weight: 700;
	text-decoration: none !important;
}

.woocommerce table.shop_table .product-remove a:hover {
	background: var(--c-error-bg);
	color: var(--c-error) !important;
}

.woocommerce table.shop_table .actions {
	background: var(--c-surface-sunk);
}

.woocommerce table.shop_table .actions .coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
}

.woocommerce table.shop_table .actions .coupon .input-text {
	width: auto;
	flex: 1 1 200px;
	margin: 0;
}

.woocommerce table.shop_table .actions .coupon .button,
.woocommerce table.shop_table .actions > .button {
	flex-shrink: 0;
}

/* Cart totals + checkout "Your order" - present these as a distinct,
   elevated summary card rather than a bare table sitting in the page. */
.cart_totals,
#order_review_heading,
#order_review {
	background: var(--c-surface);
}

.cart_totals {
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	padding: var(--sp-5) var(--sp-5) var(--sp-4);
	box-shadow: var(--shadow-md);
}

.cart_totals h2 {
	font-size: 1.15rem;
	margin-bottom: var(--sp-4);
}

.cart_totals table.shop_table,
#order_review.woocommerce-checkout-review-order table.shop_table {
	box-shadow: none;
	border: none;
	background: transparent;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
	padding: 12px 0;
	background: transparent;
}

#order_review_heading {
	font-size: 1.2rem;
	margin: 0 0 var(--sp-4);
}

#order_review.woocommerce-checkout-review-order {
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	padding: var(--sp-5);
	box-shadow: var(--shadow-md);
}

#order_review.woocommerce-checkout-review-order table.shop_table th,
#order_review.woocommerce-checkout-review-order table.shop_table td {
	padding: 14px 0;
}

/* --------------------------------------------------------------
   9. Checkout layout / payment methods
-------------------------------------------------------------- */
.woocommerce-checkout .col2-set,
.woocommerce-page .col2-set {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-7);
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
	flex: 1 1 380px;
}

.woocommerce-checkout h3#order_review_heading {
	margin-top: 0;
}

.woocommerce-billing-fields h3 {
	font-size: 1.3rem;
	margin-bottom: var(--sp-4);
}

.woocommerce-checkout #payment {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	padding: var(--sp-5);
	margin-top: var(--sp-5);
	box-shadow: var(--shadow-sm);
}

.woocommerce-checkout #payment ul.payment_methods {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--sp-4);
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
	border: 1px solid var(--c-line);
	border-radius: var(--radius-md);
	padding: var(--sp-3) var(--sp-4);
	margin-bottom: var(--sp-2);
	background: var(--c-surface);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:last-child {
	margin-bottom: 0;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label {
	display: inline;
	font-weight: 600;
	color: var(--c-ink);
	margin: 0;
	cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input.input-radio {
	margin-right: 10px;
	accent-color: var(--c-primary);
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

/* Highlight whichever gateway is currently selected - keeps the emphasis on
   the customer's actual choice rather than hardcoding one gateway as
   "the" option, while still giving Cash on Delivery (the primary method for
   this store) a confident, on-brand look the moment it's chosen. */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(input.input-radio:checked) {
	border-color: var(--c-primary);
	background: var(--c-primary-light);
}

.woocommerce-checkout #payment .payment_box {
	background: var(--c-surface-sunk);
	border-radius: var(--radius-sm);
	padding: var(--sp-3) var(--sp-4);
	margin-top: var(--sp-2);
	font-size: 0.92rem;
	color: var(--c-muted);
}

.woocommerce-checkout #payment .payment_box p {
	margin: 0;
}

.woocommerce-checkout #payment .form-row.place-order {
	margin-top: var(--sp-4);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--c-line);
}

.woocommerce-terms-and-conditions-wrapper {
	margin-bottom: var(--sp-3);
	font-size: 0.9rem;
	color: var(--c-muted);
}

/* --------------------------------------------------------------
   10. My Account
-------------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--sp-5);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--c-line);
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 13px 18px;
	color: var(--c-body);
	font-weight: 600;
	font-size: 0.94rem;
	border-left: 3px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li a:focus {
	background: var(--c-surface-sunk);
	text-decoration: none;
	border-left-color: var(--c-line-strong);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--c-primary-light);
	color: var(--c-primary-dark);
	border-left-color: var(--c-primary);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--c-muted);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	color: var(--c-error);
	background: var(--c-error-bg);
}

.woocommerce-account .woocommerce-MyAccount-content {
	max-width: 720px;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
	color: var(--c-muted);
}

.woocommerce-MyAccount-content fieldset {
	border: 1px solid var(--c-line);
	border-radius: var(--radius-md);
	padding: var(--sp-5);
	margin: var(--sp-5) 0;
}

.woocommerce-MyAccount-content fieldset legend {
	font-weight: 700;
	padding: 0 8px;
	font-size: 1.05rem;
}

.woocommerce-form-login,
.woocommerce-form-register {
	max-width: 480px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	padding: var(--sp-5);
	box-shadow: var(--shadow-sm);
}

#customer_login {
	align-items: flex-start;
}

#customer_login .col-1,
#customer_login .col-2 {
	display: flex;
}

#customer_login .woocommerce-form-login,
#customer_login .woocommerce-form-register {
	width: 100%;
}

.woocommerce-form-login__rememberme {
	display: flex !important;
	align-items: center;
	gap: 6px;
	font-weight: 400 !important;
	cursor: pointer;
}

.woocommerce-form-login__rememberme input {
	accent-color: var(--c-primary);
}

.woocommerce-LostPassword {
	font-size: 0.9rem;
	margin-top: var(--sp-3);
}

.woocommerce-orders-table {
	font-size: 0.94rem;
}

.woocommerce-orders-table__cell-order-status {
	font-weight: 600;
}

.woocommerce-order-received .woocommerce-thankyou-order-received {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--c-success);
	background: var(--c-success-bg);
	border: 1px solid #cdeed6;
	border-radius: var(--radius-md);
	padding: var(--sp-4) var(--sp-5);
	margin-bottom: var(--sp-5);
}

.woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 var(--sp-5);
	padding: 0;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
}

/* `.woocommerce ul.…` matches WooCommerce's own order_details rules, which
   otherwise zero the left padding (label touching the border) and add dashed
   separators. */
.woocommerce ul.woocommerce-order-overview li {
	flex: 1 1 160px;
	float: none;
	margin: 0;
	padding: var(--sp-4) var(--sp-5);
	border-right: 1px solid var(--c-line);
}

.woocommerce ul.woocommerce-order-overview li:last-child {
	border-right: none;
}

.woocommerce ul.woocommerce-order-overview::before,
.woocommerce ul.woocommerce-order-overview::after {
	display: none;
}

.woocommerce-order-overview li strong {
	display: block;
	margin-top: 4px;
	font-size: 1.05rem;
	color: var(--c-ink);
}

/* --------------------------------------------------------------
   11. Responsive
-------------------------------------------------------------- */
@media (max-width: 900px) {
	.site-main {
		padding: var(--sp-6) 20px var(--sp-7);
	}

	.footer-contact-bar,
	.footer-widgets {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 700px) {
	.woocommerce-checkout .col2-set,
	.woocommerce-page .col2-set {
		flex-direction: column;
		gap: var(--sp-5);
	}

	.page-title {
		font-size: 1.6rem;
	}

	.woocommerce table.shop_table th,
	.woocommerce table.shop_table td {
		padding: 12px 10px;
	}

	.cart_totals,
	#order_review.woocommerce-checkout-review-order,
	.woocommerce-checkout #payment,
	.woocommerce-form-login,
	.woocommerce-form-register,
	.woocommerce-MyAccount-content fieldset {
		padding: var(--sp-4);
	}

	.woocommerce ul.woocommerce-order-overview li {
		flex: 1 1 45%;
		border-right: none;
		border-bottom: 1px solid var(--c-line);
	}

	#place_order {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.woocommerce table.shop_table .actions .coupon {
		flex-direction: column;
		align-items: stretch;
	}

	.woocommerce table.shop_table .actions .coupon .input-text {
		flex: 1 1 auto;
	}
}

/* --------------------------------------------------------------
   Floating WhatsApp button (footer.php), replacing GTM's.
-------------------------------------------------------------- */
.wa-float {
	position: fixed;
	right: 40px;
	bottom: 40px;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 999px;
	background: #25d366;
	color: #fff;
	box-shadow: 2px 2px 3px #999;
}

.wa-float:hover,
.wa-float:focus {
	color: #fff;
}

@media (max-width: 767px) {
	.wa-float {
		right: 16px;
		bottom: 20px;
	}
}

/* The phone cart's bottom bar was removed (2026-10-17), so the floating WhatsApp button shows there too. */

/* --------------------------------------------------------------
   Tables inside page content (e.g. Shipping & Delivery times).
   Direct children only, so WooCommerce's cart/checkout tables are untouched.
-------------------------------------------------------------- */
.entry-content > table {
	width: 100%;
	max-width: 640px;
	margin: 0 0 var(--sp-5);
	border-collapse: collapse;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: #fff;
	font-size: 0.95rem;
}
.entry-content > table th,
.entry-content > table td {
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--c-line);
}
.entry-content > table thead th {
	background: #f1efed;
	font-weight: 700;
}
.entry-content > table tbody tr:last-child td {
	border-bottom: 0;
}

/* --------------------------------------------------------------
   12. Order received (thank-you) page — inc/thankyou.php
-------------------------------------------------------------- */
/* The page has its own WhatsApp button, with the order details in it. */
body.woocommerce-order-received .wa-float {
	display: none;
}

.ss-ty {
	max-width: 760px;
}

.ss-ty-head {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--sp-3) var(--sp-4);
	align-items: start;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: var(--sp-5);
	margin: 0 0 var(--sp-4);
}

.ss-ty-head__icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	background: var(--c-success);
}

.ss-ty-head--off .ss-ty-head__icon {
	background: var(--c-muted);
}

.ss-ty-head--wait .ss-ty-head__icon {
	background: var(--c-accent-dark, #cf9a0f);
}

.ss-ty .ss-tracking {
	margin: 0 0 var(--sp-4);
}

.ss-ty-head__title {
	font-family: var(--font-display);
	font-size: 1.35rem;
	line-height: 1.3;
	color: var(--c-ink);
	margin: 0 0 4px;
}

.ss-ty-head__sub {
	margin: 0;
	font-size: 1rem;
	color: var(--c-body);
}

.ss-ty-head__sub .amount {
	font-weight: 700;
	color: var(--c-ink);
}

.ss-ty-head__meta {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3) var(--sp-6);
	margin: var(--sp-2) 0 0;
	padding-top: var(--sp-4);
	border-top: 1px solid var(--c-line);
}

.ss-ty-head__meta dt {
	font-size: 0.8rem;
	color: var(--c-muted);
	margin: 0 0 2px;
}

.ss-ty-head__meta dd {
	margin: 0;
	color: var(--c-ink);
}

.ss-ty-copyable {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--c-ink);
	white-space: nowrap;
}

/* A small red pill; the theme's button rule (section 6) gives every button
   white text, so the colours here are the theme's own. */
.ss-ty .ss-ty-copy {
	flex: none;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	background: var(--c-primary);
	border: 0;
	border-radius: 12px;
	padding: 6px 11px;
	box-shadow: none;
	cursor: pointer;
}

.ss-ty .ss-ty-copy:hover,
.ss-ty .ss-ty-copy:focus-visible {
	background: var(--c-primary-dark);
	box-shadow: none;
}

/* Steps: placed → payment → dispatched → delivered. */
.ss-ty-steps {
	display: flex;
	list-style: none;
	margin: 0 0 var(--sp-4);
	padding: var(--sp-4) var(--sp-3);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
}

.ss-ty-steps__step {
	flex: 1 1 0;
	position: relative;
	text-align: center;
	margin: 0;
}

.ss-ty-steps__step::before {
	content: "";
	position: absolute;
	top: 14px;
	left: -50%;
	width: 100%;
	height: 3px;
	background: var(--c-line);
}

.ss-ty-steps__step:first-child::before {
	display: none;
}

.ss-ty-steps__step.is-done::before,
.ss-ty-steps__step.is-current::before {
	background: var(--c-success);
}

.ss-ty-steps__dot {
	position: relative;
	z-index: 1; /* above the line drawn by the next step */
	width: 30px;
	height: 30px;
	margin: 0 auto 6px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-muted);
	background: var(--c-surface);
	border: 3px solid var(--c-line);
}

.ss-ty-steps__step.is-done .ss-ty-steps__dot {
	color: #fff;
	background: var(--c-success);
	border-color: var(--c-success);
}

.ss-ty-steps__step.is-current .ss-ty-steps__dot {
	color: var(--c-accent-dark);
	background: #fff8e6;
	border-color: var(--c-accent);
	box-shadow: 0 0 0 4px #fff3d1;
}

.ss-ty-steps__label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--c-muted);
}

.ss-ty-steps__step.is-done .ss-ty-steps__label,
.ss-ty-steps__step.is-current .ss-ty-steps__label {
	color: var(--c-ink);
}

/* Pay and send the screenshot. */
.ss-ty-pay {
	background: #fffaf0;
	border: 1px solid var(--c-accent);
	border-radius: var(--radius-lg);
	padding: var(--sp-5);
	margin: 0 0 var(--sp-6);
}

.ss-ty-pay__title {
	font-family: var(--font-display);
	font-size: 1.15rem;
	color: var(--c-ink);
	margin: 0 0 var(--sp-4);
}

.ss-ty-pay__steps {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ss-ty-pay__steps > li {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: var(--sp-3);
	margin: 0 0 var(--sp-5);
}

.ss-ty-pay__num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: var(--c-ink);
}

.ss-ty-pay h3 {
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--c-ink);
	margin: 3px 0 6px;
}

.ss-ty-muted {
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--c-muted);
	margin: 0 0 var(--sp-3);
}

.ss-ty-accounts {
	display: grid;
	gap: var(--sp-3);
}

.ss-ty-account {
	background: var(--c-surface);
	border: 1px solid #f1e3b5;
	border-radius: var(--radius-md);
	padding: 12px 14px;
}

.ss-ty-account__name {
	font-weight: 700;
	color: var(--c-ink);
	margin: 0 0 6px;
}

.ss-ty-account__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 12px;
	padding: 6px 0;
	border-top: 1px dashed var(--c-line);
	font-size: 0.92rem;
}

.ss-ty-account__row > span:first-child {
	color: var(--c-muted);
}

.ss-ty-wa,
.ss-ty-wa:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #1fa855;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	padding: 12px 22px;
	border-radius: var(--radius-md); /* was a full pill; owner wanted squarer corners */
	margin: 0 0 var(--sp-3);
}

.ss-ty-wa:hover,
.ss-ty-wa:focus-visible {
	background: #188f47;
	color: #fff;
}

.ss-ty-pay__foot {
	font-size: 0.88rem;
	line-height: 1.5;
	color: #5c4a1f;
	margin: 0;
	padding-top: var(--sp-4);
	border-top: 1px solid #f1e3b5;
}

.ss-ty-pay__foot a {
	color: #8a5a00;
	font-weight: 600;
}

.ss-ty-help {
	margin: 0 0 var(--sp-6);
}

@media (max-width: 600px) {
	.ss-ty-head,
	.ss-ty-pay {
		padding: var(--sp-4);
	}

	.ss-ty-head__title {
		font-size: 1.2rem;
	}

	.ss-ty-steps {
		padding: var(--sp-3) 4px;
	}

	.ss-ty-steps__label {
		font-size: 0.72rem;
	}

	.ss-ty-wa {
		width: 100%;
	}

	.ss-ty-pay__steps > li {
		grid-template-columns: 24px minmax(0, 1fr);
		gap: 10px;
	}

	/* Copy goes under a number too long for the line (an IBAN on a small phone). */
	.ss-ty-copyable {
		flex-wrap: wrap;
		white-space: normal;
	}

	/* …and the number itself breaks only when it cannot fit at all (320px). */
	.ss-ty-copyable__value {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.ss-ty-pay__num {
		width: 24px;
		height: 24px;
		font-size: 13px;
		margin-top: 2px;
	}

	.ss-ty-account {
		padding: 10px 12px;
	}

	/* Label above the number, so a long IBAN and its Copy button fit on one line. */
	.ss-ty-account__row {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* --------------------------------------------------------------------------
   Footer (2026-10-17): same columns and look as the storefront footer.
   2026-10-20: deep red glow from the top (like the Digital Concern footer),
   white logo and text.
   -------------------------------------------------------------------------- */
.ss-footer {
	margin-top: auto;
	background: radial-gradient(circle at 50% 0%, #a01e1f 0%, #5c1113 58%, #2a0708 100%);
	color: rgb(255 255 255 / 0.75);
	font-size: 0.875rem;
}

.ss-footer__inner {
	max-width: 1464px;
	margin: 0 auto;
	padding: 48px 16px;
}

.ss-footer__top {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.ss-footer__brand {
	max-width: 24rem;
}

.ss-footer__logo {
	display: inline-flex;
}

.ss-footer__logo img {
	display: block;
	width: auto;
	height: 40px;
}

.ss-footer__brand p {
	margin: 16px 0 0;
	line-height: 1.6;
}

.ss-footer__social {
	display: flex;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.ss-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.1);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
	transition: background-color 0.15s, color 0.15s;
}

.ss-footer__social a:hover,
.ss-footer__social a:focus-visible {
	background: #fff;
	color: #a01e1f;
}

.ss-footer__social svg {
	width: 16px;
	height: 16px;
}

.ss-footer__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.ss-footer h3 {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
}

.ss-footer__cols ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.ss-footer a {
	color: inherit;
	text-decoration: none;
}

.ss-footer__cols a:hover,
.ss-footer__cols a:focus-visible,
.ss-footer__bottom a:hover {
	color: #fff;
}

.ss-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 40px;
	padding-top: 24px;
	padding-bottom: 64px; /* phones: clear of the floating WhatsApp button */
	border-top: 1px solid rgb(255 255 255 / 0.15);
	font-size: 0.75rem;
	color: rgb(255 255 255 / 0.65);
}

.ss-footer__bottom p {
	margin: 0;
}

.ss-footer__bottom a {
	font-weight: 600;
	color: rgb(255 255 255 / 0.85);
}

@media (min-width: 640px) {
	.ss-footer__inner {
		padding-left: 24px;
		padding-right: 24px;
	}

	.ss-footer__top {
		flex-direction: row;
		justify-content: space-between;
	}

	.ss-footer__cols {
		display: flex;
		gap: 64px;
	}

	.ss-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding-right: 80px; /* clear of the floating WhatsApp button */
		padding-bottom: 0;
	}
}

@media (min-width: 1024px) {
	.ss-footer__inner {
		padding-left: 32px;
		padding-right: 32px;
	}
}

