/* =========================================================================
   Clickety Clak — component stylesheet
   Everything here consumes tokens exposed by theme.json as CSS custom
   properties (--wp--preset--color--*, --wp--preset--font-family--*,
   --wp--preset--font-size--*, --wp--custom--radius--*, --wp--custom--shadow--*,
   --wp--custom--spacing--*). No ad hoc hex/px values — see
   docs/04-design-system-tokens.md for the spec each block below implements.
   Mobile-first: base styles target ~360px, then min-width breakpoints layer
   on tablet (768px) and desktop (1024px+) rules, verified conceptually
   against 360 / 768 / 1440 per the phase's definition of done.
   ========================================================================= */

/* ---------------------------------------------------------------------
   0. Base / accessibility helpers
   --------------------------------------------------------------------- */

* {
	box-sizing: border-box;
}

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

.cc-skip-link {
	position: absolute;
	top: -100px;
	left: var(--wp--custom--spacing--4, 16px);
	z-index: 10000;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--text-inverse);
	padding: var(--wp--custom--spacing--3, 12px) var(--wp--custom--spacing--5, 24px);
	border-radius: var(--wp--custom--radius--sm, 8px);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	transition: top 0.15s ease;
}
.cc-skip-link:focus {
	top: var(--wp--custom--spacing--4, 16px);
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	position: fixed !important;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

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

/* Generic placeholder image box — CSS-only, used until real product
   photography exists. Never an external/scraped image. */
.cc-placeholder-media {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--wp--custom--radius--sm, 8px);
	background: linear-gradient(135deg, var(--wp--preset--color--accent-3) 0%, var(--wp--preset--color--background-surface) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.cc-placeholder-media::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		45deg,
		rgba(43, 42, 51, 0.04),
		rgba(43, 42, 51, 0.04) 2px,
		transparent 2px,
		transparent 14px
	);
}
.cc-placeholder-media svg {
	position: relative;
	width: 40%;
	height: 40%;
	color: var(--wp--preset--color--text-muted);
}
.cc-placeholder-media--tile {
	aspect-ratio: auto;
	min-height: 320px;
}
.cc-placeholder-media--wide {
	aspect-ratio: 16 / 9;
}

.cc-placeholder-note {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--text-muted);
	font-style: italic;
}

/* ---------------------------------------------------------------------
   1. Buttons — variants beyond core theme.json defaults (Ghost, Pill,
      sizes, disabled/focus states). Primary is set in theme.json styles.elements.button.
   --------------------------------------------------------------------- */

.wp-block-button__link {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--custom--spacing--3, 12px) var(--wp--custom--spacing--5, 24px);
	box-shadow: var(--wp--custom--shadow--sm);
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
	font-size: var(--wp--preset--font-size--body);
}
.wp-block-button__link:hover {
	box-shadow: var(--wp--custom--shadow--md);
}
.wp-block-button__link:active {
	transform: scale(0.98);
}
.wp-block-button:not(.is-style-secondary):not(.is-style-ghost) .wp-block-button__link:focus-visible {
	box-shadow: var(--wp--custom--shadow--md);
}

.wp-block-button.is-style-secondary .wp-block-button__link,
.cc-button-secondary {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--text);
}
.wp-block-button.is-style-secondary .wp-block-button__link:hover,
.cc-button-secondary:hover {
	background-color: #f55a42;
	color: var(--wp--preset--color--text);
}

.wp-block-button.is-style-ghost .wp-block-button__link,
.cc-button-ghost {
	background-color: transparent;
	color: var(--wp--preset--color--primary);
	border: 1.5px solid var(--wp--preset--color--primary);
	box-shadow: none;
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover,
.cc-button-ghost:hover {
	background-color: rgba(58, 99, 216, 0.08);
	box-shadow: none;
}
.wp-block-button.is-style-ghost .wp-block-button__link:active,
.cc-button-ghost:active {
	background-color: rgba(58, 99, 216, 0.14);
}

.wp-block-button.is-style-pill .wp-block-button__link {
	border-radius: var(--wp--custom--radius--pill, 999px);
}

.cc-button-sm {
	min-height: 36px;
	padding: var(--wp--custom--spacing--2, 8px) var(--wp--custom--spacing--4, 16px);
	font-size: var(--wp--preset--font-size--caption);
}

.cc-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: transparent;
	border: 1.5px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.cc-icon-button:hover {
	background-color: rgba(58, 99, 216, 0.08);
}
.cc-icon-button:disabled {
	border-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--text-muted);
	cursor: not-allowed;
}

button:disabled,
.wp-block-button__link:disabled,
.wp-block-button__link[aria-disabled="true"] {
	background-color: var(--wp--preset--color--border) !important;
	color: var(--wp--preset--color--text-muted) !important;
	box-shadow: none !important;
	cursor: not-allowed;
}
.wp-block-button.is-style-ghost .wp-block-button__link:disabled,
.wp-block-button.is-style-ghost .wp-block-button__link[aria-disabled="true"],
.cc-button-ghost:disabled,
.cc-button-ghost[aria-disabled="true"] {
	background-color: transparent !important;
	border-color: var(--wp--preset--color--text-muted);
	color: var(--wp--preset--color--text-muted) !important;
}

/* ---------------------------------------------------------------------
   2. Site header / navigation
   --------------------------------------------------------------------- */

.cc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--background);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.cc-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--custom--spacing--4, 16px);
	padding-block: var(--wp--custom--spacing--3, 12px);
}

.cc-header__actions {
	display: flex;
	align-items: center;
	gap: var(--wp--custom--spacing--2, 8px);
}

/* Wordmark ("Click Bracket" lockup): rounded-square snap-joint brackets
   in Clak Coral around a Nunito Black wordmark in Ink — built as inline
   SVG shapes authored for this project, not derived from any file. */
.cc-wordmark {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--custom--spacing--2, 8px);
	text-decoration: none;
	color: var(--wp--preset--color--text);
}
.cc-wordmark__bracket {
	color: var(--wp--preset--color--secondary);
	flex-shrink: 0;
}
.cc-wordmark__text {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 900;
	letter-spacing: 0; /* --tracking-normal, per locked tracking scale in docs/04 */
	font-size: 1.375rem;
	color: var(--wp--preset--color--text);
	white-space: nowrap;
}

/* Primary nav (desktop): core Navigation block styling supplement */
.cc-primary-nav {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
}
.cc-primary-nav .wp-block-navigation-item > a {
	padding: var(--wp--custom--spacing--2, 8px) var(--wp--custom--spacing--3, 12px);
	border-radius: var(--wp--custom--radius--sm, 8px);
}
.cc-primary-nav .wp-block-navigation-item > a:hover {
	background-color: rgba(58, 99, 216, 0.08);
}
.cc-primary-nav .current-menu-item > a {
	color: var(--wp--preset--color--primary);
}

/* Mobile nav disclosure — native <details>/<summary>, works with JS off */
.cc-mobile-nav {
	display: block;
}
.cc-mobile-nav summary {
	list-style: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--wp--custom--radius--sm, 8px);
}
.cc-mobile-nav summary::-webkit-details-marker {
	display: none;
}
.cc-mobile-nav summary:hover {
	background-color: rgba(58, 99, 216, 0.08);
}
.cc-mobile-nav[open] summary {
	background-color: rgba(58, 99, 216, 0.08);
}
.cc-mobile-nav__panel {
	position: fixed;
	inset: 0;
	top: 65px;
	background: var(--wp--preset--color--background);
	padding: var(--wp--custom--spacing--5, 24px);
	overflow-y: auto;
	z-index: 99;
}
.cc-mobile-nav__panel ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--spacing--1, 4px);
}
.cc-mobile-nav__panel a {
	display: block;
	padding: var(--wp--custom--spacing--3, 12px) var(--wp--custom--spacing--2, 8px);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h5);
	font-weight: 600;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

@media (min-width: 1024px) {
	.cc-mobile-nav {
		display: none;
	}
}
.cc-desktop-nav {
	display: none;
}
@media (min-width: 1024px) {
	.cc-desktop-nav {
		display: block;
	}
}

/* Region/currency selector placeholder (UI slot only — logic is Phase 4/6) */
.cc-region-selector__trigger {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--custom--spacing--1, 4px);
	background: transparent;
	border: none;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--text);
	padding: var(--wp--custom--spacing--2, 8px) var(--wp--custom--spacing--2, 8px);
	border-radius: var(--wp--custom--radius--sm, 8px);
	cursor: default;
}
.cc-region-selector__trigger:hover {
	background-color: rgba(58, 99, 216, 0.08);
}
.cc-region-selector__icon {
	display: inline-flex;
	color: var(--wp--preset--color--text);
}

/* ---------------------------------------------------------------------
   3. Product card
   --------------------------------------------------------------------- */

.cc-product-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--background-surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md, 14px);
	box-shadow: var(--wp--custom--shadow--sm);
	padding: var(--wp--custom--spacing--4, 16px);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
	position: relative;
}
.cc-product-card:hover {
	box-shadow: var(--wp--custom--shadow--md);
	border-color: transparent;
}
.cc-product-card:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.cc-product-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: var(--wp--custom--radius--sm, 8px);
	overflow: hidden;
	background: var(--wp--preset--color--background);
	margin-bottom: var(--wp--custom--spacing--2, 8px);
}
.cc-product-card__media img,
.cc-product-card__media .cc-placeholder-media {
	transition: transform 0.2s ease;
}
.cc-product-card:hover .cc-product-card__media img,
.cc-product-card:hover .cc-product-card__media .cc-placeholder-media {
	transform: scale(1.03);
}

.cc-product-card__wishlist {
	position: absolute;
	top: var(--wp--custom--spacing--3, 12px);
	right: var(--wp--custom--spacing--3, 12px);
	width: 36px;
	height: 36px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: rgba(255, 255, 255, 0.85);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	color: var(--wp--preset--color--text);
}

.cc-badge {
	position: absolute;
	top: var(--wp--custom--spacing--3, 12px);
	left: var(--wp--custom--spacing--3, 12px);
	border-radius: var(--wp--custom--radius--pill, 999px);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	padding: var(--wp--custom--spacing--1, 4px) var(--wp--custom--spacing--3, 12px);
	box-shadow: var(--wp--custom--shadow--sm);
	z-index: 2;
}
.cc-badge--sale {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--text);
}
.cc-badge--rank {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--text);
}

.cc-product-card__eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: var(--wp--custom--spacing--1, 4px);
}

.cc-product-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h4);
	font-weight: 600;
	color: var(--wp--preset--color--text);
	margin: 0 0 var(--wp--custom--spacing--2, 8px);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cc-quick-view-trigger {
	position: absolute;
	left: 50%;
	bottom: var(--wp--custom--spacing--3, 12px);
	transform: translateX(-50%);
	background: var(--wp--preset--color--background-surface);
	border: 1.5px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--pill, 999px);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	padding: var(--wp--custom--spacing--2, 8px) var(--wp--custom--spacing--4, 16px);
	box-shadow: var(--wp--custom--shadow--sm);
	opacity: 0;
	transition: opacity 0.15s ease;
	z-index: 2;
}
.cc-product-card:hover .cc-quick-view-trigger,
.cc-product-card:focus-within .cc-quick-view-trigger {
	opacity: 1;
}
@media (pointer: coarse) {
	.cc-quick-view-trigger {
		opacity: 1;
		position: static;
		transform: none;
		margin-top: var(--wp--custom--spacing--2, 8px);
		width: 100%;
	}
}

/* ---------------------------------------------------------------------
   4. Price display / stock badges
   --------------------------------------------------------------------- */

.cc-price {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--price);
	font-weight: 700;
	color: var(--wp--preset--color--text);
}
.cc-price--regular-struck {
	text-decoration: line-through;
	color: var(--wp--preset--color--text-muted);
	font-weight: 700;
	margin-right: var(--wp--custom--spacing--2, 8px);
}
.cc-price--sale {
	color: var(--wp--preset--color--error);
}

.cc-stock-badge {
	display: inline-flex;
	align-items: center;
	border-radius: var(--wp--custom--radius--pill, 999px);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	padding: var(--wp--custom--spacing--1, 4px) var(--wp--custom--spacing--3, 12px);
}
.cc-stock-badge--in-stock {
	background: var(--wp--preset--color--success-bg);
	color: var(--wp--preset--color--success);
}
.cc-stock-badge--low-stock,
.cc-stock-badge--backorder {
	background: var(--wp--preset--color--warning-bg);
	color: var(--wp--preset--color--warning);
}
.cc-stock-badge--out-of-stock {
	background: var(--wp--preset--color--border);
	color: var(--wp--preset--color--text-muted);
}

/* ---------------------------------------------------------------------
   5. Category tile / showcase grid
   --------------------------------------------------------------------- */

.cc-category-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--custom--spacing--5, 24px);
}
@media (min-width: 768px) {
	.cc-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.cc-category-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.cc-category-tile {
	position: relative;
	display: block;
	min-height: 320px;
	border-radius: var(--wp--custom--radius--lg, 24px);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: var(--wp--custom--shadow--sm);
	transition: box-shadow 0.15s ease;
}
.cc-category-tile:hover {
	box-shadow: var(--wp--custom--shadow--md);
}
.cc-category-tile:hover .cc-category-tile__media {
	transform: scale(1.04);
}
.cc-category-tile:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}
.cc-category-tile__media {
	position: absolute;
	inset: 0;
	transition: transform 0.2s ease;
}
.cc-category-tile--fill-mint .cc-category-tile__media { background: var(--wp--preset--color--accent-2); }
.cc-category-tile--fill-lavender .cc-category-tile__media { background: var(--wp--preset--color--accent-3); }
.cc-category-tile--fill-marigold .cc-category-tile__media { background: var(--wp--preset--color--accent-1); }

.cc-category-tile__panel {
	position: relative;
	margin-top: auto;
	background: var(--wp--preset--color--background-surface);
	padding: var(--wp--custom--spacing--4, 16px);
	border-top-left-radius: var(--wp--custom--radius--md, 14px);
	border-top-right-radius: var(--wp--custom--radius--md, 14px);
}
.cc-category-tile {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.cc-category-tile__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h3);
	font-weight: 600;
	margin: 0 0 var(--wp--custom--spacing--1, 4px);
}
.cc-category-tile__desc {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 var(--wp--custom--spacing--3, 12px);
}
.cc-category-tile__link {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--custom--spacing--1, 4px);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--primary);
}

/* ---------------------------------------------------------------------
   6. Horizontal rail (bestsellers)
   --------------------------------------------------------------------- */

.cc-rail {
	position: relative;
}
.cc-rail__track {
	display: flex;
	gap: var(--wp--custom--spacing--4, 16px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-block: var(--wp--custom--spacing--2, 8px);
	padding-inline: var(--wp--custom--spacing--1, 4px);
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.cc-rail__track > * {
	scroll-snap-align: start;
	flex: 0 0 240px;
}
@media (min-width: 768px) {
	.cc-rail__track > * {
		flex-basis: 280px;
	}
}
.cc-rail__nav {
	display: none;
}
@media (min-width: 1024px) {
	.cc-rail__nav {
		display: flex;
		justify-content: flex-end;
		gap: var(--wp--custom--spacing--2, 8px);
		margin-bottom: var(--wp--custom--spacing--3, 12px);
	}
}

/* ---------------------------------------------------------------------
   7. Stat strip
   --------------------------------------------------------------------- */

.cc-stat-strip {
	background: var(--wp--preset--color--accent-3);
	padding-block: var(--wp--custom--spacing--6, 32px);
	border-radius: var(--wp--custom--radius--lg, 24px);
}
.cc-stat-strip__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--custom--spacing--5, 24px);
	text-align: center;
}
@media (min-width: 768px) {
	.cc-stat-strip__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
.cc-stat-strip__icon {
	width: 32px;
	height: 32px;
	margin: 0 auto var(--wp--custom--spacing--2, 8px);
	color: var(--wp--preset--color--accent-2);
}
.cc-stat-strip__value {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h2);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	display: block;
}
.cc-stat-strip__label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------------
   8. Testimonial carousel
   --------------------------------------------------------------------- */

.cc-testimonial-card {
	background: var(--wp--preset--color--background-surface);
	border-radius: var(--wp--custom--radius--md, 14px);
	box-shadow: var(--wp--custom--shadow--sm);
	padding: var(--wp--custom--spacing--5, 24px);
	display: flex;
	flex-direction: column;
	height: 100%;
}
.cc-testimonial-card__quote-mark {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--display);
	line-height: 1;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: var(--wp--custom--spacing--2, 8px);
}
.cc-testimonial-card__text {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body-lg);
	color: var(--wp--preset--color--text);
	flex-grow: 1;
	margin-bottom: var(--wp--custom--spacing--4, 16px);
}
.cc-testimonial-card__attribution {
	display: flex;
	align-items: center;
	gap: var(--wp--custom--spacing--3, 12px);
}
.cc-testimonial-card__avatar {
	width: 40px;
	height: 40px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--wp--preset--color--accent-2);
	flex-shrink: 0;
}
.cc-testimonial-card__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h5);
	font-weight: 600;
	margin: 0;
}
.cc-testimonial-card__meta {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--text-muted);
	margin: 0;
}
.cc-star-row {
	color: var(--wp--preset--color--accent-1);
	margin-bottom: var(--wp--custom--spacing--2, 8px);
}
.cc-star-row .cc-star--empty {
	color: var(--wp--preset--color--border);
}

.cc-carousel__dots {
	display: flex;
	justify-content: center;
	gap: var(--wp--custom--spacing--2, 8px);
	margin-top: var(--wp--custom--spacing--4, 16px);
}
.cc-carousel__dot {
	width: 8px;
	height: 8px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	border: none;
	background: var(--wp--preset--color--border);
	padding: 0;
	cursor: pointer;
}
.cc-carousel__dot[aria-current="true"] {
	background: var(--wp--preset--color--primary);
	width: 20px;
}

/* ---------------------------------------------------------------------
   9. Newsletter signup
   --------------------------------------------------------------------- */

.cc-newsletter {
	background: var(--wp--preset--color--accent-3);
	border-radius: var(--wp--custom--radius--lg, 24px);
	padding: var(--wp--custom--spacing--6, 32px);
	text-align: center;
}
.cc-newsletter--dark {
	background: transparent;
}
.cc-newsletter--dark .cc-newsletter__heading,
.cc-newsletter--dark .cc-newsletter__desc {
	color: var(--wp--preset--color--text-inverse);
}
.cc-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--spacing--3, 12px);
	max-width: 480px;
	margin: var(--wp--custom--spacing--4, 16px) auto 0;
}
@media (min-width: 768px) {
	.cc-newsletter__form {
		flex-direction: row;
	}
}
.cc-newsletter__form input[type="email"] {
	flex: 1;
}
.cc-newsletter--dark .cc-newsletter__form input[type="email"] {
	background: var(--wp--preset--color--background-surface);
}

/* ---------------------------------------------------------------------
   10. Form fields
   --------------------------------------------------------------------- */

.cc-field {
	display: block;
	margin-bottom: var(--wp--custom--spacing--4, 16px);
	text-align: left;
}
.cc-field label,
.cc-field__label {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	color: var(--wp--preset--color--text);
	margin-bottom: var(--wp--custom--spacing--2, 8px);
}
.cc-field input[type="text"],
.cc-field input[type="email"],
.cc-field input[type="tel"],
.cc-field input[type="password"],
.cc-field input[type="search"],
.cc-field textarea,
.cc-field select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	min-height: 44px;
	background: var(--wp--preset--color--background-surface);
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--sm, 8px);
	padding: var(--wp--custom--spacing--3, 12px);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--text);
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 4px rgba(58, 99, 216, 0.2);
	outline: none;
}
.cc-field--error input,
.cc-field--error textarea,
.cc-field--error select {
	border-color: var(--wp--preset--color--error);
}
.cc-field__error {
	display: flex;
	align-items: center;
	gap: var(--wp--custom--spacing--1, 4px);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--error);
	margin-top: var(--wp--custom--spacing--1, 4px);
}
.cc-field__help {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--text-muted);
	margin-top: var(--wp--custom--spacing--1, 4px);
}
input:disabled,
textarea:disabled,
select:disabled {
	background: rgba(231, 226, 216, 0.4);
	color: var(--wp--preset--color--text-muted);
}

/* ---------------------------------------------------------------------
   11. Mini-cart / cart drawer (WooCommerce Mini Cart block wrapper)
   --------------------------------------------------------------------- */

.wc-block-mini-cart__drawer,
.cc-cart-drawer {
	background: var(--wp--preset--color--background-surface) !important;
	box-shadow: var(--wp--custom--shadow--lg);
}
.wc-block-mini-cart__title {
	font-family: var(--wp--preset--font-family--display) !important;
	font-size: var(--wp--preset--font-size--h3) !important;
}
.wc-block-mini-cart-items__row {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* ---------------------------------------------------------------------
   12. Footer
   --------------------------------------------------------------------- */

.cc-footer {
	background: var(--wp--preset--color--background-dark);
	color: var(--wp--preset--color--text-inverse);
	padding-block: var(--wp--custom--spacing--8, 64px) var(--wp--custom--spacing--5, 24px);
}
.cc-footer a {
	color: var(--wp--preset--color--text-inverse);
}
.cc-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--custom--spacing--6, 32px);
}
@media (min-width: 768px) {
	.cc-footer__grid {
		grid-template-columns: 1.5fr repeat(3, 1fr);
	}
}
.cc-footer__heading {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h6);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--text-inverse);
	margin-bottom: var(--wp--custom--spacing--3, 12px);
}
.cc-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--spacing--2, 8px);
	font-family: var(--wp--preset--font-family--body);
}
.cc-footer__bottom {
	margin-top: var(--wp--custom--spacing--7, 48px);
	padding-top: var(--wp--custom--spacing--4, 16px);
	border-top: 1px solid rgba(255, 251, 245, 0.15);
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--spacing--3, 12px);
	align-items: center;
	justify-content: space-between;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	color: rgba(255, 251, 245, 0.7);
}

/* ---------------------------------------------------------------------
   13. My Account (WooCommerce classic-shortcode markup styling)
   --------------------------------------------------------------------- */

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--spacing--1, 4px);
}
.woocommerce-MyAccount-navigation a {
	display: block;
	padding: var(--wp--custom--spacing--3, 12px);
	border-radius: var(--wp--custom--radius--sm, 8px);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	text-decoration: none;
}
.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wp--preset--color--background-surface);
	color: var(--wp--preset--color--primary);
}
.woocommerce-MyAccount-content table,
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--wp--preset--font-family--body);
}
.woocommerce-MyAccount-content table th,
.woocommerce-MyAccount-content table td,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: var(--wp--custom--spacing--3, 12px);
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
}
.cc-account-panel--placeholder {
	margin-top: var(--wp--custom--spacing--6, 32px);
	padding: var(--wp--custom--spacing--5, 24px);
	border: 1.5px dashed var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md, 14px);
}

/* ---------------------------------------------------------------------
   14. Shop / archive filters + product grid
   --------------------------------------------------------------------- */

.cc-shop-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--custom--spacing--6, 32px);
}
@media (min-width: 1024px) {
	.cc-shop-layout {
		grid-template-columns: 260px 1fr;
	}
}
.cc-filters {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md, 14px);
	padding: var(--wp--custom--spacing--4, 16px);
}
.cc-filters summary {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	cursor: pointer;
}
@media (min-width: 1024px) {
	.cc-filters {
		border: none;
		padding: 0;
	}
}

/* ---------------------------------------------------------------------
   15. Single product
   --------------------------------------------------------------------- */

.cc-product-gallery {
	display: grid;
	gap: var(--wp--custom--spacing--3, 12px);
}
.cc-product-gallery__thumbs {
	display: flex;
	gap: var(--wp--custom--spacing--2, 8px);
	overflow-x: auto;
}
.cc-product-gallery__thumbs .cc-placeholder-media {
	width: 72px;
	flex-shrink: 0;
}
.cc-product-meta-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
}
.cc-product-meta-table th,
.cc-product-meta-table td {
	text-align: left;
	padding: var(--wp--custom--spacing--2, 8px) 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.cc-product-meta-table th {
	color: var(--wp--preset--color--text-muted);
	font-weight: 700;
	width: 40%;
}

/* ---------------------------------------------------------------------
   16. Journal / blog cards
   --------------------------------------------------------------------- */

.cc-journal-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--custom--spacing--5, 24px);
}
@media (min-width: 768px) {
	.cc-journal-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.cc-journal-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.cc-journal-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--wp--preset--color--background-surface);
	border-radius: var(--wp--custom--radius--md, 14px);
	box-shadow: var(--wp--custom--shadow--sm);
	overflow: hidden;
}
.cc-journal-card:hover {
	box-shadow: var(--wp--custom--shadow--md);
}
.cc-journal-card__body {
	padding: var(--wp--custom--spacing--4, 16px);
}
.cc-journal-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h4);
	font-weight: 600;
	margin: 0 0 var(--wp--custom--spacing--2, 8px);
}
.cc-journal-card__excerpt {
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--body);
}

.cc-new-arrivals-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--custom--spacing--5, 24px);
}
@media (min-width: 768px) {
	.cc-new-arrivals-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
@media (min-width: 768px) {
	.cc-bestsellers-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (min-width: 1024px) {
	.cc-bestsellers-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ---------------------------------------------------------------------
   18. WooCommerce block & classic-template markup overrides
   Maps WooCommerce's own generated class names (Product Collection block
   output, classic single-product template, mini-cart) onto this theme's
   tokens so they read as this design system rather than default Woo
   styling. Selectors target WooCommerce's documented/stable class names,
   not anything reverse-engineered from a third-party site.
   --------------------------------------------------------------------- */

.wc-block-product-price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--price);
	font-weight: 700;
	color: var(--wp--preset--color--text);
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
	color: var(--wp--preset--color--text-muted);
	opacity: 1;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
	text-decoration: none;
	color: var(--wp--preset--color--error);
}

.woocommerce span.onsale {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--text);
	border-radius: var(--wp--custom--radius--pill, 999px);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--caption);
	min-height: auto;
	min-width: auto;
	padding: var(--wp--custom--spacing--1, 4px) var(--wp--custom--spacing--3, 12px);
	line-height: 1;
}

.woocommerce div.product p.stock,
.woocommerce div.product .stock {
	display: inline-flex;
	border-radius: var(--wp--custom--radius--pill, 999px);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	padding: var(--wp--custom--spacing--1, 4px) var(--wp--custom--spacing--3, 12px);
	background: var(--wp--preset--color--success-bg);
	color: var(--wp--preset--color--success);
}
.woocommerce div.product p.stock.out-of-stock {
	background: var(--wp--preset--color--border);
	color: var(--wp--preset--color--text-muted);
}
.woocommerce div.product p.stock.available-on-backorder {
	background: var(--wp--preset--color--warning-bg);
	color: var(--wp--preset--color--warning);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.single_add_to_cart_button {
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--text-inverse) !important;
	border-radius: var(--wp--custom--radius--md, 14px) !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-weight: 700 !important;
	min-height: 44px;
	padding: var(--wp--custom--spacing--3, 12px) var(--wp--custom--spacing--5, 24px) !important;
	box-shadow: var(--wp--custom--shadow--sm);
	border: none !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.single_add_to_cart_button:hover {
	background: var(--wp--preset--color--primary-hover) !important;
	box-shadow: var(--wp--custom--shadow--md);
}
.woocommerce #respond input#submit:disabled,
.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled {
	background: var(--wp--preset--color--border) !important;
	color: var(--wp--preset--color--text-muted) !important;
	box-shadow: none;
	cursor: not-allowed;
}

.woocommerce div.product .woocommerce-product-gallery {
	border-radius: var(--wp--custom--radius--md, 14px);
	overflow: hidden;
}
.woocommerce div.product .woocommerce-product-gallery__image {
	background: var(--wp--preset--color--background-surface);
	border-radius: var(--wp--custom--radius--sm, 8px);
}

.woocommerce table.variations td,
.woocommerce table.variations th {
	padding: var(--wp--custom--spacing--2, 8px) 0;
}
.woocommerce div.product form.cart .variations select {
	min-height: 44px;
}

.woocommerce-tabs ul.tabs {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--spacing--2, 8px);
	padding: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.woocommerce-tabs ul.tabs li {
	margin: 0;
}
.woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: var(--wp--custom--spacing--3, 12px) var(--wp--custom--spacing--4, 16px);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	text-decoration: none;
	color: var(--wp--preset--color--text-muted);
}
.woocommerce-tabs ul.tabs li.active a {
	color: var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

.related.products,
.upsells.products {
	margin-top: var(--wp--custom--spacing--8, 64px);
}
.related.products h2,
.upsells.products h2 {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h2);
}
.related.products ul.products,
.upsells.products ul.products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--custom--spacing--5, 24px);
	list-style: none;
	padding: 0;
}
@media (min-width: 768px) {
	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: repeat(4, 1fr);
	}
}
.related.products ul.products li.product,
.upsells.products ul.products li.product {
	background: var(--wp--preset--color--background-surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md, 14px);
	padding: var(--wp--custom--spacing--4, 16px);
}

#reviews h2,
#reviews h3 {
	font-family: var(--wp--preset--font-family--display);
}
#reviews .comment-form input,
#reviews .comment-form textarea {
	width: 100%;
}

/* Classic cart / checkout tables + forms */
.woocommerce table.shop_table_responsive,
.woocommerce-cart-form table.shop_table,
.woocommerce-checkout table.shop_table {
	border-collapse: collapse;
	width: 100%;
}
.woocommerce-cart-form table.shop_table th,
.woocommerce-cart-form table.shop_table td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--custom--spacing--3, 12px);
	text-align: left;
	font-family: var(--wp--preset--font-family--body);
}
.woocommerce-cart-form .product-thumbnail img {
	border-radius: var(--wp--custom--radius--sm, 8px);
	width: 72px;
}
.woocommerce-cart-form .quantity input.qty,
.woocommerce-checkout .quantity input.qty {
	min-height: 36px;
	width: 72px;
}
.cart-collaterals .cart_totals,
.woocommerce-checkout-review-order {
	background: var(--wp--preset--color--background-surface);
	border-radius: var(--wp--custom--radius--md, 14px);
	border: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--custom--spacing--5, 24px);
}
.woocommerce-checkout #payment {
	background: var(--wp--preset--color--background-surface);
	border-radius: var(--wp--custom--radius--md, 14px);
	border: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--custom--spacing--4, 16px);
}
.woocommerce-form-coupon-toggle,
.woocommerce-form-coupon {
	margin-bottom: var(--wp--custom--spacing--4, 16px);
}
.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row,
.woocommerce-additional-fields .form-row {
	margin-bottom: var(--wp--custom--spacing--4, 16px);
}
.woocommerce-billing-fields label,
.woocommerce-shipping-fields label,
.woocommerce-additional-fields label {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--caption);
	margin-bottom: var(--wp--custom--spacing--2, 8px);
}
.woocommerce-order,
.woocommerce-thankyou-order-received {
	background: var(--wp--preset--color--success-bg);
	color: var(--wp--preset--color--success);
	border-radius: var(--wp--custom--radius--md, 14px);
	padding: var(--wp--custom--spacing--4, 16px);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
}

/* Product Collection block grid (Shop / Collections archives) */
.wp-block-woocommerce-product-collection.cc-new-arrivals-grid,
.wc-block-product-template.cc-new-arrivals-grid {
	display: grid;
}
.wc-block-grid__products,
.wc-block-product-template {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* ---------------------------------------------------------------------
   17. Utility layout
   --------------------------------------------------------------------- */

.cc-section {
	padding-block: var(--wp--custom--spacing--8, 64px);
}
@media (max-width: 767px) {
	.cc-section {
		padding-block: var(--wp--custom--spacing--7, 48px);
	}
}
.cc-section--tight {
	padding-block: var(--wp--custom--spacing--6, 32px);
}
.cc-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--h6);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--text-muted);
}
