/* ══════════════════════════════════════════
   Pizzasteen.dk — Plugin Styles
   All classes use ps- prefix
   ══════════════════════════════════════════ */

:root {
    --ps-primary: #d4461c;
    --ps-primary-dark: #b83a17;
    --ps-primary-light: #f0754d;
    --ps-accent: #e8a838;
    --ps-accent-light: #f5d080;
    --ps-green: #4a8c3f;
    --ps-green-light: #6bb85e;
    --ps-text: #2d2017;
    --ps-text-secondary: #6b5b4e;
    --ps-text-muted: #9c8b7e;
    --ps-bg: #fefcf9;
    --ps-bg-warm: #faf5ef;
    --ps-card: #ffffff;
    --ps-border: #e8dfd6;
    --ps-border-light: #f0ebe5;
    --ps-radius: 12px;
    --ps-radius-sm: 8px;
    --ps-radius-lg: 16px;
    --ps-shadow-sm: 0 1px 3px rgba(45, 32, 23, 0.08);
    --ps-shadow-md: 0 4px 16px rgba(45, 32, 23, 0.12);
    --ps-shadow-lg: 0 8px 32px rgba(45, 32, 23, 0.16);
    --ps-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ps-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


/* ─── Page Wrapper ─── */

.ps-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    font-family: var(--ps-font);
    color: var(--ps-text);
    line-height: 1.6;
}


/* ═══════════════════════════════════════
   DOUGH GENERATOR
   ═══════════════════════════════════════ */

.ps-dough-generator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: var(--ps-font);
    color: var(--ps-text);
}

.ps-dough-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 0.25rem;
    color: var(--ps-text);
}

.ps-dough-subtitle {
    text-align: center;
    color: var(--ps-text-secondary);
    font-size: 1.1rem;
    margin: 0 0 2rem;
}


/* ─── Dough Card Grid ─── */

.ps-dough-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ps-dough-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ps-dough-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ps-dough-card {
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: transform var(--ps-transition), box-shadow var(--ps-transition), border-color var(--ps-transition);
    position: relative;
    overflow: hidden;
}

.ps-dough-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ps-shadow-md);
    border-color: var(--ps-primary);
}

.ps-dough-card-badge {
    display: inline-block;
    background: var(--ps-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.ps-dough-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.ps-dough-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--ps-text);
    line-height: 1.3;
}

.ps-dough-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--ps-text-muted);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.ps-dough-card-meta span {
    white-space: nowrap;
}

.ps-dough-card p {
    font-size: 0.85rem;
    color: var(--ps-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.ps-dough-card-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: var(--ps-radius-sm);
    margin-bottom: 0.75rem;
    background: var(--ps-bg-warm);
}

.ps-dough-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--ps-transition);
}

.ps-dough-card:hover .ps-dough-card-img img {
    transform: scale(1.05);
}

.ps-dough-general-tips {
    margin: 2.5rem 0 0;
    padding: 1.5rem;
    background: var(--ps-bg-warm);
    border: 1px solid var(--ps-accent-light);
    border-radius: var(--ps-radius);
}

.ps-dough-general-tips h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--ps-accent);
}

.ps-dough-general-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-dough-general-tips li {
    padding: 0.4rem 0 0.4rem 1.75rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--ps-text-secondary);
    line-height: 1.5;
}

.ps-dough-general-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.4rem;
    font-weight: 700;
    color: var(--ps-green);
}

/* ── Dough single/overview pages ── */
.ps-recipe-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.1rem 0 0.4rem;
    color: var(--ps-text);
}

.ps-recipe-section h2 small {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--ps-text-secondary);
}

.ps-dough-total {
    margin-top: 0.85rem !important;
    font-size: 1rem;
}

.ps-dough-calc-link {
    display: inline-block;
    margin-top: 0.6rem;
    font-weight: 600;
    color: var(--ps-primary);
    text-decoration: none;
}

.ps-dough-calc-link:hover {
    text-decoration: underline;
}

.ps-dough-links {
    margin-top: 3rem;
}

.ps-dough-links > h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--ps-text);
}

.ps-dough-cta {
    margin: 0.6rem 0 0;
    font-size: 0.95rem;
    color: var(--ps-text-secondary);
}

.ps-dough-cta a {
    font-weight: 600;
    color: var(--ps-primary);
    text-decoration: none;
}

.ps-dough-cta a:hover {
    text-decoration: underline;
}


/* ─── Calculator View ─── */

.ps-dough-calculator {
    animation: ps-fadeIn 0.3s ease;
}

@keyframes ps-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ps-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--ps-text-secondary);
    cursor: pointer;
    transition: all var(--ps-transition);
    margin-bottom: 1.5rem;
    font-family: var(--ps-font);
}

.ps-back-btn:hover {
    border-color: var(--ps-primary);
    color: var(--ps-primary);
    background: rgba(212, 70, 28, 0.05);
}

.ps-calc-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: var(--ps-text);
}

.ps-calc-desc {
    color: var(--ps-text-secondary);
    font-size: 1rem;
    margin: 0 0 1.5rem;
}


/* ─── Controls (Sliders) ─── */

.ps-calc-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--ps-bg-warm);
    border-radius: var(--ps-radius);
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .ps-calc-controls {
        grid-template-columns: 1fr 1fr;
    }
}

.ps-control-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ps-text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ps-slider-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ps-slider-wrap input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--ps-border);
    border-radius: 3px;
    outline: none;
}

.ps-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ps-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(212, 70, 28, 0.3);
    transition: transform 0.15s ease;
}

.ps-slider-wrap input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.ps-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: var(--ps-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(212, 70, 28, 0.3);
}

.ps-control-value {
    min-width: 3rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ps-primary);
}


/* ─── Summary Stats Bar ─── */

.ps-calc-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.ps-summary-stat {
    text-align: center;
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    padding: 1rem 0.5rem;
}

.ps-stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ps-primary);
    line-height: 1.2;
}

.ps-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--ps-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.2rem;
}

@media (max-width: 480px) {
    .ps-stat-value {
        font-size: 1.2rem;
    }
    .ps-stat-label {
        font-size: 0.65rem;
    }
}


/* ─── Ingredients Section ─── */

.ps-ingredients-section {
    margin-bottom: 2rem;
}

.ps-ingredients-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ps-border);
}

.ps-ingredients-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ps-text-secondary);
    margin: 1rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ps-starter-ingredients {
    background: var(--ps-bg-warm);
    border-radius: var(--ps-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.ps-starter-ingredients h4 {
    margin-top: 0;
    color: var(--ps-accent);
}

.ps-ing-table {
    width: 100%;
    border-collapse: collapse;
}

.ps-ing-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--ps-border-light);
}

.ps-ing-table tr:last-child td {
    border-bottom: none;
}

.ps-ing-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

.ps-ing-table td:first-child {
    font-weight: 500;
    color: var(--ps-text);
}

.ps-ing-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--ps-primary);
    white-space: nowrap;
}

.ps-total-row {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--ps-primary);
    color: #fff;
    border-radius: var(--ps-radius-sm);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
}


/* ─── Steps / Timeline ─── */

.ps-steps-section {
    margin-bottom: 2rem;
}

.ps-steps-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ps-border);
}

.ps-timeline {
    position: relative;
    padding-left: 2rem;
}

.ps-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ps-border);
}

.ps-timeline-day {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ps-primary);
    background: var(--ps-bg);
    position: relative;
    padding: 0.5rem 0;
    margin-bottom: 0.25rem;
}

.ps-timeline-day::before {
    content: '';
    position: absolute;
    left: -1.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ps-primary);
    border: 2px solid var(--ps-bg);
}

.ps-timeline-step {
    position: relative;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--ps-text-secondary);
    line-height: 1.5;
}

.ps-timeline-step::before {
    content: '';
    position: absolute;
    left: -1.2rem;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ps-border);
}

.ps-timeline-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ps-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 0.5rem;
    flex-shrink: 0;
}


/* ─── Tips Section ─── */

.ps-tips-section {
    background: var(--ps-bg-warm);
    border: 1px solid var(--ps-accent-light);
    border-radius: var(--ps-radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.ps-tips-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--ps-accent);
}

.ps-tips-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-tips-section li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--ps-text-secondary);
    line-height: 1.5;
}

.ps-tips-section li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0.4rem;
    font-size: 0.8rem;
}


/* ═══════════════════════════════════════
   RECIPE PAGES
   ═══════════════════════════════════════ */


/* ─── Recipe Card Grid ─── */

.ps-recipe-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ps-recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ps-recipe-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ps-recipe-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    overflow: hidden;
    transition: transform var(--ps-transition), box-shadow var(--ps-transition);
}

.ps-recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ps-shadow-md);
    text-decoration: none;
    color: inherit;
}

.ps-recipe-card-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--ps-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-recipe-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ps-transition);
}

.ps-recipe-card:hover .ps-recipe-card-img img {
    transform: scale(1.05);
}

.ps-recipe-card-placeholder {
    font-size: 3rem;
    opacity: 0.5;
}

.ps-recipe-card-body {
    padding: 1rem;
}

.ps-recipe-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.4rem 0 0.3rem;
    color: var(--ps-text);
    line-height: 1.3;
}

.ps-recipe-base {
    font-size: 0.8rem;
    color: var(--ps-text-muted);
    margin: 0;
}


/* ─── Recipe Badge ─── */

.ps-recipe-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ps-text-muted);
    background: var(--ps-bg-warm);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    white-space: nowrap;
}


/* ─── Full Recipe Page ─── */

.ps-recipe-full {
    max-width: 800px;
    margin: 0 auto;
}

.ps-recipe-hero {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: var(--ps-radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-primary-dark));
}

@media (min-width: 768px) {
    .ps-recipe-hero {
        height: 380px;
    }
}

.ps-recipe-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-recipe-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 6rem;
    opacity: 0.3;
}

.ps-recipe-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}

.ps-recipe-hero-overlay .ps-recipe-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    margin-bottom: 0.5rem;
}

.ps-recipe-hero-overlay h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .ps-recipe-hero-overlay h1 {
        font-size: 2.2rem;
    }
}


/* ─── Recipe Content Sections ─── */

.ps-recipe-content {
    padding: 0 0.5rem;
}

.ps-recipe-description {
    font-size: 1.1rem;
    color: var(--ps-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.ps-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: var(--ps-bg-warm);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
}

.ps-recipe-meta span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ps-text);
}

.ps-recipe-steps ol {
    margin: 0.5rem 0 0;
    padding-left: 1.5rem;
    counter-reset: ps-step;
    list-style: none;
}

.ps-recipe-steps li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    color: var(--ps-text-secondary);
    line-height: 1.6;
    counter-increment: ps-step;
}

.ps-recipe-steps li::before {
    content: counter(ps-step);
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ps-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
}

.ps-recipe-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
}

.ps-recipe-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--ps-text);
}

.ps-recipe-section p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ps-text-secondary);
    line-height: 1.6;
}

.ps-recipe-section ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.ps-recipe-section ul li {
    font-size: 0.95rem;
    color: var(--ps-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.ps-recipe-sauce p + ul {
    margin-bottom: 0.5rem;
}

.ps-recipe-tips {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--ps-bg-warm);
    border: 1px solid var(--ps-accent-light);
    border-radius: var(--ps-radius);
}

.ps-recipe-tips h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--ps-accent);
}

.ps-recipe-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-recipe-tips li {
    padding: 0.4rem 0 0.4rem 1.75rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--ps-text-secondary);
    line-height: 1.5;
}

.ps-recipe-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.4rem;
    font-weight: 700;
    color: var(--ps-green);
}

.ps-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--ps-border);
}

.ps-related h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
}


/* ═══════════════════════════════════════
   OVERVIEW & CATEGORIES
   ═══════════════════════════════════════ */

.ps-overview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    font-family: var(--ps-font);
    color: var(--ps-text);
}

.ps-overview-hero {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.ps-overview-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--ps-text);
}

.ps-overview-subtitle {
    font-size: 1.05rem;
    color: var(--ps-text-secondary);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ─── Category Navigation ─── */

.ps-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--ps-bg-warm);
    border-radius: var(--ps-radius);
}

.ps-category-nav-item {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ps-text-secondary);
    text-decoration: none;
    background: var(--ps-card);
    border: 1px solid var(--ps-border);
    border-radius: 100px;
    transition: all var(--ps-transition);
    white-space: nowrap;
}

.ps-category-nav-item:hover {
    background: var(--ps-primary);
    color: #fff;
    border-color: var(--ps-primary);
    text-decoration: none;
}


/* ─── Category Section ─── */

.ps-category-section {
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}

.ps-category-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ps-border);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
}

.ps-category-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: var(--ps-text);
    flex-basis: 100%;
}

@media (min-width: 768px) {
    .ps-category-header h2 {
        flex-basis: auto;
    }
}

.ps-category-header p {
    font-size: 0.9rem;
    color: var(--ps-text-muted);
    margin: 0;
    flex: 1;
}

.ps-category-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ps-primary);
    text-decoration: none;
    white-space: nowrap;
}

.ps-category-link:hover {
    text-decoration: underline;
}


/* ─── Breadcrumbs ─── */

.ps-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--ps-text-muted);
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.ps-breadcrumb a {
    color: var(--ps-text-muted);
    text-decoration: none;
    transition: color var(--ps-transition);
}

.ps-breadcrumb a:hover {
    color: var(--ps-primary);
}

.ps-breadcrumb-sep {
    color: var(--ps-border);
    margin: 0 0.15rem;
}


/* ─── Back to overview ─── */

.ps-back-to-overview {
    text-align: center;
    margin-top: 2rem;
}

.ps-back-to-overview a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--ps-bg-warm);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ps-text-secondary);
    text-decoration: none;
    transition: all var(--ps-transition);
}

.ps-back-to-overview a:hover {
    border-color: var(--ps-primary);
    color: var(--ps-primary);
}


/* ─── Not Found ─── */

.ps-not-found {
    text-align: center;
    padding: 4rem 1rem;
}

.ps-not-found h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.ps-not-found a {
    color: var(--ps-primary);
}


/* ═══════════════════════════════════════
   UTILITY & RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 480px) {
    .ps-dough-title,
    .ps-overview-title {
        font-size: 1.5rem;
    }

    .ps-dough-subtitle,
    .ps-overview-subtitle {
        font-size: 0.95rem;
    }

    .ps-calc-title {
        font-size: 1.3rem;
    }

    .ps-recipe-hero-overlay h1 {
        font-size: 1.4rem;
    }

    .ps-calc-summary {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .ps-category-nav {
        gap: 0.3rem;
    }

    .ps-category-nav-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ══════════════════════════════════════════
   Affiliate Ads — Fredstone Pizzasten
   ══════════════════════════════════════════ */

.ps-affiliate-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #fef9f3 0%, #fdf6ec 100%);
    border: 1px solid #e8dcc8;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.ps-affiliate-inline:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.ps-affiliate-img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ps-affiliate-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ps-affiliate-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.ps-affiliate-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #b45309;
}

.ps-affiliate-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ps-text, #1f2937);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-affiliate-price {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
}

.ps-affiliate-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
}

.ps-affiliate-tag {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.6rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sidebar variant */
.ps-affiliate-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #fef9f3;
    border: 1px solid #e8dcc8;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.ps-affiliate-sidebar:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}

.ps-affiliate-sidebar img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.ps-affiliate-sidebar .ps-affiliate-name {
    white-space: normal;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .ps-affiliate-inline {
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .ps-affiliate-img {
        width: 60px;
        height: 60px;
    }

    .ps-affiliate-name {
        font-size: 0.8rem;
    }

    .ps-affiliate-price {
        font-size: 0.9rem;
    }
}
