/**
 * Custom CSS for The Kitchen Theme
 *
 * This file contains custom font declarations and utility classes
 * that complement the Tailwind CSS framework.
 */

/* ============================================
   CSS Custom Properties
   ============================================ */

:root {
    --font-helvetica: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ============================================
   Helvetica Neue Font Family - Primary Typography
   ============================================ */

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/abc-diatype/ABCDiatype-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/abc-diatype/ABCDiatype-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/abc-diatype/ABCDiatype-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/abc-diatype/ABCDiatype-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* Temporary fallback using system fonts */

/* Font Family Declarations */
.font-helvetica {
    font-family: var(--font-helvetica);
}

/* Mulish Font Family */
.font-mulish {
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Default body font */
body {
    font-family: var(--font-helvetica);
}

/* ============================================
   Font Weight Utilities
   ============================================ */

.font-regular {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 600;
}

/* ============================================
   Letter Spacing Adjustments
   ============================================ */

.tracking-tight-1 {
    letter-spacing: -0.48px;
}

.tracking-tight-2 {
    letter-spacing: -0.75px;
}

.tracking-tight-3 {
    letter-spacing: -0.8px;
}

.tracking-tight-4 {
    letter-spacing: -1.16px;
}

.tracking-tight-5 {
    letter-spacing: -1.2px;
}

.tracking-tight-6 {
    letter-spacing: -1.6px;
}

/* ============================================
   Custom Gradient Backgrounds
   ============================================ */

.gradient-kitchen-accent {
    background: linear-gradient(to right, #4eeba9 33%, transparent);
}

.gradient-kitchen-yellow {
    background: linear-gradient(to right, #e2ff2d 84.6%, transparent);
}

/* ============================================
   Animation & Transition Utilities
   ============================================ */

.transition-default {
    transition: all 0.3s ease;
}

/* Hover effect for cards and images */
.hover-scale:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* ============================================
   Spacing & Layout Utilities
   ============================================ */

.px-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ============================================
   Typography Utilities
   ============================================ */

.text-shadow-default {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Remove default link underlines */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* ============================================
   Custom Component Styles
   ============================================ */

/* Category tags with gradients */
.category-tag {
    display: inline-block;
    padding: 10px 15px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: black;
    line-height: 23px;
    border-radius: 10px 0 0 10px;
}

.category-tag.featured {
    background: linear-gradient(to right, #e2ff2d 84.6%, transparent);
}

.category-tag.podcast {
    background: linear-gradient(to right, #4eeba9 84.6%, transparent);
}

.category-tag.tips {
    background: linear-gradient(to right, #e2ff2d 84.6%, transparent);
}

/* Trending list accent bar */
.trending-item {
    border-left: 3px solid #4eeba9;
}

/* Section title underlines */
.section-underline {
    height: 5px;
    background: linear-gradient(to left, #4eeba9 33%, transparent);
}

/* ============================================
   Responsive Utilities
   ============================================ */

@media (max-width: 1024px) {
    .px-112 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .no-print {
        display: none;
    }
}

/* ============================================
   Accessibility Improvements
   ============================================ */

/* Focus states (keyboard-only so custom-styled inputs aren't visually broken on click/autofill) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #4eeba9;
    outline-offset: 2px;
}

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

/* ============================================
   Pagination
   ============================================ */

.pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination .nav-links a,
.pagination .nav-links .current,
.pagination .nav-links .page-numbers {
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #1e1e1e;
    transition: all 0.3s;
}

.pagination .nav-links .dots {
    border: none;
    padding: 10px 4px;
    color: #8f8f8f;
}

.pagination .nav-links a:hover {
    background: #04794d;
    border-color: #04794d;
    color: #fff;
}

.pagination .nav-links .current {
    background: #4eeba9;
    border-color: #4eeba9;
    color: #000;
}

/* ============================================
   WordPress Core Compatibility
   ============================================ */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* ============================================
   Article Body — Content Element Styles
   Scoped to .article-body so both standard posts
   (single.php) and gear posts (single-gear.php,
   which uses .gear-body.article-body) are covered.
   ============================================ */

/* Base typography */
.article-body {
    font-size: 18px;
    letter-spacing: 0.1px;
    line-height: 28px;
    color: #1e1e1e;
}

/* Paragraphs */
.article-body p {
    margin-bottom: 20px;
}

/* Headings */
.article-body h1 {
    font-weight: 600;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -1.5px;
    color: #1e1e1e;
    margin: 40px 0 20px;
}

.article-body h2,
.article-body h3 {
    font-weight: 600;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -0.75px;
    color: #1e1e1e;
    margin: 40px 0 20px;
}

.article-body h4 {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: #1e1e1e;
    margin: 32px 0 16px;
}

.article-body h5 {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    color: #1e1e1e;
    margin: 28px 0 14px;
}

.article-body h6 {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1e1e1e;
    margin: 24px 0 12px;
}

/* Inline links */
.article-body a {
    color: #04794d;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: #00452c;
}

/* Inline text formatting */
.article-body strong,
.article-body b {
    font-weight: 700;
}

.article-body em,
.article-body i {
    font-style: italic;
}

.article-body u {
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.article-body s,
.article-body del {
    text-decoration: line-through;
    color: #8f8f8f;
}

.article-body ins {
    background: #e2ff2d;
    text-decoration: none;
    padding: 0 2px;
    border-radius: 2px;
}

.article-body mark {
    background: #e2ff2d;
    color: #1e1e1e;
    padding: 0 2px;
    border-radius: 2px;
}

.article-body small {
    font-size: 0.85em;
    color: #8f8f8f;
}

.article-body sub,
.article-body sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
}

.article-body sub { bottom: -0.25em; }
.article-body sup { top: -0.4em; }

/* Horizontal rule */
.article-body hr {
    border: 0;
    height: 1px;
    background: #e5e5e5;
    margin: 40px 0;
}

/* Lists */
.article-body ul,
.article-body ol,
.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body ul,
.entry-content ul {
    list-style-type: disc;
}

.article-body ol,
.entry-content ol {
    list-style-type: decimal;
}

.article-body li,
.entry-content li {
    margin-bottom: 10px;
    line-height: 1.45;
}

.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul,
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin: 10px 0 10px;
    padding-left: 25px;
}

.article-body ul ul,
.entry-content ul ul {
    list-style-type: circle;
}

.article-body ul ul ul,
.entry-content ul ul ul {
    list-style-type: square;
}

.article-body ol ol,
.entry-content ol ol {
    list-style-type: lower-alpha;
}

/* Description lists */
.article-body dl {
    margin: 20px 0;
}

.article-body dt {
    font-weight: 700;
    color: #1e1e1e;
    margin-top: 16px;
}

.article-body dd {
    margin: 4px 0 0 20px;
    color: #1e1e1e;
}

/* Media: images, figures */
.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.article-body figure {
    margin: 30px 0;
}

.article-body figcaption {
    font-size: 14px;
    line-height: 1.4;
    color: #8f8f8f;
    margin-top: 10px;
    text-align: center;
}

.article-body .wp-block-image {
    margin: 30px 0;
}

.article-body .wp-block-image img {
    border-radius: 10px;
}

.article-body .wp-block-image figcaption {
    text-align: center;
}

.article-body .wp-block-gallery {
    margin: 30px 0;
}

.article-body .wp-block-gallery img {
    border-radius: 8px;
}

/* Embeds (YouTube, Vimeo, etc.) */
.article-body .wp-block-embed {
    margin: 30px 0;
}

.article-body .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.article-body .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed__wrapper embed,
.article-body .wp-block-embed__wrapper object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.article-body iframe,
.article-body video,
.article-body audio {
    max-width: 100%;
    border-radius: 10px;
}

.article-body video {
    display: block;
    height: auto;
}

.article-body audio {
    width: 100%;
}

/* Cover & media-text blocks */
.article-body .wp-block-cover {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.article-body .wp-block-media-text {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

/* Tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 10px;
    overflow: hidden;
}

.article-body thead {
    background: #00452c;
    color: #fff;
}

.article-body th {
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #04794d;
}

.article-body td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    color: #1e1e1e;
}

.article-body tbody tr:last-child td {
    border-bottom: none;
}

.article-body caption {
    font-size: 14px;
    color: #8f8f8f;
    padding: 8px 0;
    caption-side: bottom;
    text-align: left;
}

.article-body .wp-block-table {
    margin: 30px 0;
}

.article-body .wp-block-table table {
    margin: 0;
}

.article-body .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background: #fafafa;
}

.article-body .wp-block-table.is-style-stripes td {
    border-bottom: none;
}

/* Inline code & preformatted */
.article-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
    background: #f3f4f6;
    color: #00452c;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.article-body pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    background: #1e1e1e;
    color: #f3f4f6;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    overflow-x: auto;
}

.article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: inherit;
}

.article-body .wp-block-code {
    margin: 30px 0;
}

.article-body .wp-block-code pre,
.article-body .wp-block-code code {
    display: block;
}

.article-body .wp-block-preformatted {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 30px 0;
    white-space: pre-wrap;
    font-size: 15px;
    line-height: 1.6;
}

.article-body kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85em;
    background: #1e1e1e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.article-body samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    background: #f3f4f6;
    padding: 1px 4px;
    border-radius: 3px;
}

.article-body var {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-style: italic;
    color: #04794d;
}

/* Blockquotes & pull quotes */
.article-body blockquote,
.article-body .wp-block-quote {
    background: #fafafa;
    border: 1px solid #4eeba9;
    border-radius: 20px;
    padding: 24px 28px;
    margin: 30px 0;
    font-size: 18px;
    line-height: 1.55;
    color: #1e1e1e;
}

.article-body blockquote p,
.article-body .wp-block-quote p {
    margin-bottom: 14px;
}

.article-body blockquote p:first-child,
.article-body .wp-block-quote p:first-child {
    margin-top: 0;
}

.article-body blockquote p:last-child,
.article-body .wp-block-quote p:last-child {
    margin-bottom: 0;
}

.article-body blockquote cite,
.article-body .wp-block-quote cite {
    display: block;
    font-style: normal;
    font-size: 14px;
    color: #8f8f8f;
    margin-top: 8px;
}

.article-body blockquote a,
.article-body .wp-block-quote a {
    color: #04794d;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.article-body blockquote a:hover,
.article-body .wp-block-quote a:hover {
    color: #00452c;
}

.article-body .wp-block-pullquote {
    background: transparent;
    border-top: 2px solid #4eeba9;
    border-bottom: 2px solid #4eeba9;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 30px 0;
    margin: 40px 0;
    text-align: center;
}

.article-body .wp-block-pullquote p {
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: #1e1e1e;
    margin: 0 0 12px;
}

.article-body .wp-block-pullquote cite {
    display: block;
    font-style: normal;
    font-size: 14px;
    color: #8f8f8f;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-body .wp-block-verse {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.6;
    background: #fafafa;
    border-left: 3px solid #4eeba9;
    padding: 20px 24px;
    margin: 30px 0;
    white-space: pre-wrap;
    border-radius: 0 10px 10px 0;
}

/* Buttons */
.article-body .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.article-body .wp-block-button {
    margin: 0;
}

.article-body .wp-block-button__link {
    display: inline-block;
    background: #4eeba9;
    color: #000;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.article-body .wp-block-button__link:hover {
    background: #3dd494;
    color: #000;
    text-decoration: none;
}

.article-body .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: #00452c;
    border: 2px solid #00452c;
}

.article-body .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #00452c;
    color: #fff;
}

/* Separators */
.article-body .wp-block-separator {
    border: 0;
    height: 1px;
    background: #e5e5e5;
    margin: 40px auto;
    max-width: 100px;
}

.article-body .wp-block-separator.is-style-wide {
    max-width: 100%;
}

.article-body .wp-block-separator.is-style-dots {
    background: none;
    height: auto;
    text-align: center;
    border: 0;
    line-height: 1;
}

.article-body .wp-block-separator.is-style-dots::before {
    content: "\00b7 \00b7 \00b7";
    color: #8f8f8f;
    font-size: 24px;
    letter-spacing: 1em;
    padding-left: 1em;
}

/* Columns (pre-existing) */
.article-body .wp-block-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #fafafa;
    border: 1px solid #4eeba9;
    border-radius: 20px;
    padding: 20px;
    margin: 30px 0;
}

.article-body .wp-block-column {
    background: #eee;
    padding: 20px;
    border-radius: 20px;
}

/* Alignments (scoped to article-body; global fallbacks remain above) */
.article-body .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-body .alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 50%;
}

.article-body .alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 50%;
}

.article-body .alignwide {
    margin-left: -40px;
    margin-right: -40px;
    max-width: calc(100% + 80px);
}

.article-body .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}

@media (max-width: 1024px) {
    .article-body .alignwide {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .article-body .alignleft,
    .article-body .alignright {
        float: none;
        margin: 20px 0;
        max-width: 100%;
    }

    .article-body .wp-block-columns {
        grid-template-columns: 1fr;
    }

    .article-body table {
        font-size: 14px;
    }

    .article-body th,
    .article-body td {
        padding: 8px 10px;
    }
}

/* ============================================
   Homepage news rows & single "You Might Also Like"
   (shared with front-page news stream)
   ============================================ */

.section-title {
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1.2px;
    color: #1e1e1e;
    margin-bottom: 12px;
}

.section-divider {
    height: 5px;
    width: 100%;
    background: linear-gradient(to right, #4eeba9 0%, transparent 100%);
}

.section-divider--left {
    background: linear-gradient(to left, #4eeba9 0%, transparent 100%);
}

.related-posts {
    margin-top: 60px;
}

.related-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-posts-grid > .news-article + .news-article {
    border-top: 1px solid #9ca3af;
    padding-top: 20px;
}

@media (min-width: 1024px) {
    .related-posts-grid {
        gap: 40px;
    }

    .related-posts-grid > .news-article + .news-article {
        padding-top: 40px;
    }
}

.news-article {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.news-article-image {
    width: 350px;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
}

.news-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-article:hover .news-article-image img {
    transform: scale(1.05);
}

.news-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-article-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.65px;
    color: #1e1e1e;
    margin: 0;
}

.news-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-article-title a:hover {
    color: #04794d;
}

.news-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 14px;
    letter-spacing: -0.28px;
    color: #8f8f8f;
}

.news-article-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.news-article-author {
    font-weight: 400;
    color: #1e1e1e;
}

.news-article-sep {
    color: #c0c0c0;
}

@media (max-width: 1200px) {
    .news-article-image {
        width: 300px;
    }

    .news-article-title {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .trending-title,
    .section-title {
        font-size: 25px;
        letter-spacing: -1px;
    }

    .news-article {
        flex-direction: row;
        gap: 12px;
        align-items: stretch;
    }

    .news-article-image {
        width: 110px;
        aspect-ratio: 1 / 1;
        border-radius: 6px;
    }

    .news-article-content {
        width: auto;
        flex: 1;
        min-width: 0;
        justify-content: space-between;
    }

    .news-article-title {
        font-size: 16px;
        line-height: 1.2;
        letter-spacing: -0.3px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-article-meta {
        flex-direction: column;
        align-items: flex-start;
        font-size: 12px;
        padding-top: 8px;
        gap: 2px;
    }

    .news-article-avatar,
    .news-article-sep {
        display: none;
    }
}

@media (max-width: 480px) {
    .trending-title,
    .section-title {
        font-size: 22px;
    }

    .news-article-image {
        width: 96px;
    }

    .news-article-title {
        font-size: 15px;
    }
}

/* ============================================================
   Best Of List — Layout & Content Styles
   Used by both the legacy meta-box renderer and the
   kitchen/best-of-list + kitchen/product-card Gutenberg blocks.
   ============================================================ */

.gear-body {
    font-size: 18px;
    letter-spacing: 0.1px;
    line-height: 28px;
    color: #1e1e1e;
}

.bestof-intro-image {
    aspect-ratio: 16/9;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.bestof-hero-img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.bestof-intro-text {
    font-size: 16px;
    line-height: 1.6;
    color: #1e1e1e;
    margin-bottom: 50px;
}

.bestof-intro-text p {
    margin-bottom: 15px;
}

.bestof-items-list {
    display: flex;
    flex-direction: column;
}

.bestof-item {
    padding: 32px 0;
    border-bottom: 1px solid #e5e5e5;
}

.bestof-item:first-child {
    padding-top: 0;
}

.bestof-item:last-child {
    border-bottom: 0;
}

.bestof-item-heading {
    margin-bottom: 0;
}

.bestof-title {
    font-weight: 600;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.96px;
    color: #1e1e1e;
    margin: 0;
}

.product-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
    background: #f4f4f4;
    border-radius: 9px;
    padding: 40px 48px 43px 44px;
    margin: 36px auto 28px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bestof-item-scorecard {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 28px;
    box-sizing: border-box;
}

.bestof-item-scorecard-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
}

.product-card-image {
    position: relative;
    flex: 0 0 280px;
    width: 100%;
    max-width: 280px;
    height: 280px;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-thumb {
    position: relative;
    width: 280px;
    max-width: 100%;
    height: 100%;
    max-height: 280px;
    display: block;
    object-fit: cover;
    object-position: center;
    background: #ffffff;
    border-radius: 0;
}

.product-card-info {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding-top: 0;
}

.affiliate-box {
    margin: 0;
    padding: 0;
    text-align: left;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
}

.product-card-name {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    color: #1e1e1e;
    margin: 0 0 10px;
}

.product-card-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.product-card-links a {
    text-decoration: none;
}

.product-card-affiliate-note {
    margin: 14px 0 0;
    font-size: 16px;
    color: #1e1e1e;
}

.aff-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    background: #4eeba9;
    border: none;
    color: #000;
    font-size: 17px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s, filter 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.aff-btn:hover {
    filter: brightness(0.95);
    color: #000;
}

.aff-price {
    font-weight: 700;
    color: #000;
}

.aff-label {
    font-weight: 600;
    color: #000;
}

.aff-label-prefix {
    color: #000;
}

.bestof-item-description {
    font-size: 16px;
    line-height: 1.6;
    color: #1e1e1e;
}

.bestof-item-description p {
    margin-bottom: 15px;
}

.bestof-item--empty,
.bestof-item--missing,
.bestof-items-list--empty {
    padding: 20px;
    background: #fff7e6;
    border: 1px dashed #d4a72c;
    border-radius: 8px;
    color: #6d5b1f;
    font-style: italic;
}

@media (max-width: 768px) {
    .bestof-intro-image {
        display: none;
    }

    .bestof-title {
        font-size: 24px;
    }

    .bestof-item {
        padding: 35px 0 25px;
    }

    .product-card {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        gap: 16px;
        padding: 24px;
    }

    .product-card-image {
        flex: 0 1 280px;
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    .product-card-thumb {
        max-height: 280px;
    }

    .product-card-info {
        flex: 1 1 208px;
        max-width: none;
        min-width: 0;
    }

    .product-card-name {
        font-size: 21px;
    }

    .aff-btn {
        font-size: 16px;
        padding: 9px 16px;
    }

    .bestof-intro-text {
        font-size: 15px;
    }
}

.best-in-gear-widget {
    margin-top: 10px;
}

.best-in-gear-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #1e1e1e;
    margin: 0 0 12px;
}

.best-in-gear-divider {
    height: 2px;
    background: #1e1e1e;
    margin-bottom: 20px;
}

.best-in-gear-list {
    display: flex;
    flex-direction: column;
}

.best-in-gear-item {
    padding: 12px 0;
    padding-left: 14px;
    border-left: 3px solid #4eeba9;
    border-bottom: 1px solid #eee;
}

.best-in-gear-item:first-child {
    padding-top: 0;
}

.best-in-gear-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.best-in-gear-item h4 {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.best-in-gear-item h4 a {
    color: #1e1e1e;
    text-decoration: none;
    transition: color 0.3s;
}

.best-in-gear-item h4 a:hover {
    color: #04794d;
}

/* =====================================================================
   Affiliate link inline format (front end)
   Rendered by the kitchen/affiliate-link RichText format. The href, rel,
   and target attributes are injected server-side by the_content filter
   (see inc/affiliate-link-format.php).
   ===================================================================== */

a.kitchen-affiliate-link,
.kitchen-affiliate-link a {
    font-weight: 600;
}

/* =====================================================================
   Product Archive (archive-kitchen_product.php, taxonomy-product_category.php)
   ===================================================================== */

.product-archive__header {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    padding: 40px 0 30px;
}

.product-archive__title {
    font-size: 32px;
    font-weight: 700;
    color: #1e1e1e;
    margin: 0 0 10px;
}

.product-archive__intro {
    color: #555;
    font-size: 16px;
    margin: 0 0 20px;
}

.product-archive__category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-archive__cat-link {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    background: #fff;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.product-archive__cat-link:hover,
.product-archive__cat-link.is-active {
    background: #00452c;
    border-color: #00452c;
    color: #fff;
}

.product-archive__content {
    padding: 40px 0 60px;
}

.product-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1024px) {
    .product-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .product-archive__grid {
        grid-template-columns: 1fr;
    }
}

.product-archive__pagination {
    margin-top: 40px;
}

/* Product card */
.product-card-archive {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}

.product-card-archive:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-card-archive__image-link {
    display: block;
    background: #f8f8f8;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-card-archive__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 16px;
}

.product-card-archive__img-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}

.product-card-archive__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-archive__category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #04794d;
    margin-bottom: 8px;
    display: block;
}

.product-card-archive__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
}

.product-card-archive__title a {
    color: #1e1e1e;
    text-decoration: none;
}

.product-card-archive__title a:hover {
    color: #00452c;
}

.product-card-archive__brand {
    font-size: 13px;
    color: #8f8f8f;
    margin: 0 0 10px;
}

.product-card-archive__pricing {
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-card-archive__price {
    font-size: 20px;
    font-weight: 700;
    color: #1e1e1e;
}

.product-card-archive__compare-price {
    font-size: 14px;
    color: #8f8f8f;
    text-decoration: line-through;
}

.product-card-archive__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.product-card-archive__details-link {
    font-size: 14px;
    color: #00452c;
    text-decoration: none;
    font-weight: 600;
}

.product-card-archive__details-link:hover {
    text-decoration: underline;
}

.product-card-archive__buy-btn {
    display: block;
    background: #00452c;
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.product-card-archive__buy-btn:hover {
    background: #006644;
    color: #fff;
}

/* =====================================================================
   Single Product Page (single-kitchen_product.php)
   ===================================================================== */

.single-product {
    padding: 30px 0 60px;
    background: #fff;
}

.single-product__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', 'Inter', sans-serif;
}

@media (min-width: 768px) {
    .single-product__container {
        padding: 0 32px;
    }
}

.single-product__breadcrumb {
    font-size: 13px;
    color: #8f8f8f;
    margin-bottom: 28px;
    font-family: 'Helvetica Neue', 'Inter', sans-serif;
}

.single-product__breadcrumb a {
    color: #555;
    text-decoration: none;
}

.single-product__breadcrumb a:hover {
    color: #04794d;
    text-decoration: underline;
}

.single-product__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    align-items: start;
}

@media (max-width: 768px) {
    .single-product__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Gallery */
.single-product__gallery-main {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product__gallery-hero {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 520px;
}

.single-product__gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.single-product__thumb {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: #f5f5f5;
    padding: 6px;
    cursor: pointer;
    width: 76px;
    height: 76px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.single-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.single-product__thumb.is-active,
.single-product__thumb:hover {
    border-color: #04794d;
}

.single-product__gallery-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 12px;
}

/* Info panel */
.single-product__brand {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #04794d;
    margin: 0 0 12px;
}

.single-product__brand-logo {
    max-height: 36px;
    width: auto;
    display: block;
}

.single-product__title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1.6px;
    color: #1e1e1e;
    margin: 0 0 14px;
}

@media (max-width: 768px) {
    .single-product__title {
        font-size: 32px;
        letter-spacing: -1.2px;
    }
}

.single-product__divider {
    height: 5px;
    width: 100%;
    background: linear-gradient(to right, #4eeba9 0%, transparent 100%);
    margin: 0 0 20px;
}

.single-product__category {
    font-size: 14px;
    color: #8f8f8f;
    margin: 0 0 16px;
}

.single-product__category a {
    color: #555;
    text-decoration: none;
}

.single-product__category a:hover {
    color: #04794d;
}

.single-product__aff-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.single-product__buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #e2ff2d;
    color: #1e1e1e;
    padding: 16px 32px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.single-product__buy-btn:hover {
    background: #d2ee20;
    color: #1e1e1e;
    transform: translateY(-1px);
}

.single-product__buy-price {
    font-weight: 700;
    font-size: 17px;
    color: #1e1e1e;
}

.single-product__affiliate-notice {
    font-size: 12px;
    color: #8f8f8f;
    margin: 8px 0 0;
}

/* Content + specs */
.single-product__content {
    border-top: 1px solid #e5e5e5;
    margin-top: 32px;
    padding-top: 24px;
    margin-bottom: 36px;
    font-size: 17px;
    line-height: 1.7;
    color: #1e1e1e;
}

.single-product__specs {
    border-top: 1px solid #e5e5e5;
    padding-top: 36px;
    margin-bottom: 36px;
}

.single-product__specs-heading {
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1.2px;
    margin: 0 0 12px;
    color: #1e1e1e;
}

.single-product__specs-body {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.single-product__bottom-cta {
    border-top: 1px solid #e5e5e5;
    padding-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
