/* === DESIGN REFRESH (2026-02) === */
:root {
    --surface-0: #fbf7f5;
    --surface-1: #ffffff;
    --surface-2: #f5ece8;
    --ink-1: #111827;
    --ink-2: #4b5563;
    --line-soft: #e8d9d3;
    --brand-primary: #8B3E2F;
    --brand-primary-dark: #6B2F22;
    --brand-primary-light: #F5E8E5;
    --brand-charcoal: #3A3A3A;
    --brand-verified: #36C46F;
    --brand-verified-soft: #D4F5E3;
    --brand-verified-text: #1A8F53;
    --brand-green: #1fb16a;
    --ctrl-bg: #ffffff;
    --ctrl-bg-soft: #fbf7f5;
    --ctrl-bg-hover: #f5e8e5;
    --ctrl-border: #e4d8d4;
    --ctrl-border-strong: #d4c1bb;
    --ctrl-text: #3a3a3a;
    --ctrl-muted: #7a7876;
    --ctrl-radius-sm: 8px;
    --ctrl-radius-md: 10px;
    --ctrl-ring: 0 0 0 3px rgba(139, 62, 47, 0.16);
    --ctrl-shadow-sm: 0 1px 3px rgba(38, 19, 14, 0.1);
    --ctrl-shadow-md: 0 6px 16px rgba(45, 23, 17, 0.12);
}

body {
    background:
        radial-gradient(1200px 420px at 50% -170px, rgba(139, 62, 47, 0.13), transparent 72%),
        linear-gradient(180deg, #fdf9f7 0%, #f8f1ee 100%);
    color: var(--ink-1);
    padding-top: 70px;
}

main.container {
    padding-top: 0;
}

body.home-page main.container {
    padding-top: 1.25rem;
}

header {
    background: rgba(251, 247, 245, 0.94);
    backdrop-filter: saturate(135%) blur(8px);
    border-bottom: 1px solid #e7d9d4;
    box-shadow: 0 1px 3px rgba(39, 19, 14, 0.12);
}

.header-container {
    height: 70px;
}

.logo {
    color: var(--brand-primary);
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: color 150ms ease;
}

.logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-mark {
    filter: drop-shadow(0 2px 6px rgba(107, 47, 34, 0.2));
    flex-shrink: 0;
}

.logo-wordmark {
    font-family: "Newsreader", Charter, "Bitstream Charter", Cambria, Georgia, serif;
    font-size: clamp(1.35rem, 1.15rem + 0.35vw, 1.55rem);
    line-height: 1;
    color: var(--brand-primary);
}

.logo:hover,
.logo:focus-visible {
    color: var(--brand-primary-dark);
}

.logo:hover .logo-wordmark,
.logo:focus-visible .logo-wordmark {
    color: var(--brand-primary-dark);
}

.main-nav a {
    color: var(--brand-charcoal);
    border-radius: 8px;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
    color: var(--brand-primary);
    background-color: var(--brand-primary-light);
    border-bottom-color: var(--brand-primary);
}

.main-nav a:focus-visible {
    outline: 3px solid rgba(139, 62, 47, 0.28);
    outline-offset: 2px;
}

.global-search-input {
    border-radius: 999px;
    border: 1.5px solid #e4d8d4;
    background: #fbf7f5;
}

.global-search-icon {
    color: rgba(107, 47, 34, 0.58);
}

.global-search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(139, 62, 47, 0.12);
}

.global-search-results {
    border-color: #e3d5cf;
    box-shadow: 0 14px 28px rgba(48, 25, 20, 0.14);
}

.search-result-item:hover {
    background: #faf3f1;
}

.search-result-item-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.search-result-item-price-old {
    font-size: 0.78rem;
    font-weight: 600;
    color: #8f8a88;
    text-decoration: line-through;
}

.search-view-all-btn {
    background: var(--brand-primary);
}

.search-view-all-btn:hover {
    background: var(--brand-primary-dark);
}

.mobile-search-btn,
.mobile-menu-btn {
    color: var(--brand-primary-dark);
    border: 2px solid #e2d2cd;
    border-color: #e2d2cd;
    background: #fffaf8;
}

.mobile-search-btn:hover,
.mobile-search-btn:active,
.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    color: var(--brand-primary);
    border-color: #ccb5ae;
    background: #f7ece8;
}

.mobile-menu {
    background: #fbf7f5;
    border-top: 1px solid #eadbd5;
    box-shadow: 0 8px 28px rgba(42, 21, 16, 0.14);
}

.mobile-menu-item {
    color: var(--brand-charcoal);
    border-bottom-color: #efe1db;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus {
    color: var(--brand-primary);
    background-color: var(--brand-primary-light);
}

.mobile-menu-item.active {
    color: var(--brand-primary);
    background-color: var(--brand-primary-light);
    border-left-color: var(--brand-primary);
}

.mobile-menu-backdrop {
    background: rgba(37, 19, 15, 0.48);
}

.mobile-search-container {
    background: #fbf7f5;
}

.mobile-search-header {
    background: #fbf7f5;
    border-bottom-color: #e8d9d2;
}

.mobile-search-close {
    color: var(--brand-primary-dark);
}

.mobile-search-close:hover {
    color: var(--brand-primary);
}

@media (min-width: 769px) {
    .global-search-container {
        max-width: 760px;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .logo-wordmark {
        font-size: 1.25rem;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }
}

/* === GLOBAL CONTROL TOKENS (Buttons / Forms / Filters) === */
.btn,
.btn-secondary,
.filter-toggle-btn,
.mobile-filters-toggle,
.clear-filters-btn,
.view-btn,
.pagination-btn,
.pagination-link,
.filter-chip,
.sort-select,
.per-page-select,
.filter-select,
.price-input {
    border-radius: var(--ctrl-radius-sm);
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn,
.btn-secondary {
    background: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 62, 47, 0.25);
}

.btn:hover,
.btn:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

.view-toggle {
    background: #f6ece8;
    border: 1px solid #e6d6d0;
    border-radius: var(--ctrl-radius-md);
    padding: 0.24rem;
}

.view-btn {
    color: var(--ctrl-muted);
    border: 1px solid transparent;
}

.view-btn:hover {
    background: var(--ctrl-bg-hover);
    color: var(--brand-primary);
}

.view-btn.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(139, 62, 47, 0.24);
}

.filter-toggle-btn,
.mobile-filters-toggle {
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    color: var(--ctrl-text);
    box-shadow: var(--ctrl-shadow-sm);
}

.filter-toggle-btn:hover,
.mobile-filters-toggle:hover {
    background: var(--ctrl-bg-soft);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.filter-toggle-icon {
    color: var(--brand-primary-dark);
}

.filter-chips {
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    border-radius: var(--ctrl-radius-md);
    box-shadow: var(--ctrl-shadow-md);
}

.filter-chip {
    color: var(--brand-primary-dark);
    font-weight: 600;
}

.filter-chip:hover {
    color: var(--brand-primary);
}

.filter-chip-count {
    color: #8d8885;
}

.search-filters {
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    border-radius: var(--ctrl-radius-md);
    box-shadow: var(--ctrl-shadow-sm);
}

.search-filters h2 {
    color: var(--brand-primary-dark);
    border-bottom-color: #eadfdb;
}

.filter-group {
    border-bottom-color: #f0e6e2;
}

.filter-group h3 {
    color: #746e6b;
}

.filter-select,
.price-input,
.sort-select,
.per-page-select {
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    color: var(--ctrl-text);
}

.filter-select:hover,
.price-input:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(139, 62, 47, 0.08);
}

.category-checkbox-label,
.compact-checkbox-label,
.stock-radio-label {
    border-radius: 6px;
}

.category-checkbox-label:hover,
.compact-checkbox-label:hover,
.stock-radio-label:hover {
    background: #faf3f1;
    color: var(--brand-primary);
}

.category-checkbox,
.compact-checkbox,
.stock-radio-label input[type="radio"] {
    accent-color: var(--brand-primary);
}

.filter-mini-search {
    width: 100%;
    margin: 0.35rem 0 0.55rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--ctrl-border);
    border-radius: 8px;
    background: var(--ctrl-bg);
    color: var(--ctrl-text);
    font-size: 0.9rem;
}

.filter-mini-search:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(139, 62, 47, 0.08);
}

.price-range-display {
    background: #fbf5f2;
    color: var(--ctrl-text);
}

.price-range-slider::-webkit-slider-thumb {
    background: var(--brand-primary);
}

.price-range-slider::-moz-range-thumb {
    background: var(--brand-primary);
}

body.search-page-layout .price-range-slider-wrapper {
    height: 34px;
    --range-left: 0%;
    --range-right: 100%;
}

body.search-page-layout .price-range-slider-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    background: #e5e7eb;
    border-radius: 999px;
}

body.search-page-layout .price-range-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--range-left);
    right: calc(100% - var(--range-right));
    height: 6px;
    transform: translateY(-50%);
    background: var(--brand-primary);
    border-radius: 999px;
}

body.search-page-layout .price-range-slider {
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
}

body.search-page-layout .price-range-slider::-webkit-slider-thumb {
    /* Align the 18px thumb to the 6px visual track in WebKit browsers */
    margin-top: -6px;
    position: relative;
    z-index: 3;
}

body.search-page-layout .price-range-slider::-moz-range-thumb {
    position: relative;
    z-index: 3;
}

body.search-page-layout .price-range-slider::-webkit-slider-runnable-track {
    background: transparent;
}

body.search-page-layout .price-range-slider::-moz-range-track {
    background: transparent;
}

body.search-page-layout #price-max-slider::-webkit-slider-runnable-track {
    background: transparent;
}

body.search-page-layout #price-max-slider::-moz-range-track {
    background: transparent;
}

.clear-filters-btn {
    background: #fff;
    color: var(--brand-primary-dark);
    border: 1px solid var(--ctrl-border-strong);
    box-shadow: none;
}

.clear-filters-btn:hover {
    background: var(--ctrl-bg-hover);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: none;
}

.results-controls label {
    color: #716d6a;
}

.pagination-link,
.pagination-btn {
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    color: var(--ctrl-text);
}

.pagination-link:hover,
.pagination-btn:hover {
    background: var(--ctrl-bg-hover);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.pagination-link.pagination-current,
.pagination-btn.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.mobile-filters-toggle.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.mobile-filters-toggle .filter-count {
    background: rgba(139, 62, 47, 0.14);
    color: var(--brand-primary-dark);
}

.mobile-filters-toggle.active .filter-count {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--ctrl-ring);
    border-color: var(--brand-primary);
}

/* === CATEGORY / SEARCH PAGE LAYOUT REDESIGN === */
body.category-page-layout .category-page,
body.search-page-layout .search-page {
    margin-bottom: 3.25rem;
}

body.category-page-layout .category-header,
body.search-page-layout .search-page-header {
    background: linear-gradient(180deg, #fff9f7 0%, #fdf6f3 100%);
    border: 1px solid #e8d9d3;
    border-radius: 16px;
    padding: 1.2rem 1.35rem;
    box-shadow: 0 6px 16px rgba(44, 22, 17, 0.08);
}

body.category-page-layout .category-header {
    margin-bottom: 1.15rem;
    text-align: left;
}

body.search-page-layout .search-page-header {
    margin-bottom: 1.25rem;
}

body.category-page-layout .category-title,
body.search-page-layout .search-page-header h1 {
    margin: 0 0 0.35rem;
    font-family: "Newsreader", Charter, "Bitstream Charter", Cambria, Georgia, serif;
    color: var(--brand-primary-dark);
    letter-spacing: -0.01em;
}

body.category-page-layout .category-title {
    font-size: clamp(1.62rem, 1.15rem + 1.2vw, 2.3rem);
}

body.search-page-layout .search-page-header h1 {
    font-size: clamp(1.35rem, 1rem + 0.95vw, 1.95rem);
}

body.category-page-layout .category-description {
    margin: 0;
    color: #6e6662;
    max-width: 72ch;
    font-size: 0.98rem;
}

body.category-page-layout .category-controls {
    background: #fff;
    border: 1px solid #e8d9d3;
    border-radius: 12px;
    padding: 0.72rem 0.9rem;
    margin: 0 0 1.1rem;
}

body.search-page-layout .search-results-container {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

body.search-page-layout .search-filters {
    position: sticky;
    top: 84px;
}

body.search-page-layout .search-results-header {
    background: #fff;
    border: 1px solid #eadcd7;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
}

body.search-page-layout .results-controls {
    gap: 0.75rem;
}

body.search-page-layout .results-controls label {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.86rem;
}

body.search-page-layout .sort-select,
body.search-page-layout .per-page-select {
    min-height: 36px;
    padding: 0.4rem 0.55rem;
}

body.category-page-layout .pagination,
body.search-page-layout .pagination {
    border-top: 1px solid #eaded9;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
}

body.category-page-layout .pagination-ellipsis {
    color: #9a8f8a;
}

body.search-page-layout .no-results,
body.search-page-layout .search-empty-state,
body.category-page-layout .no-products {
    background: #fff;
    border: 1px dashed #decbc4;
    border-radius: 14px;
    padding: 1.2rem 1rem;
}

@media (max-width: 968px) {
    body.search-page-layout .search-results-container {
        grid-template-columns: 1fr;
    }

    body.search-page-layout .search-filters {
        position: static;
    }

    body.search-page-layout .search-results-header {
        padding: 0.62rem 0.72rem;
    }
}

@media (max-width: 768px) {
    body.category-page-layout .category-header,
    body.search-page-layout .search-page-header {
        border-radius: 12px;
        padding: 0.95rem 0.9rem;
    }

    body.category-page-layout .category-controls {
        padding: 0.62rem 0.72rem;
    }
}

.section-title {
    text-align: left;
    font-size: clamp(1.45rem, 1rem + 1.2vw, 2rem);
    letter-spacing: -0.02em;
    color: var(--brand-primary-dark);
    margin-bottom: 1.25rem;
}

.home-hero {
    margin: 0.5rem 0 1.25rem;
}

.home-hero-inner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, #6b2f22 0%, #8b3e2f 56%, #a8513d 100%);
    color: #fff;
    border-radius: 24px;
    padding: clamp(1.4rem, 2.2vw, 2.25rem);
    box-shadow: 0 22px 38px rgba(58, 26, 19, 0.24);
}

.home-hero-inner::before {
    content: "";
    position: absolute;
    inset: auto -70px -95px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.home-kicker {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-title {
    margin-top: 0.85rem;
    font-size: clamp(1.55rem, 1.05rem + 1.85vw, 2.55rem);
    line-height: 1.12;
    color: #fff;
    max-width: 18ch;
}

.home-subtitle {
    margin-top: 0.85rem;
    max-width: 62ch;
    font-size: 1rem;
    color: rgba(247, 251, 255, 0.92);
}

.home-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 650;
    padding: 0.72rem 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-1px);
}

.hero-btn-primary {
    background: #fff;
    color: var(--brand-primary-dark);
    box-shadow: 0 10px 20px rgba(58, 26, 19, 0.18);
}

.hero-btn-primary:hover {
    background: #f8efeb;
}

.hero-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.home-stats {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.home-stat {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
}

.home-stat strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
}

.home-stat span {
    display: block;
    margin-top: 0.16rem;
    font-size: 0.83rem;
    opacity: 0.95;
}

.product-grid {
    gap: 1.4rem;
}

.product-card {
    background: var(--surface-1);
    border: 1px solid #e7d9d4;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(52, 27, 21, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #d6bfb8;
    box-shadow: 0 18px 34px rgba(56, 29, 22, 0.16);
}

@media (min-width: 769px) {
    .product-card:not(.product-view-list .product-card) .product-top-row {
        padding: 0.75rem 0.75rem 0;
    }

    .product-card:not(.product-view-list .product-card) .product-image-container {
        border-radius: 12px;
    }

    .product-card:not(.product-view-list .product-card) .product-info-top {
        padding: 0.95rem 1rem 0;
    }

    .product-card:not(.product-view-list .product-card) .product-bottom-section {
        padding: 0 1rem 1rem;
    }

    body.product-page .related-products .product-card .product-image-container {
        width: calc(100% - 1.5rem);
        margin: 0.75rem auto 0;
        border-radius: 12px;
    }

    body.product-page .related-products .product-info {
        padding: 0.95rem 1rem 1rem;
    }
}

.product-card .product-image-container {
    background: linear-gradient(180deg, #fffefe 0%, #faf2ee 100%);
}

.product-brand {
    color: var(--brand-primary);
}

.product-advertiser {
    color: var(--ink-2);
}

.current-price:not(.special) {
    color: var(--brand-charcoal);
}

.current-price.special {
    color: var(--brand-primary);
}

.product-card .discount-badge {
    background: var(--brand-verified-soft);
    color: var(--brand-verified-text);
    border-radius: 9999px;
}

.product-card-btn {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border: 1px solid #7a372a;
    color: #fff;
    box-shadow: 0 10px 20px rgba(107, 47, 34, 0.24);
}

.product-card-btn:hover {
    background: linear-gradient(135deg, #7b382b 0%, #5f291e 100%);
    box-shadow: 0 14px 22px rgba(107, 47, 34, 0.34);
}

/* === GLOBAL CARD SYSTEM (Home / Category / Search) === */
body:not(.product-page) .product-grid:not(.product-view-list) .product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-top-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.8rem 0.8rem 0;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-image-container {
    position: relative;
    background: #fff;
    border: 1px solid #ece2de;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.7rem;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-info-top {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 0.15rem;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-brand {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-advertiser {
    font-size: 0.81rem;
    line-height: 1.25;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-advertiser .shop-icon {
    width: 0.9rem;
    height: 0.9rem;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .price-container {
    margin-top: 0.2rem;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .old-price {
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .current-price {
    font-size: 1.35rem;
    line-height: 1.15;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .current-price .currency {
    font-size: 0.78rem;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-bottom-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem 1rem;
    flex: 1;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-bottom-section .product-info {
    min-height: 3.2em;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-bottom-section .product-info h3 {
    font-size: 1.01rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-bottom-section .product-info a {
    text-decoration: none;
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-bottom-section .product-info a:hover h3 {
    color: var(--brand-primary);
}

body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-card-btn {
    margin-top: auto;
    min-height: 44px;
}

body:not(.product-page) .product-view-list .product-card .product-card-btn {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border: 1px solid #7a372a;
    color: #fff;
    box-shadow: 0 8px 16px rgba(107, 47, 34, 0.24);
}

body:not(.product-page) .product-view-list .product-card .product-card-btn:hover {
    background: linear-gradient(135deg, #7b382b 0%, #5f291e 100%);
}

/* Better list-mode composition: compact horizontal rows on desktop */
body.search-page-layout .product-view-list.product-grid,
body.category-page-layout .product-view-list.product-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.search-page-layout .product-view-list .product-card,
body.category-page-layout .product-view-list .product-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) 220px;
    grid-template-areas:
        "image meta cta"
        "image title cta";
    column-gap: 1rem;
    row-gap: 0.55rem;
    padding: 0.9rem;
    align-items: center;
}

body.search-page-layout .product-view-list .product-card .product-top-row,
body.search-page-layout .product-view-list .product-card .product-bottom-section,
body.category-page-layout .product-view-list .product-card .product-top-row,
body.category-page-layout .product-view-list .product-card .product-bottom-section {
    display: contents;
}

body.search-page-layout .product-view-list .product-card .product-image-container,
body.category-page-layout .product-view-list .product-card .product-image-container {
    grid-area: image;
    width: 168px;
    height: 168px;
    border-radius: 14px;
    margin: 0;
}

body.search-page-layout .product-view-list .product-card .product-info-top,
body.category-page-layout .product-view-list .product-card .product-info-top {
    grid-area: meta;
    min-width: 0;
    gap: 0.35rem;
}

body.search-page-layout .product-view-list .product-card .product-info,
body.category-page-layout .product-view-list .product-card .product-info {
    grid-area: title;
    min-width: 0;
}

body.search-page-layout .product-view-list .product-card .product-info h3,
body.category-page-layout .product-view-list .product-card .product-info h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.22;
    -webkit-line-clamp: 2;
}

body.search-page-layout .product-view-list .product-card .current-price,
body.category-page-layout .product-view-list .product-card .current-price {
    font-size: 1.15rem;
    line-height: 1.15;
}

body.search-page-layout .product-view-list .product-card .currency,
body.category-page-layout .product-view-list .product-card .currency {
    font-size: 0.85rem;
}

body.search-page-layout .product-view-list .product-card .product-card-btn,
body.category-page-layout .product-view-list .product-card .product-card-btn {
    grid-area: cta;
    align-self: stretch;
    height: 100%;
    min-height: 72px;
    margin: 0;
    border-radius: 14px;
}

@media (max-width: 900px) {
    body.search-page-layout .product-view-list .product-card,
    body.category-page-layout .product-view-list .product-card {
        grid-template-columns: 120px minmax(0, 1fr);
        grid-template-areas:
            "image meta"
            "title title"
            "cta cta";
        row-gap: 0.7rem;
        padding: 0.8rem;
    }

    body.search-page-layout .product-view-list .product-card .product-image-container,
    body.category-page-layout .product-view-list .product-card .product-image-container {
        width: 120px;
        height: 120px;
        border-radius: 12px;
    }

    body.search-page-layout .product-view-list .product-card .product-card-btn,
    body.category-page-layout .product-view-list .product-card .product-card-btn {
        width: 100%;
        min-height: 56px;
    }
}

.featured-products .product-grid,
.products-by-category-section .product-grid,
.category-page>.product-grid:not(.product-view-list) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.3rem;
}

.search-results-container .product-grid:not(.product-view-list) {
    gap: 1.3rem;
}

@media (max-width: 1200px) {
    .featured-products .product-grid,
    .products-by-category-section .product-grid,
    .category-page>.product-grid:not(.product-view-list),
    .search-results-container .product-grid:not(.product-view-list) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-top-row {
        padding: 0.65rem 0.65rem 0;
    }

    body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-image-container {
        border-radius: 11px;
    }

    body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-bottom-section {
        padding: 0 0.72rem 0.72rem;
        gap: 0.6rem;
    }

    body:not(.product-page) .product-grid:not(.product-view-list) .product-card .product-bottom-section .product-info h3 {
        font-size: 0.9rem;
    }

    body:not(.product-page) .product-grid:not(.product-view-list) .product-card .current-price {
        font-size: 1.18rem;
    }
}

footer {
    border-top: 1px solid #e7d9d4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .home-hero-inner {
        border-radius: 18px;
        padding: 1.1rem;
    }

    .home-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    .home-stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        text-align: left;
    }
}

/* Product page conversion upgrades */
.product-page .product-info>.product-card-btn {
    width: 100%;
    min-height: 54px;
    font-size: 1.02rem;
    font-weight: 700;
}

.product-buy-note {
    margin-top: 0.55rem;
    color: #4b5563;
    font-size: 0.87rem;
}

.mobile-sticky-buy {
    display: none;
}

@media (max-width: 768px) {
    .product-page {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .product-page .product-header {
        gap: 0.75rem;
    }

    .product-page .product-title {
        font-size: 1.3rem;
        line-height: 1.25;
    }

    .product-page .product-price {
        margin-top: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .mobile-sticky-buy {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.65rem 0.8rem calc(0.65rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #e4d8d4;
        box-shadow: 0 -8px 18px rgba(58, 26, 19, 0.14);
        backdrop-filter: blur(8px);
    }

    .mobile-sticky-buy__meta {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .mobile-sticky-buy__label {
        font-size: 0.73rem;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .mobile-sticky-buy__price {
        font-size: 1rem;
        color: #3a3a3a;
        white-space: nowrap;
    }

    .mobile-sticky-buy__btn {
        flex: 1;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.65rem 0.9rem;
        border-radius: 11px;
        text-decoration: none;
        color: #fff;
        font-size: 0.95rem;
        font-weight: 700;
        background: linear-gradient(135deg, #8b3e2f 0%, #6b2f22 100%);
        box-shadow: 0 9px 16px rgba(107, 47, 34, 0.28);
    }
}

/* === PRODUCT PAGE THEME (Claude Guide v2.1) === */
body.product-page {
    --tpc-primary: #8B3E2F;
    --tpc-primary-dark: #6B2F22;
    --tpc-primary-light: #F5E8E5;
    --tpc-secondary: #E27258;
    --tpc-forest: #228822;
    --tpc-verified: #36C46F;
    --tpc-golden: #FFD700;
    --tpc-charcoal: #3A3A3A;
    --tpc-warm-gray: #F2EAE8;
    --tpc-soft-white: #FBF7F5;
    --tpc-radius-sm: 4px;
    --tpc-radius-md: 8px;
    --tpc-radius-lg: 12px;
    --tpc-radius-full: 9999px;
    --tpc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --tpc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --tpc-shadow-brand: 0 2px 8px rgba(139, 62, 47, 0.25);
    background: var(--tpc-soft-white);
    color: var(--tpc-charcoal);
    font-family: "Plus Jakarta Sans", Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", sans-serif;
}

body.product-page .product-detail {
    max-width: 1200px;
    margin-top: 2rem;
    color: var(--tpc-charcoal);
}

body.product-page .product-header {
    gap: 2rem;
}

body.product-page .product-header>.product-info {
    background: #fff;
    border: 1px solid #e4d8d4;
    border-radius: var(--tpc-radius-lg);
    box-shadow: var(--tpc-shadow-sm);
    padding: 1.5rem;
    align-self: start;
}

body.product-page .product-title,
body.product-page .product-description h2,
body.product-page .related-products h2,
body.product-page .related-products .product-info h3 {
    font-family: "Newsreader", Charter, "Bitstream Charter", Cambria, Georgia, serif;
}

body.product-page .product-title {
    font-size: clamp(1.72rem, 2.45vw, 2.2rem);
    line-height: 1.22;
    margin-bottom: 0.75rem;
    color: #1f1f1f;
}

body.product-page .breadcrumb {
    background: #f8f4f3;
    border-bottom-color: #eadfdc;
}

body.product-page .breadcrumb-item a {
    color: var(--tpc-primary-dark);
    text-decoration-color: rgba(107, 47, 34, 0.25);
    text-underline-offset: 2px;
    transition: color 150ms ease, text-decoration-color 150ms ease;
}

body.product-page .breadcrumb-item a:hover {
    color: var(--tpc-primary);
    text-decoration-color: rgba(139, 62, 47, 0.6);
}

body.product-page .product-header>.product-info>p {
    color: var(--tpc-charcoal);
    font-size: 0.95rem;
}

body.product-page .product-header>.product-info>p .product-brand {
    color: var(--tpc-primary);
    font-weight: 700;
}

body.product-page .main-image-wrapper {
    border: 1px solid #e4d8d4;
    border-radius: var(--tpc-radius-lg);
    box-shadow: var(--tpc-shadow-sm);
    aspect-ratio: 4 / 3;
    min-height: 440px;
}

body.product-page #mainProductImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

body.product-page .gallery-nav {
    width: 44px;
    height: 44px;
    border-color: #d7c5c1;
    color: var(--tpc-primary);
}

body.product-page .gallery-nav:hover {
    background: #fff;
    border-color: var(--tpc-primary);
    box-shadow: var(--tpc-shadow-md);
}

body.product-page .product-thumbnails .thumbnail {
    border-color: #ddd1cd;
}

body.product-page .product-thumbnails .thumbnail:hover {
    border-color: var(--tpc-primary);
}

body.product-page .product-thumbnails .thumbnail.active {
    border-color: var(--tpc-primary);
    box-shadow: 0 0 0 2px rgba(139, 62, 47, 0.14);
}

body.product-page .product-price {
    margin: 1.5rem 0 1.25rem;
    gap: 0.5rem 0.7rem;
    align-items: center;
}

body.product-page .product-price .current-price {
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--tpc-charcoal);
}

body.product-page .product-price .current-price.special {
    color: var(--tpc-primary);
}

body.product-page .product-price .old-price {
    color: #8e8684;
    font-size: 1rem;
    font-weight: 500;
}

body.product-page .discount {
    background: #D4F5E3 !important;
    color: #1A8F53 !important;
    border-radius: var(--tpc-radius-full) !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    padding: 0.35rem 0.65rem !important;
    margin-left: 0.2rem;
}

body.product-page .price-disclaimer {
    color: #7a7573;
}

body.product-page .price-disclaimer:hover {
    color: var(--tpc-primary);
}

body.product-page .price-disclaimer .tooltip-text {
    background: #2f2f2f;
}

body.product-page .price-disclaimer .tooltip-text::after {
    border-color: #2f2f2f transparent transparent transparent;
}

body.product-page .availability-badge {
    border-radius: var(--tpc-radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

body.product-page .availability-badge.in_stock {
    background: #D4F5E3;
    color: #1A8F53;
}

body.product-page .availability-badge.out_of_stock {
    background: #FFF8D6;
    color: #A67C00;
}

body.product-page .product-card-btn,
body.product-page .mobile-sticky-buy__btn,
body.product-page .price-history-modal .product-card-btn {
    background: var(--tpc-primary);
    color: #fff;
    border: none;
    border-radius: var(--tpc-radius-md);
    box-shadow: var(--tpc-shadow-brand);
    min-height: 44px;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

body.product-page .product-card-btn:hover,
body.product-page .mobile-sticky-buy__btn:hover,
body.product-page .price-history-modal .product-card-btn:hover {
    background: var(--tpc-primary-dark);
    box-shadow: 0 6px 14px rgba(107, 47, 34, 0.28);
}

body.product-page .product-card-btn:active,
body.product-page .mobile-sticky-buy__btn:active,
body.product-page .price-history-modal .product-card-btn:active {
    transform: translateY(1px);
}

body.product-page .product-card-btn[style*="pointer-events: none"] {
    background: #c9a8a1;
    box-shadow: none;
    color: #fff;
}

body.product-page .product-info>.product-card-btn {
    width: 100%;
}

body.product-page .product-buy-note {
    margin-top: 0.55rem;
    font-size: 0.87rem;
    color: #5f5a57;
}

body.product-page .btn-toggle-history {
    background: transparent;
    color: var(--tpc-primary);
    border: 2px solid var(--tpc-primary);
    border-radius: var(--tpc-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 44px;
    padding: 0.5rem 0.9rem;
}

body.product-page .btn-toggle-history:hover {
    background: var(--tpc-primary-light);
    border-color: var(--tpc-primary-dark);
}

body.product-page .price-history-modal-content {
    border: 1px solid #e4d8d4;
    border-radius: var(--tpc-radius-lg);
}

body.product-page .chart-filters button.active {
    background: var(--tpc-primary);
    color: #fff;
}

body.product-page .product-description h2,
body.product-page .related-products h2 {
    font-size: clamp(1.75rem, 2.2vw, 2.2rem);
    color: #1f1f1f;
    margin-bottom: 1rem;
}

body.product-page .description-content {
    background: #fff;
    border: 1px solid #e4d8d4;
    border-radius: var(--tpc-radius-lg);
    margin: 0;
    padding: 1.25rem;
    line-height: 1.7;
    color: var(--tpc-charcoal);
    position: relative;
}

body.product-page .description-content.is-collapsed {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.product-page .description-content.is-collapsed::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 88%);
    bottom: 0;
    content: "";
    height: 3.5rem;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

body.product-page .description-toggle-btn {
    background: transparent;
    border: 0;
    color: var(--tpc-primary);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0.65rem;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.product-page .description-toggle-btn:hover {
    color: var(--tpc-primary-dark);
}

body.product-page .related-products .product-grid {
    gap: 1.25rem;
}

body.product-page .related-products .product-card {
    background: #fff;
    border: 1px solid #e4d8d4;
    border-radius: var(--tpc-radius-lg);
    box-shadow: var(--tpc-shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.product-page .related-products .product-card:hover {
    border-color: #d7bcb6;
    box-shadow: var(--tpc-shadow-md);
}

body.product-page .related-products .product-card .product-image-container {
    background: #fff;
}

body.product-page .related-products .product-card .product-image-container img {
    background: #fff;
}

body.product-page .related-products .product-brand {
    color: var(--tpc-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.product-page .related-products .product-top-row {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.75rem 0.75rem 0;
}

body.product-page .related-products .product-info-top {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 0.2rem;
}

body.product-page .related-products .product-info h3 {
    font-size: 1.2rem;
    line-height: 1.25;
    margin: 0;
}

body.product-page .related-products .product-info {
    min-height: 3.1em;
}

body.product-page .related-products .product-bottom-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0 1rem 1rem;
    flex: 1;
}

body.product-page .related-products .price-container {
    margin-top: 0.15rem;
}

body.product-page .related-products .product-info a:hover h3 {
    color: var(--tpc-primary);
}

body.product-page .related-products .product-advertiser {
    color: #6f6a67;
}

body.product-page .related-products .old-price {
    color: #8e8684;
}

body.product-page .related-products .current-price:not(.special) {
    color: var(--tpc-charcoal);
    font-size: 1.65rem;
}

body.product-page .related-products .current-price.special {
    color: var(--tpc-primary);
    font-size: 1.65rem;
}

body.product-page .mobile-sticky-buy {
    border-top: 1px solid #e4d8d4;
    background: rgba(251, 247, 245, 0.98);
    box-shadow: 0 -8px 18px rgba(58, 58, 58, 0.12);
}

body.product-page .mobile-sticky-buy__label {
    color: #6f6a67;
    font-size: 0.75rem;
}

body.product-page .mobile-sticky-buy__price {
    color: var(--tpc-charcoal);
}

body.product-page a:focus-visible,
body.product-page button:focus-visible,
body.product-page .product-card-btn:focus-visible,
body.product-page .mobile-sticky-buy__btn:focus-visible,
body.product-page .btn-toggle-history:focus-visible {
    outline: 3px solid var(--tpc-primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    body.product-page {
        padding-bottom: calc(112px + env(safe-area-inset-bottom));
    }

    body.product-page .product-header {
        gap: 1rem;
    }

    body.product-page .product-header>.product-info {
        padding: 1.15rem;
    }

    body.product-page .product-title {
        font-size: clamp(1.55rem, 6.4vw, 1.95rem);
    }

    body.product-page .product-price {
        margin-top: 0.85rem;
        margin-bottom: 1rem;
    }

    body.product-page .product-price .current-price {
        font-size: 2rem;
    }

    body.product-page .description-content {
        padding: 1rem;
    }

    body.product-page .breadcrumb .container {
        position: relative;
    }

    body.product-page .breadcrumb-nav {
        padding-right: 2rem;
    }

    body.product-page .breadcrumb .container::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(248, 244, 243, 0) 0%, #f8f4f3 76%);
    }

    body.product-page .related-products .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
        margin: 1rem 0;
    }

    body.product-page .related-products .product-card {
        border-radius: 10px;
    }

    body.product-page .related-products .product-top-row {
        padding: 0.65rem 0.65rem 0;
    }

    body.product-page .related-products .product-bottom-section {
        padding: 0 0.75rem 0.75rem;
        gap: 0.5rem;
    }

    body.product-page .related-products .product-info h3 {
        font-size: 0.96rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.product-page .related-products .product-advertiser {
        font-size: 0.75rem;
        margin-bottom: 0.45rem;
    }

    body.product-page .related-products .old-price {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }

    body.product-page .related-products .current-price:not(.special),
    body.product-page .related-products .current-price.special {
        font-size: 1.15rem;
        line-height: 1.2;
    }

    body.product-page .related-products .currency {
        font-size: 0.82rem;
    }

    body.product-page .related-products .product-card-btn {
        min-height: 40px;
        padding: 0.55rem 0.55rem;
        font-size: 0.82rem;
        gap: 0.3rem;
    }

    body.product-page .related-products .product-card-btn .cart-icon {
        width: 14px;
        height: 14px;
    }

    body.product-page .main-image-wrapper {
        aspect-ratio: 1 / 1;
        min-height: auto;
    }

    body.product-page .mobile-sticky-buy {
        align-items: stretch;
    }

    body.product-page .mobile-sticky-buy__meta {
        justify-content: center;
        max-width: 44%;
    }

    body.product-page .mobile-sticky-buy__actions {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    body.product-page .mobile-sticky-buy__history {
        min-height: 44px;
        min-width: 84px;
        padding: 0.6rem 0.8rem;
        border-radius: var(--tpc-radius-md);
        border: 2px solid var(--tpc-primary);
        background: #fff;
        color: var(--tpc-primary);
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }

    body.product-page .mobile-sticky-buy__history:hover {
        background: var(--tpc-primary-light);
        border-color: var(--tpc-primary-dark);
    }

    body.product-page .mobile-sticky-buy__btn {
        flex: 1;
        min-height: 44px;
        min-width: 0;
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-radius: var(--tpc-radius-md);
        gap: 0.5rem;
    }
}

/* === FOOTER + CONTENT PAGES (Deep Clay Migration) === */
footer {
    background: linear-gradient(180deg, #fbf4f1 0%, #f5ebe7 100%);
    border-top: 1px solid #e7d9d4;
    color: #5d5654;
    margin-top: 1.6rem;
}

.footer-content {
    padding: 1rem 1rem 0.85rem;
    gap: 0.6rem;
}

.footer-nav {
    gap: 1.2rem;
}

.footer-nav a {
    color: var(--brand-primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.footer-nav a::after {
    background-color: var(--brand-primary);
}

.footer-nav a:hover {
    color: var(--brand-primary);
}

.copyright {
    color: #665f5d;
}

.disclaimer {
    color: #7b7471;
    max-width: 72ch;
    font-size: 0.9rem;
    line-height: 1.5;
}

body.content-page .page {
    max-width: 980px;
    margin: 0 auto 1.5rem;
    padding: 0;
    background: #fff;
    border: 1px solid #eadcd7;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(58, 26, 19, 0.08);
    overflow: hidden;
}

body.content-page .page-title {
    margin: 0;
    padding: 1.25rem 1.45rem 1rem;
    text-align: left;
    color: var(--brand-primary-dark);
    font-family: "Newsreader", Charter, "Bitstream Charter", Cambria, Georgia, serif;
    font-size: clamp(1.7rem, 1.2rem + 1vw, 2.2rem);
    background: linear-gradient(180deg, #fff9f7 0%, #fdf6f3 100%);
    border-bottom: 1px solid #eaded9;
}

body.content-page .page-content {
    padding: 1rem 1.45rem 1.45rem;
    color: #3f3a38;
    line-height: 1.75;
    font-size: 1rem;
}

body.content-page .page-content h2,
body.content-page .page-content h3 {
    color: #2f2a28;
    margin: 1.7rem 0 0.75rem;
    line-height: 1.25;
}

body.content-page .page-content a {
    color: var(--brand-primary);
    text-decoration-color: rgba(139, 62, 47, 0.3);
    text-underline-offset: 2px;
}

body.content-page .page-content a:hover {
    color: var(--brand-primary-dark);
    text-decoration-color: rgba(107, 47, 34, 0.6);
}

body.content-page .page-content p {
    margin-bottom: 1rem;
}

body.content-page .privacy-analytics-card {
    margin: 0.3rem 1.45rem 1.45rem;
    padding: 1.05rem 1.1rem 1.15rem;
    border: 1px solid #eadcd7;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffaf8 0%, #fff 100%);
}

body.content-page .page-content .privacy-analytics-title {
    margin: 0 0 0.7rem;
}

body.content-page .privacy-analytics-copy {
    margin-bottom: 0.8rem;
}

body.content-page .privacy-analytics-status {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0 0 0.9rem;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.2;
    border: 1px solid transparent;
}

body.content-page .privacy-analytics-status::before {
    content: "";
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: currentColor;
}

body.content-page .privacy-analytics-status.is-enabled {
    color: #1f6f43;
    background: #edf8f1;
    border-color: #c8e8d5;
}

body.content-page .privacy-analytics-status.is-disabled {
    color: #8b3e2f;
    background: #fbefeb;
    border-color: #f0d0c7;
}

body.content-page .privacy-analytics-controls {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

body.content-page .privacy-analytics-controls .privacy-analytics-status {
    margin-bottom: 0;
}

body.content-page .privacy-analytics-btn {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    padding: 0.52rem 0.9rem;
    min-height: 40px;
    line-height: 1.15;
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
}

body.blog-page-layout .blog-header {
    background: linear-gradient(180deg, #fff9f7 0%, #fdf6f3 100%);
    border: 1px solid #e8d9d3;
    border-radius: 16px;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.5rem;
}

body.blog-page-layout .blog-page {
    margin-bottom: 2.5rem;
}

body.blog-page-layout .blog-header .section-title {
    color: var(--brand-primary-dark);
    margin-bottom: 0.4rem;
    text-align: left;
}

body.blog-page-layout .blog-description {
    color: #6d6662;
    margin-top: 0;
    max-width: 70ch;
}

body.blog-page-layout .post-card {
    border: 1px solid #eadcd7;
    box-shadow: 0 8px 22px rgba(58, 26, 19, 0.08);
    border-radius: 16px;
}

body.blog-page-layout .posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: none;
}

body.blog-page-layout .post-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body.blog-page-layout .post-featured-image {
    width: 100%;
    flex: 0 0 auto;
    min-height: 220px;
    max-height: 220px;
    border-bottom: 1px solid #efe2dd;
}

body.blog-page-layout .post-content {
    padding: 1rem 1rem 0.95rem;
}

body.blog-page-layout .post-title a {
    color: #2c2725;
}

body.blog-page-layout .post-title a:hover {
    color: var(--brand-primary);
}

body.blog-page-layout .post-meta {
    color: #7d7774;
    border-top-color: #f2e7e3;
}

body.blog-page-layout .post-excerpt {
    color: #4f4a48;
}

body.blog-page-layout .post-footer {
    border-top: 1px solid #f1e5e1;
}

body.blog-page-layout .read-more {
    color: var(--brand-primary-dark);
    font-weight: 700;
}

body.blog-page-layout .read-more:hover {
    color: var(--brand-primary);
}

body.blog-post-page-layout .blog-post-card {
    border: 1px solid #eadcd7;
    box-shadow: 0 10px 24px rgba(58, 26, 19, 0.09);
}

body.blog-post-page-layout .post-title,
body.blog-post-page-layout .related-posts-title {
    color: #2b2725;
}

body.blog-post-page-layout .post-content {
    color: #3f3a38;
}

body.blog-post-page-layout .post-content > p:first-of-type {
    background: #fbf4f1;
    border-left-color: var(--brand-primary);
    color: #4a4340;
}

body.blog-post-page-layout .inline-products-section {
    background: #f9f0ec;
}

body.blog-post-page-layout .inline-product-card {
    border: 1px solid #eadcd7;
    box-shadow: 0 8px 20px rgba(58, 26, 19, 0.08);
}

body.blog-post-page-layout .inline-product-card .product-brand {
    color: var(--brand-primary);
}

body.error-page-layout .error-title {
    color: var(--brand-primary);
}

body.error-page-layout .error-subtitle {
    color: #2f2a28;
}

body.error-page-layout .error-message {
    color: #6b6562;
}

body.error-page-layout .error-page {
    padding: 3rem 0 1rem;
    text-align: left;
}

body.error-page-layout .error-content {
    text-align: center;
}

body.error-page-layout .error-actions {
    margin-bottom: 2.25rem;
}

body.error-page-layout .suggested-products-404 {
    margin-top: 1.5rem;
}

body.error-page-layout .suggested-products-404 h3 {
    margin-bottom: 1.4rem;
}

body.error-page-layout .suggested-products-grid {
    align-items: stretch;
}

@media (max-width: 768px) {
    body.error-page-layout .error-page {
        padding: 2.2rem 0 0.5rem;
    }

    body.error-page-layout .error-actions {
        align-items: stretch;
    }

    body.error-page-layout .error-actions .btn {
        width: 100%;
    }
}

body.category-page-layout .breadcrumb,
body.blog-page-layout .breadcrumb,
body.blog-post-page-layout .breadcrumb,
body.content-page .breadcrumb {
    background: #f8f1ee;
    border-bottom: 1px solid #eaded9;
    padding: 0.55rem 0;
}

body.category-page-layout .breadcrumb .container,
body.blog-page-layout .breadcrumb .container,
body.blog-post-page-layout .breadcrumb .container,
body.content-page .breadcrumb .container {
    padding: 0 1rem;
}

body.category-page-layout .breadcrumb-nav,
body.blog-page-layout .breadcrumb-nav,
body.blog-post-page-layout .breadcrumb-nav,
body.content-page .breadcrumb-nav {
    gap: 0.4rem;
    padding-bottom: 0;
    font-size: 0.86rem;
}

body.category-page-layout .breadcrumb-item a,
body.blog-page-layout .breadcrumb-item a,
body.blog-post-page-layout .breadcrumb-item a,
body.content-page .breadcrumb-item a {
    color: var(--brand-primary-dark);
}

body.category-page-layout .breadcrumb-item a:hover,
body.blog-page-layout .breadcrumb-item a:hover,
body.blog-post-page-layout .breadcrumb-item a:hover,
body.content-page .breadcrumb-item a:hover {
    color: var(--brand-primary);
    text-decoration: none;
}

body.category-page-layout .breadcrumb-item:not(:last-child)::after,
body.blog-page-layout .breadcrumb-item:not(:last-child)::after,
body.blog-post-page-layout .breadcrumb-item:not(:last-child)::after,
body.content-page .breadcrumb-item:not(:last-child)::after {
    color: #9b8f8b;
    margin-left: 0.35rem;
    margin-right: 0.1rem;
}

body.category-page-layout .breadcrumb-current,
body.blog-page-layout .breadcrumb-current,
body.blog-post-page-layout .breadcrumb-current,
body.content-page .breadcrumb-current {
    color: #6f6764;
    font-weight: 600;
}

@media (max-width: 768px) {
    body.blog-page-layout .posts-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    body.blog-page-layout .post-featured-image {
        min-height: 190px;
        max-height: 190px;
    }

    body.blog-page-layout .post-content {
        padding: 0.85rem 0.85rem 0.8rem;
    }

    body.content-page .page {
        border-radius: 12px;
        margin-bottom: 1.15rem;
    }

    body.content-page .page-title {
        padding: 0.95rem 1rem 0.8rem;
    }

    body.content-page .page-content {
        padding: 0.85rem 1rem 1rem;
    }

    body.content-page .privacy-analytics-card {
        margin: 0 1rem 1rem;
        padding: 0.9rem 0.9rem 1rem;
    }

    body.content-page .privacy-analytics-btn {
        width: 100%;
        justify-content: center;
    }

    body.blog-page-layout .blog-header {
        border-radius: 12px;
        padding: 0.95rem 0.9rem;
    }

    body.blog-page-layout .blog-header .section-title {
        text-align: left;
    }

    .footer-content {
        padding: 0.9rem 0.85rem 0.75rem;
    }

    .footer-nav {
        gap: 0.85rem;
    }

    body.category-page-layout .breadcrumb .container,
    body.blog-page-layout .breadcrumb .container,
    body.blog-post-page-layout .breadcrumb .container,
    body.content-page .breadcrumb .container {
        padding: 0 0.8rem;
    }
}

body.content-page main.container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

@media (max-width: 768px) {
    body.content-page main.container {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
}

/* === Admin dashboard === */
body.admin-dashboard-page main.container {
    max-width: 1440px;
    padding: 1.4rem 1.2rem 2.5rem;
}

.admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-kicker {
    margin: 0 0 0.35rem;
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-hero h1 {
    margin: 0;
    color: var(--ink-1);
    font-size: 2rem;
    line-height: 1.1;
}

.admin-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    color: var(--ink-2);
    font-size: 0.86rem;
}

.admin-hero-meta span {
    border: 1px solid var(--ctrl-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.42rem 0.7rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-stat-card,
.admin-panel {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 22px rgba(48, 25, 20, 0.08);
}

.admin-stat-card {
    min-width: 0;
    padding: 0.9rem;
}

.admin-stat-card span,
.admin-stat-card small {
    display: block;
    color: var(--ink-2);
    font-size: 0.78rem;
    line-height: 1.3;
}

.admin-stat-card strong {
    display: block;
    margin: 0.32rem 0 0.22rem;
    color: var(--ink-1);
    font-size: 1.45rem;
    line-height: 1.1;
}

.admin-panel {
    margin-bottom: 1rem;
    overflow: hidden;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line-soft);
    padding: 0.85rem 1rem;
}

.admin-panel-header h2 {
    margin: 0;
    color: var(--ink-1);
    font-size: 1rem;
    line-height: 1.2;
}

.admin-panel-header span {
    color: var(--ink-2);
    font-size: 0.82rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #f0e4df;
    padding: 0.72rem 1rem;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table th {
    background: #fbf7f5;
    color: #6f6764;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-table td {
    color: var(--ink-1);
    font-size: 0.86rem;
}

.admin-table td:first-child,
.admin-table th:first-child {
    white-space: normal;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table strong,
.admin-table span {
    display: block;
}

.admin-table td span {
    margin-top: 0.18rem;
    color: #7a7471;
    font-size: 0.76rem;
}

.admin-badge {
    display: inline-flex !important;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
    font-size: 0.72rem !important;
    font-weight: 700;
}

.admin-badge.is-good {
    background: var(--brand-verified-soft);
    color: var(--brand-verified-text);
}

.admin-badge.is-warn {
    background: #fff3d6;
    color: #8a5a00;
}

.admin-badge.is-bad {
    background: #ffe2de;
    color: #9b2418;
}

.admin-badge.is-muted {
    background: #ebe7e4;
    color: #625b58;
}

.admin-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 1rem;
}

.admin-status-list {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.admin-status-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.8fr) auto;
    align-items: center;
    gap: 0.8rem;
}

.admin-status-row strong,
.admin-status-row span {
    display: block;
}

.admin-status-row strong {
    color: var(--ink-1);
    font-size: 0.9rem;
}

.admin-status-row span,
.admin-status-row em {
    color: var(--ink-2);
    font-size: 0.78rem;
    font-style: normal;
}

.admin-meter {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eadbd5;
}

.admin-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-primary);
}

@media (max-width: 1180px) {
    .admin-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.admin-dashboard-page main.container {
        padding: 1rem 0.8rem 1.8rem;
    }

    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-hero h1 {
        font-size: 1.55rem;
    }

    .admin-hero-meta {
        justify-content: flex-start;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stat-card {
        padding: 0.75rem;
    }

    .admin-stat-card strong {
        font-size: 1.18rem;
    }

    .admin-panel-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0.85rem;
    }

    .admin-status-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}
