/**
 * KRAX theme stylesheet.
 * Premium dark-luxury design for the KRAX sand candle brand.
 */

:root {
	--krax-bg: #08080a;
	--krax-surface: #111114;
	--krax-surface-2: #17171b;
	--krax-crimson: #9a1b1b;
	--krax-crimson-bright: #c63333;
	--krax-amber: #c89858;
	--krax-amber-bright: #e7c489;
	--krax-sand: #c9a876;
	--krax-cream: #efe7d8;
	--krax-muted: #9a958c;
	--krax-radius: 0.5rem;
	--krax-radius-lg: 1rem;
	--krax-radius-xl: 1.5rem;
	--krax-max-width: 1280px;
	--krax-font-display: "El Messiri", "Tahoma", serif;
	--krax-font-body: "Tajawal", "Tahoma", sans-serif;
	--krax-border: rgba(239, 231, 216, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
	font-family: var(--krax-font-body);
	background: var(--krax-bg);
	color: var(--krax-cream);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--krax-font-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--krax-amber); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--krax-amber-bright); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.fill-mode { fill: currentColor; stroke: none; }

/* ---------- Layout ---------- */
.krax-site { display: flex; flex-direction: column; min-height: 100vh; }
.krax-main { flex: 1 0 auto; }
.krax-container { max-width: var(--krax-max-width); margin-inline: auto; padding-inline: 1.5rem; width: 100%; }
@media (min-width: 768px) { .krax-container { padding-inline: 2rem; } }
@media (min-width: 1024px) { .krax-container { padding-inline: 2.5rem; } }

.krax-grid-2 { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .krax-grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.krax-center { text-align: center; }

/* ---------- Header / Navbar ---------- */
.krax-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	transition: background 0.4s, backdrop-filter 0.4s;
}
.krax-header.is-scrolled { background: rgba(8, 8, 10, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.krax-header-inner { background: transparent; }
.krax-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
@media (min-width: 768px) { .krax-header-bar { height: 5rem; } }

.krax-logo-link img { height: 2rem; width: auto; filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(154,27,27,0.55)); }
@media (min-width: 768px) { .krax-logo-link img { height: 2.5rem; } }
.krax-logo-wrap .custom-logo { max-height: 2.5rem; width: auto; height: auto; }

.krax-nav { display: none; }
@media (min-width: 1024px) { .krax-nav { display: block; } }
.krax-nav-menu { list-style: none; display: flex; align-items: center; gap: 2rem; }
.krax-nav-menu li a {
	color: rgba(239, 231, 216, 0.75); font-size: 0.9rem; font-weight: 500;
	position: relative; padding-bottom: 4px;
}
.krax-nav-menu li a::after { content: ""; position: absolute; bottom: 0; right: 0; height: 1px; width: 0; background: var(--krax-amber); transition: width 0.3s; }
.krax-nav-menu li a:hover { color: var(--krax-amber); }
.krax-nav-menu li a:hover::after { width: 100%; }

.krax-header-cta { display: none; }
@media (min-width: 1024px) { .krax-header-cta { display: block; } }

.krax-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 9999px; color: var(--krax-cream); }
.krax-menu-toggle .krax-icon-close { display: none; }
.krax-menu-toggle[aria-expanded="true"] .krax-icon-menu { display: none; }
.krax-menu-toggle[aria-expanded="true"] .krax-icon-close { display: block; }
.krax-menu-toggle svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 1024px) { .krax-menu-toggle { display: none; } }

.krax-mobile-menu { background: rgba(8,8,10,0.95); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,0.05); padding: 1rem 1.5rem; }
.krax-mobile-menu[hidden] { display: none; }
.krax-mobile-nav { list-style: none; }
.krax-mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.krax-mobile-nav li a { display: block; padding: 0.85rem 0; color: var(--krax-cream); font-weight: 500; }
.krax-mobile-cta { display: block; margin-top: 1rem; text-align: center; }

/* ---------- Buttons ---------- */
.krax-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	font-weight: 700; font-size: 0.9rem; border-radius: 9999px;
	padding: 0.75rem 1.5rem; transition: all 0.25s; text-align: center;
}
.krax-btn-sm { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.krax-btn-lg { padding: 1rem 2rem; font-size: 0.95rem; }
.krax-btn-block { width: 100%; }
.krax-btn-primary { background: var(--krax-cream); color: var(--krax-bg); }
.krax-btn-primary:hover { background: var(--krax-amber); color: var(--krax-bg); box-shadow: 0 0 40px -8px rgba(200,152,88,0.7); }
.krax-btn-outline { border: 1px solid rgba(239,231,216,0.2); background: rgba(255,255,255,0.05); color: var(--krax-cream); backdrop-filter: blur(4px); }
.krax-btn-outline:hover { border-color: rgba(200,152,88,0.5); background: rgba(255,255,255,0.1); color: var(--krax-cream); }
.krax-arrow { transition: transform 0.25s; }
.krax-btn:hover .krax-arrow { transform: translateX(-4px); }

/* ---------- Section helpers ---------- */
.krax-section { position: relative; overflow: hidden; padding-block: 6rem; }
@media (min-width: 768px) { .krax-section { padding-block: 8rem; } }

.krax-section-head { max-width: 42rem; margin: 0 auto 4rem; }
.krax-section-head.krax-center { margin-inline: auto; }

.krax-section-label { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--krax-amber); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; }
.krax-section-label::before { content: ""; height: 1px; width: 2rem; background: rgba(200,152,88,0.6); }
.krax-center .krax-section-label { justify-content: center; }
.krax-center .krax-section-label::after { content: ""; height: 1px; width: 2rem; background: rgba(200,152,88,0.6); }

.krax-section-title { font-size: 1.875rem; margin-top: 1.25rem; color: var(--krax-cream); }
@media (min-width: 640px) { .krax-section-title { font-size: 2.25rem; } }
@media (min-width: 768px) { .krax-section-title { font-size: 3rem; } }

.krax-section-sub { margin-top: 1.25rem; color: rgba(239,231,216,0.65); font-size: 1.05rem; line-height: 1.7; }

.krax-text-amber-grad {
	background: linear-gradient(135deg, #e7c489 0%, #c89858 45%, #9a6d34 100%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

.krax-bar { display: inline-block; height: 4px; width: 4px; border-radius: 9999px; background: var(--krax-amber); vertical-align: middle; }

.krax-section-glow { position: absolute; border-radius: 9999px; filter: blur(120px); pointer-events: none; }
.krax-glow-crimson { width: 24rem; height: 24rem; background: rgba(154,27,27,0.1); top: 6rem; right: 0; }
.krax-glow-amber { width: 20rem; height: 20rem; background: rgba(200,152,88,0.1); bottom: 6rem; left: 0; }

/* ---------- Hero ---------- */
.krax-hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 6rem; padding-bottom: 4rem; }
.krax-hero-bg { position: absolute; inset: 0; z-index: 0; }
.krax-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.krax-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--krax-bg), rgba(8,8,10,0.4) 50%, rgba(8,8,10,0.7)); }
.krax-hero-glow { position: absolute; border-radius: 9999px; filter: blur(120px); pointer-events: none; z-index: 1; }
.krax-hero .krax-glow-crimson { top: -6rem; right: 0; width: 24rem; height: 24rem; background: rgba(154,27,27,0.2); }
.krax-hero .krax-glow-amber { bottom: 0; left: 25%; width: 20rem; height: 20rem; background: rgba(200,152,88,0.1); }
.krax-hero-content { position: relative; z-index: 2; max-width: 48rem; }

.krax-badge-pill { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.35rem 1rem; border: 1px solid rgba(200,152,88,0.3); background: rgba(200,152,88,0.05); border-radius: 9999px; margin-bottom: 1.5rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; color: var(--krax-amber); }
.krax-dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--krax-amber); animation: krax-pulse 2s infinite; }
@keyframes krax-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.krax-hero-title { font-size: 3rem; line-height: 1.05; color: var(--krax-cream); }
@media (min-width: 640px) { .krax-hero-title { font-size: 3.75rem; } }
@media (min-width: 768px) { .krax-hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .krax-hero-title { font-size: 5rem; } }
.krax-hero-desc { margin-top: 1.75rem; max-width: 36rem; font-size: 1.05rem; line-height: 1.7; color: rgba(239,231,216,0.75); }

.krax-hero-cta-row { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .krax-hero-cta-row { flex-direction: row; align-items: center; } }

.krax-hero-stats { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; max-width: 28rem; }
.krax-stat-num { font-family: var(--krax-font-display); font-size: 1.5rem; font-weight: 700; color: var(--krax-amber); }
@media (min-width: 640px) { .krax-stat-num { font-size: 1.875rem; } }
.krax-stat-label { margin-top: 0.25rem; font-size: 0.75rem; color: rgba(239,231,216,0.6); }

.krax-scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2; display: none; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 10px; letter-spacing: 0.3em; color: rgba(239,231,216,0.4); }
@media (min-width: 768px) { .krax-scroll-cue { display: flex; } }
.krax-scroll-line { width: 1px; height: 2.5rem; background: linear-gradient(to bottom, rgba(200,152,88,0.6), transparent); }

/* ---------- Marquee ---------- */
.krax-marquee { position: relative; overflow: hidden; background: var(--krax-bg); border-block: 1px solid rgba(255,255,255,0.1); padding-block: 1.25rem; }
.krax-marquee::before, .krax-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6rem; z-index: 2; }
.krax-marquee::before { right: 0; background: linear-gradient(to left, var(--krax-bg), transparent); }
.krax-marquee::after { left: 0; background: linear-gradient(to right, var(--krax-bg), transparent); }
.krax-marquee-track { display: flex; width: max-content; gap: 3rem; animation: krax-scroll 28s linear infinite; }
.krax-marquee-item { font-family: var(--krax-font-display); font-size: 1.25rem; font-weight: 500; color: rgba(239,231,216,0.7); white-space: nowrap; }
@media (min-width: 640px) { .krax-marquee-item { font-size: 1.25rem; } }
.krax-marquee-dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--krax-amber); align-self: center; }
@keyframes krax-scroll { from { transform: translateX(0); } to { transform: translateX(33.33%); } }

/* ---------- Philosophy ---------- */
.krax-phil-p { margin-top: 1.25rem; color: rgba(239,231,216,0.7); font-size: 1.05rem; line-height: 1.8; }
.krax-tag-row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.krax-tag { border: 1px solid rgba(200,152,88,0.2); background: rgba(255,255,255,0.05); padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; color: rgba(239,231,216,0.8); }

.krax-phil-image { position: relative; }
.krax-image-frame { position: relative; overflow: hidden; border-radius: var(--krax-radius-xl); border: 1px solid rgba(255,255,255,0.1); }
.krax-image-frame.krax-glow { box-shadow: 0 0 60px -12px rgba(200,152,88,0.35); }
.krax-image-frame img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.krax-kit .krax-image-frame img { aspect-ratio: 4/5; object-fit: cover; }
.krax-acc-image-main img, .krax-acc-image-strip img { aspect-ratio: 16/9; object-fit: cover; }
.krax-image-fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,10,0.6), transparent); pointer-events: none; }
.krax-image-fade-bottom { background: linear-gradient(to top, rgba(8,8,10,0.7), transparent 50%); }
.krax-image-badge { position: absolute; padding: 0.75rem 1.25rem; background: rgba(17,17,20,0.9); border: 1px solid rgba(200,152,88,0.2); border-radius: var(--krax-radius-lg); backdrop-filter: blur(8px); }
.krax-badge-top { top: -1rem; left: 1.25rem; }
.krax-badge-bottom { bottom: -1.25rem; left: 1.5rem; }
.krax-badge-title { font-family: var(--krax-font-display); font-size: 1.125rem; font-weight: 700; color: var(--krax-amber); }
.krax-badge-sub { font-size: 0.65rem; letter-spacing: 0.15em; color: rgba(239,231,216,0.5); }
.krax-phil-image .krax-image-badge { bottom: -1.25rem; right: 1.25rem; }

/* ---------- Kit ---------- */
.krax-section-kit { background: var(--krax-surface); }
.krax-kit-grid { display: grid; gap: 2.5rem; margin-top: 4rem; }
@media (min-width: 1024px) { .krax-kit-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
@media (min-width: 1024px) { .krax-kit-visual { position: sticky; top: 6rem; } }

.krax-kit-color-preview { position: absolute; bottom: 1.25rem; right: 1.25rem; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: rgba(8,8,10,0.8); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--krax-radius-lg); backdrop-filter: blur(8px); }
.krax-color-swatch { width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.2); }
.krax-preview-label { font-size: 0.75rem; color: rgba(239,231,216,0.5); }
.krax-preview-name { font-size: 0.875rem; font-weight: 700; color: var(--krax-cream); }

.krax-kit-price-row { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: var(--krax-surface-2); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--krax-radius-lg); }
.krax-price-label { font-size: 0.75rem; color: rgba(239,231,216,0.5); }
.krax-price { font-family: var(--krax-font-display); font-size: 1.5rem; font-weight: 700; color: var(--krax-amber); }
.krax-qty { display: flex; align-items: center; gap: 0.5rem; }
.krax-qty-btn { width: 2.25rem; height: 2.25rem; border: 1px solid rgba(255,255,255,0.15); border-radius: 9999px; color: var(--krax-cream); display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; }
.krax-qty-btn:hover { border-color: rgba(200,152,88,0.5); color: var(--krax-amber); }
.krax-qty-btn svg { width: 1rem; height: 1rem; }
.krax-qty-val { width: 2rem; text-align: center; font-weight: 700; color: var(--krax-cream); }

.krax-picker { margin-bottom: 2.5rem; }
.krax-picker-head { display: flex; align-items: baseline; justify-content: space-between; }
.krax-picker-head h3 { font-size: 1.25rem; color: var(--krax-cream); }
.krax-picker-en { font-size: 0.875rem; color: rgba(239,231,216,0.5); }
.krax-picker-desc { margin-top: 0.25rem; font-size: 0.875rem; color: rgba(239,231,216,0.55); }

.krax-color-grid { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .krax-color-grid { grid-template-columns: repeat(6, 1fr); } }
.krax-color-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.75rem; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--krax-radius-lg); transition: all 0.2s; }
.krax-color-btn:hover { border-color: rgba(255,255,255,0.25); }
.krax-color-btn.is-active { border-color: rgba(200,152,88,0.6); background: rgba(255,255,255,0.05); }
.krax-color-dot { width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.15); }
.krax-color-btn.is-active .krax-color-dot { box-shadow: 0 0 16px currentColor; }
.krax-color-name { font-size: 0.7rem; font-weight: 500; color: rgba(239,231,216,0.6); }
.krax-color-btn.is-active .krax-color-name { color: var(--krax-amber); }
.krax-color-check { display: none; position: absolute; top: -6px; left: -6px; width: 1.25rem; height: 1.25rem; background: var(--krax-amber); color: var(--krax-bg); border-radius: 9999px; align-items: center; justify-content: center; }
.krax-color-btn.is-active .krax-color-check { display: inline-flex; }
.krax-color-check svg { width: 0.75rem; height: 0.75rem; }

.krax-scent-grid { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .krax-scent-grid { grid-template-columns: 1fr 1fr; } }
.krax-scent-btn { position: relative; text-align: right; padding: 1rem; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--krax-radius-lg); transition: all 0.2s; }
.krax-scent-btn:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.03); }
.krax-scent-btn.is-active { border-color: rgba(200,152,88,0.6); background: rgba(255,255,255,0.05); }
.krax-scent-top { display: flex; align-items: center; justify-content: space-between; }
.krax-scent-name { font-family: var(--krax-font-display); font-size: 1rem; font-weight: 700; color: var(--krax-cream); }
.krax-scent-en { font-size: 0.625rem; letter-spacing: 0.05em; color: rgba(239,231,216,0.4); }
.krax-scent-btn.is-active .krax-scent-en { color: var(--krax-amber); }
.krax-scent-notes { margin-top: 0.5rem; font-size: 0.75rem; color: rgba(239,231,216,0.55); }
.krax-scent-mood { margin-top: 0.25rem; font-size: 0.7rem; color: rgba(200,152,88,0.7); }
.krax-scent-check { display: none; }
.krax-scent-btn.is-active .krax-scent-check { display: inline-flex; }

.krax-kit-contents { border: 1px solid rgba(255,255,255,0.1); background: rgba(23,23,27,0.6); border-radius: var(--krax-radius-xl); padding: 1.5rem; }
.krax-contents-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; color: var(--krax-cream); margin-bottom: 1rem; }
.krax-contents-title .krax-bar { height: 1rem; width: 4px; }
.krax-contents-list { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 640px) { .krax-contents-list { grid-template-columns: 1fr 1fr; } }
.krax-content-item { border: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02); border-radius: var(--krax-radius-lg); padding: 1rem; transition: border-color 0.2s; }
.krax-content-item:hover { border-color: rgba(200,152,88,0.3); }
.krax-content-tag { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.05em; color: rgba(200,152,88,0.8); }
.krax-content-title { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 700; color: var(--krax-cream); }
.krax-content-desc { margin-top: 0.4rem; font-size: 0.75rem; line-height: 1.6; color: rgba(239,231,216,0.55); }

.krax-kit-cta { margin-top: 2rem; }
.krax-kit-note { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; color: rgba(239,231,216,0.4); }

/* ---------- Ritual ---------- */
.krax-section-ritual { background: var(--krax-bg); }
.krax-ritual-grid { }
.krax-ritual-image { order: 2; }
@media (min-width: 1024px) { .krax-ritual-image { order: 1; } }
.krax-ritual-text { order: 1; }
@media (min-width: 1024px) { .krax-ritual-text { order: 2; } }
.krax-ritual-steps { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.krax-ritual-step { display: flex; gap: 1.25rem; padding: 1.25rem; border: 1px solid transparent; border-radius: var(--krax-radius-lg); transition: all 0.2s; }
.krax-ritual-step:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.krax-step-num { font-family: var(--krax-font-display); font-size: 1.875rem; font-weight: 700; color: rgba(200,152,88,0.4); }
.krax-ritual-step:hover .krax-step-num { color: var(--krax-amber); }
.krax-ritual-step h3 { font-size: 1.125rem; color: var(--krax-cream); }
.krax-ritual-step p { margin-top: 0.4rem; font-size: 0.875rem; line-height: 1.6; color: rgba(239,231,216,0.6); }

/* ---------- Accessories ---------- */
.krax-section-accessories { background: var(--krax-surface); }
.krax-acc-head { align-items: end; margin-bottom: 3rem; }
.krax-acc-intro { color: rgba(239,231,216,0.65); max-width: 28rem; }
@media (min-width: 1024px) { .krax-acc-intro { justify-self: end; } }
.krax-acc-image-main { margin-bottom: 2rem; }
.krax-acc-cards { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .krax-acc-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .krax-acc-cards { grid-template-columns: repeat(4, 1fr); } }
.krax-acc-card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: var(--krax-surface-2); border-radius: var(--krax-radius-xl); padding: 1.5rem; transition: all 0.2s; }
.krax-acc-card:hover { border-color: rgba(200,152,88,0.3); background: rgba(255,255,255,0.03); }
.krax-acc-card-top { display: flex; align-items: center; justify-content: space-between; }
.krax-acc-material { border: 1px solid rgba(200,152,88,0.2); background: rgba(200,152,88,0.05); padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 500; color: var(--krax-amber); }
.krax-acc-arrow { color: rgba(239,231,216,0.3); transition: all 0.2s; }
.krax-acc-card:hover .krax-acc-arrow { transform: translateX(-4px); color: var(--krax-amber); }
.krax-acc-name { margin-top: 1.25rem; font-size: 1.125rem; color: var(--krax-cream); }
.krax-acc-en { font-size: 0.625rem; letter-spacing: 0.1em; color: rgba(239,231,216,0.4); }
.krax-acc-desc { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: rgba(239,231,216,0.55); }

/* ---------- Refill ---------- */
.krax-section-refill { background: var(--krax-bg); }
.krax-refill-image { order: 2; }
@media (min-width: 1024px) { .krax-refill-image { order: 1; } }
.krax-refill-text { order: 1; }
@media (min-width: 1024px) { .krax-refill-text { order: 2; } }
.krax-refill-desc { margin-top: 1.75rem; color: rgba(239,231,216,0.7); font-size: 1.05rem; line-height: 1.8; }
.krax-refill-features { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .krax-refill-features { grid-template-columns: 1fr 1fr 1fr; } }
.krax-refill-feature { display: flex; gap: 0.75rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); border-radius: var(--krax-radius-lg); padding: 1rem; }
.krax-feature-icon { color: var(--krax-amber); flex-shrink: 0; }
.krax-feature-icon svg { width: 1.25rem; height: 1.25rem; }
.krax-feature-title { font-size: 0.875rem; font-weight: 700; color: var(--krax-cream); }
.krax-feature-desc { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.5; color: rgba(239,231,216,0.55); }
.krax-refill-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

/* ---------- Safety ---------- */
.krax-section-safety { background: var(--krax-surface); }
@media (min-width: 1024px) { .krax-safety-head { position: sticky; top: 6rem; align-self: start; } }
.krax-safety-intro { margin-top: 1.5rem; color: rgba(239,231,216,0.65); line-height: 1.7; }
.krax-safety-badge { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; border: 1px solid rgba(200,152,88,0.2); background: rgba(200,152,88,0.05); border-radius: var(--krax-radius-lg); padding: 1rem; }
.krax-safety-badge-icon { color: var(--krax-amber); flex-shrink: 0; }
.krax-safety-badge-icon svg { width: 2rem; height: 2rem; }
.krax-safety-card { border: 1px solid rgba(255,255,255,0.1); background: rgba(23,23,27,0.6); border-radius: var(--krax-radius-xl); padding: 1.5rem; }
@media (min-width: 640px) { .krax-safety-card { padding: 2rem; } }
.krax-safety-card-head { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.krax-alert-icon { color: var(--krax-crimson-bright); }
.krax-safety-card-head h3 { font-size: 1.125rem; color: var(--krax-cream); }
.krax-safety-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; max-height: 28rem; overflow-y: auto; padding-inline-start: 0.5rem; }
.krax-safety-list::-webkit-scrollbar { width: 6px; }
.krax-safety-list::-webkit-scrollbar-track { background: transparent; }
.krax-safety-list::-webkit-scrollbar-thumb { background: rgba(200,152,88,0.3); border-radius: 9999px; }
.krax-safety-list li { display: flex; gap: 1rem; }
.krax-safety-num { font-family: var(--krax-font-display); font-size: 0.875rem; font-weight: 700; color: rgba(200,152,88,0.6); flex-shrink: 0; }
.krax-safety-list li span:last-child { font-size: 0.875rem; line-height: 1.6; color: rgba(239,231,216,0.7); }

/* ---------- Newsletter ---------- */
.krax-section-newsletter { background: var(--krax-bg); text-align: center; }
.krax-news-glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 28rem; height: 28rem; border-radius: 9999px; background: rgba(154,27,27,0.15); filter: blur(140px); pointer-events: none; }
.krax-news-content { position: relative; max-width: 42rem; }
.krax-news-label { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--krax-amber); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 1.5rem; }
.krax-news-label .krax-bar { width: 2rem; height: 1px; border-radius: 0; }
.krax-news-desc { margin: 1.25rem auto 0; max-width: 32rem; color: rgba(239,231,216,0.65); }
.krax-news-form { margin: 2.25rem auto 0; max-width: 28rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .krax-news-form { flex-direction: row; } }
.krax-news-input { height: 3rem; flex: 1; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); border-radius: 9999px; padding-inline: 1.25rem; color: var(--krax-cream); font-size: 0.875rem; outline: none; transition: border-color 0.2s; font-family: inherit; }
.krax-news-input::placeholder { color: rgba(239,231,216,0.4); }
.krax-news-input:focus { border-color: rgba(200,152,88,0.6); }
.krax-news-success { margin: 2rem auto 0; max-width: 28rem; border: 1px solid rgba(200,152,88,0.3); background: rgba(200,152,88,0.05); border-radius: 9999px; padding: 0.75rem 1.5rem; color: var(--krax-amber); font-size: 0.875rem; font-weight: 500; }
.krax-news-disc { margin-top: 1rem; font-size: 0.75rem; color: rgba(239,231,216,0.4); }

/* ---------- Footer ---------- */
.krax-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); background: var(--krax-bg); }
.krax-footer-top { display: grid; gap: 3rem; padding-block: 4rem; }
@media (min-width: 768px) { .krax-footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.krax-footer-logo { height: 3rem; width: auto; filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(154,27,27,0.5)); }
.krax-footer-about { margin-top: 1.25rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.7; color: rgba(239,231,216,0.55); }
.krax-social { margin-top: 1.5rem; display: flex; gap: 0.75rem; }
.krax-social-link { width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.1); border-radius: 9999px; color: rgba(239,231,216,0.7); transition: all 0.2s; }
.krax-social-link:hover { border-color: rgba(200,152,88,0.5); color: var(--krax-amber); }
.krax-social-link svg { width: 1rem; height: 1rem; }
.krax-footer-col-title { font-size: 0.875rem; font-weight: 700; color: var(--krax-cream); }
.krax-footer-col ul { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.krax-footer-col a { font-size: 0.875rem; color: rgba(239,231,216,0.55); }
.krax-footer-col a:hover { color: var(--krax-amber); }
.krax-footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.1); padding-block: 1.5rem; }
@media (min-width: 640px) { .krax-footer-bottom { flex-direction: row; } }
.krax-copyright, .krax-tagline { font-size: 0.75rem; color: rgba(239,231,216,0.4); }

/* ---------- Accessibility ---------- */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; top: -100px; right: 1rem; z-index: 100; background: var(--krax-amber); color: var(--krax-bg); padding: 0.75rem 1.25rem; border-radius: 0 0 var(--krax-radius) var(--krax-radius); font-weight: 700; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--krax-amber); outline-offset: 2px; }

/* ---------- Reveal-on-scroll animation ---------- */
.krax-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.krax-reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* ---------- Order Modal ---------- */
.krax-modal-overlay {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
	display: none; align-items: flex-start; justify-content: center;
	padding: 1.5rem 1rem; overflow-y: auto;
	opacity: 0; transition: opacity 0.25s ease;
}
.krax-modal-overlay.is-open { display: flex; opacity: 1; }
.krax-modal {
	position: relative; width: 100%; max-width: 540px;
	background: var(--krax-surface); border: 1px solid rgba(239,231,216,0.12);
	border-radius: var(--krax-radius-xl); padding: 2rem 1.75rem;
	margin: auto; box-shadow: 0 25px 60px -15px rgba(0,0,0,0.7);
	animation: krax-modal-in 0.3s ease;
}
@keyframes krax-modal-in {
	from { opacity: 0; transform: translateY(20px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (min-width: 640px) { .krax-modal { padding: 2.5rem; } }

.krax-modal-close {
	position: absolute; top: 1rem; left: 1rem;
	width: 2.25rem; height: 2.25rem; border-radius: 9999px;
	border: 1px solid rgba(239,231,216,0.15); color: var(--krax-cream);
	display: inline-flex; align-items: center; justify-content: center;
	transition: all 0.2s;
}
.krax-modal-close:hover { border-color: var(--krax-amber); color: var(--krax-amber); }
.krax-modal-close svg { width: 1.1rem; height: 1.1rem; }

.krax-modal-header { margin-bottom: 1.5rem; text-align: center; }
.krax-modal-header h2 { font-size: 1.6rem; color: var(--krax-cream); }
.krax-modal-sub { margin-top: 0.5rem; color: rgba(239,231,216,0.6); font-size: 0.9rem; }

/* Order summary box */
.krax-order-summary {
	background: rgba(23,23,27,0.7); border: 1px solid rgba(239,231,216,0.08);
	border-radius: var(--krax-radius-lg); padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.krax-summary-row {
	display: flex; justify-content: space-between; align-items: center;
	padding: 0.5rem 0; border-bottom: 1px dashed rgba(239,231,216,0.08); font-size: 0.875rem;
}
.krax-summary-row:last-child { border-bottom: none; }
.krax-summary-label { color: rgba(239,231,216,0.55); }
.krax-summary-value { color: var(--krax-cream); font-weight: 600; text-align: left; }
.krax-summary-total { padding-top: 0.75rem; margin-top: 0.25rem; border-top: 1px solid rgba(200,152,88,0.3); border-bottom: none; }
.krax-summary-total .krax-summary-label { color: var(--krax-amber); font-weight: 700; }
.krax-summary-total .krax-summary-value { color: var(--krax-amber); font-family: var(--krax-font-display); font-size: 1.1rem; }

/* Form fields */
.krax-form-row { margin-bottom: 1rem; }
.krax-form-row-2 { display: grid; gap: 1rem; }
@media (min-width: 480px) { .krax-form-row-2 { grid-template-columns: 1fr 1fr; } }

.krax-field-label { display: block; margin-bottom: 0.4rem; font-size: 0.8rem; color: rgba(239,231,216,0.75); font-weight: 500; }
.krax-required { color: var(--krax-crimson-bright); }
.krax-field {
	width: 100%; height: 2.75rem; padding: 0.5rem 0.9rem;
	background: rgba(8,8,10,0.6); border: 1px solid rgba(239,231,216,0.15);
	border-radius: var(--krax-radius); color: var(--krax-cream); font-size: 0.9rem;
	font-family: inherit; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.krax-field:focus { border-color: var(--krax-amber); box-shadow: 0 0 0 3px rgba(200,152,88,0.15); }
.krax-field::placeholder { color: rgba(239,231,216,0.35); }
.krax-field-area { height: auto; resize: vertical; line-height: 1.6; padding-top: 0.65rem; }

.krax-order-submit { margin-top: 0.5rem; position: relative; }
.krax-order-submit.is-loading { pointer-events: none; opacity: 0.75; }
.krax-spinner {
	display: inline-block; width: 1rem; height: 1rem; border: 2px solid rgba(8,8,10,0.3);
	border-top-color: var(--krax-bg); border-radius: 9999px; animation: krax-spin 0.7s linear infinite;
	vertical-align: middle; margin-inline-start: 0.5rem;
}
@keyframes krax-spin { to { transform: rotate(360deg); } }

.krax-order-feedback {
	margin-top: 1rem; padding: 0.85rem 1.1rem; border-radius: var(--krax-radius);
	font-size: 0.875rem; text-align: center; line-height: 1.6;
}
.krax-order-feedback.is-success { background: rgba(31,77,58,0.25); border: 1px solid rgba(200,152,88,0.4); color: var(--krax-cream); }
.krax-order-feedback.is-error { background: rgba(154,27,27,0.2); border: 1px solid var(--krax-crimson); color: var(--krax-cream); }

body.krax-modal-open { overflow: hidden; }

/* ===== KRAX v2 additions ===== */

/* Price note under the main price (regular price during a promo, refill breakdown) */
.krax-price-note { margin-top: .35rem; font-size: .82rem; color: var(--krax-muted); line-height: 1.6; }

/* Help popups (footer docs) */
.krax-doc-modal { max-width: 640px; }
.krax-doc-body { max-height: 55vh; overflow-y: auto; color: rgba(239,231,216,0.85); line-height: 2; font-size: .98rem; padding-inline-end: .4rem; }
.krax-doc-body h3 { color: var(--krax-amber); font-size: 1.1rem; margin: 1.4rem 0 .3rem; }
.krax-doc-body h3:first-child { margin-top: 0; }
.krax-doc-body p { margin: 0 0 .8rem; }
.krax-doc-body ul { margin: 0 0 .8rem; padding-inline-start: 1.4rem; }
.krax-doc-body li { margin-bottom: .3rem; }
.krax-doc-body a { color: var(--krax-amber); text-decoration: underline; }

/* Refill color/scent selects inside the order modal */
.krax-refill-choices { margin: 0 0 1.25rem; padding: 1rem 1.1rem; border: 1px solid rgba(200,152,88,0.25); border-radius: var(--krax-radius-lg, 14px); background: rgba(200,152,88,0.06); }
.krax-refill-choices-note { margin: 0 0 .8rem; font-size: .9rem; color: var(--krax-amber); }
.krax-refill-choices .krax-form-row { margin-bottom: .7rem; }
.krax-refill-choices .krax-form-row:last-child { margin-bottom: 0; }
select.krax-field { width: 100%; appearance: auto; cursor: pointer; }

/* Promo display: occasion badge + crossed-out original price */
.krax-promo-badge { display: inline-block; padding: .28rem .9rem; margin-bottom: .35rem; border-radius: 999px; background: linear-gradient(135deg, var(--krax-amber), #b8892f); color: #1a1409; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.krax-price-old-wrap { display: flex; align-items: baseline; gap: .6em; flex-wrap: wrap; }
.krax-price-old-wrap .krax-price-note { margin-top: 0; }
.krax-price-old { color: rgba(239,231,216,0.45); font-size: 1.05rem; font-weight: 500; text-decoration-color: rgba(239,231,216,0.55); }

/* Footer tagline (Different by nature) */
.krax-footer-tagline { color: var(--krax-amber); font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; margin: .25rem 0 1rem; opacity: .85; }

/* Accessories "soon" mode: dim the products, keep the section visible */
.krax-soon-pill { display: inline-flex; align-items: center; margin-top: 1rem; padding: .45rem 1.4rem; border: 1px solid var(--krax-amber); border-radius: 999px; color: var(--krax-amber); font-size: .95rem; letter-spacing: .08em; }
.krax-acc-soon .krax-acc-image-main,
.krax-acc-soon .krax-acc-image-strip,
.krax-acc-soon .krax-acc-cards { opacity: .32; filter: grayscale(.5); pointer-events: none; user-select: none; }

/* Honeypot fields: never visible to humans */
.krax-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Mobile menu list (the container itself is styled above) */
.krax-mobile-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.krax-mobile-menu-list a { display: block; padding: .7rem .5rem; color: var(--krax-cream); text-decoration: none; border-bottom: 1px solid var(--krax-border); }

/* Skip link */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: .5rem 1rem; background: var(--krax-surface); color: var(--krax-cream); z-index: 9999; }

/* ===== KRAX v2 luxury UX polish ===== */

/* Anchor jumps land below the fixed header */
section[id] { scroll-margin-top: 5.5rem; }

/* Brand-colored text selection */
::selection { background: var(--krax-amber); color: #0b0b0d; }
* { -webkit-tap-highlight-color: transparent; }

/* Staggered entrance for paired grids */
.krax-grid-2 > .krax-reveal:nth-child(2) { transition-delay: .12s; }
.krax-kit-grid > .krax-reveal:nth-child(2) { transition-delay: .15s; }

/* Price pulse when the total changes */
.krax-price.krax-price-flash { animation: kraxPricePulse .45s ease; }
@keyframes kraxPricePulse {
	30% { transform: scale(1.07); color: var(--krax-amber-bright); }
}

/* Buttons: tactile press */
.krax-btn:active { transform: translateY(1px) scale(.99); }

/* ---- Badges inside clipped frames / hero (v2.6.0) ---- */
.krax-image-frame .krax-image-badge.krax-badge-bottom { bottom: 1rem; }
.krax-hero-bg .krax-image-badge.krax-badge-bottom { bottom: 1.5rem; }

/* ---- Order confirmation popup (v2.6.0) ---- */
.krax-confirm-modal { text-align: center; }
.krax-confirm-icon {
	width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(46, 204, 113, .12); color: #2ecc71;
	border: 1px solid rgba(46, 204, 113, .35);
}
.krax-confirm-icon svg { width: 30px; height: 30px; }
.krax-confirm-code {
	display: inline-block; margin: .25rem 0 0; padding: .3rem .9rem;
	border-radius: 999px; background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12); font-weight: 700;
}
.krax-confirm-details { text-align: start; margin: 1.25rem 0; max-height: 45vh; overflow-y: auto; }
