/*
Theme Name: ShopEazee
Theme URI: https://www.facebook.com/shopp.eazee.2025
Author: ShopEazee
Author URI: https://www.facebook.com/shopp.eazee.2025
Description: Accessible, responsive WooCommerce theme for ShopEazee — household appliances, clothing, and more at reasonable prices. Includes light and dark modes matched to the brand logo.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shopeazee
Tags: e-commerce, woocommerce, accessibility-ready, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* -------------------------------------------------------------------------
   Tokens
   Contrast is tuned for WCAG 2.2 AA (body text 4.5:1, UI 3:1).
   Logo teal #3B8B7B is used as a brand surface, not small-text colour.
   ------------------------------------------------------------------------- */

:root {
	--se-teal: #3b8b7b;
	--se-teal-dark: #1f5f54;
	--se-ink: #16332e;
	--se-gold: #f4c430;
	--se-cream: #f6f3ea;

	--bg: #f6f3ea;
	--surface: #ffffff;
	--surface-2: #efe9d8;
	--text: #16332e;
	--text-muted: #3d5c56;
	--border: #b7cdc6;
	--primary: #1f5f54;
	--primary-hover: #164840;
	--primary-contrast: #ffffff;
	--accent: #f4c430;
	--accent-hover: #e0b01a;
	--accent-contrast: #16332e;
	--header-bg: #1f5f54;
	--header-text: #ffffff;
	--header-muted: #d4eee8;
	--link: #1f5f54;
	--link-hover: #0f3d36;
	--focus: #1f5f54;
	--error: #8b1e1e;
	--error-bg: #fdeaea;
	--success: #1f5f54;
	--success-bg: #e5f4ef;
	--info-bg: #eef3f1;
	--sale: #7a2e0e;
	--overlay: rgb(15 33 30 / 0.55);
	--shadow: 0 10px 30px rgb(22 51 46 / 0.12);
	--radius: 1rem;
	--radius-sm: 0.65rem;
	--container: 72rem;
	--header-h: 4.25rem;
	--font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4.5rem;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #10211e;
		--surface: #1a322e;
		--surface-2: #23423d;
		--text: #f4f0e4;
		--text-muted: #c5d4cf;
		--border: #3d5c56;
		--primary: #6ec4b4;
		--primary-hover: #8fd4c6;
		--primary-contrast: #10211e;
		--accent: #f5d547;
		--accent-hover: #ffe37a;
		--accent-contrast: #16332e;
		--header-bg: #0c1a18;
		--header-text: #f4f0e4;
		--header-muted: #c5d4cf;
		--link: #8fd4c6;
		--link-hover: #f5d547;
		--focus: #f5d547;
		--error: #ffb4b4;
		--error-bg: #3a1c1c;
		--success: #8fd4c6;
		--success-bg: #1a322e;
		--info-bg: #1a322e;
		--sale: #ffc48a;
		--overlay: rgb(6 14 13 / 0.72);
		--shadow: 0 12px 32px rgb(0 0 0 / 0.35);
	}
}

[data-theme="dark"] {
	--bg: #10211e;
	--surface: #1a322e;
	--surface-2: #23423d;
	--text: #f4f0e4;
	--text-muted: #c5d4cf;
	--border: #3d5c56;
	--primary: #6ec4b4;
	--primary-hover: #8fd4c6;
	--primary-contrast: #10211e;
	--accent: #f5d547;
	--accent-hover: #ffe37a;
	--accent-contrast: #16332e;
	--header-bg: #0c1a18;
	--header-text: #f4f0e4;
	--header-muted: #c5d4cf;
	--link: #8fd4c6;
	--link-hover: #f5d547;
	--focus: #f5d547;
	--error: #ffb4b4;
	--error-bg: #3a1c1c;
	--success: #8fd4c6;
	--success-bg: #1a322e;
	--info-bg: #1a322e;
	--sale: #ffc48a;
	--overlay: rgb(6 14 13 / 0.72);
	--shadow: 0 12px 32px rgb(0 0 0 / 0.35);
}

[data-theme="light"] {
	--bg: #f6f3ea;
	--surface: #ffffff;
	--surface-2: #efe9d8;
	--text: #16332e;
	--text-muted: #3d5c56;
	--border: #b7cdc6;
	--primary: #1f5f54;
	--primary-hover: #164840;
	--primary-contrast: #ffffff;
	--accent: #f4c430;
	--accent-hover: #e0b01a;
	--accent-contrast: #16332e;
	--header-bg: #1f5f54;
	--header-text: #ffffff;
	--header-muted: #d4eee8;
	--link: #1f5f54;
	--link-hover: #0f3d36;
	--focus: #1f5f54;
	--error: #8b1e1e;
	--error-bg: #fdeaea;
	--success: #1f5f54;
	--success-bg: #e5f4ef;
	--info-bg: #eef3f1;
	--sale: #7a2e0e;
	--overlay: rgb(15 33 30 / 0.55);
	--shadow: 0 10px 30px rgb(22 51 46 / 0.12);
}

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	color-scheme: light;
}

[data-theme="dark"] {
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) {
		color-scheme: dark;
	}
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	min-height: 100vh;
}

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

img {
	display: block;
}

a {
	color: var(--link);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--link-hover);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--text);
	margin: 0 0 var(--space-4);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 var(--space-4); }

:focus {
	outline: none;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.button--accent:focus-visible {
	outline-color: var(--se-gold);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* -------------------------------------------------------------------------
   Accessibility helpers
   ------------------------------------------------------------------------- */

.skip-link {
	position: absolute;
	inset-inline-start: var(--space-4);
	top: -100%;
	z-index: 1000;
	padding: var(--space-3) var(--space-4);
	background: var(--accent);
	color: var(--accent-contrast);
	font-weight: 700;
	border-radius: var(--radius-sm);
}

.skip-link:focus {
	top: var(--space-3);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: var(--space-2) var(--space-3);
	background: var(--accent);
	color: var(--accent-contrast);
	z-index: 100000;
}

.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
	padding-block: var(--space-7);
}

.container {
	width: min(100% - 2rem, var(--container));
	margin-inline: auto;
}

.content-flow {
	max-width: 70ch;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.button,
button.button,
a.button,
.site a.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 2.75rem;
	padding: 0.65rem 1.25rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--primary);
	color: var(--primary-contrast);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover,
.site a.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background: var(--primary-hover);
	color: var(--primary-contrast);
}

.button--accent,
a.button.button--accent,
.site a.button.button--accent,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
	background: var(--accent);
	color: var(--accent-contrast);
}

.button--accent:hover,
a.button.button--accent:hover,
.site a.button.button--accent:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--accent-hover);
	color: var(--accent-contrast);
}

.button--ghost,
a.button.button--ghost,
.site a.button.button--ghost {
	background: transparent;
	color: var(--header-text);
	border-color: currentColor;
}

.button--ghost:hover,
a.button.button--ghost:hover,
.site a.button.button--ghost:hover {
	background: rgb(255 255 255 / 0.12);
	color: var(--header-text);
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.icon-button:hover {
	background: rgb(255 255 255 / 0.12);
}

.icon-button svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--header-bg);
	color: var(--header-text);
	box-shadow: 0 1px 0 rgb(0 0 0 / 0.12);
}

.site-header a {
	color: var(--header-text);
	text-decoration: none;
}

.site-header a:hover,
.site-header a:focus-visible {
	color: var(--se-gold);
}

.announcement {
	background: var(--se-gold);
	color: var(--accent-contrast);
	text-align: center;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0.45rem 1rem;
}

.header-inner {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	min-height: var(--header-h);
	width: min(100% - 1.5rem, var(--container));
	margin-inline: auto;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	flex: 0 0 auto;
}

.custom-logo-link {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.site-header .custom-logo,
.site-header .site-logo-img,
.woocommerce-page .site-header .site-logo-img,
.woocommerce .site-header .site-logo-img {
	height: 3.15rem;
	width: auto;
	max-width: 3.15rem;
	object-fit: cover;
	border-radius: 999px;
	background: var(--se-teal);
}

.site-title {
	margin: 0;
	font-size: 1.35rem;
	letter-spacing: 0.02em;
}

.site-title a {
	color: var(--se-gold);
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
}

.site-description {
	margin: 0;
	font-size: 0.8rem;
	color: var(--header-muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.menu-toggle {
	margin-inline-start: auto;
}

.primary-nav {
	margin-inline-start: auto;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-weight: 700;
}

.primary-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding-inline: 0.2rem;
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	color: var(--se-gold);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin-inline-start: var(--space-2);
}

.header-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
}

.header-cart svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.header-cart__count {
	position: absolute;
	top: 0.15rem;
	inset-inline-end: 0.1rem;
	min-width: 1.2rem;
	height: 1.2rem;
	padding-inline: 0.25rem;
	border-radius: 999px;
	background: var(--se-gold);
	color: var(--accent-contrast);
	font-size: 0.7rem;
	font-weight: 800;
	line-height: 1.2rem;
	text-align: center;
}

.header-cart__count.is-empty {
	display: none;
}

.menu-overlay {
	display: none;
}

@media (max-width: 767px) {
	.brand-text {
		display: none;
	}

	.primary-nav {
		position: fixed;
		inset: 0 auto 0 0;
		width: min(22rem, 88vw);
		background: var(--header-bg);
		padding: 5rem 1.25rem 2rem;
		transform: translateX(-110%);
		transition: transform 0.25s ease;
		z-index: 80;
		overflow: auto;
		box-shadow: var(--shadow);
	}

	.primary-nav.is-open {
		transform: translateX(0);
	}

	.primary-menu {
		flex-direction: column;
		gap: 0;
	}

	.primary-menu a {
		width: 100%;
		padding: 0.75rem 0.4rem;
		border-bottom: 1px solid rgb(255 255 255 / 0.12);
	}

	.menu-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: var(--overlay);
		z-index: 55;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
	}

	.menu-overlay.is-open {
		opacity: 1;
		pointer-events: auto;
	}

	body.nav-open {
		overflow: hidden;
	}
}

@media (min-width: 768px) {
	.menu-toggle {
		display: none;
	}
}

/* -------------------------------------------------------------------------
   Hero & homepage
   ------------------------------------------------------------------------- */

.button svg,
.social-link svg {
	width: 1.35rem;
	height: 1.35rem;
	flex: 0 0 auto;
}

.category-card__icon svg,
.value-card svg {
	width: 2.5rem;
	height: 2.5rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hero {
	background: var(--se-teal-dark);
	color: #fff;
	padding: var(--space-7) 0;
}

.hero-grid {
	display: grid;
	gap: var(--space-6);
	align-items: center;
}

@media (min-width: 800px) {
	.hero-grid {
		grid-template-columns: 0.9fr 1.1fr;
	}
}

.hero-logo {
	justify-self: center;
	width: min(100%, 22rem);
	border-radius: 1.5rem;
	background: var(--se-teal);
}

.hero h1 {
	color: var(--se-gold);
	text-transform: uppercase;
	margin-bottom: var(--space-3);
}

.hero p {
	color: #f4f0e4;
	font-size: 1.2rem;
	max-width: 36rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-5);
}

.section {
	padding-block: var(--space-7);
}

.section-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: end;
	gap: var(--space-4);
	margin-bottom: var(--space-6);
}

.section-kicker {
	margin: 0 0 var(--space-2);
	color: var(--primary);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.8rem;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--space-5);
}

.category-card,
.value-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-5);
	box-shadow: var(--shadow);
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-height: 100%;
}

a.category-card:hover,
a.category-card:focus-visible {
	border-color: var(--primary);
	transform: translateY(-2px);
	color: inherit;
}

.category-card__icon,
.value-card svg {
	width: 2.5rem;
	height: 2.5rem;
	color: var(--primary);
}

.category-card h3,
.value-card h3 {
	margin: 0;
}

.cta-band {
	background: var(--header-bg);
	color: var(--header-text);
	padding-block: var(--space-7);
	text-align: center;
}

.cta-band h2 {
	color: var(--se-gold);
}

.cta-band p {
	color: var(--header-muted);
	max-width: 40rem;
	margin-inline: auto;
}

.empty-note {
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	padding: var(--space-6);
	text-align: center;
}

/* -------------------------------------------------------------------------
   Content
   ------------------------------------------------------------------------- */

.entry-header {
	margin-bottom: var(--space-5);
}

.entry-content > * + * {
	margin-top: var(--space-4);
}

.entry-content img.aligncenter {
	margin-inline: auto;
}

.post-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-5);
	margin-bottom: var(--space-5);
}

.page-header {
	margin-bottom: var(--space-6);
}

.pagination,
.woocommerce nav.woocommerce-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-6);
}

.pagination a,
.pagination span,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	text-decoration: none;
}

.pagination .current,
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--primary);
	color: var(--primary-contrast);
	border-color: var(--primary);
}

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */

label {
	display: inline-block;
	font-weight: 700;
	margin-bottom: var(--space-2);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.woocommerce .input-text {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.55rem 0.8rem;
	border: 2px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
}

textarea {
	min-height: 8rem;
}

.search-form {
	display: flex;
	gap: var(--space-2);
}

.search-form .search-field {
	flex: 1;
}

.form-error,
.woocommerce-error {
	color: var(--error);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
	background: var(--header-bg);
	color: var(--header-text);
	padding: var(--space-7) 0 var(--space-5);
	margin-top: auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: var(--space-6);
	margin-bottom: var(--space-6);
}

.site-footer h2,
.site-footer h3,
.site-footer .widget-title {
	color: var(--se-gold);
}

.site-footer p {
	color: var(--header-muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: #fff;
}

.footer-brand .site-logo-img,
.woocommerce-page .footer-brand .site-logo-img,
.woocommerce .footer-brand .site-logo-img {
	height: 4.5rem;
	max-width: 4.5rem;
	margin-bottom: var(--space-3);
	border-radius: 999px;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li + li {
	margin-top: 0.4rem;
}

.footer-menu a {
	display: inline-flex;
	min-height: 2.5rem;
	align-items: center;
}

.social-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 2.75rem;
	font-weight: 700;
}

.site-info {
	border-top: 1px solid rgb(255 255 255 / 0.14);
	padding-top: var(--space-4);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-3);
	font-size: 0.95rem;
	color: var(--header-muted);
}

.back-to-top {
	position: fixed;
	inset-inline-end: 1rem;
	bottom: 1rem;
	z-index: 20;
	background: var(--accent);
	color: var(--accent-contrast);
	box-shadow: var(--shadow);
}

.back-to-top[hidden] {
	display: none !important;
}

.back-to-top:hover {
	background: var(--accent-hover);
	color: var(--accent-contrast);
}

/* -------------------------------------------------------------------------
   Comments
   ------------------------------------------------------------------------- */

.comment-list {
	list-style: none;
	margin: 0 0 var(--space-6);
	padding: 0;
}

.comment-body {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: var(--space-4);
	margin-bottom: var(--space-4);
}

/* -------------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	.button,
	.icon-button,
	.category-card,
	.header-cart {
		border: 1px solid ButtonText;
	}
}

@media print {
	.site-header,
	.site-footer,
	.announcement,
	.hero-actions,
	.back-to-top,
	.menu-toggle,
	.header-actions {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}
