/* ==========================================================================
   Eco Vape – main stylesheet
   Tokens mirror the parent shop (Dawn-based): Poppins 300/800, #121212 ink,
   light grey #f3f3f3, brand blue #6ccaf3, brand green #98cd69.
   ========================================================================== */

:root {
	--ink: #121212;
	--paper: #ffffff;
	--grey: #f3f3f3;
	--grey-line: #e2e2e2;
	--muted: #5c5c5c;
	--blue: #6ccaf3;
	--blue-deep: #1195cf;
	--green: #98cd69;
	--green-deep: #59892e;

	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--page-width: 120rem;
	--gutter: clamp(1.5rem, 4vw, 5rem);
	--radius-btn: 4px;
	--section-y: clamp(3.6rem, 6vw, 6.4rem);
	--header-h: 7.2rem;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	font-weight: 300;
	font-size: 1.6rem;
	line-height: 1.8;
	letter-spacing: .06rem;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .3rem; }
a:hover { text-decoration-thickness: 2px; }
strong, b { font-weight: 600; }
p { margin: 0 0 1.6rem; }
ul, ol { margin: 0 0 1.6rem; padding-left: 2rem; }

h1, h2, h3, h4, h5, h6,
.h0, .h1, .h2, .h3, .h4, .h5 {
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .02rem;
	margin: 0 0 1.6rem;
}
.h0 { font-size: clamp(3.2rem, 5vw, 5.2rem); }
h1, .h1 { font-size: clamp(2.8rem, 4vw, 4rem); }
h2, .h2 { font-size: clamp(2.4rem, 3vw, 3rem); }
h3, .h3 { font-size: 2.2rem; }
h4, .h4 { font-size: 1.8rem; }
h5, .h5 { font-size: 1.4rem; letter-spacing: .04rem; }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	z-index: 1000; top: 1rem; left: 1rem;
	padding: 1rem 2rem; background: var(--paper);
}

.page-width { max-width: var(--page-width); margin: 0 auto; padding: 0 var(--gutter); }
.page-width--narrow { max-width: 82rem; }
.section { padding-block: var(--section-y); }
.eyebrow { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .14rem; color: var(--muted); margin-bottom: .6rem; }

/* Colour schemes */
.scheme-light { background: var(--grey); }
.scheme-dark  { background: var(--ink); color: #fff; }
.scheme-blue  { background: var(--blue); color: #fff; }
.scheme-green { background: var(--green); color: var(--ink); }
.scheme-dark .eyebrow, .scheme-blue .eyebrow { color: rgba(255,255,255,.75); }

/* --------------------------------------------------------------------------
   Buttons & forms
   -------------------------------------------------------------------------- */
.button,
button.button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 4.6rem;
	padding: 1rem 3.6rem;
	border: 1px solid var(--ink);
	border-radius: var(--radius-btn);
	background: var(--ink);
	color: #fff;
	font: 600 1.5rem/1.2 var(--font);
	letter-spacing: .1rem;
	text-decoration: none;
	cursor: pointer;
	transition: box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.button:hover { box-shadow: 0 0 0 1px currentColor inset; text-decoration: none; }
.button--outline { background: transparent; color: inherit; border-color: currentColor; font-weight: 300; }
.button--outline:hover { color: var(--paper); background: var(--ink); }
.scheme-dark .button--outline:hover,
.scheme-blue .button--outline:hover { color: var(--ink); background: #fff; border-color: #fff; }
.button--wide { min-width: min(45rem, 100%); }
.button--light { background: #fff; color: var(--ink); border-color: #fff; }
.button--secondary { background: transparent; color: var(--ink); }

input[type="text"], input[type="email"], input[type="search"], input[type="tel"],
input[type="password"], input[type="number"], textarea, select {
	font: inherit;
	color: inherit;
	width: 100%;
	min-height: 4.6rem;
	padding: .8rem 1.4rem;
	border: 1px solid #8f8f8f;
	border-radius: 0;
	background: var(--paper);
}

.search-form { display: flex; gap: 0; }
.search-form input[type="search"] { flex: 1; }
.search-form button {
	display: grid; place-items: center;
	width: 4.6rem; border: 1px solid #8f8f8f; border-left: 0;
	background: var(--paper); cursor: pointer; color: var(--ink);
}

/* --------------------------------------------------------------------------
   Announcement bars
   -------------------------------------------------------------------------- */
.announcement { text-align: center; font-size: 1.2rem; font-weight: 600; letter-spacing: .1rem; }
.announcement p { margin: 0; padding: 1rem var(--gutter); }
.announcement a { text-decoration: none; }
.announcement a:hover { text-decoration: underline; }
.announcement--top { background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.announcement--promo { background: var(--blue); color: var(--ink); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ink);
	color: #fff;
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.site-header__row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: var(--header-h);
}
.site-header__left, .site-header__right { display: flex; align-items: center; gap: .4rem; }
.site-header__right { justify-content: flex-end; }
.site-header__brand .site-logo img,
.site-header__brand .custom-logo { width: auto; height: 3.4rem; }

.header-icon {
	position: relative;
	display: grid; place-items: center;
	width: 4.4rem; height: 4.4rem;
	background: none; border: 0; color: inherit; cursor: pointer;
	text-decoration: none;
}
.header-icon:hover .icon { transform: scale(1.08); }
.header-icon .icon { transition: transform .15s ease; }
.cart-count {
	position: absolute; right: .2rem; bottom: .4rem;
	min-width: 1.8rem; height: 1.8rem; padding: 0 .4rem;
	border-radius: 999px;
	background: var(--blue); color: var(--ink);
	font-size: 1rem; font-weight: 600; line-height: 1.8rem; text-align: center;
}
.cart-count[data-count="0"] { display: none; }

.nav-toggle { display: none; }

.header-search { background: var(--ink); padding: 0 0 1.6rem; }
.header-search .search-form input,
.header-search .search-form button { border-color: #fff; }

/* Primary nav – desktop */
.primary-nav__head, .primary-nav__foot { display: none; }
.primary-menu {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2.4rem;
	list-style: none; margin: 0; padding: 0 var(--gutter) .8rem;
}
.primary-menu > li { position: relative; display: flex; align-items: center; }
.primary-menu > li > a {
	display: block; padding: 1.2rem 0;
	font-size: 1.5rem; color: rgba(255,255,255,.75);
	text-decoration: none; letter-spacing: .06rem;
}
.primary-menu > li > a:hover,
.primary-menu > li:focus-within > a,
.primary-menu > li.current-menu-item > a { color: #fff; text-decoration: underline; }

.submenu-toggle {
	display: grid; place-items: center;
	width: 1.6rem; height: 1.6rem; margin-left: .2rem; padding: 0;
	background: none; border: 0; color: rgba(255,255,255,.75); cursor: pointer;
}
.submenu-toggle .icon { width: 1.4rem; height: 1.4rem; transition: transform .15s ease; }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.primary-menu .sub-menu {
	position: absolute; top: 100%; left: -2rem;
	min-width: 26rem;
	list-style: none; margin: 0; padding: 1.6rem 0;
	background: var(--ink);
	border: 1px solid rgba(255,255,255,.12);
	opacity: 0; visibility: hidden; transform: translateY(-.4rem);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	z-index: 10;
}
.primary-menu > li:hover > .sub-menu,
.primary-menu > li:focus-within > .sub-menu,
.primary-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a {
	display: block; padding: .6rem 2rem;
	font-size: 1.4rem; color: rgba(255,255,255,.75); text-decoration: none;
}
.primary-menu .sub-menu a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Homepage sections
   -------------------------------------------------------------------------- */
.hero img { width: 100%; height: auto; object-fit: cover; }

.rich-text--center { text-align: center; }
.rich-text .button { margin-top: .8rem; }
.rich-text a:not(.button) { text-decoration: underline; }
.rich-text h3 { font-size: 1.8rem; margin-top: 3.2rem; }

.promos { display: grid; grid-template-columns: repeat(4, 1fr); }
.promos__tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }

.feature__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 5vw, 6rem); align-items: center; max-width: 96rem; }
.feature--text-only .feature__inner { grid-template-columns: 1fr; max-width: 82rem; }
.feature__body { font-size: 1.8rem; }
.feature__media img { width: 100%; border-radius: .6rem; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; margin-bottom: 2.4rem; }
.section-head h2 { margin: 0; }

/* Product carousel */
.carousel-nav { display: flex; gap: .8rem; }
.carousel-btn {
	width: 4rem; height: 4rem; border-radius: 50%;
	border: 0; background: var(--ink); color: #fff;
	font-size: 2.4rem; line-height: 1; cursor: pointer;
}
.carousel-track {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 5 * 2rem) / 6);
	gap: 2rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	list-style: none; margin: 0 !important; padding: 0 0 1.6rem !important;
}
.carousel-track::before, .carousel-track::after { display: none !important; }
.carousel-track > li { scroll-snap-align: start; width: auto !important; margin: 0 !important; float: none !important; }

/* Tile grids (brands, categories, deals) */
.tile-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1px;
	list-style: none; margin: 0; padding: 0;
	background: var(--grey-line);
	border: 1px solid var(--grey-line);
}
.tile-grid--photos { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); background: none; border: 0; gap: 2rem; }
.tile-grid--5 { grid-template-columns: repeat(5, 1fr); }
.tile { background: var(--paper); }
.scheme-light .tile { background: var(--grey); }
.tile a {
	display: flex; flex-direction: column; align-items: center; justify-content: space-between;
	height: 100%; padding: 1.6rem; gap: 1.2rem;
	text-decoration: none; text-align: center;
}
.tile__media { display: grid; place-items: center; width: 100%; aspect-ratio: 1; }
.tile__media img { max-height: 100%; object-fit: contain; transition: transform .25s ease; }
.tile a:hover .tile__media img { transform: scale(1.04); }
.tile__label { font-size: 1.2rem; font-weight: 600; }
/* Text-only tiles (no image in assets/images/<dir>/<slug>.*): a solid card with the label. */
.tile-grid .tile.tile--text a { min-height: 12rem; justify-content: center; padding: 2rem; background: var(--grey); border-radius: 8px; }
.tile-grid .tile.tile--text .tile__label { font-size: 1.6rem; font-weight: 800; }
.tile-grid--photos .tile { background: none; }
.tile-grid--photos .tile a { padding: 0; }
.tile-grid--photos .tile__label { font-size: 1.4rem; }

/* Collapsible brand grid on small screens */
.tile-section[data-collapsible].is-collapsed .tile-grid > li:nth-child(n+13) { display: none; }
.grid-more { display: block; margin: 2.4rem auto 0; }

/* Image with text */
.image-with-text__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 5vw, 6rem); align-items: center; }
.image-with-text__media img { width: 100%; }

/* Stores banner */

/* FAQ */
.faq__item { border-top: 1px solid var(--grey-line); }
.faq__item:last-of-type { border-bottom: 1px solid var(--grey-line); }
.faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 1.6rem;
	padding: 1.8rem 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.6rem; font-weight: 600; }
.faq__item summary .icon { flex: none; transition: transform .2s ease; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding-bottom: 1.6rem; }

/* --------------------------------------------------------------------------
   Content pages / blog
   -------------------------------------------------------------------------- */
.page-header { margin-bottom: 3.2rem; }
.entry-content > * + * { margin-top: 1.6rem; }
.entry-content img { height: auto; }
.entry-thumbnail { margin: 0 0 3.2rem; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr)); gap: 3.2rem; }
.post-card__link { display: flex; flex-direction: column; gap: 1.2rem; text-decoration: none; }
.post-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__excerpt { color: var(--muted); font-size: 1.4rem; }
.post-card:hover h2 { text-decoration: underline; }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 4rem; }
.page-numbers { padding: .6rem 1.2rem; text-decoration: none; }
.page-numbers.current { border-bottom: 2px solid var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); font-size: 1.4rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid {
	display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 3.2rem;
	padding-block: 5.6rem 3.2rem;
}
.site-footer .site-logo img { height: 3.6rem; width: auto; margin-bottom: 2rem; }
.footer-col__title { color: #fff; font-size: 1.6rem; font-weight: 600; margin-bottom: 1.6rem; }
.site-footer address { font-style: normal; margin-bottom: 1.6rem; }
.footer-small { font-size: 1.2rem; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: .6rem; }

.site-footer__middle {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2.4rem;
	padding-block: 3.2rem; border-top: 1px solid rgba(255,255,255,.12);
}
.newsletter { flex: 0 1 36rem; }
.newsletter__field { display: flex; }
.newsletter__field input { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.newsletter__field button {
	display: grid; place-items: center; width: 4.6rem;
	background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); border-left: 0; cursor: pointer;
}

.social-links { display: flex; gap: .8rem; list-style: none; margin: 0; padding: 0; }
.social-links a { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; }
.social-links .icon { width: 2rem; height: 2rem; }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: 1.2rem; }
.site-footer__bottom .page-width { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; padding-block: 2rem; }
.site-footer__bottom p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: .4rem 2rem; list-style: none; margin: 0; padding: 0; }

.back-to-top {
	position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 40;
	padding: .8rem 1.4rem; border-radius: var(--radius-btn);
	background: var(--ink); color: #fff; font-size: 1.2rem; text-decoration: none;
	opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   Age gate
   -------------------------------------------------------------------------- */
.age-gate {
	position: fixed; inset: 0; z-index: 1000;
	display: grid; place-items: center; padding: 1.6rem;
	background: rgba(18,18,18,.92);
	backdrop-filter: blur(6px);
}
.age-gate[hidden] { display: none; }
.age-gate__box {
	width: min(48rem, 100%);
	padding: 4rem 3.2rem;
	background: var(--ink); color: #fff;
	border: 1px solid rgba(255,255,255,.15);
	text-align: center;
}
.age-gate__logo { height: 4.4rem; width: auto; margin: 0 auto 2.4rem; }
.age-gate h2 { font-size: 2.4rem; }
.age-gate__actions { display: flex; gap: 1.2rem; justify-content: center; margin: 2.4rem 0 1.6rem; }
.age-gate__actions .button { min-width: 12rem; background: #fff; color: var(--ink); border-color: #fff; }
.age-gate__actions .button--secondary { background: transparent; color: #fff; }
.age-gate__remember { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.3rem; cursor: pointer; }
.age-gate__note { font-size: 1.2rem; color: rgba(255,255,255,.6); margin: .4rem 0 0; }
.age-gate__denied { margin-top: 1.6rem; color: #ff8a8a; font-weight: 600; }
body.age-gate-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
	.carousel-track { grid-auto-columns: calc((100% - 3 * 2rem) / 4); }
	.tile-grid { grid-template-columns: repeat(4, 1fr); }
	.site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 989px) {
	:root { --header-h: 6rem; }

	.nav-toggle { display: grid; }

	.primary-nav {
		position: fixed; inset: 0 auto 0 0; z-index: 100;
		width: min(40rem, 88vw);
		overflow-y: auto;
		background: var(--ink);
		transform: translateX(-100%);
		transition: transform .25s ease;
		visibility: hidden;
	}
	.primary-nav.is-open { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
	.primary-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem var(--gutter); border-bottom: 1px solid rgba(255,255,255,.12); }
	.primary-nav__head .site-logo img { height: 2.8rem; width: auto; }
	.primary-nav__foot { display: block; padding: 2rem var(--gutter); }

	.primary-menu { display: block; padding: 0; }
	.primary-menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.08); }
	.primary-menu > li > a { flex: 1; padding: 1.4rem var(--gutter); color: #fff; }
	.submenu-toggle { width: 5.6rem; height: 5.2rem; margin: 0; }
	.submenu-toggle .icon { width: 2rem; height: 2rem; }
	.primary-menu .sub-menu {
		position: static; display: none; flex-basis: 100%;
		min-width: 0; padding: 0 0 1.2rem; border: 0;
		opacity: 1; visibility: visible; transform: none;
	}
	.primary-menu > li:hover > .sub-menu,
	.primary-menu > li:focus-within > .sub-menu { display: none; }
	.primary-menu > li.is-open > .sub-menu { display: block; }
	.primary-menu .sub-menu a { padding: .8rem calc(var(--gutter) + 1.6rem); }

	.promos { grid-template-columns: repeat(2, 1fr); }
	.feature__inner, .image-with-text__inner { grid-template-columns: 1fr; }
	.carousel-track { grid-auto-columns: calc((100% - 2rem) / 2.3); }
	.tile-grid { grid-template-columns: repeat(3, 1fr); }
	.tile-grid--5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 599px) {
	.site-header__brand .site-logo img, .site-header__brand .custom-logo { height: 2.6rem; }
	.header-icon { width: 4rem; }
	.tile-grid, .tile-grid--5, .tile-grid--photos { grid-template-columns: repeat(2, 1fr); }
	.carousel-track { grid-auto-columns: 72%; }
	.carousel-nav { display: none; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.button--wide { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
