/* =========================================================
   Horton Shop — main stylesheet

   Design direction: matched to katiehorton.com — chartreuse/
   lime background, deep chocolate brown for headings & CTAs,
   periwinkle indigo for links & prices, chunky rounded
   display type in uppercase for headings. Sections alternate
   between the lime background and a solid brown block, the
   way the portfolio site alternates "Graphic Design Portfolio"
   and "Other Creative Work".
   ========================================================= */

:root {
	--lime:         #F2FFB9;
	--lime-soft:    #EAF8AC;
	--brown:        #564137;
	--brown-dark:   #453329;
	--indigo:       #454E9E;
	--indigo-dark:  #363E80;
	--cream:        #F2FFB9;
	--line:         rgba(86, 65, 55, 0.18);

	--font-display: 'Baloo 2', 'Fredoka', sans-serif;
	--font-body:    'Baloo 2', 'Fredoka', sans-serif;

	--radius: 6px;
	--container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
	margin: 0;
	background: var(--lime);
	color: var(--brown);
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--brown); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.05;
	margin: 0 0 0.5em;
	color: var(--brown);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.eyebrow, .iwp-label {
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--indigo);
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
	position: relative;
	z-index: 1;
}

@media (max-width: 860px) {
	.container { padding: 0 24px; }
	.site-header__inner { padding: 26px 16px !important; }
}
@media (max-width: 560px) {
	.container { padding: 0 16px; }
}

.skip-link {
	position: absolute;
	left: -9999px;
}
.skip-link:focus {
	left: 12px;
	top: 12px;
	background: var(--brown);
	color: var(--lime);
	padding: 8px 14px;
	z-index: 999;
	border-radius: var(--radius);
}

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

/* Divider — a simple hairline, no ornament */
.iwp-roller-divider {
	height: 1px;
	margin: 0;
	background: var(--line);
	border: none;
}
.iwp-roller-divider.alt { background: var(--line); }

/* ---------- Header ---------- */
.site-header {
	background: var(--lime);
	color: var(--brown);
	position: relative;
	z-index: 20;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 26px 0;
	gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding a { color: var(--indigo); }
.site-title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.5rem;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}
.site-title a:hover { color: var(--brown); }
.site-tagline {
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--brown);
	margin-top: 2px;
	display: block;
}
.custom-logo-link img { max-height: 48px; width: auto; }

.nav-menu {
	list-style: none;
	display: flex;
	gap: 30px;
	margin: 0;
	padding: 0;
}
.nav-menu a {
	color: var(--indigo);
	font-size: 1rem;
	font-weight: 600;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
	color: var(--brown);
	border-bottom-color: var(--brown);
}

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-cart {
	position: relative;
	color: var(--lime);
	background: var(--brown);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: var(--radius);
}
.header-cart:hover { background: var(--indigo); color: var(--lime); }
.header-cart__count {
	background: var(--lime);
	color: var(--brown);
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 800;
}

.menu-toggle {
	display: none;
	background: var(--brown);
	border: none;
	color: var(--lime);
	padding: 9px 14px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	border-radius: var(--radius);
}

@media (max-width: 860px) {
	.site-header__inner { justify-content: flex-start; gap: 12px; }
	.menu-toggle { display: inline-flex; order: 3; }
	.header-actions { order: 2; margin-left: auto; gap: 12px; }
	.nav-primary { width: 100%; order: 4; }
	.nav-menu {
		flex-direction: column;
		gap: 10px;
		display: none;
		padding: 16px 0 6px;
	}
	.nav-menu.is-open { display: flex; }
	.site-header__inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
	background: var(--lime);
	padding: 88px 0 64px;
	position: relative;
	overflow: hidden;
}
.hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 56px;
	align-items: center;
}
.hero__eyebrow { margin-bottom: 14px; }
.hero h1 {
	font-size: clamp(2.4rem, 5vw, 3.8rem);
	max-width: 14ch;
}
.hero p {
	max-width: 46ch;
	color: var(--indigo);
	font-weight: 600;
	font-size: 1.08rem;
}
.hero__actions { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero__figure {
	position: relative;
	background: var(--brown);
	padding: 10px;
	border-radius: var(--radius);
}
.hero__figure img { width: 100%; border-radius: 2px; }

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__figure { order: -1; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.9rem;
	padding: 10px 18px;
	border: none;
	background: var(--brown);
	color: var(--lime);
	cursor: pointer;
	border-radius: var(--radius);
	transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--indigo); color: var(--lime); transform: translateY(-1px); }
.btn--primary { background: var(--brown); color: var(--lime); }
.btn--primary:hover { background: var(--indigo); }

/* ---------- Section heads ---------- */
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 36px;
	flex-wrap: wrap;
}
.section-head h2 { font-size: 2rem; }
.section-head a { font-weight: 700; }
.section-head a:hover { color: var(--indigo-dark); }

/* ---------- Shop / product grid ---------- */
.shop-wrapper { padding: 56px 0 96px; background: var(--lime); }
.shop-wrapper__inner { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

@media (max-width: 860px) {
	.shop-wrapper__inner { padding: 0 24px; }
}
@media (max-width: 560px) {
	.shop-wrapper__inner { padding: 0 16px; }
}

.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 44px 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	content: none !important;
	display: none !important;
}

@media (max-width: 560px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: 1fr !important;
		gap: 32px 20px;
	}
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	position: relative;
	background: #ffffff;
	border-radius: var(--radius);
	padding: 10px;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

ul.products li.product a { display: block; color: var(--brown); }
ul.products li.product img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }

ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.05rem;
	text-transform: uppercase;
	margin: 16px 0 4px;
	padding: 0 4px;
}
ul.products li.product .price {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1rem;
	color: var(--indigo);
	padding: 0 4px;
}
ul.products li.product .price del { color: #a39c85; }
ul.products li.product .price ins { text-decoration: none; color: var(--indigo); }

.iwp-stamp {
	position: static;
	display: block;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.74rem;
	letter-spacing: 0.02em;
	color: var(--brown);
	background: none;
	border: none;
	padding: 0 4px;
	margin-top: 2px;
	transform: none;
}

.onsale {
	position: absolute;
	top: 18px;
	left: 18px;
	background: var(--brown);
	color: var(--lime);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.7rem;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: var(--radius);
	transform: none;
	z-index: 2;
}

.woocommerce-result-count,
.woocommerce-ordering {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--indigo);
}

/* ---------- Single product ---------- */
.single-product .shop-wrapper { padding-top: 48px; }

div.product .woocommerce-product-gallery {
	background: #ffffff;
	border-radius: var(--radius);
	padding: 12px;
}

.summary.entry-summary .product_title {
	font-size: 2.1rem;
	margin-bottom: 8px;
}
.summary.entry-summary .price {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--indigo);
	margin-bottom: 20px;
	display: block;
}

.iwp-edition-details {
	list-style: none;
	margin: 0 0 24px;
	padding: 18px 0;
	border-top: 2px solid var(--line);
	border-bottom: 2px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 600;
}
.iwp-edition-details__label {
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 0.72rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--indigo);
	display: inline-block;
	min-width: 84px;
}

.summary .cart button.single_add_to_cart_button {
	font-family: var(--font-body);
	font-weight: 700;
	background: var(--brown);
	border: none;
	color: var(--lime);
	padding: 15px 30px;
	font-size: 0.95rem;
	cursor: pointer;
	border-radius: var(--radius);
	transition: background 0.15s ease;
}
.summary .cart button.single_add_to_cart_button:hover { background: var(--indigo); }

table.variations { margin-bottom: 18px; }
table.variations select {
	font-family: var(--font-body);
	font-weight: 600;
	padding: 9px 10px;
	border: 2px solid var(--line);
	background: #ffffff;
	border-radius: var(--radius);
}

/* ---------- Cart / checkout tidy-up ---------- */
table.shop_table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.95rem;
}
table.shop_table th {
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-align: left;
	border-bottom: 2px solid var(--brown);
	padding: 10px 8px;
	color: var(--brown);
}
table.shop_table td { padding: 14px 8px; border-bottom: 1px solid var(--line); }

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce form .form-row textarea {
	border: 2px solid var(--line);
	background: #ffffff;
	padding: 10px;
	font-family: var(--font-body);
	border-radius: var(--radius);
}

/* ---------- Featured / homepage sections ---------- */
.home-section { padding: 72px 0; position: relative; z-index: 1; background: var(--lime); }
.home-section--intro p { max-width: 60ch; color: var(--indigo); font-weight: 600; }

/* "Studio note" mirrors the "Other Creative Work" block: solid
   brown background, lime uppercase heading, lime body copy. */
.studio-note-section { background: var(--brown); padding: 72px 0; }
.studio-note {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	max-width: 62ch;
}
.studio-note h2,
.studio-note__mark { color: var(--lime); }
.studio-note p { color: var(--lime); font-weight: 600; opacity: 0.92; }
.studio-note__mark {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* ---------- Blog / journal ---------- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.post-card { border-bottom: 2px solid var(--line); padding-bottom: 32px; }
.post-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.post-card .eyebrow { margin-bottom: 8px; display: block; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--indigo);
	color: var(--lime);
	padding: 60px 0 28px;
	margin-top: 0;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 36px;
	margin-bottom: 40px;
}
.footer-grid h3, .footer-widget__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--lime);
	margin-bottom: 14px;
}
.site-footer a { color: var(--lime); opacity: 0.88; }
.site-footer a:hover { opacity: 1; color: var(--lime); text-decoration: underline; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
	border-top: 2px solid rgba(242,255,185,0.25);
	padding-top: 20px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.8rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--lime);
	opacity: 0.85;
}
@media (max-width: 700px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Misc pages ---------- */
.entry-content { max-width: 72ch; }
.page-header { padding: 56px 0 8px; background: var(--lime); }
.page-header h1 { font-size: 2.2rem; }

.breadcrumb-bar { padding: 24px 0 0; background: var(--lime); }
.woocommerce-breadcrumb {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.82rem;
	color: var(--indigo);
	margin: 0;
}
