/* CloudGrid Store: base styles on every page. Phone first; breakpoints 600 and 960 px. */
:root {
	--cg-ink: var(--wp--preset--color--ink, #161616);
	--cg-soft: var(--wp--preset--color--ink-soft, #595959);
	--cg-base: var(--wp--preset--color--base, #fff);
	--cg-surface: var(--wp--preset--color--surface, #f5f5f4);
	--cg-primary: var(--wp--preset--color--primary, #222);
	--cg-accent: var(--wp--preset--color--accent, #555);
	--cg-accent-soft: var(--wp--preset--color--accent-soft, #ddd);
	--cg-hi: var(--wp--preset--color--highlight, #f2e2c4);
	--cg-line: var(--wp--preset--color--line, #e5e5e5);
	--cg-ok: var(--wp--preset--color--success, #2f6b47);
	--cg-err: var(--wp--preset--color--error, #a8322d);
	--cg-warn: var(--wp--preset--color--warning, #8a5a00);
	--cg-head: var(--wp--preset--font-family--heading, system-ui, sans-serif);
	--cg-body: var(--wp--preset--font-family--body, system-ui, sans-serif);
	--cg-r: var(--wp--custom--radius, 4px);
	--cg-t0: var(--wp--custom--motion--instant, 100ms);
	--cg-t1: var(--wp--custom--motion--fast, 150ms);
	--cg-t2: var(--wp--custom--motion--base, 240ms);
	--cg-t3: var(--wp--custom--motion--slow, 400ms);
	--cg-in: var(--wp--custom--motion--enter, cubic-bezier(.05, .7, .1, 1));
	--cg-out: var(--wp--custom--motion--exit, cubic-bezier(.3, 0, .8, .15));
	--cg-ease: var(--wp--custom--motion--standard, cubic-bezier(.2, 0, .38, .9));
	--cg-hh: 56px;
	--cg-gutter: 16px;
	--cg-wide: 1280px;
	--cg-focus: var(--cg-ink);
	--cg-top: var(--wp-admin--admin-bar--height, 0px);
	--cg-safe: env(safe-area-inset-bottom, 0px);
	--cg-pay-gcash: #007dfe; /* a payment provider's brand colour, used only on its footer card when there is no logo file */
	--cg-studio: var(--wp--preset--color--studio, var(--cg-surface));
	--cg-display: var(--wp--preset--font-size--display, clamp(2.75rem, 1.5rem + 4.5vw, 5rem));
}
@media (min-width: 600px) { :root { --cg-gutter: 24px; } }
@media (min-width: 960px) { :root { --cg-hh: 72px; --cg-gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
/* The scrollbar's lane is always kept (desktop), so a short page, or one with a panel open, never shifts the header sideways. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--cg-bar, 0px) + var(--cg-hh) + 16px); overflow-x: clip; scrollbar-gutter: stable; }
body { margin: 0; background: var(--cg-base); color: var(--cg-ink); font-family: var(--cg-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, picture, svg, video { max-width: 100%; height: auto; }
picture { display: block; }
picture img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--cg-focus); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cg-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 16px; background: var(--cg-base); color: var(--cg-ink); clip: auto; width: auto; height: auto; margin: 0; }
.cg-icon { flex: none; width: 24px; height: 24px; }
@media (max-width: 959px) { html.cg-lock { overflow: hidden; } }

/* The site frame: no gap between header, main and footer; sections space themselves. */
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.wp-site-blocks > * { margin-block: 0 !important; }
.wp-site-blocks > .wp-block-template-part:first-child { display: contents; }
.cg-main { flex: 1 0 auto; padding-block: 24px 64px; }
.cg-main--sections { padding-block: 0; }
.cg-main > * + * { margin-block-start: var(--wp--style--block-gap, 16px); }

/* Type helpers. */
h1, h2, h3, h4, h5, h6 { font-family: var(--cg-head); font-weight: 500; text-wrap: balance; margin-block: 0 .5em; }
p { text-wrap: pretty; }
.cg-kicker { font-family: var(--cg-head); font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--cg-primary); margin: 0 0 8px; }
.cg-lead { font-size: 1.125rem; line-height: 1.5; color: var(--cg-soft); }
/* A small grey line under the lead, for example "Last updated" on a policy page. */
.cg-meta { color: var(--cg-soft); font-size: .875rem; }
/* Lists in text pages (policies) get a little air between points. */
.cg-main--narrow .wp-block-list > li + li { margin-top: 8px; }
.cg-small { font-size: .875rem; color: var(--cg-soft); }
.cg-page-title { margin-block: 8px 16px; }
.cg-display { font-family: var(--cg-head); font-size: var(--cg-display) !important; font-weight: 500; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; margin: 0; }
.cg-h-small { font-size: 1rem !important; letter-spacing: .06em; text-transform: uppercase; }

/* Buttons: theme buttons, block buttons and WooCommerce buttons share one look. */
.cg-btn,
.wp-block-button__link,
.wp-element-button,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px; border: 1px solid var(--cg-primary); border-radius: var(--cg-r);
	background: var(--cg-primary); color: var(--cg-base); font-family: var(--cg-head); font-size: .9375rem; font-weight: 500;
	letter-spacing: .04em; text-transform: uppercase; text-decoration: none; line-height: 1.2; cursor: pointer;
	transition: background-color var(--cg-t1) var(--cg-ease), color var(--cg-t1) var(--cg-ease), border-color var(--cg-t1) var(--cg-ease), transform var(--cg-t0) var(--cg-ease);
}
.cg-btn:hover, .wp-block-button__link:hover, .woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--cg-ink); border-color: var(--cg-ink); color: var(--cg-base); }
.cg-btn:active, .wp-block-button__link:active, .woocommerce .button:active { transform: scale(.97); }
.cg-btn--secondary, .is-style-outline > .wp-block-button__link, .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--cg-ink); border-color: var(--cg-ink); }
.cg-btn--secondary:hover, .is-style-outline > .wp-block-button__link:hover { background: var(--cg-ink); color: var(--cg-base); }
.cg-btn--light { background: var(--cg-base); color: var(--cg-ink); border-color: var(--cg-base); }
.cg-btn[disabled], .cg-btn.is-busy, .woocommerce .button.disabled, .woocommerce button.button:disabled { opacity: .5; cursor: not-allowed; }
.cg-btn.is-busy, .woocommerce button.button.is-busy { opacity: .8; cursor: progress; }
.is-busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cg-spin .7s linear infinite; }
@keyframes cg-spin { to { transform: rotate(1turn); } }
.cg-link { font-family: var(--cg-head); font-weight: 500; font-size: .9375rem; color: var(--cg-ink); display: inline-flex; align-items: center; gap: 6px; }
.cg-link .cg-icon { width: 18px; height: 18px; transition: transform var(--cg-t1) var(--cg-ease); }
.cg-link:hover .cg-icon { transform: translateX(3px); }
.cg-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; border-radius: 50%; cursor: pointer; position: relative; text-decoration: none; }
.cg-iconbtn:hover { background: color-mix(in srgb, var(--cg-ink) 6%, transparent); }

/* Promo bar: one line, reserved height. */
.cg-promo { position: relative; z-index: 46; min-height: 36px; display: flex; align-items: center; justify-content: center; padding: 6px var(--cg-gutter); background: var(--cg-ink); color: var(--cg-base); font-family: var(--cg-head); font-size: .8125rem; letter-spacing: .06em; text-align: center; }
.cg-promo__msg a, .cg-promo__msg > span { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.cg-promo .cg-icon { width: 18px; height: 18px; }
.cg-promo__links { display: none; }
@media (min-width: 960px) {
	/* Desktop: a slim top bar (delivery note in the middle, help links on the right) that stays on screen with the header,
	   so the help links are always there, the main row keeps only the shop, and nothing moves between pages. */
	html:has(.cg-promo) { --cg-bar: 36px; }
	html.cg-promo-off { --cg-bar: 0px; }
	.cg-promo { position: sticky; top: var(--cg-top); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 36px; min-height: 0; padding: 0 max(var(--cg-gutter), calc((100% - var(--cg-wide)) / 2 + var(--cg-gutter))); }
	.cg-promo__msg { grid-column: 2; }
	.cg-promo__links { display: block; grid-column: 3; justify-self: end; }
	.cg-promo__links ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
	.cg-promo__links a { color: inherit; font-size: .75rem; letter-spacing: .08em; text-decoration: none; opacity: .82; transition: opacity var(--cg-t1) var(--cg-ease); }
	.cg-promo__links a:hover, .cg-promo__links a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: .35em; }
}

/* Header. */
.cg-header { position: sticky; top: calc(var(--cg-top) + var(--cg-bar, 0px)); z-index: 50; background: var(--cg-base); border-bottom: 1px solid transparent; transition: border-color var(--cg-t1) var(--cg-ease); }
.cg-header.is-scrolled { border-bottom-color: var(--cg-line); }
.cg-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--cg-hh); max-width: var(--cg-wide); margin: 0 auto; padding: 0 calc(var(--cg-gutter) - 8px); }
.cg-header__menu { justify-self: start; }
.cg-logo { display: inline-flex; align-items: center; color: var(--cg-ink); text-decoration: none; }
.cg-logo img { height: 40px; width: auto; }
.cg-logo__text { font-family: var(--cg-head); font-size: 1.375rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.cg-header__tools { justify-self: end; display: flex; align-items: center; }
.cg-bag__count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--cg-primary); color: var(--cg-base); font: 600 11px/18px var(--cg-head); text-align: center; }
.cg-bag__count.is-bump { animation: cg-bump var(--cg-t1) var(--cg-ease); }
@keyframes cg-bump { 50% { transform: scale(1.15); } }
/* Quick add: the photo flying to the bag, the bag giving a little jump as it lands, and a short note at the bottom of the screen. */
.cg-fly { position: fixed; z-index: 70; object-fit: cover; pointer-events: none; will-change: transform; }
.cg-bag.is-got > .cg-icon { animation: cg-got 520ms var(--cg-in); }
@keyframes cg-got { 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(.94) rotate(3deg); } }
.cg-toast { position: fixed; left: 50%; bottom: calc(18px + var(--cg-safe)); z-index: 65; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: var(--cg-ink); color: var(--cg-base); font: 500 .9375rem/1.3 var(--cg-head); box-shadow: 0 12px 32px -12px rgb(0 0 0 / .45); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity var(--cg-t2) var(--cg-ease), transform var(--cg-t2) var(--cg-out); }
.cg-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition: opacity var(--cg-t2) var(--cg-ease), transform 360ms var(--cg-in); }
.cg-toast .cg-icon { flex: none; width: 20px; height: 20px; }
.cg-toast span { min-width: 0; }
.cg-toast strong { font-weight: 600; }
.cg-toast a { flex: none; margin-left: 4px; color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
body:has(.cg-sticky.is-on) .cg-toast { bottom: calc(92px + var(--cg-safe)); }
@media (prefers-reduced-motion: reduce) { .cg-bag.is-got > .cg-icon { animation: none; } .cg-toast { transition-duration: 1ms; } }
.cg-hide-sm { display: none; }

/* Menu: a drawer on phones, inline with dropdowns from 960 px. */
.cg-nav { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(86vw, 380px); display: flex; flex-direction: column; background: var(--cg-base); padding: 0 0 calc(24px + var(--cg-safe)); overflow-y: auto; overscroll-behavior: contain; transform: translateX(-100%); visibility: hidden; transition: transform 180ms var(--cg-out), visibility 0s linear 180ms; }
.cg-nav.is-open { transform: none; visibility: visible; transition: transform var(--cg-t2) var(--cg-in), visibility 0s; }
.cg-nav__head { position: sticky; top: 0; z-index: 1; flex: none; display: flex; align-items: center; justify-content: space-between; height: var(--cg-hh); padding: 0 8px 0 var(--cg-gutter); background: var(--cg-base); border-bottom: 1px solid var(--cg-line); }
.cg-nav__logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--cg-ink); }
.cg-nav__logo img { display: block; height: 34px; width: auto; }
/* On phones the drawer below replaces the inline list (the list is the desktop menu). */
.cg-nav__list { display: none; list-style: none; margin: 0; padding: 0; }
.cg-nav__link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--cg-gutter); color: var(--cg-ink); text-decoration: none; font-family: var(--cg-head); font-size: 1.0625rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; list-style: none; }
.cg-nav__link::-webkit-details-marker { display: none; }
.cg-nav__group[open]:not(.is-closing) > summary .cg-icon { transform: rotate(180deg); }
.cg-nav__group summary .cg-icon { transition: transform var(--cg-t1) var(--cg-ease); width: 20px; height: 20px; }
.cg-nav__sub { list-style: none; margin: 0; padding: 0 0 12px; }
.cg-nav__sub a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--cg-gutter) 0 calc(var(--cg-gutter) + 12px); color: var(--cg-ink); text-decoration: none; }
/* "Shop all" closes each group: last, a touch bolder, with an arrow. */
.cg-nav__all a { gap: 8px; font-weight: 600; }
.cg-nav__all .cg-icon { width: 16px; height: 16px; transition: transform var(--cg-t1) var(--cg-ease); }
.cg-nav__all a:hover .cg-icon { transform: translateX(3px); }
/* The mega panel is a plain group in the phone menu (its photos are for desktop). */
.cg-mega, .cg-mega__in { display: contents; }
.cg-mega__cards { display: none; }
.cg-nav__item--util .cg-nav__link { font-family: var(--cg-body); font-size: 1rem; text-transform: none; letter-spacing: 0; min-height: 44px; color: var(--cg-soft); }
.cg-nav__item.is-first-util { margin-top: 12px; border-top: 1px solid var(--cg-line); padding-top: 12px; }
/* Phone menu body: the shopper tabs and their links, every category, sizes and colours, the help pages, then the social bar. */
.cg-drawer { flex: none; }
.cg-dtabs { position: relative; flex: none; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-bottom: 1px solid var(--cg-line); }
.cg-dtabs__tab { height: 52px; padding: 0 4px; border: 0; background: none; color: var(--cg-soft); font: 500 .875rem/1 var(--cg-head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color var(--cg-t1) var(--cg-ease); }
.cg-dtabs__tab[aria-selected="true"] { color: var(--cg-ink); }
.cg-dtabs__tab:focus-visible { outline: 2px solid var(--cg-focus); outline-offset: -6px; }
.cg-dtabs__bar { position: absolute; left: 0; bottom: -1px; width: calc(100% / var(--n, 3)); height: 2px; transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 380ms var(--cg-in); pointer-events: none; }
.cg-dtabs__bar::before { content: ""; position: absolute; inset: 0 26%; border-radius: 2px; background: var(--cg-ink); }
.cg-dpanels { flex: none; overflow: hidden; touch-action: pan-y; }
html.js .cg-dpanel:not(.is-on) { display: none; }
.cg-dlinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; list-style: none; margin: 0; padding: 10px var(--cg-gutter) 12px; }
.cg-dlinks a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--cg-ink); text-decoration: none; font-size: .9375rem; line-height: 1.25; }
.cg-dlinks a[aria-current] { font-weight: 600; }
.cg-dlinks__all { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--cg-line); }
.cg-dlinks__all a { min-height: 50px; font-weight: 600; }
.cg-dlinks__all .cg-icon { width: 16px; height: 16px; transition: transform var(--cg-t1) var(--cg-ease); }
.cg-dlinks__all a:hover .cg-icon { transform: translateX(3px); }
.cg-dacc { flex: none; border-block: 1px solid var(--cg-line); }
.cg-dacc__head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--cg-gutter); font: 500 .875rem/1 var(--cg-head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.cg-dacc__head::-webkit-details-marker { display: none; }
.cg-dacc__head .cg-icon { width: 20px; height: 20px; transition: transform var(--cg-t1) var(--cg-ease); }
.cg-dacc[open]:not(.is-closing) > summary .cg-icon { transform: rotate(180deg); }
.cg-dacc__body .cg-dlinks { padding-top: 0; }
.cg-dshop { flex: none; padding: 20px var(--cg-gutter) 4px; }
.cg-dlabel { margin: 0 0 14px; font: 500 .8125rem/1 var(--cg-head); letter-spacing: .1em; text-transform: uppercase; }
.cg-dsizes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cg-dsizes a { display: inline-grid; place-items: center; min-width: 48px; height: 40px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--cg-ink) 22%, transparent); border-radius: var(--cg-r); color: var(--cg-ink); text-decoration: none; font: 500 .875rem/1 var(--cg-head); transition: border-color var(--cg-t1) var(--cg-ease), background-color var(--cg-t1) var(--cg-ease), color var(--cg-t1) var(--cg-ease); }
.cg-dsizes a:hover { border-color: var(--cg-ink); }
.cg-dsizes a:active { background: var(--cg-ink); border-color: var(--cg-ink); color: var(--cg-base); }
.cg-dcolors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 4px; list-style: none; margin: 0; padding: 0; }
.cg-dcolors a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--cg-soft); text-decoration: none; font-size: .75rem; line-height: 1.2; text-align: center; -webkit-tap-highlight-color: transparent; transition: color var(--cg-t1) var(--cg-ease); }
.cg-dcolors__dot { width: 34px; height: 34px; border-radius: 50%; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); transition: box-shadow var(--cg-t1) var(--cg-ease), transform var(--cg-t1) var(--cg-ease); }
.cg-dcolors a:hover { color: var(--cg-ink); }
.cg-dcolors a:hover .cg-dcolors__dot { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1), 0 0 0 2px var(--cg-base), 0 0 0 3px var(--cg-ink); }
.cg-dcolors a:active .cg-dcolors__dot { transform: scale(.94); }
.cg-dpages { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; list-style: none; margin: 20px 0 0; padding: 8px var(--cg-gutter); border-top: 1px solid var(--cg-line); }
.cg-dpages a { display: flex; align-items: center; min-height: 44px; color: var(--cg-soft); text-decoration: none; font-size: .9375rem; }
.cg-dpages a:hover { color: var(--cg-ink); }
.cg-nav__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 8px 8px 0 var(--cg-gutter); border-top: 1px solid var(--cg-line); }
.cg-nav__follow { font: 500 .8125rem/1 var(--cg-head); letter-spacing: .1em; text-transform: uppercase; color: var(--cg-soft); }
.cg-scrim { position: fixed; inset: 0; z-index: 55; background: rgb(22 25 34 / .45); opacity: 0; transition: opacity 180ms var(--cg-out); pointer-events: none; }
.cg-scrim.is-on { opacity: 1; pointer-events: auto; transition: opacity var(--cg-t2) var(--cg-in); }

@media (min-width: 600px) {
	.cg-hide-sm { display: inline-grid; }
}
@media (min-width: 960px) {
	.cg-header__bar { grid-template-columns: auto 1fr auto; gap: 24px; }
	.cg-header__menu { display: none; }
	.cg-logo img { height: 48px; }
	.cg-nav { position: static; width: auto; transform: none; visibility: visible; background: none; padding: 0; overflow: visible; transition: none; height: 100%; }
	.cg-nav__head, .cg-nav__foot, .cg-drawer { display: none; }
	.cg-nav__list { display: flex; align-items: stretch; height: 100%; padding: 0; gap: 4px; }
	.cg-nav__item { position: relative; display: flex; align-items: center; }
	.cg-nav__item.is-first-util { margin: 0 0 0 auto; border: 0; padding: 0; }
	.cg-nav__link { min-height: 44px; padding: 0 12px; font-size: .875rem; letter-spacing: .08em; border-radius: var(--cg-r); }
	.cg-nav__link:hover { color: var(--cg-primary); }
	.cg-nav__item--util .cg-nav__link { font-size: .9375rem; color: var(--cg-ink); }
	.cg-nav__item--util.is-in-bar { display: none; }
	html.cg-promo-off .cg-nav__item--util.is-in-bar { display: flex; }
	.cg-nav__group summary { gap: 4px; justify-content: flex-start; }
	.cg-nav__group summary .cg-icon { width: 16px; height: 16px; }
	.cg-nav__sub { position: absolute; top: calc(100% + 12px); left: 0; min-width: 240px; padding: 12px 0; background: var(--cg-base); border: 1px solid var(--cg-line); border-radius: var(--cg-r); box-shadow: 0 12px 32px rgb(22 25 34 / .08); animation: cg-drop var(--cg-t2) var(--cg-in); }
	.cg-nav__sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
	.cg-nav__sub a { min-height: 40px; padding: 0 20px; }
	.cg-nav__sub a:hover { background: var(--cg-surface); }
	.cg-nav__all { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--cg-line); }
	/* Mega panel: the full width under the header, links on the left and a photo per card on the right. */
	.cg-nav__item.is-mega { position: static; }
	.cg-mega { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--cg-base); border-top: 1px solid var(--cg-line); box-shadow: 0 28px 48px -12px rgb(22 25 34 / .14); animation: cg-drop var(--cg-t2) var(--cg-in); }
	.cg-mega__in { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr); gap: 48px; max-width: var(--cg-wide); margin: 0 auto; padding: 28px var(--cg-gutter) 32px; }
	.is-mega .cg-nav__sub { position: static; min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; animation: none; align-self: start; }
	.is-mega .cg-nav__sub::before { content: none; }
	.is-mega .cg-nav__sub a { min-height: 38px; padding: 0; font-size: .9375rem; border-radius: 0; }
	.is-mega .cg-nav__sub a:hover { background: none; color: var(--cg-primary); }
	.is-mega .cg-nav__all { margin-top: 10px; padding-top: 10px; }
	.cg-mega__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
	.cg-mega__card { display: block; color: var(--cg-ink); text-decoration: none; }
	.cg-mega__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--cg-r); background: var(--cg-surface); }
	.cg-mega__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 700ms var(--cg-ease), opacity 480ms var(--cg-ease); }
	html.js .cg-mega__img img:not(.is-in) { opacity: .01; }
	.cg-mega__card:hover .cg-mega__img img { transform: scale(1.04); }
	.cg-mega__label { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--cg-head); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
	.cg-mega__label .cg-icon { width: 16px; height: 16px; transition: transform var(--cg-t1) var(--cg-ease); }
	.cg-mega__card:hover .cg-mega__label .cg-icon { transform: translateX(3px); }
	.cg-scrim { display: none; }
}
@keyframes cg-drop { from { opacity: 0; transform: translateY(-8px); } }

/* Search panel. */
.cg-search { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: var(--cg-base); color: var(--cg-ink); position: fixed; inset: var(--cg-top) 0 auto; }
.cg-search[open] { animation: cg-search-in var(--cg-t3) var(--cg-in); }
.cg-search.is-closing { animation: cg-search-out var(--cg-t2) var(--cg-out) forwards; }
.cg-search::backdrop { background: rgb(22 25 34 / .45); animation: cg-fade-in var(--cg-t3) var(--cg-in); }
.cg-search.is-closing::backdrop { animation: cg-fade-out var(--cg-t2) var(--cg-out) forwards; }
@keyframes cg-search-in { from { opacity: 0; transform: translateY(-20px); } }
@keyframes cg-search-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes cg-fade-in { from { opacity: 0; } }
@keyframes cg-fade-out { to { opacity: 0; } }
.cg-search__form { display: flex; align-items: center; gap: 8px; max-width: 760px; height: calc(var(--cg-hh) + 16px); margin: 0 auto; padding: 0 8px 0 var(--cg-gutter); }
.cg-search__form input[type=search] { flex: 1; min-width: 0; height: 48px; border: 0; border-bottom: 1px solid var(--cg-soft); background: none; font-size: 1.125rem; padding: 0 4px; border-radius: 0; }
.cg-search__form input[type=search]:focus { outline: none; border-bottom-color: var(--cg-ink); }
.cg-search__chips { max-width: 760px; margin: 0 auto; padding: 0 var(--cg-gutter) 20px; }

/* Chips (categories, suggestions). */
.cg-chips-wrap { margin-inline: calc(var(--cg-gutter) * -1); }
.cg-chips { display: flex; gap: 8px; list-style: none; margin: 0; padding: 4px var(--cg-gutter); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.cg-chips::-webkit-scrollbar { display: none; }
.cg-chips li { flex: none; scroll-snap-align: start; }
.cg-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid color-mix(in srgb, var(--cg-ink) 22%, transparent); border-radius: 999px; color: var(--cg-ink); background: var(--cg-base); text-decoration: none; font-family: var(--cg-head); font-size: .875rem; font-weight: 500; letter-spacing: .03em; white-space: nowrap; transition: background-color var(--cg-t1) var(--cg-ease), border-color var(--cg-t1) var(--cg-ease); }
.cg-chip:hover { border-color: var(--cg-ink); }
.cg-chip.is-on { background: var(--cg-ink); border-color: var(--cg-ink); color: var(--cg-base); }
@media (min-width: 960px) { .cg-chips-wrap { margin-inline: 0; } .cg-chips { flex-wrap: wrap; overflow: visible; padding-inline: 0; } }

/* Social, Messenger, contact lines. */
.cg-social { display: flex; gap: 4px; }
.cg-social__link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; }
.cg-social__link:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.cg-contact, .cg-promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cg-contact li, .cg-promises li { display: flex; gap: 12px; align-items: flex-start; }
.cg-contact .cg-icon, .cg-promises .cg-icon { color: var(--cg-primary); width: 22px; height: 22px; margin-top: 1px; }
.cg-contact a { color: inherit; }
.cg-contact__label { display: block; font-family: var(--cg-head); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cg-soft); }

/* Footer. */
.cg-footer { --cg-focus: var(--cg-base); background: var(--cg-ink); color: color-mix(in srgb, var(--cg-base) 86%, var(--cg-ink)); padding: 48px var(--cg-gutter) 0; margin-top: auto; }
.cg-footer a { color: inherit; text-decoration: none; }
.cg-footer a:hover { color: var(--cg-base); text-decoration: underline; }
.cg-footer__inner { max-width: var(--cg-wide); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.cg-footer__brand { grid-column: 1 / -1; display: grid; gap: 16px; justify-items: start; }
.cg-footer__logo { height: 44px; width: auto; filter: brightness(0) invert(1); }
.cg-footer__blurb { margin: 0; max-width: 34ch; font-size: .9375rem; line-height: 1.55; }
.cg-footer .cg-btn--secondary { color: var(--cg-base); border-color: color-mix(in srgb, var(--cg-base) 60%, transparent); }
.cg-footer .cg-btn--secondary:hover { background: var(--cg-base); color: var(--cg-ink); }
.cg-footer__title { font-family: var(--cg-head); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cg-base); margin: 0 0 12px; }
.cg-footer__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cg-footer__group a { display: inline-flex; align-items: center; min-height: 36px; font-size: .9375rem; }
/* The row under the links: payment cards (from 960 px) and the social links. Phones: the social links, centred. */
.cg-footer__row { max-width: var(--cg-wide); margin: 40px auto 0; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; }
.cg-footer__row .cg-paycards { display: none; }
.cg-footer__row .cg-social { gap: 12px; }
.cg-footer .cg-social__link { color: var(--cg-base); }
/* Payment cards: small white cards, a logo or an icon with a short word, like card badges at checkout. */
.cg-paycards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cg-paycard { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 38px; height: 24px; padding: 0 6px; border-radius: 3px; background: #fff; color: #1b1b1d; font: 700 .625rem/1 var(--cg-head); letter-spacing: .06em; text-transform: uppercase; overflow: hidden; }
.cg-paycard img { display: block; height: 14px; width: auto; }
.cg-paycard--fill { padding: 0; }
.cg-paycard--fill img { height: 24px; }
.cg-paycard .cg-icon { width: 14px; height: 14px; }
.cg-paycard--gcash { color: var(--cg-pay-gcash); }
/* The legal band: a shade darker, full width; "© year name | All Rights Reserved" and Cookies | Privacy | Terms. */
.cg-footer__legal { margin: 0 calc(var(--cg-gutter) * -1); padding: 18px var(--cg-gutter) calc(18px + var(--cg-safe)); background: color-mix(in srgb, var(--cg-ink) 72%, #000); color: color-mix(in srgb, var(--cg-base) 64%, transparent); font-size: .75rem; line-height: 1.4; }
.cg-footer__legal-in { max-width: var(--cg-wide); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cg-footer__copy { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; }
.cg-footer__links { order: -1; display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.cg-footer__links li, .cg-footer__copy > span { display: inline-flex; align-items: center; }
.cg-footer__links li + li::before, .cg-footer__copy > span + span::before { content: ""; width: 1px; height: 12px; margin: 0 14px; background: currentColor; opacity: .45; }
.cg-footer__links a { display: inline-flex; align-items: center; min-height: 32px; }
.cg-footer__paysm { padding-top: 4px; }
@media (min-width: 960px) {
	.cg-footer { padding-top: 72px; }
	.cg-footer__inner { grid-template-columns: 1.4fr repeat(3, 1fr); }
	.cg-footer__brand { grid-column: auto; }
	.cg-footer__row { justify-content: space-between; margin-top: 56px; padding-bottom: 32px; }
	.cg-footer__row .cg-paycards { display: flex; justify-content: flex-start; }
	.cg-footer__legal-in { flex-direction: row; justify-content: space-between; text-align: left; }
	.cg-footer__links { order: 0; }
	.cg-footer__paysm { display: none; }
}

/* Checkout header. */
.cg-header--checkout .cg-header__bar { grid-template-columns: 1fr auto 1fr; }
.cg-checkout-back { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; color: var(--cg-ink); text-decoration: none; font-family: var(--cg-head); font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; }
.cg-checkout-back .cg-icon { transform: rotate(180deg); width: 18px; height: 18px; }
.cg-checkout-secure { justify-self: end; display: inline-flex; align-items: center; gap: 6px; padding-right: 8px; font-size: .8125rem; color: var(--cg-soft); }
.cg-checkout-secure .cg-icon { color: var(--cg-ok); width: 20px; height: 20px; }
@media (max-width: 599px) { .cg-checkout-secure span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Forms (shared). */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea {
	min-height: 48px; padding: 10px 14px; border: 1px solid var(--cg-soft); border-radius: var(--cg-r); background: var(--cg-base); font-size: 1rem; max-width: 100%;
}
textarea { min-height: 120px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cg-focus); outline-offset: 1px; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23161922' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.wp-block-search__inside-wrapper { border-radius: var(--cg-r); }
.wp-block-search__input { min-height: 48px; }

/* Notices: a quiet card with a round icon, the message, and its action (View bag, Undo) as a small pill on the right; they ease in. */
body .woocommerce-message, body .woocommerce-info, body .woocommerce-error, body .wc-block-components-notice-banner.wc-block-components-notice-banner {
	display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 16px; padding: 12px 14px 12px 12px; list-style: none;
	border: 1px solid var(--cg-line); border-radius: 12px; background: var(--cg-base); color: var(--cg-ink);
	box-shadow: 0 12px 32px -20px color-mix(in srgb, var(--cg-ink) 55%, transparent);
	font-size: .9375rem; line-height: 1.45; animation: cg-notice-in 420ms var(--cg-in) both;
}
body .woocommerce-error { border-color: color-mix(in srgb, var(--cg-err) 35%, var(--cg-line)); }
body .wc-block-components-notice-banner:focus, body .woocommerce-message:focus, body .woocommerce-error:focus, body .woocommerce-info:focus { outline: none; }
body .woocommerce-message::before, body .woocommerce-info::before, body .woocommerce-error::before { display: none; }
body .wc-block-components-notice-banner > svg { flex: none; width: 32px; height: 32px; padding: 6px; margin: 0; border-radius: 50%; background: color-mix(in srgb, var(--cg-ok) 14%, var(--cg-base)); fill: var(--cg-ok); }
body .wc-block-components-notice-banner.is-info > svg { background: var(--cg-surface); fill: var(--cg-ink); }
body .wc-block-components-notice-banner.wc-block-components-notice-banner.is-error { border-color: color-mix(in srgb, var(--cg-err) 35%, var(--cg-line)); }
body .wc-block-components-notice-banner.is-error > svg { background: color-mix(in srgb, var(--cg-err) 12%, var(--cg-base)); fill: var(--cg-err); }
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content { flex: 1 1 200px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; color: var(--cg-ink); }
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content ul { margin: 0; padding-left: 18px; }
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward,
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content a.button,
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .restore-item,
body .woocommerce-message .button {
	order: 2; float: none; display: inline-flex; align-items: center; min-height: 36px; margin: 0; padding: 0 16px !important; opacity: 1;
	border: 1px solid var(--cg-ink); border-radius: 999px !important; background: transparent !important; color: var(--cg-ink) !important;
	font: 500 .875rem/1 var(--cg-head); letter-spacing: .02em; text-transform: none; text-decoration: none; white-space: nowrap;
	transition: background-color var(--cg-t1) var(--cg-ease), color var(--cg-t1) var(--cg-ease);
}
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:hover,
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content a.button:hover,
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .restore-item:hover,
body .woocommerce-message .button:hover { background: var(--cg-ink) !important; color: var(--cg-base) !important; }
@keyframes cg-notice-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { body .woocommerce-message, body .woocommerce-info, body .woocommerce-error, body .wc-block-components-notice-banner { animation: none; } }

/* Text pages. */
.cg-main .wp-block-details { border-bottom: 1px solid var(--cg-line); padding: 0; }
.cg-main .wp-block-details summary, .cg-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; font-family: var(--cg-head); font-weight: 500; font-size: 1.0625rem; list-style: none; }
.cg-main .wp-block-details summary::-webkit-details-marker, .cg-acc summary::-webkit-details-marker { display: none; }
.cg-main .wp-block-details summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--cg-t1) var(--cg-ease); }
.cg-main .wp-block-details[open] summary::after { transform: rotate(225deg); }
.cg-main .wp-block-details[open]:not(.cg-acc--anim) > :not(summary) { animation: cg-rise var(--cg-t1) var(--cg-in); }
.cg-main .wp-block-details > :not(summary) { margin: 0 0 16px; color: var(--cg-soft); }
.cg-main .wp-block-details > .cg-acc__body { margin: 0; }
.cg-main .wp-block-details .cg-acc__inner { padding-bottom: 16px; color: var(--cg-soft); }
/* Accordions the theme script runs (product details, FAQ): the body eases open and closed through a grid row, no jump. */
.cg-acc--anim .cg-acc__body { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows var(--cg-t2) var(--cg-ease), opacity var(--cg-t2) var(--cg-ease); }
.cg-acc--anim .cg-acc__inner { overflow: hidden; min-height: 0; }
.cg-acc--anim.is-opening .cg-acc__body, .cg-acc--anim.is-closing .cg-acc__body { grid-template-rows: 0fr; opacity: 0; }
@keyframes cg-rise { from { opacity: 0; transform: translateY(8px); } }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--cg-line); padding: 10px 12px; text-align: left; }
.wp-block-table thead th { background: var(--cg-surface); font-family: var(--cg-head); font-weight: 500; }
.wp-block-table { overflow-x: auto; }

/* Page curtain: the brand mark on an opaque ground over the content; the promo bar and the header stay above it. The theme script fades it in on a same-site click; the next page starts
   under it (html.cg-loading, set before paint), then lifts it and the content rises in. */
.cg-loader { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding-top: calc(var(--cg-top) + var(--cg-hh) + var(--cg-promo-h, 36px)); background: var(--cg-base); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 380ms var(--cg-ease), visibility 0s linear 380ms; }
.cg-loader.is-on, html.cg-loading .cg-loader { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 160ms var(--cg-ease); }
html.cg-loading .cg-loader { transition: none; }
html.cg-lifting .cg-loader { transition: opacity 380ms var(--cg-ease), visibility 0s linear 380ms; }
/* Nothing in the header moves when the page changes: leaving a page where the promo bar has scrolled away, the next page starts
   without it (html.cg-promo-off, set before paint), so the header sits at the very top on both; an open menu fades as the curtain comes in. */
html.cg-promo-off { --cg-promo-h: 0px; }
html.cg-promo-off .cg-promo { display: none; }
html.cg-leaving .cg-header { border-bottom-color: transparent; }
html.cg-leaving .cg-nav__sub, html.cg-leaving .cg-mega { opacity: 0; transition: opacity 120ms var(--cg-ease); }
/* The browser keeps the outgoing page on screen until the next one can paint, then swaps in one frame with no animation: both show
   the same header over the same curtain at that moment, so the swap is invisible (no blank frame between pages). */
@view-transition { navigation: auto; }
::view-transition-group(*), ::view-transition-image-pair(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
.cg-loader img { width: 56px; height: 56px; animation: cg-breathe 1.2s var(--cg-ease) infinite; }
@keyframes cg-breathe { 50% { transform: scale(1.1); opacity: .55; } }

/* Entrances: the first screen of every page settles in once, top to bottom, from its first paint, or, after a page change,
   from the moment the curtain lifts (paused under it). Plain CSS, so nothing waits for the theme script; each piece starts at a
   hint of opacity rather than none, so the browser still counts its first paint and page-speed scores stay the same. Once the
   theme script marks the page html.cg-entered, nothing replays (sorting, cart and checkout refreshes, panels).
   --cg-e is each piece's place in the order. */
@keyframes cg-enter { from { opacity: .01; transform: translateY(14px); } }
@keyframes cg-enter-fade { from { opacity: .01; } }
.cg-shop > .cg-crumbs, .cg-pdp > .cg-crumbs { --cg-e: 0; }
.cg-shop > .cg-shop__head { --cg-e: 1; }
.cg-shop > .cg-shop__bar { --cg-e: 2; }
.cg-pdp__media { --cg-e: 1; }
.cg-pdp__info > :nth-child(1) { --cg-e: 2; }
.cg-pdp__info > :nth-child(2) { --cg-e: 3; }
.cg-pdp__info > :nth-child(3) { --cg-e: 4; }
.cg-pdp__info > :nth-child(4) { --cg-e: 5; }
.cg-pdp__info > :nth-child(5) { --cg-e: 6; }
.cg-pdp__info > :nth-child(6) { --cg-e: 7; }
.cg-main:not(.cg-main--sections, .cg-shop, .cg-pdp) > :nth-child(2) { --cg-e: 1; }
.cg-main:not(.cg-main--sections, .cg-shop, .cg-pdp) > :nth-child(3) { --cg-e: 2; }
.cg-main:not(.cg-main--sections, .cg-shop, .cg-pdp) > :nth-child(4) { --cg-e: 3; }
.cg-hero__text > :nth-child(1) { --cg-e: 1; }
.cg-hero__text > :nth-child(2) { --cg-e: 2; }
.cg-hero__text > :nth-child(3) { --cg-e: 3; }
.cg-hero__text > :nth-child(4) { --cg-e: 4; }
html.js:not(.cg-entered) :is(
	.cg-shop > .cg-crumbs, .cg-shop > .cg-shop__head, .cg-shop > .cg-shop__bar,
	.cg-pdp > .cg-crumbs, .cg-pdp__info > :nth-child(-n+6),
	.cg-main:not(.cg-main--sections, .cg-shop, .cg-pdp) > :nth-child(-n+4),
	.cg-hero__text > :nth-child(-n+4)
) { animation: cg-enter 560ms var(--cg-in) both; animation-delay: calc(var(--cg-e, 0) * 70ms); }
/* The big photos (a product's gallery, a page's opening photo band) ease in only after a page change, under the lifting
   curtain; on a first visit they show at once, so the page is complete as early as before (speed scores unchanged). */
html.cg-came:not(.cg-entered) .cg-pdp__media { animation: cg-enter-fade 640ms var(--cg-in) both; animation-delay: 70ms; }
html.cg-came:not(.cg-entered) .cg-main--sections > .wp-block-post-content > :first-child:not(.cg-hero) { animation: cg-enter 560ms var(--cg-in) both; }
/* Product lists: the cards on screen follow the heading and filters, one after another, left to right. */
.cg-shop .cg-cards > li:nth-child(1) { --cg-n: 0; } .cg-shop .cg-cards > li:nth-child(2) { --cg-n: 1; }
.cg-shop .cg-cards > li:nth-child(3) { --cg-n: 2; } .cg-shop .cg-cards > li:nth-child(4) { --cg-n: 3; }
.cg-shop .cg-cards > li:nth-child(5) { --cg-n: 4; } .cg-shop .cg-cards > li:nth-child(6) { --cg-n: 5; }
.cg-shop .cg-cards > li:nth-child(7) { --cg-n: 6; } .cg-shop .cg-cards > li:nth-child(8) { --cg-n: 7; }
.cg-shop .cg-cards > li:nth-child(9) { --cg-n: 8; } .cg-shop .cg-cards > li:nth-child(10) { --cg-n: 9; }
.cg-shop .cg-cards > li:nth-child(11) { --cg-n: 10; } .cg-shop .cg-cards > li:nth-child(12) { --cg-n: 11; }
html.js:not(.cg-entered) .cg-shop .cg-cards > li:nth-child(-n+12):not(.cg-rise) { animation: cg-enter 560ms var(--cg-in) both; animation-delay: calc(180ms + var(--cg-n, 0) * 55ms); }
/* Under the curtain the entrances wait; they play as it lifts. */
html.cg-loading .cg-main * { animation-play-state: paused !important; }
/* Cards further down rise in, row by row, as they scroll into view (marked by the theme script, never on screen at the time). */
.cg-rise { transition: opacity 520ms var(--cg-in), transform 520ms var(--cg-in); transition-delay: calc(var(--cg-i, 0) * 70ms); }
.cg-pending.cg-rise { opacity: 0; transform: translateY(20px); }

/* Motion presets: hidden only after the theme script marks an element below the fold as pending. */
.cg-pending.cg-reveal, .cg-pending.cg-zoom { opacity: 0; transform: translateY(24px); }
.cg-pending.cg-reveal-fade { opacity: 0; }
.cg-pending.cg-stagger > * { opacity: 0; transform: translateY(16px); }
.cg-zoom.cg-pending img { transform: scale(1.04); }
.cg-reveal, .cg-reveal-fade, .cg-zoom, .cg-stagger > * { transition: opacity var(--cg-t3) var(--cg-in), transform var(--cg-t3) var(--cg-in); transition-delay: calc(var(--cg-i, 0) * 50ms); }
.cg-zoom img { transition: transform 600ms var(--cg-in); }

/* Drifting chip rows: each row slides sideways on a loop (the same list printed --cg-copies times) at its own pace;
   the theme script eases a row to a stop on hover, focus or touch so a chip can be tapped. Static rows under reduced motion. */
.cg-drift { display: grid; gap: 10px; overflow: hidden; padding-block: 4px; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.cg-drift__row { display: flex; width: max-content; gap: 8px; animation: cg-drift var(--cg-drift-dur, 70s) linear infinite; }
.cg-drift__row--back { animation-direction: reverse; }
.cg-drift.is-js { touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
.cg-drift.is-js .cg-drift__row { animation: none; will-change: transform; }
.cg-drift.is-dragging { cursor: grabbing; }
.cg-drift.is-dragging .cg-chip { pointer-events: none; }
.cg-drift__row > ul { display: flex; flex: none; gap: 8px; list-style: none; margin: 0; padding: 0; }
@keyframes cg-drift { to { transform: translateX(calc(-100% / var(--cg-copies, 4))); } }

/* Masked line reveal: each .cg-mask__l line rises from behind its own edge, once, when the block enters the screen. */
.cg-mask__l { display: block; overflow: hidden; padding: .04em 0 .12em; margin: -.04em 0 -.12em; }
.cg-mask__l > span { display: block; }
.cg-pending.cg-mask .cg-mask__l > span { transform: translateY(110%); }
.cg-mask .cg-mask__l > span { transition: transform var(--cg-t3) var(--cg-in); transition-delay: calc(var(--cg-i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
	.is-busy::after { animation-duration: .7s !important; animation-iteration-count: infinite !important; }
	.cg-loader img { animation: none; }
	html.js:not(.cg-entered) .cg-main * { animation-name: none !important; }
	.cg-pending.cg-rise { transform: none; }
	.cg-rise { transition: opacity 150ms linear; transition-delay: 0s; }
	.cg-pending.cg-reveal, .cg-pending.cg-zoom, .cg-pending.cg-stagger > * { transform: none; }
	.cg-zoom.cg-pending img { transform: none; }
	.cg-drift { -webkit-mask-image: none; mask-image: none; padding-inline: var(--cg-gutter); }
	.cg-drift__row { animation: none; width: auto; flex-wrap: wrap; }
	.cg-drift__row > ul { flex-wrap: wrap; }
	.cg-drift__row > ul[aria-hidden] { display: none; }
	.cg-pending.cg-mask .cg-mask__l > span { transform: none; opacity: 0; }
	.cg-mask .cg-mask__l > span { transition: opacity 150ms linear; transition-delay: 0s; }
	.cg-acc--anim .cg-acc__body { transition: opacity 150ms linear; }
	.cg-reveal, .cg-reveal-fade, .cg-zoom, .cg-stagger > *, .cg-zoom img { transition: opacity 150ms linear; transition-delay: 0s; }
	.cg-nav, .cg-nav.is-open { transition: visibility 0s, opacity 150ms linear; transform: none; opacity: 0; }
	.cg-nav.is-open { opacity: 1; }
	@media (min-width: 960px) { .cg-nav { opacity: 1; } }
}

/* WooCommerce form rows outside the bag and checkout (order tracking, login on pages). */
.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 500; }
.woocommerce form .form-row .input-text { width: 100%; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; }
.woocommerce .clear { clear: both; }
.cg-main .wp-block-post-content > h2:not(:first-child) { margin-top: 2em; }
.cg-main .wp-block-post-content > h3:not(:first-child) { margin-top: 1.5em; }

/* Chip rows scroll inside their column; they never widen the page (grid and flex items default to min-width: auto). */
.cg-chips-wrap { min-width: 0; max-width: 100vw; }
.cg-shop__head { grid-template-columns: minmax(0, 1fr); }
.cg-shop__head > *, .cg-main > *, .wp-block-group > .cg-chips-wrap { min-width: 0; }

/* Dialogs (photo spotlight, sold-out sheet): the dialog fades, its box slides; the page behind does not scroll. */
html.cg-lock { overflow: hidden; }
.cg-dlg { padding: 0; border: 0; max-width: none; max-height: none; color: var(--cg-ink); background: transparent; opacity: 0; transition: opacity var(--cg-t2) var(--cg-ease); }
.cg-dlg.is-open { opacity: 1; }
.cg-dlg.is-closing { opacity: 0; transition-timing-function: var(--cg-out); }
.cg-dlg::backdrop { background: transparent; }
@media (prefers-reduced-motion: reduce) { .cg-dlg, .cg-dlg * { transition-duration: 1ms !important; animation: none !important; } }

/* Side panels (bag, shop filters): the panel itself never fades; it slides in whole from the right edge while the page behind
   dims, and slides back out the same way while the dim lifts; the dialog closes only once it is off screen. The head and foot
   stay put while the middle scrolls. */
/* overflow: clip, so focusing the close button while the panel is still off screen cannot scroll the dialog to it (that made the
   panel appear at once instead of sliding in). */
.cg-dlg.cg-side { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; overflow: clip; background: transparent; opacity: 1; transition: none; }
.cg-side[open] { display: flex; justify-content: flex-end; }
.cg-side::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--cg-ink) 45%, transparent); opacity: 0; transition: opacity 360ms var(--cg-ease); }
.cg-side.is-open::before { opacity: 1; }
.cg-side.is-closing::before { opacity: 0; transition-duration: 340ms; }
.cg-side__box { position: relative; display: flex; flex-direction: column; width: min(440px, 92vw); height: 100%; margin: 0; background: var(--cg-base); box-shadow: -24px 0 48px -32px color-mix(in srgb, var(--cg-ink) 60%, transparent); transform: translateX(100%); transition: transform 520ms cubic-bezier(.32, .72, 0, 1); will-change: transform; }
.cg-side.is-open .cg-side__box { transform: none; }
.cg-side.is-closing .cg-side__box { transform: translateX(100%); transition: transform 340ms cubic-bezier(.4, 0, .2, 1); }
.cg-side__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--cg-line); }
.cg-side__title { margin: 0; font: 600 1.125rem/1.2 var(--cg-head); }
.cg-side__title span { color: var(--cg-soft); font-weight: 500; }
.cg-side__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; }
.cg-side__foot { padding: 16px 20px calc(16px + var(--cg-safe)); border-top: 1px solid var(--cg-line); background: var(--cg-base); }
.cg-side__foot[hidden] { display: none; }

/* Bag panel. */
.cg-bag-added { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--cg-ok) 10%, var(--cg-base)); color: var(--cg-ok); font: 500 .9375rem/1.3 var(--cg-head); animation: cg-notice-in 420ms var(--cg-in) both; }
.cg-bag-added .cg-icon { width: 20px; height: 20px; }
.cg-bag-items { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.cg-bag-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px 14px; align-items: start; overflow: hidden; transition: opacity var(--cg-t1) var(--cg-ease); }
.cg-bag-item.is-new { animation: cg-rise var(--cg-t3) var(--cg-in) both; }
.cg-bag-item.is-busy { opacity: .45; pointer-events: none; }
.cg-bag-item__img { display: block; width: 76px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--cg-r); background: var(--cg-surface); }
.cg-bag-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-bag-item__info { display: grid; gap: 3px; min-width: 0; }
.cg-bag-item__name { color: var(--cg-ink); font: 600 .9375rem/1.3 var(--cg-head); text-decoration: none; }
.cg-bag-item__name:hover { text-decoration: underline; }
.cg-bag-item__meta { color: var(--cg-soft); font-size: .8125rem; }
.cg-bag-item__row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.cg-bag-item__price { font: 500 .9375rem/1.3 var(--cg-head); white-space: nowrap; }
.cg-bag-qty { display: inline-flex; align-items: center; height: 34px; border: 1px solid color-mix(in srgb, var(--cg-ink) 22%, transparent); border-radius: 999px; }
.cg-bag-qty button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: var(--cg-ink); font-size: 1.125rem; cursor: pointer; }
.cg-bag-qty button:disabled { opacity: .3; cursor: default; }
.cg-bag-qty span { min-width: 22px; text-align: center; font: 500 .875rem/1 var(--cg-head); }
.cg-bag-item__remove { padding: 4px 0; border: 0; background: none; color: var(--cg-soft); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cg-bag-item__remove:hover { color: var(--cg-ink); }
.cg-bag-error { margin: -8px 0 0; color: var(--cg-err); font-size: .8125rem; }
.cg-bag-loading { color: var(--cg-soft); }
.cg-bag-sum { display: flex; justify-content: space-between; margin: 0 0 4px; font: 600 1.0625rem/1.3 var(--cg-head); }
.cg-bag-note { margin: 0 0 14px; color: var(--cg-soft); font-size: .8125rem; }
.cg-bag-actions { display: grid; gap: 8px; }
.cg-bag-actions .cg-btn { width: 100%; }
.cg-bag-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 8px; text-align: center; }
.cg-bag-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px; border-radius: 50%; background: var(--cg-surface); }
.cg-bag-empty__icon svg { width: 28px; height: 28px; }
.cg-bag-empty__title { margin: 0; font: 600 1.25rem/1.2 var(--cg-head); }
.cg-bag-empty p { margin: 0; color: var(--cg-soft); }
.cg-bag-empty .cg-btn { margin-top: 12px; }
/* Recently viewed in the empty bag panel: a row to swipe under the empty message. */
.cg-recent--panel { margin: 0; padding-top: 22px; border-top: 1px solid var(--cg-line); }
.cg-recent--panel .cg-section-title { font-size: 1.0625rem !important; margin: 0 0 14px !important; }
.cg-recent--panel .cg-card__title { font-size: .875rem !important; }

/* Payment marks beside each method at checkout. */
.cg-pay-marks { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: middle; }
.cg-pay-marks img { height: 20px; width: auto; }
.cg-pay-marks .cg-icon { width: 20px; height: 20px; color: var(--cg-soft); }
@media (prefers-reduced-motion: reduce) { .cg-side__box, .cg-side::before { transition-duration: 1ms !important; } }
