/* ==========================================================
   EVERKI Design System 260119 (Global, Hyvä-safe)
   - Use these classes in CMS blocks/templates for consistency
   - Avoid element-level overrides unless explicitly intended
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Containers */
    --ek-container: 1280px;
    --ek-container-narrow: 980px;

    /* Gutters + vertical rhythm */
    --ek-gutter: clamp(16px, 4vw, 48px);
    --ek-section-major-y: clamp(56px, 6vw, 96px);
    --ek-section-minor-y: clamp(36px, 4vw, 64px);

    /* Type */
    --ek-font-sans: "Open Sans", "Open Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Brand + UI colors */
    --ek-text: #111827;
    --ek-muted: #374151;
    --ek-subtle: #6b7280;

    --ek-bg: #ffffff;
    --ek-surface: #f9fafb;

    /* Subtle separators/dividers (not for primary control boundaries) */
    --ek-border: rgba(17, 24, 39, 0.12);

    /* UI control boundary (stronger for WCAG non-text contrast on white) */
    --ek-border-ui: #80848b;

    --ek-accent: #c2410c;
    --ek-accent-hover: #7c2d12;

    /* Focus ring system */
    --ek-focus-outer: var(--ek-accent);

    /* Radius + shadow */
    --ek-radius-sm: 12px;
    --ek-radius-md: 16px;
    --ek-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
}


body { font-family: var(--ek-font-sans); color: var(--ek-text); background: var(--ek-bg); }


.ek-scope {
    font-family: var(--ek-font-sans);
    color: var(--ek-text);
    background: transparent;
}

/* Accessibility baseline: visible focus on light and dark surfaces */
.ek-scope :focus-visible {
    outline: none;
    /* Two-ring focus: inner white ring + outer brand ring */
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ek-focus-outer);
}

/* ---------- Layout primitives ---------- */
.ek-container {
    max-width: var(--ek-container);
    margin-inline: auto;
    padding-inline: var(--ek-gutter);
}

.ek-container--narrow {
    max-width: var(--ek-container-narrow);
}

.ek-section {
    padding-block: var(--ek-section-major-y);
}

.ek-section--minor {
    padding-block: var(--ek-section-minor-y);
}

/* Full-bleed backgrounds/media, with inner gutters via .ek-container */
.ek-section--fullbleed {
    width: 100%;
    padding-inline: 0;
}

/* Simple stack helpers */
.ek-stack {
    display: flex;
    flex-direction: column;
    gap: var(--ek-stack-gap, 16px);
}

.ek-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ek-row-gap, 12px);
    align-items: center;
}

/* ---------- Typography (classes, not element overrides) ---------- */
.ek-eyebrow {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ek-h1 {
    margin: 0;
    font-size: clamp(32px, 3.6vw, 56px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.ek-h2 {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 42px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.ek-lead {
    margin: 0;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.6;
    font-weight: 600;
    color: var(--ek-muted);
}

.ek-body {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 500;
    color: var(--ek-muted);
}

.ek-prose {
    max-width: 70ch; /* long-copy limit */
}

/* Tight, predictable spacing between common text blocks */
.ek-text-block > .ek-eyebrow { margin-bottom: 12px; }
.ek-text-block > .ek-h1,
.ek-text-block > .ek-h2 { margin-bottom: 12px; }
.ek-text-block > .ek-lead,
.ek-text-block > .ek-body { margin-top: 0; margin-bottom: 0; }

/* ---------- Links (optional but helpful for consistency) ---------- */
.ek-link {
    color: var(--ek-accent);
    text-decoration: none;
    font-weight: 700;
}
.ek-link:hover { color: var(--ek-accent-hover); text-decoration: underline; }

/* ---------- Buttons ---------- */
.ek-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--ek-radius-sm);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.ek-btn:active { transform: translateY(1px); }

.ek-btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px; /* touch target */
    padding: 0.7rem 2rem;
    border-radius: 9999px;
    /* Regular state (close to your "Regular" image) */
    background: linear-gradient(180deg, #EEA128 0%, #EEA128 100%);
    border: 1px solid rgba(0, 0, 0, 0.10);
    /* Black text is ADA-safe here */
    color: #111827;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    /* subtle bevel */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 1px 2px rgba(0,0,0,0.08);
    transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}
/* Hover state (close to your "Hover" image) */
.ek-btn--primary:hover {
    background: linear-gradient(180deg, #ED981F 0%, #EA841B 100%);
}
/* Active press */
.ek-btn--primary:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 0 0 rgba(0,0,0,0);
}
/* Keyboard focus (ADA) */
.ek-btn--primary:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 3px;
}
/* Optional disabled */
.ek-btn--primary[aria-disabled="true"],
.ek-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.ek-btn--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px; /* touch target */
    padding: 0.7rem 2rem;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid var(--ek-border-ui);
    color: var(--ek-text);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease, border-color 120ms ease;
}
.ek-btn--secondary:hover {
    background: rgba(17, 24, 39, 0.04);
    border-color: rgba(17, 24, 39, 0.55);
}
.ek-btn--secondary:active {
    transform: translateY(1px);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}
.ek-btn--secondary:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 3px;
}
.ek-btn--secondary[aria-disabled="true"],
.ek-btn--secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---------- Form controls (use for inputs/selects/textarea wrappers) ---------- */
.ek-control {
    border: 1px solid var(--ek-border-ui);
    border-radius: var(--ek-radius-sm);
    background: #fff;
    color: var(--ek-text);
}
.ek-control::placeholder { color: rgba(17, 24, 39, 0.55); }

/* ---------- Media helpers ---------- */
.ek-media-cover img { width: 100%; height: 100%; object-fit: cover; }
.ek-media-contain img { width: 100%; height: 100%; object-fit: contain; }

/* Line clamp utility (titles, etc.) */
.ek-line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ---------- Grids ---------- */
.ek-grid {
    display: grid;
    gap: var(--ek-grid-gap, clamp(12px, 1.8vw, 24px));
}

/* Apple-style tiles: 1-col mobile, 2-col desktop */
.ek-grid--tiles {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .ek-grid--tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Products: responsive fill */
.ek-grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
    .ek-grid--products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- Product card system ---------- */
.ek-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius-md);
    background: var(--ek-bg);
    overflow: hidden;
    box-shadow: var(--ek-shadow-sm);
}

.ek-product-card__media {
    aspect-ratio: 4 / 5; /* default product image ratio */
    background: var(--ek-surface);
    display: block;
    overflow: hidden;
}

.ek-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* avoid cropping bags */
    padding: 10%;        /* consistent “safe area” */
}

.ek-product-card__body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.ek-product-card__title {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--ek-text);
}

.ek-product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    color: var(--ek-subtle);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
}

.ek-product-card__price {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--ek-text);
}

/* Pins CTA row to bottom for equal-height cards */
.ek-product-card__cta {
    margin-top: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ---------- Section title consistency helper ----------
   Use on all homepage/landing section headings.
------------------------------------------------------ */
.ek-section-title {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: clamp(18px, 2vw, 28px);
}

/* ---------- Divider (subtle) ---------- */
.ek-divider {
    height: 1px;
    background: var(--ek-border);
    border: 0;
    margin: 0;
}
/* ==========================================================
   Utilities (shared)
   ========================================================== */

/* Screen-reader-only utility (use for icon-only labels, etc.) */
.ek-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================
   Component: Reviews (PDP blocks)
   - PageBuilder-safe: targets stable data-ek-role hooks
   - Intended wrapper: add data-ek-role="reviews" on the section wrapper
   - Compatible wrapper fallback: section[data-ek-id$="-reviews"]
   - Hardened scoping: works even if the .ek-scope wrapper is missing in output
     (still safe because selectors are tightly bound to reviews-only hooks)
   ========================================================== */

:root {
    --ek-reviews-bg: #f3f0ea; /* warm sand (matches existing review surface) */
}

:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) {
    background: var(--ek-reviews-bg);
}

:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="reviews-head"] {
    text-align: center;
    align-items: center;
    justify-content: center;
}

/* Orange pill divider */
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="reviews-divider-wrap"] {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="reviews-divider"] {
    width: 76px;
    height: 4px;
    border-radius: 9999px;
    background: var(--ek-accent);
}

/* Review grid */
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="reviews-grid"] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--ek-grid-gap, clamp(12px, 1.8vw, 24px));
    grid-template-columns: 1fr;
    align-items: stretch;
}
@media (min-width: 900px) {
    :where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="reviews-grid"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Review card */
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="review-card"] {
    position: relative;
    background: var(--ek-bg);
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius-md);
    box-shadow: var(--ek-shadow-sm);
    padding: clamp(18px, 2vw, 26px);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

@media (min-width: 900px) {
    :where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="review-card"][data-variant="raised"] {
        transform: translateY(-10px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    }
}

/* Quote badge */
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="quote-badge"] {
    position: absolute;
    top: -22px;
    left: 18px;
    width: 66px;
    height: 56px;
    border-radius: 9999px;
    background: var(--ek-accent);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
    display: grid;
    place-items: center;
    transform: rotate(-12deg);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="quote-badge"] span {
    font-family: "Times New Roman", Times, serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

/* Stars (centered) */
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="stars"] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 6px 0 12px;
    width: 100%;
    color: var(--ek-accent);
}
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="stars"] svg {
    display: inline-block;
    vertical-align: middle;
}

/* Review text */
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="review-text"] {
    margin: 0;
    color: var(--ek-text);
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
}

/* Divider inside card */
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="rule"] {
    margin: 18px 0 10px;
    border: 0;
    height: 1px;
    background: rgba(17, 24, 39, 0.10);
}

/* Footer */
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="review-footer"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="review-name"] {
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ek-text);
    font-size: 14px;
}

/* Read more (keeps ek-link semantics but styles consistently) */
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="readmore"] {
    color: var(--ek-subtle);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="readmore"]:hover {
    color: var(--ek-text);
}

/* CTA row */
:where([data-ek-role="reviews"], section[data-ek-id$="-reviews"]) [data-ek-role="reviews-cta"] {
    margin-top: clamp(18px, 2.2vw, 28px);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: center;
    align-items: center;
}

/* ==========================================================
   Component: Macro Cards Grid (PDP blocks)
   - Reusable for "Why" and "Premium materials" style sections
   - PageBuilder-safe: targets stable data-ek-role hooks
   - Intended hooks:
     - data-ek-role="macro-head" on the section header wrapper
     - data-ek-role="macro-grid" on the grid container
     - data-ek-role="macro-card" on each card
     - data-ek-role="macro-media" + img inside
     - data-ek-role="macro-body" + optional macro-kicker/macro-title/macro-desc
   ========================================================== */

:root {
    --ek-macro-gap: clamp(12px, 1.8vw, 24px);
}

.ek-scope [data-ek-role="macro-head"] {
    text-align: center;
    align-items: center;
    justify-content: center;
}

.ek-scope [data-ek-role="macro-grid"] {
    display: grid;
    gap: var(--ek-macro-gap);
    grid-template-columns: 1fr;
    align-items: stretch;
}
@media (min-width: 768px) {
    .ek-scope [data-ek-role="macro-grid"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .ek-scope [data-ek-role="macro-grid"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ek-scope [data-ek-role="macro-card"] {
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius-md);
    background: var(--ek-bg);
    overflow: hidden;
    box-shadow: var(--ek-shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ek-scope [data-ek-role="macro-media"] {
    aspect-ratio: 4 / 3;
    background: var(--ek-surface);
    overflow: hidden;
}
.ek-scope [data-ek-role="macro-media"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ek-scope [data-ek-role="macro-body"] {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ek-scope [data-ek-role="macro-kicker"] {
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ek-subtle);
    margin: 0;
}

.ek-scope [data-ek-role="macro-title"] {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
    color: var(--ek-text);
}

.ek-scope [data-ek-role="macro-desc"] {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
    color: var(--ek-muted);
}

/* ==========================================================
   WCAG 2.5.5 / 2.5.8 — Touch target sizing (min 44×44px)
   Footer navigation links + social media icons
   ========================================================== */

/* Footer nav links inside CMS blocks and template lists */
.main-footer ul li a,
.main-footer ol li a,
.page-footer ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Tighten list item margins to compensate for link padding */
.main-footer ul li,
.main-footer ol li,
.page-footer ul li {
    margin-top: 0;
}

/* Social media icon links — ensure 44×44 minimum */
.main-footer .social-icon-block a svg,
.page-footer .social-icon-block a svg {
    min-width: 24px;
    min-height: 24px;
}

.main-footer .social-icon-block a,
.page-footer .social-icon-block a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
}

/* ---------- Buy block (landing pages) — append to ek-design-page.css ---------- */
.ek-buy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--ek-text);
    font-family: var(--ek-font-sans);
}
.ek-buy--card {
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius-md);
    background: var(--ek-bg);
    box-shadow: var(--ek-shadow-sm);
    overflow: hidden;
}
.ek-buy__media {
    aspect-ratio: 4 / 5;
    background: var(--ek-surface);
    display: block;
    overflow: hidden;
}
.ek-buy__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10%;
}
.ek-buy__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 16px;
}
.ek-buy--inline .ek-buy__body { padding: 0; }
.ek-buy__title {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
}
.ek-buy__price {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}
.ek-buy__price .old-price,
.ek-buy__price .price-container.old-price .price {
    color: var(--ek-subtle);
    font-weight: 600;
    text-decoration: line-through;
    margin-left: 8px;
}
.ek-buy__price .price-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.ek-buy__preorder {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ek-accent);
}
.ek-buy__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.ek-buy__qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ek-muted);
}
.ek-buy__qty select { min-height: 44px; min-width: 72px; }
.ek-buy__btn { flex: 1 1 auto; }
.ek-buy__choice {
    flex: 1 1 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.ek-buy__choice-label {
    margin: 0 0 6px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ek-muted);
}
.ek-buy__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ek-buy__pill { position: relative; }
.ek-buy__pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.ek-buy__pill > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--ek-border);
    border-radius: 999px;
    background: var(--ek-bg);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.ek-buy__pill input:checked + span {
    border-color: var(--ek-text);
    box-shadow: inset 0 0 0 1px var(--ek-text);
}
.ek-buy__pill input:focus-visible + span {
    outline: 2px solid var(--ek-focus-outer);
    outline-offset: 2px;
}
.ek-buy__pill input:disabled + span {
    color: var(--ek-muted);
    border-style: dashed;
    cursor: not-allowed;
}
.ek-buy__pill input:disabled + span .ek-buy__swatch { opacity: .4; }
.ek-buy__soldout {
    font-size: 12px;
    font-weight: 600;
}
.ek-buy__swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 0 1px var(--ek-border);
}

/* Sticky bottom bar. Hidden until the first non-sticky buy block scrolls above the viewport. */
.ek-buy--sticky {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--ek-bg);
    border-top: 1px solid var(--ek-border);
    box-shadow: 0 -4px 16px rgba(17, 24, 39, .10);
    transform: translateY(110%);
    transition: transform 200ms ease;
}
.ek-buy--sticky.ek-buy--sticky-shown { transform: translateY(0); }
.ek-buy--sticky .ek-buy__body {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 0;
    width: 100%;
    max-width: var(--ek-container);
    margin: 0 auto;
}
.ek-buy--sticky .ek-buy__title { font-size: 15px; flex: 1 1 200px; }
.ek-buy--sticky .ek-buy__price { font-size: 18px; }
.ek-buy--sticky .ek-buy__preorder { display: none; }
.ek-buy--sticky .ek-buy__form { flex: 0 0 auto; }
.ek-buy--sticky .ek-buy__choice { flex: 0 0 auto; }
.ek-buy--sticky .ek-buy__choice-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
@media (prefers-reduced-motion: reduce) {
    .ek-buy--sticky { transition: none; }
}
@media (min-width: 1024px) {
    .ek-buy--sticky { display: none; }
}

/* ---------- Buy block deal variant (variant="deal", BFCM 2026 /deals) ---------- */
.ek-buy--deal .ek-buy__media{aspect-ratio:3/2}
.ek-buy--deal .ek-buy__media img{object-fit:contain;padding:0}
.ek-buy--deal .ek-buy__body{gap:10px;padding:18px clamp(16px,2vw,24px) 20px}
.ek-buy--deal .ek-buy__kicker{margin:0 0 -4px;font-size:12px;line-height:1.4;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ek-accent)}
.ek-buy--deal .ek-buy__title{font-size:clamp(1.2rem,1.7vw,1.45rem);line-height:1.15;font-weight:800;letter-spacing:-.015em;color:var(--ek-text)}
.ek-buy--deal .ek-buy__title .ek-link{color:inherit}
.ek-buy--deal .ek-buy__deal-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px}
.ek-buy--deal .ek-buy__now{font-size:clamp(2rem,3vw,2.4rem);font-weight:800;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.ek-buy--deal .ek-buy__was{font-size:1.35rem;font-weight:600;color:var(--ek-subtle);font-variant-numeric:tabular-nums;text-decoration-thickness:1.5px}
.ek-buy--deal .ek-buy__badge{align-self:center;background:var(--ek-accent);color:#fff;font-size:.82rem;line-height:1.2;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:7px 12px;border-radius:999px;white-space:nowrap}
.ek-buy--deal .ek-buy__save{margin:6px 0 0;font-size:.92rem;line-height:1.5;color:#4B5563}
.ek-buy--deal .ek-buy__save b{font-weight:700;color:var(--ek-text)}
.ek-buy--deal .ek-buy__breakdown{margin-top:2px}
.ek-buy--deal .ek-buy__breakdown summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 2px;cursor:pointer;list-style:none;font-size:.92rem;font-weight:700;color:var(--ek-accent)}
.ek-buy--deal .ek-buy__breakdown summary::-webkit-details-marker{display:none}
.ek-buy--deal .ek-buy__breakdown summary::before{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s ease;flex:none;margin:0 2px 0 3px}
.ek-buy--deal .ek-buy__breakdown[open] summary::before{transform:rotate(45deg);margin-top:-4px}
.ek-buy--deal .ek-buy__breakdown summary:hover{color:var(--ek-accent-hover)}
.ek-buy--deal .ek-buy__breakdown-hide{display:none}
.ek-buy--deal .ek-buy__breakdown[open] .ek-buy__breakdown-show{display:none}
.ek-buy--deal .ek-buy__breakdown[open] .ek-buy__breakdown-hide{display:inline}
.ek-buy--deal .ek-buy__lines{margin:6px 0 0;border:1px solid #E5E7EB;border-radius:12px;overflow:hidden;font-size:.95rem;line-height:1.5}
.ek-buy--deal .ek-buy__lines>div{display:flex;justify-content:space-between;gap:14px;padding:9px 14px;border-top:1px solid #E5E7EB}
.ek-buy--deal .ek-buy__lines>div:first-child{border-top:0}
.ek-buy--deal .ek-buy__lines dt{color:#4B5563;min-width:0;font-weight:400}
.ek-buy--deal .ek-buy__lines dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.ek-buy--deal .ek-buy__lines .ek-buy__line--sum{background:var(--ek-surface)}
.ek-buy--deal .ek-buy__lines .ek-buy__line--sum dt{color:var(--ek-text);font-weight:700}
.ek-buy--deal .ek-buy__lines .ek-buy__line--sum dd{color:var(--ek-subtle)}
.ek-buy--deal .ek-buy__lines .ek-buy__line--now{align-items:baseline;padding-top:12px;padding-bottom:12px}
.ek-buy--deal .ek-buy__lines .ek-buy__line--now dt{color:var(--ek-text);font-weight:800}
.ek-buy--deal .ek-buy__lines .ek-buy__line--now dd{font-size:1.15rem;font-weight:800;letter-spacing:-.01em;line-height:1}
.ek-buy--deal .ek-buy__lines .ek-buy__line--save{background:#FDF1E9;border-top-color:#F6D5C2}
.ek-buy--deal .ek-buy__lines .ek-buy__line--save dt,.ek-buy--deal .ek-buy__lines .ek-buy__line--save dd{color:#7C2D12;font-weight:800}
.ek-buy--deal .ek-buy__form{gap:8px 10px}
.ek-buy--deal .ek-buy__choice-label{float:left;margin:0 12px 0 0;line-height:44px}
@media (prefers-reduced-motion:reduce){.ek-buy--deal .ek-buy__breakdown summary::before{transition:none}}

/* ---------- PDP buy box: trust row and reviews summary card (2026-11-18) ---------- */
.ek-buybox {
    margin-top: 16px;
}

.ek-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ek-muted);
}

.ek-trust li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ek-trust svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #166534;
}

.ek-pdp-summary {
    margin-top: 16px;
    padding: 16px;
    background: var(--ek-surface);
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius-md);
}

.ek-pdp-summary__title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.ek-pdp-summary__chips {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ek-pdp-summary__chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--ek-text);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.ek-pdp-summary__chip:hover {
    background: var(--ek-muted);
}

.ek-pdp-summary__text {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ek-text);
}

/* ---------- PDP reviews section, design B (2026-11-18) ---------- */
.ek-pdp-reviews {
    padding-block: var(--ek-section-minor-y);
    scroll-margin-top: 96px;
}

.ek-pdp-reviews__title {
    margin-bottom: 24px;
}

.ek-pdp-reviews__layout {
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .ek-pdp-reviews__layout {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 48px;
        align-items: start;
    }

    .ek-pdp-reviews__summary {
        position: sticky;
        top: 96px;
    }
}

.ek-pdp-reviews__average {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ek-pdp-reviews__average-value {
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
}

.ek-pdp-reviews__average-stars span {
    font-size: 22px;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--ek-accent) var(--ek-fill), #d1d5db var(--ek-fill));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ek-pdp-reviews__based,
.ek-pdp-reviews__recommend {
    margin: 8px 0 0;
    font-size: 15px;
    color: var(--ek-muted);
}

.ek-pdp-reviews__bars {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.ek-pdp-reviews__bar {
    width: 100%;
    min-height: 32px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 40px;
    gap: 10px;
    align-items: center;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    font-size: 14px;
    color: var(--ek-text);
    text-align: left;
    cursor: pointer;
}

.ek-pdp-reviews__bar:hover:not(:disabled),
.ek-pdp-reviews__bar[aria-pressed="true"] {
    border-color: var(--ek-border-ui);
}

.ek-pdp-reviews__bar:disabled {
    color: var(--ek-subtle);
    cursor: default;
}

.ek-pdp-reviews__bar > span:last-child {
    text-align: right;
}

.ek-pdp-reviews__meter {
    height: 8px;
    border-radius: 9999px;
    background: #e5e7eb;
    overflow: hidden;
}

.ek-pdp-reviews__meter span {
    display: block;
    height: 100%;
    background: var(--ek-accent);
}

.ek-pdp-reviews__write {
    margin-top: 20px;
}

.ek-pdp-reviews__topics-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
}

.ek-pdp-reviews__chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ek-pdp-reviews__chip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--ek-border-ui);
    border-radius: 9999px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--ek-text);
    cursor: pointer;
}

.ek-pdp-reviews__chip[aria-pressed="true"] {
    background: var(--ek-text);
    border-color: var(--ek-text);
    color: #fff;
}

.ek-pdp-reviews__chip-count {
    font-weight: 400;
    color: inherit;
    opacity: 0.75;
}

.ek-pdp-reviews__controls {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ek-pdp-reviews__control select {
    min-height: 44px;
    padding: 8px 36px 8px 12px;
    font-size: 15px;
}

.ek-pdp-reviews__status {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--ek-muted);
}

.ek-pdp-reviews__list[aria-busy="true"] {
    opacity: 0.5;
}

.ek-pdp-review {
    padding-block: 20px;
    border-bottom: 1px solid var(--ek-border);
}

.ek-pdp-review:focus {
    outline: none;
}

.ek-pdp-review__stars {
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--ek-accent);
}

.ek-pdp-review__stars-off {
    color: #d1d5db;
}

.ek-pdp-review__title {
    margin: 6px 0 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
}

.ek-pdp-review__body {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ek-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.ek-pdp-review__body--open {
    display: block;
}

.ek-pdp-review__more {
    margin-top: 4px;
    padding: 0;
    background: none;
    border: 0;
    font-size: 14px;
    cursor: pointer;
}

.ek-pdp-review__note,
.ek-pdp-review__meta,
.ek-pdp-review__helpful {
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    font-size: 14px;
    color: var(--ek-subtle);
}

.ek-pdp-review__note .ek-link {
    padding: 0;
    background: none;
    border: 0;
    font-size: 14px;
    cursor: pointer;
}

.ek-pdp-review__meta [itemprop="author"] {
    font-weight: 700;
    color: var(--ek-text);
}

.ek-pdp-review__verified {
    color: #166534;
    font-weight: 600;
}

.ek-pdp-review__vote {
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid var(--ek-border-ui);
    border-radius: 9999px;
    background: #fff;
    font-size: 14px;
    color: var(--ek-text);
    cursor: pointer;
}

.ek-pdp-review__vote[aria-pressed="true"] {
    background: var(--ek-surface);
    cursor: default;
}

.ek-pdp-reviews__more {
    margin-top: 24px;
}

.ek-pdp-reviews__empty {
    margin: 0;
    text-align: center;
}

/* Review photos: thumbnails on the card, full size in a native dialog. */
.ek-pdp-review__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ek-pdp-review__photo {
    display: block;
    padding: 0;
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius-md);
    overflow: hidden;
    background: var(--ek-surface);
    cursor: zoom-in;
}

.ek-pdp-review__photo img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.ek-pdp-review__dialog {
    max-width: min(92vw, 1200px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: var(--ek-radius-md);
    background: #000;
}

.ek-pdp-review__dialog::backdrop {
    background: rgb(0 0 0 / 0.75);
}

.ek-pdp-review__dialog img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    margin: 0 auto;
}

.ek-pdp-review__dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 9999px;
    background: rgb(0 0 0 / 0.6);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* Review form photo field (PDP form and email request form). */
.ek-photo-field {
    margin-top: 16px;
}

.ek-photo-field__title {
    margin: 0;
    font-weight: 600;
    color: var(--ek-text);
}

.ek-photo-field__hint,
.ek-photo-field__status {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--ek-muted);
}

.ek-photo-field__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.ek-photo-field__list:empty {
    display: none;
}

.ek-photo-field__item {
    position: relative;
}

.ek-photo-field__item img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--ek-radius-md);
}

.ek-photo-field__item[aria-busy="true"] img {
    opacity: 0.4;
}

.ek-photo-field__remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 9999px;
    background: var(--ek-text);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.ek-photo-field__add {
    display: inline-flex;
    margin-top: 8px;
    cursor: pointer;
}

.ek-photo-field__add[hidden] {
    display: none;
}

.ek-photo-field__add:focus-within {
    outline: 2px solid var(--ek-text);
    outline-offset: 2px;
}

/* ---------- PDP: reviews summary under the gallery on desktop (2026-11-18) ---------- */
.ek-pdp-media {
    display: contents;
}

.ek-pdp-media > .ek-pdp-summary {
    order: 1;
}

@media (min-width: 768px) {
    .ek-pdp-media {
        display: block;
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .ek-pdp-media > .ek-pdp-summary {
        margin-top: 24px;
    }
}
