/* ─── Single Product Page (ps-) ─── */

.page-product-single {
    --ps-bg: #faf9f6;
    --ps-bg-soft: #f3efe8;
    --ps-text: #2c302e;
    --ps-text-soft: rgba(44, 48, 46, 0.62);
    --ps-accent: #b08d57;
    --ps-accent-bright: #c4872a;
    --ps-line: rgba(176, 141, 87, 0.22);
    --ps-card: rgba(255, 255, 255, 0.92);
    --ps-shadow: rgba(44, 48, 46, 0.08);
}

html[data-theme="dark"] .page-product-single {
    --ps-bg: #0a0b0a;
    --ps-bg-soft: #121411;
    --ps-text: #eae6df;
    --ps-text-soft: rgba(234, 230, 223, 0.58);
    --ps-accent: #e8942a;
    --ps-accent-bright: #f0a840;
    --ps-line: rgba(232, 148, 42, 0.24);
    --ps-card: rgba(22, 23, 21, 0.94);
    --ps-shadow: rgba(0, 0, 0, 0.35);
}

.page-product-single .site-main--product-single {
    padding: 0;
    min-height: auto;
}

.ps {
    background: var(--ps-bg);
    color: var(--ps-text);
    overflow-x: clip;
}

.ps-wrap {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
}

.ps-section {
    position: relative;
}

.ps-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ps-accent);
    margin-bottom: 14px;
}

.ps-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 3.8vw, 46px);
    font-weight: 400;
    line-height: 1.12;
    margin: 0 0 16px;
    color: var(--ps-text);
}

.ps-heading em {
    font-style: italic;
    color: var(--ps-accent);
}

.ps-heading--center {
    text-align: center;
}

html[lang="fa"] .ps-heading {
    font-family: var(--font-display);
}

html[lang="fa"] .ps-heading em {
    font-style: normal;
}

.ps-body {
    font-size: 15px;
    line-height: 1.78;
    color: var(--ps-text-soft);
    margin: 0;
    max-width: 560px;
}

.ps-body--center {
    margin-inline: auto;
    text-align: center;
}

.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.ps-btn--primary {
    background: var(--ps-accent-bright);
    color: #fff;
    box-shadow: 0 12px 32px rgba(196, 135, 42, 0.28);
}

.ps-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(196, 135, 42, 0.34);
}

.ps-btn--ghost {
    border: 1px solid var(--ps-line);
    color: var(--ps-text);
    background: rgba(255, 255, 255, 0.42);
}

.ps-btn--ghost:hover {
    border-color: var(--ps-accent);
    color: var(--ps-accent);
}

.ps-btn--light {
    border-color: rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.ps-hero {
    min-height: min(92vh, 860px);
    display: flex;
    align-items: center;
    padding: calc(108px + env(safe-area-inset-top, 0px)) 0 72px;
    overflow: hidden;
}

.ps-hero__bg {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat var(--ps-hero-bg, none);
    transform: scale(1.04);
}

.ps-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, rgba(249, 247, 242, 0.94) 0%, rgba(249, 247, 242, 0.82) 42%, rgba(249, 247, 242, 0.42) 100%),
        radial-gradient(circle at 78% 28%, rgba(176, 141, 87, 0.12), transparent 42%);
}

html[data-theme="dark"] .ps-hero__overlay {
    background:
        linear-gradient(112deg, rgba(10, 11, 10, 0.94) 0%, rgba(10, 11, 10, 0.84) 42%, rgba(10, 11, 10, 0.52) 100%),
        radial-gradient(circle at 78% 28%, rgba(232, 148, 42, 0.12), transparent 42%);
}

.ps-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 56px;
    align-items: center;
}

.ps-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(176, 141, 87, 0.12);
    border: 1px solid rgba(176, 141, 87, 0.22);
    color: var(--ps-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.ps-hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    margin: 0 0 10px;
}

.ps-hero__title em {
    display: block;
    font-style: italic;
    color: var(--ps-accent);
}

html[lang="fa"] .ps-hero__title {
    font-family: var(--font-display);
}

html[lang="fa"] .ps-hero__title em {
    font-style: normal;
}

.ps-hero__tagline {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ps-text-soft);
    margin: 0 0 18px;
}

.ps-hero__desc {
    font-size: 15px;
    line-height: 1.82;
    color: var(--ps-text-soft);
    max-width: 520px;
    margin: 0 0 22px;
}

.ps-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.ps-hero__chips li {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(176, 141, 87, 0.14);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ps-text-soft);
}

html[data-theme="dark"] .ps-hero__chips li {
    background: rgba(255, 255, 255, 0.04);
}

.ps-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ps-hero__visual {
    display: flex;
    justify-content: center;
}

.ps-hero__frame {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    background: var(--ps-bg-soft);
    box-shadow: 0 28px 70px var(--ps-shadow);
}

.ps-hero__glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(176, 141, 87, 0.28), transparent 68%);
    pointer-events: none;
}

.ps-hero__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Essence */
.ps-essence {
    padding: 88px 0;
    background: var(--ps-bg-soft);
}

.ps-essence__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
    gap: 48px;
    align-items: center;
}

.ps-essence__visual {
    position: relative;
}

.ps-essence__badge {
    position: absolute;
    z-index: 2;
    top: 24px;
    left: 24px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px var(--ps-shadow);
    text-align: start;
}

html[data-theme="dark"] .ps-essence__badge {
    background: rgba(18, 20, 18, 0.92);
}

.ps-essence__badge strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.ps-essence__badge span {
    font-size: 11px;
    color: var(--ps-text-soft);
}

.ps-essence__frame {
    border-radius: 24px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 20px 56px var(--ps-shadow);
}

.ps-essence__frame img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

/* Specs */
.ps-specs {
    padding: 80px 0;
}

.ps-specs__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.ps-spec {
    padding: 22px 20px;
    border-radius: 18px;
    background: var(--ps-card);
    border: 1px solid rgba(176, 141, 87, 0.12);
    box-shadow: 0 10px 28px var(--ps-shadow);
}

.ps-spec__label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ps-text-soft);
    margin-bottom: 8px;
}

.ps-spec__value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--ps-text);
}

html[lang="fa"] .ps-spec__value {
    font-family: var(--font-display);
}

/* Highlights */
.ps-highlights {
    padding: 88px 0;
    background: linear-gradient(180deg, transparent, rgba(176, 141, 87, 0.05));
}

.ps-highlights__head {
    max-width: 640px;
    margin-bottom: 36px;
}

.ps-highlights__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ps-highlight {
    padding: 24px 20px;
    border-radius: 20px;
    background: var(--ps-card);
    border: 1px solid rgba(176, 141, 87, 0.1);
    box-shadow: 0 12px 32px var(--ps-shadow);
}

.ps-highlight__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(176, 141, 87, 0.1);
    color: var(--ps-accent);
    margin-bottom: 16px;
}

.ps-highlight__icon svg {
    width: 20px;
    height: 20px;
}

.ps-highlight__title {
    font-size: 18px;
    margin: 0 0 10px;
    font-family: 'Cormorant Garamond', serif;
}

html[lang="fa"] .ps-highlight__title {
    font-family: var(--font-display);
}

.ps-highlight__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ps-text-soft);
}

/* Tasting */
.ps-tasting {
    padding: 88px 0;
}

.ps-tasting__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: start;
}

.ps-tasting__note {
    margin: 24px 0 0;
    padding: 18px 20px;
    border-left: 2px solid var(--ps-accent);
    background: rgba(176, 141, 87, 0.08);
    font-size: 14px;
    line-height: 1.75;
    color: var(--ps-text-soft);
}

html[dir="rtl"] .ps-tasting__note {
    border-left: none;
    border-right: 2px solid var(--ps-accent);
}

.ps-tasting__steps {
    display: grid;
    gap: 16px;
}

.ps-tasting__step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 22px 20px;
    border-radius: 18px;
    background: var(--ps-card);
    border: 1px solid rgba(176, 141, 87, 0.1);
}

.ps-tasting__index {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: rgba(176, 141, 87, 0.42);
}

.ps-tasting__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-family: 'Cormorant Garamond', serif;
}

.ps-tasting__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ps-text-soft);
}

/* Gallery */
.ps-gallery {
    padding: 88px 0;
    background: var(--ps-bg-soft);
}

.ps-gallery__head {
    margin-bottom: 32px;
}

.ps-gallery__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-template-rows: repeat(2, minmax(180px, 220px));
    gap: 14px;
}

.ps-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    margin: 0;
}

.ps-gallery__item--hero {
    grid-row: span 2;
}

.ps-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-gallery__item:hover img {
    transform: scale(1.06);
}

.ps-gallery__item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.72), transparent);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    letter-spacing: 0.08em;
}

/* Pairing */
.ps-pairing {
    padding: 88px 0;
}

.ps-pairing__head {
    margin-bottom: 36px;
}

.ps-pairing__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ps-pair {
    padding: 28px 22px;
    border-radius: 20px;
    background: var(--ps-card);
    border: 1px solid rgba(176, 141, 87, 0.1);
    box-shadow: 0 12px 32px var(--ps-shadow);
}

.ps-pair__num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: rgba(176, 141, 87, 0.35);
    margin-bottom: 12px;
}

.ps-pair__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-family: 'Cormorant Garamond', serif;
}

.ps-pair__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.72;
    color: var(--ps-text-soft);
}

/* Related */
.ps-related {
    padding: 80px 0;
    background: var(--ps-bg-soft);
}

.ps-related__head {
    margin-bottom: 32px;
}

.ps-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ps-related-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 12px;
    border-radius: 18px;
    background: var(--ps-card);
    border: 1px solid rgba(176, 141, 87, 0.12);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ps-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 141, 87, 0.28);
    box-shadow: 0 16px 40px var(--ps-shadow);
}

.ps-related-card__media {
    border-radius: 14px;
    overflow: hidden;
    min-height: 120px;
}

.ps-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ps-related-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ps-related-card__vol {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ps-accent);
    margin-bottom: 6px;
}

.ps-related-card__title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
}

html[lang="fa"] .ps-related-card__title {
    font-family: var(--font-display);
}

/* CTA */
.ps-cta {
    padding: 88px 0 96px;
}

.ps-cta__inner {
    text-align: center;
    padding: 56px 32px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(176, 141, 87, 0.18), transparent 52%),
        linear-gradient(145deg, rgba(20, 18, 16, 0.96), rgba(8, 8, 8, 0.98));
    color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.ps-cta__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 48px);
    margin: 0 0 14px;
}

.ps-cta__desc {
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
}

.ps-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 1024px) {
    .ps-wrap {
        width: min(1180px, calc(100% - 40px));
    }

    .ps-hero__grid,
    .ps-essence__grid,
    .ps-tasting__grid {
        grid-template-columns: 1fr;
    }

    .ps-hero__visual {
        order: -1;
    }

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

    .ps-specs__grid,
    .ps-pairing__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ps-gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .ps-gallery__item--hero {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .ps-hero {
        min-height: auto;
        padding-top: calc(92px + env(safe-area-inset-top, 0px));
    }

    .ps-hero__title {
        font-size: clamp(36px, 10vw, 48px);
    }

    .ps-essence,
    .ps-highlights,
    .ps-tasting,
    .ps-gallery,
    .ps-pairing,
    .ps-related,
    .ps-cta,
    .ps-specs {
        padding: 64px 0;
    }

    .ps-highlights__grid,
    .ps-specs__grid,
    .ps-pairing__grid,
    .ps-related__grid,
    .ps-gallery__grid {
        grid-template-columns: 1fr;
    }

    .ps-related-card {
        grid-template-columns: 96px 1fr;
    }

    .ps-hero__actions,
    .ps-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ps-btn {
        width: 100%;
    }

    html[lang="fa"] .ps-hero__content,
    html[lang="fa"] .ps-essence__content,
    html[lang="fa"] .ps-tasting__intro,
    html[lang="fa"] .ps-body,
    html[lang="fa"] .ps-highlight,
    html[lang="fa"] .ps-pair {
        text-align: center;
    }

    html[lang="fa"] .ps-hero__chips,
    html[lang="fa"] .ps-hero__actions {
        justify-content: center;
    }

    html[lang="fa"] .ps-essence__badge {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ps-gallery__item img,
    .ps-related-card,
    .ps-btn {
        transition: none;
    }
}
