/* ==========================================================================
   Crown Troca products: shared base (tokens, reset, type, buttons, chips, cards)
   Loaded only on /our-products/ and the product pages. Palette and fonts follow the
   site: ink #0a0a0a, gold #bea676, Cormorant Garamond + Montserrat.
   ========================================================================== */

/* The theme sets overflow on <html> and <body>, which turns <body> into the scroll container
   and breaks position: sticky. clip keeps sideways overflow hidden without that side effect. */
html, body { overflow-x: clip !important; overflow-y: visible !important; }

/* Smooth cross-page transitions between the listing and product pages (both opt in). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
::view-transition-group(ctp-hero) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }

.ctp {
	--ink: #0a0a0a;
	--ink-2: #0f0d0b;
	--ink-3: #15120f;
	--card: #17140f;
	--card-2: #1d1914;
	--line: rgba(190, 166, 118, .16);
	--line-2: rgba(190, 166, 118, .34);
	--hair: rgba(236, 230, 218, .1);
	--gold: #bea676;
	--gold-l: #e3d2a7;
	--gold-d: #8a6f3e;
	--green: #4a7c59;
	--green-l: #79ad87;
	--wa: #25d366;
	--text: #ece6da;
	--muted: rgba(236, 230, 218, .68);
	--faint: rgba(236, 230, 218, .44);
	--danger: #e59a88;
	--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--gutter: clamp(16px, 4vw, 40px);
	--top: var(--ctp-top, 0px);

	position: relative;
	background: var(--ink);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

/* ---------- Reset (the theme styles bare elements globally) ---------- */
.ctp *, .ctp *::before, .ctp *::after { box-sizing: border-box; }
.ctp h1, .ctp h2, .ctp h3, .ctp h4, .ctp p, .ctp ul, .ctp ol, .ctp li, .ctp dl, .ctp dt, .ctp dd,
.ctp figure, .ctp blockquote, .ctp cite, .ctp table, .ctp fieldset, .ctp legend { margin: 0; padding: 0; border: 0; }
.ctp h1, .ctp h2, .ctp h3, .ctp h4 { color: inherit; font-family: var(--serif); font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.15; }
.ctp ul, .ctp ol { list-style: none; }
.ctp img { display: block; max-width: 100%; height: auto; border: 0; }
.ctp a { color: inherit; text-decoration: none; transition: color .3s ease; box-shadow: none; }
.ctp button, .ctp input, .ctp select, .ctp textarea {
	font: inherit; color: inherit; letter-spacing: normal; text-transform: none; margin: 0;
	box-shadow: none; outline: 0; min-height: 0; line-height: 1.3; border-radius: 0; background: none; border: 0; padding: 0; width: auto; height: auto;
}
.ctp button { cursor: pointer; }
/* The theme forces "padding: 13px 20px !important; font-size: 13px !important" on every text input
   and select; component rules below restate theirs with !important where it matters. */
.ctp table, .ctp th, .ctp td { border: 0 !important; background: none; }
.ctp a:focus-visible, .ctp button:focus-visible, .ctp [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ctp em { font-style: italic; }
.ctp strong, .ctp b { font-weight: 600; }
.ctp [hidden] { display: none !important; }
.ctp .ctp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ctp .ctp-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); position: relative; }
.ctp .ctp-section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }

/* ---------- Icons ---------- */
.ctp .ctp-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
.ctp .ctp-label, .ctp .ctp-eyebrow {
	display: inline-flex; align-items: center; gap: 14px;
	font: 600 .7rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.ctp .ctp-label::before, .ctp .ctp-label::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .55; }
.ctp .ctp-label--green { color: var(--green-l); }
.ctp .ctp-eyebrow__rule { width: 40px; height: 1px; background: currentColor; opacity: .7; }
.ctp .ctp-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.06; letter-spacing: .005em; color: var(--text); }
.ctp .ctp-h2 em { color: var(--gold); font-weight: 400; }
.ctp .ctp-h2--xl { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.ctp .ctp-h2--sm { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ctp .ctp-lead { color: var(--muted); font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.8; }
.ctp .ctp-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); display: grid; gap: 18px; }
.ctp .ctp-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.ctp .ctp-head__lead { color: var(--muted); max-width: 620px; line-height: 1.75; }
.ctp .ctp-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-l); font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.ctp .ctp-link .ctp-ico { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.ctp .ctp-link:hover .ctp-ico { transform: translateX(4px); }
.ctp .ctp-badge { display: inline-flex; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--gold-l); font: 600 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; background: rgba(10, 10, 10, .35); }

/* ---------- Buttons ---------- */
.ctp .ctp-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
	font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s ease, color .3s ease, border-color .3s ease;
	user-select: none;
}
.ctp .ctp-btn:active { transform: scale(.97); }
.ctp .ctp-btn--gold { color: #17110a; background: linear-gradient(135deg, #ead9ad 0%, var(--gold) 50%, #a3875a 100%); box-shadow: 0 12px 34px rgba(190, 166, 118, .22); }
.ctp .ctp-btn--gold:hover { box-shadow: 0 16px 44px rgba(190, 166, 118, .36); transform: translateY(-2px); color: #17110a; }
.ctp .ctp-btn--ghost { color: var(--gold-l); border-color: var(--line-2); background: rgba(10, 10, 10, .28); backdrop-filter: blur(6px); }
.ctp .ctp-btn--ghost:hover { border-color: var(--gold); background: rgba(190, 166, 118, .1); color: var(--gold-l); }
.ctp .ctp-btn--line { color: var(--text); border-color: var(--hair); background: rgba(255, 255, 255, .03); }
.ctp .ctp-btn--line:hover { border-color: var(--line-2); color: var(--text); }
.ctp .ctp-btn--wa { color: #fff; background: #1f9e52; border-color: #2bb361; }
.ctp .ctp-btn--wa:hover { background: #22b05c; color: #fff; }
.ctp .ctp-btn--green { color: #fff; background: var(--green); }
.ctp .ctp-btn--green:hover { background: #568c66; color: #fff; }
.ctp .ctp-btn--block { display: flex; width: 100%; }
.ctp .ctp-btn--lg { min-height: 58px; font-size: .78rem; }
.ctp .ctp-btn__note { opacity: .7; font-weight: 500; letter-spacing: .06em; }
.ctp .ctp-round { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold-l); transition: background-color .3s ease, border-color .3s ease; }
.ctp .ctp-round:hover { background: rgba(190, 166, 118, .12); border-color: var(--gold); }

/* ---------- Chips and tags ---------- */
.ctp .ctp-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px; }
.ctp .ctp-chips::-webkit-scrollbar { display: none; }
.ctp .ctp-chips--wrap { flex-wrap: wrap; justify-content: center; overflow: visible; }
.ctp .ctp-chip {
	flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; scroll-snap-align: start;
	border: 1px solid var(--hair); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .025);
	font: 500 .78rem/1 var(--sans); transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.ctp .ctp-chip span { font-size: .68rem; color: var(--faint); font-weight: 600; }
.ctp .ctp-chip:hover { border-color: var(--line-2); color: var(--text); }
.ctp .ctp-chip:active { transform: scale(.96); }
.ctp .ctp-chip.is-on { background: var(--gold); border-color: var(--gold); color: #17110a; }
.ctp .ctp-chip.is-on span { color: rgba(23, 17, 10, .62); }
.ctp .ctp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ctp .ctp-tags li { padding: 7px 13px; border: 1px solid var(--hair); border-radius: 999px; font-size: .78rem; color: var(--muted); background: rgba(255, 255, 255, .02); }
.ctp .ctp-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ctp .ctp-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; color: var(--muted); background: rgba(255, 255, 255, .02); }
.ctp .ctp-pills .ctp-ico { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Product cards (listing grid and related rows) ---------- */
.ctp .ctp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
.ctp .ctp-card { display: block; min-width: 0; }
.ctp .ctp-card.is-enter { animation: ctp-card-in .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes ctp-card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.ctp .ctp-card__in {
	position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
	background: linear-gradient(180deg, var(--card) 0%, var(--ink-3) 100%);
	border: 1px solid var(--hair); border-radius: 20px;
	transition: transform .45s var(--ease), border-color .35s ease, box-shadow .45s var(--ease);
}
.ctp .ctp-card__in:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 22px 50px rgba(0, 0, 0, .45); }
.ctp .ctp-card__in:active { transform: scale(.985); }
.ctp .ctp-card__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--card-2); }
.ctp .ctp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .45s ease; }
.ctp .ctp-card__in:hover .ctp-card__media img { transform: scale(1.05); }
.ctp .ctp-card__swap { position: absolute; inset: 0; opacity: 0; }
.ctp .ctp-card__in:hover .ctp-card__swap { opacity: 1; }
.ctp .ctp-card__cat {
	position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	padding: 6px 10px; border-radius: 999px; background: rgba(10, 10, 10, .62); backdrop-filter: blur(8px);
	color: var(--gold-l); font: 600 .58rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.ctp .ctp-card__body { display: grid; gap: 6px; padding: 16px 18px 8px; }
.ctp .ctp-card__name { font-size: 1.45rem; font-weight: 500; line-height: 1.12; }
.ctp .ctp-card__link { color: var(--text); }
.ctp .ctp-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ctp .ctp-card__local { font-size: .78rem; color: var(--muted); }
.ctp .ctp-card__local i { color: var(--faint); margin-left: 4px; }
.ctp .ctp-card__origin { display: flex; align-items: flex-start; gap: 6px; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.ctp .ctp-card__origin .ctp-ico { width: 14px; height: 14px; margin-top: 1px; color: var(--gold); }
.ctp .ctp-card__origin span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ctp .ctp-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.ctp .ctp-card__tags li { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--hair); font-size: .66rem; color: var(--muted); }
.ctp .ctp-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 14px 18px; }
.ctp .ctp-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font: 600 .64rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.ctp .ctp-card__more .ctp-ico { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.ctp .ctp-card__in:hover .ctp-card__more .ctp-ico { transform: translateX(4px); }
.ctp .ctp-card__quote {
	position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
	border-radius: 999px; border: 1px solid var(--line-2); color: var(--gold-l); background: rgba(10, 10, 10, .3);
	font: 600 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.ctp .ctp-card__quote .ctp-ico { width: 15px; height: 15px; }
.ctp .ctp-card__quote:hover { background: var(--gold); border-color: var(--gold); color: #17110a; }
.ctp .ctp-card__quote:active { transform: scale(.94); }

@media (max-width: 1180px) { .ctp .ctp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.ctp .ctp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ctp .ctp-card__in { border-radius: 16px; }
	.ctp .ctp-card__in:hover { transform: none; box-shadow: none; }
	.ctp .ctp-card__body { padding: 11px 12px 4px; gap: 4px; }
	.ctp .ctp-card__name { font-size: 1.14rem; }
	.ctp .ctp-card__local { font-size: .7rem; }
	.ctp .ctp-card__local i { display: none; }
	.ctp .ctp-card__origin { font-size: .68rem; }
	.ctp .ctp-card__tags { display: none; }
	.ctp .ctp-card__cat { left: 8px; top: 8px; font-size: .52rem; padding: 5px 8px; }
	.ctp .ctp-card__foot { padding: 8px 8px 10px 12px; }
	.ctp .ctp-card__more { font-size: .58rem; letter-spacing: .1em; }
	.ctp .ctp-card__quote { height: 32px; padding: 0 11px; font-size: .58rem; letter-spacing: .08em; }
}

/* ---------- Reveal on scroll ---------- */
@keyframes ctp-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ctp-spin { to { transform: rotate(360deg); } }
.ctp [id] { scroll-margin-top: calc(var(--top) + 90px); }
.ctp .ctp-anim { animation: ctp-in 1s var(--ease) var(--d, 0s) both; }
.ctp.ctp-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.ctp.ctp-js [data-reveal].is-in { opacity: 1; transform: none; }
.ctp .ctp-curtain { position: relative; overflow: hidden; }
.ctp .ctp-curtain img { transition: transform 1.8s var(--ease) var(--d, 0s); }
.ctp.ctp-js .ctp-curtain:not(.is-in) img { transform: scale(1.14); }

.ctp .ctp-credits { padding-top: 26px; padding-bottom: 40px; font-size: .7rem; line-height: 1.7; color: var(--faint); text-align: center; }
.ctp .ctp-credits a { text-decoration: underline; text-underline-offset: 2px; }
.ctp .ctp-credits a:hover { color: var(--gold-l); }

@media (prefers-reduced-motion: reduce) {
	.ctp *, .ctp *::before, .ctp *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.ctp.ctp-js [data-reveal] { opacity: 1; transform: none; }
	@view-transition { navigation: none; }
}
