/*
Theme Name: OrdinaryShopping
Theme URI: https://ordinaryshopping.com
Author: OrdinaryShopping
Description: A clean product discovery theme for unusual, funny, and interesting affiliate products.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ordinaryshopping
Tags: e-commerce, grid-layout, affiliate, responsive
*/

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg:        #f8f8f6;
    --color-surface:   #ffffff;
    --color-border:    #e4e4e0;
    --color-text:      #1a1a1a;
    --color-muted:     #6b6b6b;
    --color-accent:    #e05c2a;
    --color-accent-hover: #c44d20;
    --font-sans:       system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius:          8px;
    --max-width:       1200px;
    --gap:             1.5rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Layout === */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* === Site Header === */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0.45rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-header__section {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-header__section--left {
    justify-content: flex-start;
}

.site-header__section--right {
    justify-content: flex-end;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.site-branding a {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-branding .custom-logo {
    display: block;
    width: min(468px, 58vw);
    max-width: 100%;
    height: auto;
    max-height: none;
}

.site-branding a span {
    color: var(--color-accent);
}

.site-description {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.1rem;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-search {
    position: relative;
}

.site-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-search__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.site-search__toggle:hover,
.site-search__toggle[aria-expanded="true"] {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.site-search__panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(320px, calc(100vw - 2rem));
    z-index: 220;
}

.site-search__form {
    width: 100%;
}

.site-search__field-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.site-search__input {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    padding: 0 0.5rem;
}

.site-search__input:focus {
    outline: none;
}

.site-search__input::placeholder {
    color: var(--color-muted);
}

.site-search__field-wrap:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(224, 92, 42, 0.12);
}

.site-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
}

.site-search__submit:hover {
    background: var(--color-accent-hover);
}

.site-search__submit-text {
    display: none;
}

/* === Product Grid === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--gap);
    padding: var(--gap) 0;
}

/* Expanded card spans all columns */
.product-grid .product-card.is-expanded {
    grid-column: 1 / -1;
}

/* === Browse All Divider (category/tag → full catalog transition) === */
.browse-all-divider {
    text-align: center;
    padding: 1rem 0;
}

.browse-all-divider hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0 0 0.75rem;
}

.browse-all-divider p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Product Card Footer === */
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Remove CTA's top margin inside the footer — the footer's padding handles spacing */
.product-card__footer .product-card__cta {
    margin-top: 0;
}

/* "Read More" now sits inline at end of description text */
.product-card__read-more {
    display: inline;
    font-size: 0.92em;
    font-weight: 600;
    color: var(--color-accent);
    white-space: nowrap;
    transition: color 0.15s;
}

.product-card__read-more:hover {
    color: var(--color-accent-hover);
}

/* === Share Buttons === */
.os-share {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* Share trigger button (the single icon) */
.os-share__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.os-share__trigger:hover {
    color: var(--color-accent);
    background: rgba(224, 92, 42, 0.08);
}

/* Card size: subtle until hover */
.os-share--sm .os-share__trigger {
    padding: 0.2rem;
    opacity: 0.5;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.product-card:hover .os-share--sm .os-share__trigger {
    opacity: 1;
}

.os-share--sm .os-share__trigger:hover {
    opacity: 1;
    color: var(--color-accent);
}

/* Popup panel */
.os-share__popup {
    position: absolute;
    bottom: calc(100% + 0.4rem);
    right: 0;
    min-width: 150px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.35rem;
    z-index: 100;
}

/* Arrow pointing down to the trigger */
.os-share__popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    transform: rotate(45deg);
}

.os-share__popup-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: var(--color-text);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s;
}

.os-share__popup-item:hover {
    background: rgba(224, 92, 42, 0.08);
    color: var(--color-accent);
}

/* Product page: share buttons align right */
.product-single__share {
    margin-left: auto;
}

.os-share--lg .os-share__trigger {
    padding: 0.4rem;
}

/* Copy-link "Copied!" flash */
.os-share__popup-item.is-copied {
    color: #2a9d2a;
}

/* === Product Card === */
.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.product-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background-color: #e8e8e8;
    background-size: cover;
    background-position: center;
}

/* Blurred backdrop — inherits the same image set inline on the div */
.product-card__image::before {
    content: '';
    position: absolute;
    inset: -10%;            /* overshoot so blur edges don't show */
    background: inherit;
    filter: blur(18px) brightness(0.75) saturate(1.2);
    z-index: 0;
}

/* The <a> wrapping the img must stack above the backdrop */
.product-card__image > a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-card__image--placeholder {
    aspect-ratio: 4 / 2.9;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 34%),
        linear-gradient(140deg, #fbf5eb 0%, #f7efe4 42%, #efe4d2 100%);
}

.product-card__image--placeholder::before {
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(
            -45deg,
            rgba(162, 116, 63, 0.04) 0,
            rgba(162, 116, 63, 0.04) 14px,
            rgba(255, 255, 255, 0) 14px,
            rgba(255, 255, 255, 0) 28px
        );
    filter: none;
}

.product-card__placeholder {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.product-card__placeholder-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(122, 88, 45, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 250, 242, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 18px 36px rgba(126, 87, 43, 0.10);
}

.product-card__placeholder-kicker {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(224, 92, 42, 0.1);
    color: var(--color-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card__placeholder-orbit {
    position: relative;
    display: block;
    width: 5rem;
    height: 5rem;
    margin-top: auto;
}

.product-card__placeholder-dot {
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(224, 92, 42, 0.16), rgba(224, 92, 42, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.product-card__placeholder-dot--lg {
    left: 0;
    bottom: 0.2rem;
    width: 2.4rem;
    height: 2.4rem;
}

.product-card__placeholder-dot--md {
    left: 2rem;
    top: 0.8rem;
    width: 1.5rem;
    height: 1.5rem;
}

.product-card__placeholder-dot--sm {
    right: 0.25rem;
    bottom: 1.1rem;
    width: 0.85rem;
    height: 0.85rem;
}

.product-card__placeholder-footer {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.product-card__placeholder-note {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(47, 36, 23, 0.72);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.product-card__image-status {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(33, 33, 33, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    pointer-events: none;
}

.product-card__image.is-slow .product-card__image-status,
.product-card__image.is-error .product-card__image-status {
    display: inline-flex;
    align-items: center;
}

.product-card__image.is-error::before {
    filter: blur(14px) brightness(0.5) saturate(0.7);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}

.product-card__image.is-error img {
    opacity: 0;
}

.product-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-card__description {
    font-size: 0.875rem;
    color: var(--color-muted);
    flex: 1;
}

.product-card__cta {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.55rem 1.1rem;
    background: var(--color-accent);
    color: #fff;
    border-radius: calc(var(--radius) / 2);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.15s;
}

.product-card__cta:hover {
    background: var(--color-accent-hover);
}

/* Admin-only edit shortcut — only rendered for logged-in editors */
.product-card__admin-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: #2271b1;
    border-radius: 3px;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.product-card__admin-edit:hover {
    opacity: 1;
    color: #fff;
}

.os-affiliate-disclosure {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #faf8f4;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.os-affiliate-disclosure a {
    color: var(--color-accent);
    font-weight: 600;
}

.os-affiliate-disclosure--single {
    margin-top: -0.4rem;
    margin-bottom: 1.1rem;
}

/* === Card Expand-in-Place === */
.product-card.is-expanded {
    grid-column: 1 / -1;
    transform: none !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    scroll-margin-top: 72px; /* sticky header height + breathing room */
}

.product-card__expand-summary {
    display: none;
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--color-text);
}

.product-card.is-expanded .product-card__expand-summary {
    display: inline;
}

.product-card.is-expanded .product-card__description {
    display: none;
}

/* Desktop: side-by-side layout — image left, content right */
@media (min-width: 640px) {
    .product-card.is-expanded {
        display: grid;
        grid-template-columns: 300px 1fr;
        grid-template-rows: auto auto 1fr;
    }

    .product-card.is-expanded .product-card__expand-affiliate {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .product-card.is-expanded .product-card__image {
        grid-column: 1;
        grid-row: 2 / -1;
        aspect-ratio: auto;
        height: 100%;
        min-height: 260px;
    }

    .product-card.is-expanded .product-card__body {
        grid-column: 2;
        grid-row: 2;
    }

    .product-card.is-expanded .product-card__expand {
        grid-column: 2;
        grid-row: 3;
        border-top: none;
        padding-top: 0;
    }

    /* Hide the card footer (CTA + share) when expanded — the expand section has its own */
    .product-card.is-expanded .product-card__footer {
        display: none;
    }

    /* Hide excerpt description when expanded — full content replaces it */
}

.product-card__expand {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--color-border);
}

.product-card__expand-affiliate {
    padding: 0.9rem 1rem 0.85rem;
    border-bottom: 1px solid var(--color-border);
}

.product-card__expand-affiliate .os-affiliate-disclosure {
    margin: 0;
}

.product-card__expand-content {
    max-width: 680px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text);
}

.product-card__expand-content h3 {
    font-size: 0.95rem;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
}

.product-card__expand-content ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.35rem 0;
}

.product-card__expand-content li {
    margin-bottom: 0.2rem;
}

.product-card__expand-content p {
    margin-bottom: 0.5rem;
}

.product-card__expand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.product-card__expand-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-card__expand-actions .os-share__trigger {
    opacity: 0.7;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.product-card__expand-actions .os-share__trigger:hover {
    opacity: 1;
}

.product-card__collapse {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) / 2);
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.product-card__collapse:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

/* === Page Hero === */
.page-hero {
    padding: 2.5rem 0 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}

.page-hero__title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-hero__subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    margin-top: 0.35rem;
    max-width: 740px;
}

.site-page {
    padding: 2rem 0 0;
}

.site-page__content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

.site-page__content p + p {
    margin-top: 1rem;
}

.site-page__content ul,
.site-page__content ol {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.site-page__content li + li {
    margin-top: 0.35rem;
}

.about-page {
    padding: 1.5rem 0 0;
}

.about-page__eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.page-hero--about {
    padding-bottom: 1rem;
    border-bottom: none;
    margin-bottom: 0;
}

.page-hero--about .page-hero__title {
    font-size: 1.75rem;
    max-width: 600px;
}

.page-hero--about .page-hero__subtitle {
    max-width: 550px;
    line-height: 1.6;
}

/* Sections flow vertically — no grid of boxes */
.about-page__intro {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-page__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
}

/* Cards become borderless sections */
.about-page__card {
    background: none;
    border: none;
    border-radius: 0;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
}

.about-page__card:last-child {
    border-bottom: none;
}

.about-page__card h2 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.about-page__card p {
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.about-page__card p + p {
    margin-top: 0.65rem;
}

/* Lead card — the "What this is" block gets a subtle accent */
.about-page__card--lead {
    padding-top: 0;
}

.about-page__card--lead p {
    color: var(--color-text);
    font-size: 0.95rem;
}

.about-page__list {
    padding-left: 1.1rem;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.about-page__list li + li {
    margin-top: 0.35rem;
}

.about-page__section {
    margin-top: 2rem;
    padding-top: 1rem;
}

.about-page__section-head {
    max-width: 700px;
    margin-bottom: 1rem;
}

.about-page__section-head h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.about-page__section-head p {
    margin-top: 0.25rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.about-page__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.about-page__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.about-page__pill:hover {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
}

/* === Affiliate Policy Page === */

.policy-page {
    padding: 1.5rem 0 2rem;
    max-width: 800px;
}

.policy-page__section {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
}

.policy-page__section:last-of-type {
    border-bottom: none;
}

.policy-page__section h2 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.policy-page__section p {
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.policy-page__section p + p {
    margin-top: 0.65rem;
}

.policy-page__section--highlight {
    background: #fff8ee;
    border: 1px solid #f0dfc0;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
}

.policy-page__section--highlight p {
    color: var(--color-text);
}

.policy-page__list {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.policy-page__list li + li {
    margin-top: 0.35rem;
}

.policy-page__updated {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--color-muted);
}

/* === Contact Page & Form === */

.contact-page {
    padding: 1.5rem 0 2rem;
    max-width: 640px;
}

.contact-page__success {
    text-align: center;
    padding: 3rem 1rem;
}

.contact-page__success-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-page__success h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.contact-page__success p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.contact-page__errors {
    background: #fff0f0;
    border: 1px solid #e8a0a0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-page__errors p {
    color: #a93232;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-page__errors p + p {
    margin-top: 0.3rem;
}

.contact-page__blurb {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Honeypot — invisible to humans */
.contact-form__hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.contact-form__field {
    margin-bottom: 1.25rem;
}

.contact-form__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.contact-form__req {
    color: var(--color-accent);
}

.contact-form__input {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    font-family: inherit;
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.15s;
}

.contact-form__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.12);
}

.contact-form__select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.5rem;
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.contact-form__submit:hover {
    background: #cf6a14;
}

.contact-form__submit:active {
    transform: scale(0.98);
}

.contact-page__fine-print {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.contact-page__fine-print p {
    font-size: 0.82rem;
    color: var(--color-muted);
}

.search-no-results__msg {
    font-size: 1.15rem;
    font-weight: 600;
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0 2.5rem;
    text-align: center;
}

/* === Load More / Infinite Scroll === */
#load-more-sentinel {
    height: 1px;
}

.load-more-spinner {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* === Site Footer === */
.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-footer__copy {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.site-footer__links {
    display: flex;
    gap: 1rem;
}

.site-footer__links a {
    font-size: 0.8rem;
    color: var(--color-muted);
    transition: color 0.15s;
}

.site-footer__links a:hover {
    color: var(--color-accent);
}

/* === Single Product === */
.product-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2rem 0 0;
    align-items: start;
}

.product-single__image {
    position: sticky;
    top: calc(64px + 1.5rem); /* header height + gap */
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-border);
}

.product-single__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s;
}

.product-single__image:hover img {
    opacity: 0.92;
}

.product-single__title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.product-single__body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text);
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.product-single__body p + p {
    margin-top: 1em;
}

.product-single__body ul,
.product-single__body ol {
    margin: 1rem 0 0;
    padding-left: 1.15rem;
}

.product-single__body li {
    margin-top: 0.3rem;
}

/* CTA + share sit on the same row */
.product-single__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.product-single__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: background 0.15s, transform 0.15s;
}

.product-single__cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* === Related Products === */
.related-products {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-border);
}

.related-products__heading {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.related-products__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0 1rem;
}

.view-more-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.view-more-btn:hover {
    background: var(--color-accent);
    color: #fff;
}

.view-more-btn:disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Countdown animation: a progress bar fills the button over 2 seconds */
.view-more-btn.is-counting {
    position: relative;
    overflow: hidden;
    color: var(--color-accent);
}

.view-more-btn.is-counting::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--color-accent);
    opacity: 0.12;
    border-radius: inherit;
    animation: viewMoreFill 2s linear forwards;
}

@keyframes viewMoreFill {
    from { width: 0; }
    to   { width: 100%; }
}

.view-more-btn.is-loading {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* === Responsive === */
@media (max-width: 768px) {
    .product-single {
        grid-template-columns: 1fr;
    }

    .product-single__image {
        position: static;
    }
}

@media (max-width: 600px) {
    .site-header .container {
        align-items: flex-start;
    }

    .site-header__section {
        min-width: auto;
    }

    .site-header__actions {
        gap: 0.5rem;
    }

    .page-hero__title {
        font-size: 1.4rem;
    }

    .page-hero--about .page-hero__title {
        font-size: 1.35rem;
    }

    .product-grid {
        gap: 1rem;
    }

    .product-single__title {
        font-size: 1.35rem;
    }
}

@media (max-width: 599px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }
}

/* === Category Badge (Product Card) === */
.product-card__category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    background: rgba(224, 92, 42, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.product-card__category:hover {
    background: var(--color-accent);
    color: #fff;
}

/* === Category Hero (Archive) === */
.category-hero {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
}

.category-hero__title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.category-hero__desc {
    font-size: 1rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto;
}

.category-hero__subs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.category-hero__sub-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg-alt, #f7f7f7);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.category-hero__sub-link:hover {
    background: var(--color-accent);
    color: #fff;
}

/* === Breadcrumb (Single Product) === */
.product-single__meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    margin-bottom: 0.75rem;
}

.product-single__breadcrumb {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 0;
}

.product-single__breadcrumb a {
    color: var(--color-accent);
    text-decoration: none;
}

.product-single__breadcrumb a:hover {
    text-decoration: underline;
}

.product-single__breadcrumb-sep {
    margin: 0 0.35rem;
    color: var(--color-border);
}

/* === Hamburger Menu (Header) === */
.cat-menu {
    position: relative;
}

.cat-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 0;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.cat-menu__toggle:hover,
.cat-menu__toggle[aria-expanded="true"] {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.cat-menu__toggle:hover .cat-menu__icon,
.cat-menu__toggle[aria-expanded="true"] .cat-menu__icon {
    color: #fff;
}

.cat-menu__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-muted);
    transition: color 0.15s;
}

.cat-menu__panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 260px;
    max-height: 70vh;
    overflow: visible;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    z-index: 200;
}

.cat-menu__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    border-radius: calc(var(--radius) - 2px);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    text-align: left;
}

.cat-menu__link:hover {
    background: rgba(224, 92, 42, 0.08);
    color: var(--color-accent);
}

.cat-menu__link--sub {
    font-weight: 500;
}

.cat-menu__link--empty {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.cat-menu__emoji {
    flex-shrink: 0;
    width: 1.2em;
    text-align: center;
    font-size: 1rem;
}

.cat-menu__divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0.4rem 0.75rem;
}

.cat-menu__submenu-wrap {
    position: relative;
}

.cat-menu__submenu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    background: none;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.12s, color 0.12s;
}

.cat-menu__submenu-toggle:hover,
.cat-menu__submenu-toggle[aria-expanded="true"] {
    background: rgba(224, 92, 42, 0.08);
    color: var(--color-accent);
}

.cat-menu__chevron {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--color-muted);
}

.cat-menu__submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 260px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    z-index: 210;
    margin-left: 0.4rem;
}

/* When flipped to the left side (set by JS) */
.cat-menu__submenu.is-flipped {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.4rem;
}

/* Front page footer (View More area) */
.front-page__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0 1rem;
}

/* === Product Single — Taxonomy Pills === */
.product-single__taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.product-single__cats,
.product-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.product-single__tax-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.product-single__tax-pill--cat {
    color: var(--color-accent);
    background: rgba(224, 92, 42, 0.1);
}

.product-single__tax-pill--cat:hover {
    background: var(--color-accent);
    color: #fff;
}

.product-single__tax-pill--tag {
    color: var(--color-muted);
    background: rgba(0, 0, 0, 0.05);
}

.product-single__tax-pill--tag:hover {
    background: var(--color-muted);
    color: #fff;
}

@media (max-width: 600px) {
    .category-hero__title {
        font-size: 1.4rem;
    }

    .site-branding .custom-logo {
        width: min(403px, 82vw);
    }

    .cat-menu__panel {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: auto;
        width: auto;
    }

    /* On mobile, submenus expand inline instead of flying out */
    .cat-menu__panel {
        overflow-y: auto;
    }

    .cat-menu__submenu,
    .cat-menu__submenu.is-flipped {
        position: static;
        width: auto;
        border: none;
        box-shadow: none;
        margin-left: 0;
        margin-right: 0;
        padding: 0 0 0 0.75rem;
    }

    .cat-menu__chevron {
        transform: rotate(90deg);
    }

    .cat-menu__submenu-toggle[aria-expanded="true"] .cat-menu__chevron {
        transform: rotate(-90deg);
    }
}
