/*
Theme Name: Cozy Home
Theme URI: https://cozyhome.store
Author: Cozy Home
Description: A mascot-inspired WooCommerce theme for home goods, candles, and decor. Warm pastel palette, mega menu, announcement ticker, and customizable shop filters.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cozy-home
Tags: e-commerce, woocommerce, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready

Cozy Home WordPress Theme, (C) 2026
*/

/* ==========================================================================
   Design tokens — mascot-first (single source of truth)
   ========================================================================== */

:root {
	--color-bg-cream: #faf9f6;
	--color-surface-white: #ffffff;
	--color-accent-pink: #f9c5d1;
	--color-accent-sky: #b3e5fc;
	--color-accent-butter: #fff9c4;
	--color-accent-gold: #e9c46a;
	--color-ink: #4a3728;
	--color-plum: #5e3056;
	--color-lavender: #e2d1f9;
	--font-heading: "Quicksand", system-ui, sans-serif;
	--font-body: "Nunito", system-ui, sans-serif;
	--font-display: "Pacifico", cursive;
	--radius-lg: 1.25rem;
	--radius-md: 0.75rem;
	--radius-sm: 0.5rem;
	--shadow-card: 0 8px 24px rgba(94, 48, 86, 0.08);
	--shadow-soft: 0 4px 14px rgba(74, 55, 40, 0.06);
	--container-max: 1280px;
	--header-z: 100;
	--mega-panel-z: 90;
}

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-ink);
	background-color: var(--color-bg-cream);
}

a {
	color: var(--color-plum);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

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

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

.screen-reader-text {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto !important;
	height: auto;
	left: 8px;
	top: 8px;
	width: auto;
	z-index: 99999;
	padding: 0.75rem 1rem;
	background: var(--color-plum);
	color: var(--color-bg-cream);
	border-radius: var(--radius-sm);
}

/* Layout shell */

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

.site-main {
	flex: 1;
	width: 100%;
}

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-plum);
	line-height: 1.25;
}

.site-title--script {
	font-family: var(--font-display);
	font-weight: 400;
}

.entry-title a {
	text-decoration: none;
	color: inherit;
}

.entry-title a:hover {
	color: var(--color-accent-pink);
}

/* Header */

.site-header {
	position: relative;
	z-index: var(--header-z);
	background: var(--color-bg-cream);
	border-bottom: 1px solid rgba(233, 196, 106, 0.35);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.site-branding {
	flex: 1 1 auto;
	text-align: center;
	min-width: 0;
}

@media (min-width: 960px) {
	.site-branding {
		flex: 0 1 auto;
		order: 2;
	}
}

.site-title {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2rem);
}

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

.site-description {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: var(--color-ink);
	opacity: 0.85;
}

.custom-logo-link {
	display: inline-block;
}

.custom-logo {
	max-height: 72px;
	width: auto;
}

/* Utility strip */

.site-utilities {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.site-utilities--start {
	order: 1;
}

@media (min-width: 960px) {
	.site-utilities--start {
		flex: 1;
		justify-content: flex-start;
	}

	.site-utilities--end {
		flex: 1;
		justify-content: flex-end;
		order: 3;
	}
}

.util-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: var(--color-plum);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	text-decoration: none;
}

.util-btn:hover,
.util-btn:focus-visible {
	background: var(--color-accent-pink);
	color: var(--color-plum);
	outline: none;
}

.util-btn svg {
	width: 1.35rem;
	height: 1.35rem;
}

/* Primary nav row */

.primary-nav-wrap {
	width: 100%;
	flex-basis: 100%;
	order: 4;
	border-top: 1px solid rgba(233, 196, 106, 0.25);
	padding-top: 0.75rem;
}

@media (min-width: 960px) {
	.primary-nav-wrap {
		order: 5;
		border-top: none;
		padding-top: 0;
		margin-top: -0.5rem;
	}
}

/* Posts loop */

.post-list article {
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(94, 48, 86, 0.12);
}

.post-meta {
	font-size: 0.875rem;
	color: var(--color-ink);
	opacity: 0.8;
}

.pagination {
	margin: 2rem 0;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--color-surface-white);
	box-shadow: var(--shadow-soft);
	text-decoration: none;
	color: var(--color-plum);
}

.pagination .current {
	background: var(--color-accent-pink);
	color: var(--color-plum);
}

/* Footer base */

.site-footer {
	background: var(--color-bg-cream);
	margin-top: auto;
}

.site-footer__copyright {
	padding: 1rem 0;
	text-align: center;
	font-size: 0.875rem;
	border-top: 1px solid rgba(233, 196, 106, 0.25);
}

/* Align WooCommerce notices */

.woocommerce .woocommerce-notices-wrapper {
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding: 1rem 1.25rem 0;
}
