/*
Theme Name: Bespoke Portfolio
Theme URI: https://davidsierdesign.co.nz/
Author: OpenAI Codex
Description: Bespoke editorial portfolio theme for David Sier Design with ACF templates, FluentCart integration, and handcrafted product storytelling.
Version: 1.1.0
Text Domain: bespoke-portfolio
*/

/* Global styles */
html {
    scroll-behavior: smooth;
}

body {
    background: #f9f9f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    clip: auto;
    z-index: 10000;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #090f18;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 18px 40px rgba(9, 15, 24, 0.18);
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
    vertical-align: middle;
}

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

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bespoke-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 4rem;
    padding: 0.95rem 2rem;
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 1rem;
    background: #ffffff;
    color: #090f18;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: 0 18px 40px rgba(9, 15, 24, 0.12);
    transition:
        transform 240ms ease,
        box-shadow 240ms ease,
        background-color 240ms ease,
        border-color 240ms ease,
        color 240ms ease;
}

.bespoke-cta-button .material-symbols-outlined {
    transition: transform 240ms ease;
}

.bespoke-cta-button:hover,
.bespoke-cta-button:focus-visible {
    background: #f3f3f4;
    border-color: rgba(9, 15, 24, 0.14);
    color: #090f18;
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(9, 15, 24, 0.16);
}

.bespoke-cta-button:hover .material-symbols-outlined,
.bespoke-cta-button:focus-visible .material-symbols-outlined {
    transform: translateX(3px);
}

.bespoke-cta-button:active {
    transform: translateY(0);
    box-shadow: 0 12px 24px rgba(9, 15, 24, 0.12);
}

.bespoke-cta-button:focus-visible {
    outline: 2px solid rgba(9, 15, 24, 0.2);
    outline-offset: 4px;
}

body.mobile-nav-open {
    overflow: hidden;
}

.mobile-menu-toggle {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(9, 15, 24, 0.08);
}

.mobile-menu-toggle__line {
    position: absolute;
    left: 50%;
    width: 1.1rem;
    height: 2px;
    background: #090f18;
    border-radius: 999px;
    transform: translateX(-50%);
    transition: transform 220ms ease, opacity 220ms ease, top 220ms ease;
}

.mobile-menu-toggle__line:nth-child(1) {
    top: 0.95rem;
}

.mobile-menu-toggle__line:nth-child(2) {
    top: 1.34rem;
}

.mobile-menu-toggle__line:nth-child(3) {
    top: 1.73rem;
}

.mobile-menu-toggle.is-open .mobile-menu-toggle__line:nth-child(1) {
    top: 1.34rem;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-toggle.is-open .mobile-menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open .mobile-menu-toggle__line:nth-child(3) {
    top: 1.34rem;
    transform: translateX(-50%) rotate(-45deg);
}

.mobile-nav-panel {
    padding: 0 1rem 1rem;
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 240ms ease, transform 240ms ease;
}

.mobile-nav-panel.is-open {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-panel__inner {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 243, 244, 0.96));
    box-shadow: 0 24px 48px rgba(9, 15, 24, 0.12);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.75rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1rem;
    color: #45474b;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background: rgba(9, 15, 24, 0.05);
    color: #090f18;
    transform: translateX(4px);
}

.mobile-nav-link.is-active {
    background: #090f18;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(9, 15, 24, 0.16);
}

/* Home template styles */

/* About template styles */
.tonal-shift-surface {
    background-color: rgba(249, 249, 249, 0.7);
}

.dark .tonal-shift-surface {
    background-color: rgba(26, 28, 28, 0.7);
}

.asymmetric-grid-item:nth-child(even) {
    margin-top: 4rem;
}

.about-living-section {
    background:
        linear-gradient(180deg, rgba(34, 28, 23, 0.88), rgba(34, 28, 23, 0.88)),
        url("./assets/images/burma.webp");
    background-size: cover;
    background-position: center, center;
}

.about-living-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 26%, rgba(193, 145, 84, 0.14), transparent 28%),
        radial-gradient(circle at 78% 34%, rgba(255, 244, 229, 0.05), transparent 22%),
        linear-gradient(90deg, rgba(18, 14, 10, 0.06), rgba(18, 14, 10, 0));
    pointer-events: none;
}

.about-living-section__fade {
    position: absolute;
    left: 0;
    right: 0;
    height: 18rem;
    z-index: 1;
    pointer-events: none;
}

.about-living-section__fade--top {
    top: 0;
    background: linear-gradient(180deg, #f9f9f9 0%, rgba(249, 249, 249, 0.94) 14%, rgba(249, 249, 249, 0.78) 32%, rgba(249, 249, 249, 0.52) 52%, rgba(249, 249, 249, 0.26) 72%, rgba(249, 249, 249, 0.08) 88%, rgba(249, 249, 249, 0) 100%);
}

.about-living-section__fade--bottom {
    bottom: 0;
    background: linear-gradient(0deg, #f9f9f9 0%, rgba(249, 249, 249, 0.94) 14%, rgba(249, 249, 249, 0.78) 32%, rgba(249, 249, 249, 0.52) 52%, rgba(249, 249, 249, 0.26) 72%, rgba(249, 249, 249, 0.08) 88%, rgba(249, 249, 249, 0) 100%);
}

.about-latest-post {
    position: relative;
}

.about-latest-post__image {
    transition: transform 320ms ease, filter 320ms ease;
}

.about-latest-post__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(9, 15, 24, 0.02) 8%, rgba(9, 15, 24, 0.18) 46%, rgba(9, 15, 24, 0.76) 100%);
    color: #ffffff;
    opacity: 0;
    transition: opacity 280ms ease;
}

.about-latest-post:hover .about-latest-post__overlay,
.about-latest-post:focus-visible .about-latest-post__overlay {
    opacity: 1;
}

.about-latest-post:hover .about-latest-post__image,
.about-latest-post:focus-visible .about-latest-post__image {
    transform: scale(1.04);
    filter: brightness(0.82);
}

.about-latest-post__eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.about-latest-post__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

/* Designs template styles */
.glass-nav {
    background-color: rgba(249, 249, 249, 0.7);
    backdrop-filter: blur(20px);
}

@media (prefers-color-scheme: dark) {
    .glass-nav {
        background-color: rgba(26, 28, 28, 0.7);
    }
}

.masonry-grid {
    column-count: 1;
    column-gap: 3rem;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1280px) {
    .masonry-grid {
        column-count: 2;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 6rem;
}

.designs-commission-block {
    background: #1f242e;
}

.designs-commission-texture {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.04), transparent 30%),
        repeating-linear-gradient(
            -8deg,
            rgba(255, 255, 255, 0.015) 0,
            rgba(255, 255, 255, 0.015) 2px,
            transparent 2px,
            transparent 14px
        ),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.12));
}

.designs-commission-input {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.04);
}

.designs-commission-input:focus {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.07);
}

.designs-commission-input:-webkit-autofill,
.designs-commission-input:-webkit-autofill:hover,
.designs-commission-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.07);
}

.designs-commission-button {
    min-width: 12rem;
    background: #ffffff;
    color: #090f18;
    box-shadow: 0 12px 28px rgba(9, 15, 24, 0.2);
    transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
}

.designs-commission-button:hover,
.designs-commission-button:focus-visible {
    background: #e8e8e8;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(9, 15, 24, 0.24);
}

.designs-commission-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

/* Contact template styles */
.font-plus-jakarta {
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* Legal template styles */
.legal-template {
    background:
        radial-gradient(circle at top left, rgba(9, 15, 24, 0.03), transparent 26%),
        linear-gradient(180deg, #f9f9f9 0%, #f3f3f4 100%);
}

.legal-shell {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(9, 15, 24, 0.06);
}

@media (min-width: 768px) {
    .legal-shell {
        padding: 3rem;
    }
}

.legal-header {
    max-width: 44rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(9, 15, 24, 0.08);
}

.legal-eyebrow {
    display: block;
    margin-bottom: 0.75rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #76777c;
}

.legal-title {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.75rem, 5vw, 4.75rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #090f18;
}

.legal-body {
    max-width: 54rem;
    color: #1a1c1c;
    font-family: "Inter", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.legal-body > *:first-child {
    margin-top: 0;
}

.legal-body > *:last-child {
    margin-bottom: 0;
}

.legal-body h2,
.legal-body h3,
.legal-body h4,
.legal-body h5,
.legal-body h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #090f18;
}

.legal-body h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.legal-body h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
}

.legal-body p,
.legal-body ul,
.legal-body ol,
.legal-body blockquote,
.legal-body table {
    margin: 0 0 1.25rem;
}

.legal-body ul,
.legal-body ol {
    padding-left: 1.5rem;
}

.legal-body li + li {
    margin-top: 0.5rem;
}

.legal-body a {
    color: #090f18;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.legal-body strong {
    color: #090f18;
    font-weight: 600;
}

.legal-body hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid rgba(9, 15, 24, 0.12);
}

.legal-body blockquote {
    padding-left: 1.25rem;
    border-left: 3px solid rgba(9, 15, 24, 0.14);
    color: #45474b;
}

/* Single post styles */
.single-post-template {
    background:
        radial-gradient(circle at top right, rgba(9, 15, 24, 0.035), transparent 22%),
        linear-gradient(180deg, #f9f9f9 0%, #f3f3f4 100%);
}

.single-post-hero {
    max-width: 58rem;
    margin: 0 auto 3rem;
}

.single-post-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.single-post-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #45474b;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 220ms ease, transform 220ms ease;
}

.single-post-hero__back:hover,
.single-post-hero__back:focus-visible {
    color: #090f18;
    transform: translateX(-3px);
}

.single-post-hero__taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.single-post-hero__category {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #5d5e5f;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.single-post-hero__category:hover,
.single-post-hero__category:focus-visible {
    color: #090f18;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(9, 15, 24, 0.14);
}

.single-post-hero__title {
    margin: 0 0 1.5rem;
    color: #090f18;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(3rem, 6vw, 5.75rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.single-post-hero__excerpt {
    max-width: 46rem;
    margin: 0 0 1.75rem;
    color: #45474b;
    font-family: "Inter", sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.7;
}

.single-post-hero__byline {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #76777c;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.single-post-hero__divider {
    width: 1.5rem;
    height: 1px;
    background: rgba(9, 15, 24, 0.14);
}

.single-post-featured {
    margin: 0 auto 2.5rem;
    max-width: 76rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(9, 15, 24, 0.1);
}

.single-post-featured__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 42rem;
    object-fit: cover;
}

.single-post-shell {
    max-width: 58rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(9, 15, 24, 0.06);
}

@media (min-width: 768px) {
    .single-post-shell {
        padding: 3rem;
    }
}

.single-post-body {
    color: #1a1c1c;
    font-family: "Inter", sans-serif;
    font-size: 1.08rem;
    line-height: 1.85;
}

.single-post-body > *:first-child {
    margin-top: 0;
}

.single-post-body > *:last-child {
    margin-bottom: 0;
}

.single-post-body h2,
.single-post-body h3,
.single-post-body h4,
.single-post-body h5,
.single-post-body h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #090f18;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.single-post-body h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.single-post-body h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.single-post-body p,
.single-post-body ul,
.single-post-body ol,
.single-post-body blockquote,
.single-post-body table,
.single-post-body figure {
    margin: 0 0 1.35rem;
}

.single-post-body ul,
.single-post-body ol {
    padding-left: 1.5rem;
}

.single-post-body li + li {
    margin-top: 0.5rem;
}

.single-post-body a {
    color: #090f18;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.single-post-body blockquote {
    padding-left: 1.25rem;
    border-left: 3px solid rgba(9, 15, 24, 0.14);
    color: #45474b;
}

.single-post-body img {
    border-radius: 1.25rem;
}

.single-post-pagination {
    max-width: 58rem;
    margin: 2rem auto 0;
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .single-post-pagination {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.single-post-pagination__item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.82);
    color: #090f18;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow: 0 18px 40px rgba(9, 15, 24, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.single-post-pagination__item a:hover,
.single-post-pagination__item a:focus-visible {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(9, 15, 24, 0.1);
}

.single-post-pagination__item--next a {
    text-align: right;
}

/* Single product styles */
.single-product-template {
    background:
        radial-gradient(circle at top left, rgba(9, 15, 24, 0.03), transparent 24%),
        linear-gradient(180deg, #f9f9f9 0%, #f3f3f4 100%);
}

.single-product-article {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.single-product-hero {
    max-width: 56rem;
}

.single-product-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    color: #45474b;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 220ms ease, transform 220ms ease;
}

.single-product-hero__back:hover,
.single-product-hero__back:focus-visible {
    color: #090f18;
    transform: translateX(-3px);
}

.single-product-hero__taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.single-product-hero__category {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #5d5e5f;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.single-product-hero__category:hover,
.single-product-hero__category:focus-visible {
    color: #090f18;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(9, 15, 24, 0.14);
}

.single-product-hero__title {
    margin: 0 0 1rem;
    color: #090f18;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.single-product-hero__excerpt {
    max-width: 44rem;
    margin: 0;
    color: #45474b;
    font-family: "Inter", sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.7;
}

.single-product-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.single-product-featured {
    width: 100%;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(9, 15, 24, 0.1);
    background: rgba(255, 255, 255, 0.88);
}

.single-product-featured__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 52rem;
    object-fit: cover;
}

.single-product-shell {
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(9, 15, 24, 0.06);
}

@media (min-width: 768px) {
    .single-product-shell {
        padding: 3rem;
    }
}

.single-product-body {
    color: #1a1c1c;
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
}

.single-product-body > *:first-child {
    margin-top: 0;
}

.single-product-body > *:last-child {
    margin-bottom: 0;
}

.single-product-body h2,
.single-product-body h3,
.single-product-body h4,
.single-product-body h5,
.single-product-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #090f18;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.single-product-body a {
    color: #090f18;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.single-product-body img {
    border-radius: 1.25rem;
}

/* Generic page styles */
.generic-page-template {
    background:
        radial-gradient(circle at top left, rgba(9, 15, 24, 0.03), transparent 24%),
        linear-gradient(180deg, #f9f9f9 0%, #f3f3f4 100%);
}

.generic-page-shell {
    max-width: 62rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(9, 15, 24, 0.06);
}

.generic-page-shell--shop {
    max-width: 100%;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .generic-page-shell {
        padding: 3rem;
    }

    .generic-page-shell--shop {
        padding: 2.25rem;
    }
}

.generic-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(9, 15, 24, 0.08);
}

.generic-page-title {
    margin: 0;
    color: #090f18;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.generic-page-body {
    color: #1a1c1c;
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
}

.generic-page-body > *:first-child {
    margin-top: 0;
}

.generic-page-body > *:last-child {
    margin-bottom: 0;
}

.generic-page-body h2,
.generic-page-body h3,
.generic-page-body h4,
.generic-page-body h5,
.generic-page-body h6 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    color: #090f18;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.generic-page-body p,
.generic-page-body ul,
.generic-page-body ol,
.generic-page-body blockquote,
.generic-page-body table {
    margin: 0 0 1.25rem;
}

.generic-page-body ul,
.generic-page-body ol {
    padding-left: 1.5rem;
}

.generic-page-body a {
    color: #090f18;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

/* Maintenance and 404 styles */
.maintenance-template,
.not-found-template {
    background:
        radial-gradient(circle at top right, rgba(9, 15, 24, 0.035), transparent 22%),
        linear-gradient(180deg, #f9f9f9 0%, #f3f3f4 100%);
}

.maintenance-shell,
.not-found-shell {
    max-width: 58rem;
    margin: 0 auto;
    padding: 3rem 2rem;
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 60px rgba(9, 15, 24, 0.08);
    text-align: center;
}

@media (min-width: 768px) {
    .maintenance-shell,
    .not-found-shell {
        padding: 4.5rem 3.5rem;
    }
}

.maintenance-eyebrow,
.not-found-code {
    display: block;
    margin-bottom: 1rem;
    color: #76777c;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.maintenance-title,
.not-found-title {
    margin: 0 0 1.25rem;
    color: #090f18;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.maintenance-text,
.not-found-text {
    max-width: 42rem;
    margin: 0 auto 2rem;
    color: #45474b;
    font-family: "Inter", sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.maintenance-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #76777c;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pagination {
    padding: 0 3rem 3rem;
}

.pagination .nav-links {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    min-height: 3.4rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(9, 15, 24, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #45474b;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(9, 15, 24, 0.06);
    transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus-visible {
    background: #ffffff;
    color: #090f18;
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(9, 15, 24, 0.1);
}

.pagination .page-numbers.current {
    background: #090f18;
    color: #ffffff;
    border-color: #090f18;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
