/* ==========================================================================
   modern.css — standalone design system. Replaces the old main.css entirely.
   Color scheme preserved: teal #2ebaae, charcoal #3c3b3b on light gray #f4f4f4.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Tokens ---------- */
:root {
    --accent:        #2ebaae;
    --accent-dark:   #239a8f;
    --accent-soft:   rgba(46, 186, 174, 0.10);
    --accent-line:   rgba(46, 186, 174, 0.35);

    --ink:           #1f2024;
    --text:          #3c3b3b;
    --text-soft:     #5e5e5e;
    --text-faint:    #9a9a9a;

    --bg:            #ffffff;
    --bg-page:       #f4f4f4;
    --bg-soft:       #fafafa;

    --border:        #e7e7e7;
    --border-strong: #d2d2d2;

    --success:       #28a745;
    --danger:        #dc3545;
    --warning:       #febd00;

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(20, 20, 20, 0.05);
    --shadow-sm: 0 2px 8px rgba(20, 20, 20, 0.06);
    --shadow-md: 0 8px 22px rgba(20, 20, 20, 0.08);
    --shadow-lg: 0 16px 40px rgba(20, 20, 20, 0.12);

    --container: 1240px;
    --header-h:  64px;

    --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

    --font-body:    'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-display: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
html, body { background: var(--bg-page); }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-dark);
    transition: color 0.15s var(--ease);
}
a:hover { color: var(--accent); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; color: var(--ink); }

/* Typography utility for content area */
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-display); color: var(--ink); }
.prose h2 { font-size: 1.5em; line-height: 1.25; margin: 1.75em 0 0.5em; font-weight: 800; }
.prose h3 { font-size: 1.15em; line-height: 1.3;  margin: 1.5em 0 0.4em; font-weight: 800; }
.prose h4 { font-size: 1em;    line-height: 1.35; margin: 1.25em 0 0.4em; font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1em 1.25em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul ul, .prose ol ol { margin-bottom: 0; }
.prose a { color: var(--accent-dark); border-bottom: 1px solid var(--accent-line); }
.prose a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Global heading wrap safety */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Prevent any container child from overflowing horizontally */
body { overflow-x: hidden; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 736px) {
    .container { padding: 0 16px; }
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; outline: 2px solid var(--accent); }

/* ---------- Site header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}
.site-header__brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}
.site-header__brand a {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.site-header__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.site-header__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    flex: 1;
}
.site-header__nav a {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--text);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.site-header__nav a:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: transparent;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
    font-size: 16px;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent-dark); }

.site-header__search {
    position: relative;
}
.site-header__search input {
    width: 200px;
    height: 40px;
    padding: 0 16px 0 40px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 14px;
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease), width 0.2s var(--ease);
}
.site-header__search input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    width: 260px;
}
.site-header__search::before {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 13px;
    pointer-events: none;
}

.menu-toggle { display: none; }

@media (max-width: 880px) {
    .site-header__nav { display: none; }
    .site-header__search input { width: 160px; }
    .site-header__search input:focus { width: 180px; }
}
@media (max-width: 600px) {
    .site-header__search { display: none; }
    .menu-toggle { display: inline-flex; }
}

/* ---------- Mobile menu (off-canvas) ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 25, 0.55);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease);
}
.mobile-menu:target {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    background: #fff;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mobile-menu:target .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__close {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.mobile-menu__close:hover { background: var(--accent-soft); }
.mobile-menu__close::before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}
.mobile-menu__search input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
}
.mobile-menu__search input:focus { outline: none; border-color: var(--accent); }
.mobile-menu__list { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__list a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--ink);
    font-size: 16px;
}
.mobile-menu__list a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.mobile-menu__title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 8px;
    padding: 0 14px;
}

/* ---------- Hero (replaces left sidebar logo + tagline) ---------- */
.hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
    padding: 40px 0 28px;
}
.hero__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
}
.hero__logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px;
}
.hero__text { min-width: 0; }
.hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.hero__description {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.55;
    max-width: 720px;
}
@media (max-width: 600px) {
    .hero { padding: 24px 0 16px; }
    .hero__inner { grid-template-columns: 1fr; gap: 16px; text-align: left; }
    .hero__logo img { width: 84px; height: 84px; }
}

/* ---------- Page header (h1 area on individual pages) ---------- */
.page-header {
    padding: 28px 0 20px;
}
.page-header__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}
.page-header__meta {
    color: var(--text-soft);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.page-header__meta a { color: var(--accent-dark); border-bottom: 1px solid var(--accent-line); }
.page-header__meta a:hover { color: var(--accent); }

/* Breadcrumbs */
.crumbs {
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text-faint); }
.crumbs .sep { color: var(--border-strong); }

/* ---------- Main + layout ---------- */
main.site-main {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 48px;
}
.section { padding: 8px 0 32px; }
.section__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 32px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink);
    display: inline-block;
}

/* ---------- Card ---------- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-xs);
}
.card + .card { margin-top: 16px; }
@media (max-width: 600px) {
    .card { padding: 18px; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    transition: all 0.15s var(--ease);
    cursor: pointer;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(46, 186, 174, 0.28);
}
.btn--primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(46, 186, 174, 0.40);
}
.btn--lg { padding: 15px 24px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Product cards (listing) ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
    height: 100%;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.product-card__image {
    position: relative;
    background: #fff;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 18px;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s var(--ease);
}
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.product-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--accent-dark); }
.product-card__teaser {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.product-card__price {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    color: var(--accent-dark);
    line-height: 1;
}
.product-card__cta {
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    transition: background 0.15s var(--ease);
}
.product-card__cta:hover { background: var(--accent); color: #fff; }

/* ---------- List controls (section title + sort bar) ---------- */
.list-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
}
.list-controls .section__title {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.sort-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.sort-bar__label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-right: 4px;
}
.chip.sort-chip {
    font-size: 11px;
    padding: 6px 12px;
    letter-spacing: 0.08em;
}
.chip.sort-chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.chip.sort-chip.is-active:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ---------- Brand-compare side-by-side ---------- */
.product-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .product-compare-grid { grid-template-columns: 1fr; }
}

/* ---------- Compact product card (sidebar/featured) ---------- */
.product-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.15s var(--ease);
}
.product-strip:hover { background: var(--bg-soft); }
.product-strip__image {
    width: 64px;
    height: 64px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}
.product-strip__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-strip__body { min-width: 0; flex: 1; }
.product-strip__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.product-strip__price {
    color: var(--accent-dark);
    font-weight: 800;
    font-size: 13px;
    margin-top: 2px;
}

/* ---------- Category grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
    color: inherit;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
    color: inherit;
}
.category-card__image {
    aspect-ratio: 4 / 3;
    background: #fff center/contain no-repeat;
    transition: transform 0.3s var(--ease);
}
.category-card:hover .category-card__image { transform: scale(1.03); }
.category-card__body {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.category-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 2px;
}
.category-card__count {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ---------- Chip list (brands) ---------- */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    transition: all 0.15s var(--ease);
}
.chip:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- Linked list ---------- */
.linked-list { display: flex; flex-direction: column; }
.linked-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.linked-list li:last-child { border-bottom: 0; }
.linked-list li a {
    color: var(--ink);
    font-weight: 600;
    flex: 1;
    min-width: 0;
}
.linked-list li a:hover { color: var(--accent-dark); }
.linked-list .meta {
    color: var(--text-faint);
    font-size: 13px;
    white-space: nowrap;
}

/* ---------- FAQ / dl ---------- */
.faq dt {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--ink);
    font-size: 15px;
    margin-top: 18px;
    margin-bottom: 4px;
}
.faq dt:first-child { margin-top: 0; }
.faq dd { color: var(--text-soft); line-height: 1.6; }

/* ---------- Product detail ---------- */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}
.product-detail > * { min-width: 0; }
.product-detail__gallery {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.18s var(--ease);
    box-shadow: var(--shadow-xs);
}
.product-detail__gallery:hover { border-color: var(--accent); }
.product-detail__gallery img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s var(--ease);
}
.product-detail__gallery:hover img { transform: scale(1.04); }

.buybox {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.buybox__price {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--accent-dark);
    letter-spacing: -0.01em;
}
.buybox__unavailable {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--danger);
    font-size: 1.2rem;
}
.buybox__benefits { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.buybox__benefits li {
    padding-left: 24px;
    position: relative;
    color: var(--text-soft);
}
.buybox__benefits li::before {
    content: '';
    position: absolute;
    left: 0; top: 7px;
    width: 12px; height: 6px;
    border-left: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    transform: rotate(-45deg);
}
.buybox__benefits strong { color: var(--success); font-weight: 700; }

@media (max-width: 980px) {
    .product-detail { grid-template-columns: 1fr; gap: 20px; }
    .buybox { position: static; }
}
@media (max-width: 600px) {
    .product-detail__gallery { padding: 20px; }
    .buybox__price { font-size: 1.7rem; }
}

/* Star rating */
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-soft); }
.rating .star { color: #ddd; font-size: 14px; }
.rating .star--on { color: var(--warning); }

/* Product description prose */
.product-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-soft);
}
.product-description p { margin: 0 0 1em; }
.product-description strong { color: var(--ink); }

/* Spec table */
.spec-table { font-size: 14px; }
.spec-table thead tr { border-bottom: 2px solid var(--border-strong); }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tbody tr:last-child { border-bottom: 0; }
.spec-table td, .spec-table th { padding: 10px 8px; vertical-align: top; color: var(--text-soft); text-align: left; }
.spec-table th { color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.spec-table td:first-child { color: var(--ink); width: 40%; font-weight: 600; }

/* ---------- Pagination (simple — prev/next only) ---------- */
.pagination-simple {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 48px 0 32px;
}
.pagination-simple__btn {
    flex: 1 1 0;
    max-width: 220px;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: #fff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s var(--ease);
    line-height: 1;
    text-align: center;
}
.pagination-simple__btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(46, 186, 174, 0.30);
}
.pagination-simple__btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}
@media (max-width: 480px) {
    .pagination-simple__btn { padding: 12px 14px; font-size: 12px; min-width: 0; }
}

/* ---------- Pagination (numbered) ---------- */
nav[role="navigation"] ul,
.pagination,
ul.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 48px 0 32px;
}
.pagination a, .pagination span,
ul.pagination a, ul.pagination span,
nav[role="navigation"] a, nav[role="navigation"] span {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: #fff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.15s var(--ease);
    min-width: 40px;
    text-align: center;
}
.pagination a:hover, .pagination .active span,
ul.pagination a:hover, ul.pagination .active span,
nav[role="navigation"] a:hover, nav[role="navigation"] .active span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination .disabled span,
ul.pagination .disabled span,
nav[role="navigation"] .disabled span {
    opacity: 0.45;
}

/* ---------- Callout/highlight ---------- */
.callout {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--ink);
    margin: 16px 0;
}
.callout a { color: var(--accent-dark); border-bottom: 1px solid var(--accent-line); }
.callout a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
    padding: 48px 0 24px;
    margin-top: 32px;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.site-footer h4 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 12px;
}
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { display: flex; flex-direction: column; gap: 6px; }
.site-footer ul.partners li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer ul.partners li > a:first-child {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.site-footer ul.partners li > a:first-child img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.site-footer ul.partners li > a:first-child .partner-icon {
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.site-footer ul.partners .partner-info { font-size: 13px; line-height: 1.4; }
.site-footer ul.partners .partner-info strong { color: #fff; display: block; font-weight: 700; }

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}
.site-footer ul.site-footer__social {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.site-footer ul.site-footer__social li { margin: 0; padding: 0; }
.site-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.site-footer__social a:hover { background: var(--accent); color: #fff; }
.site-footer__copyright { color: rgba(255, 255, 255, 0.55); }
.site-footer__copyright img { display: inline-block; vertical-align: middle; margin: 0 6px; }

/* ---------- Focus visible ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Visually hidden ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ==========================================================================
   Legacy class compatibility (for blog, page, calendar, content, errors —
   pages that still use the old .post / .mini-post / .image.featured markup)
   ========================================================================== */

.site-main article.post {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-xs);
    margin-bottom: 24px;
}
.site-main article.post > header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.site-main article.post > header:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.site-main article.post > header .title h1 {
    font-family: var(--font-display) !important;
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.01em !important;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.site-main article.post > header .title h2,
.site-main article.post h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4em;
    color: var(--ink);
    margin: 1.5em 0 0.5em;
    line-height: 1.25;
    letter-spacing: 0 !important;
}
.site-main article.post h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1em;
    color: var(--ink);
    margin: 1.25em 0 0.4em;
    letter-spacing: 0 !important;
}
.site-main article.post h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1em;
    margin: 1em 0 0.4em;
}
.site-main article.post p { margin: 0 0 1em; }
.site-main article.post p:last-child { margin-bottom: 0; }
.site-main article.post a { color: var(--accent-dark); }
.site-main article.post a:hover { color: var(--accent); }
.site-main article.post ul,
.site-main article.post ol { margin: 0 0 1em 1.25em; }
.site-main article.post ul { list-style: disc; }
.site-main article.post ol { list-style: decimal; }
.site-main article.post img { border-radius: var(--radius-sm); }
.site-main article.post table { font-size: 0.95em; margin: 1em 0; }
.site-main article.post table th,
.site-main article.post table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.site-main article.post .image.featured {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0 0 16px;
    position: relative;
}
.site-main article.post .image.featured .credit {
    border-radius: 0 0 0 var(--radius-sm);
}
.site-main article.post[style*="ebe6d7"],
.site-main article.post[style*="background-color: rgb(235, 230, 215)"] {
    background: var(--accent-soft) !important;
    border: 1px solid var(--accent-line) !important;
    border-left: 4px solid var(--accent) !important;
    color: var(--ink);
}
.site-main article.post > footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 13px;
}
.site-main article.post > footer:empty {
    margin: 0; padding: 0; border: 0;
}

/* Old .mini-post used outside the shop context — render as compact card */
.site-main article.mini-post:not(.product-card) {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}

/* Legacy .actions (ul of buttons) */
.site-main ul.actions {
    list-style: none;
    margin: 1em 0;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.site-main ul.actions li { margin: 0; padding: 0; }

/* Legacy generic ".button" — old img-based teal CTA, hide image fallback */
.site-main .button[type="submit"]:has(img[src="/images/button.png"]) {
    background: var(--accent);
    border-radius: var(--radius-sm);
    padding: 11px 20px;
    color: #fff;
    border: 0;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-main .button img[src="/images/button.png"] { display: none; }

/* Legacy <a class="button"> used in blog teasers / actions */
.site-main a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff !important;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    line-height: 1;
    transition: all 0.15s var(--ease);
    box-shadow: 0 2px 8px rgba(46, 186, 174, 0.28);
}
.site-main a.button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(46, 186, 174, 0.40);
    color: #fff !important;
}
.site-main a.button.large { padding: 13px 22px; font-size: 14px; }
.site-main a.button.previous,
.site-main a.button.next { background: var(--ink); box-shadow: none; }
.site-main a.button.previous:hover,
.site-main a.button.next:hover { background: var(--accent); box-shadow: 0 6px 18px rgba(46, 186, 174, 0.40); }

/* Legacy `.image.featured` (used in blog teaser / blog detail hero) */
.site-main .image.featured {
    display: block;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0 0 16px;
    position: relative;
    border: 1px solid var(--border);
}

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

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .product-card__cta, .buybox button, .pagination { display: none !important; }
    body, .site-main { background: #fff; }
}
