/* ─── Products Page (pr-) — Light + Dark + bilingual ─── */

.page-products {
    --pr-bg: #faf9f6;
    --pr-bg-soft: #f3efe8;
    --pr-text: #2c302e;
    --pr-text-soft: rgba(44, 48, 46, 0.62);
    --pr-accent: #b08d57;
    --pr-accent-bright: #c4872a;
    --pr-accent-btn: #c47a2c;
    --pr-line: rgba(176, 141, 87, 0.35);
    --pr-card: #fff;
    --pr-shadow: rgba(44, 48, 46, 0.08);
}

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

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

.pr {
    background: var(--pr-bg);
    color: var(--pr-text);
}

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

.pr-section {
    position: relative;
}

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

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

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

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

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

.pr-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--pr-text-soft);
    margin: 0;
    max-width: 480px;
}

.pr-link-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pr-accent);
    text-decoration: none;
}

.pr-link-cta svg {
    width: 16px;
    height: 16px;
}

html[dir="rtl"] .pr-link-cta svg {
    transform: scaleX(-1);
}

/* Hero */
.pr-hero {
    padding: calc(96px + env(safe-area-inset-top, 0px)) 0 72px;
}

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

.pr-hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px, 4.8vw, 62px);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 20px;
}

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

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

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

.pr-hero__desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--pr-text-soft);
    max-width: 460px;
    margin: 0 0 32px;
}

.pr-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px 14px 18px;
    border-radius: 999px;
    background: var(--pr-accent-btn);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pr-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(196, 122, 44, 0.28);
    color: #fff;
}

.pr-hero__cta-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-hero__cta-icon svg {
    width: 16px;
    height: 16px;
}

html[dir="rtl"] .pr-hero__cta-icon svg {
    transform: scaleX(-1);
}

.pr-hero__photo {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 72px var(--pr-shadow);
}

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

/* Showcase */
.pr-showcase {
    padding: 88px 0;
}

.pr-showcase__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: 32px;
    align-items: end;
    margin-bottom: 44px;
}

.pr-showcase__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pr-text-soft);
    margin: 0;
}

.pr-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pr-product-card {
    background: var(--pr-card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 48px var(--pr-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pr-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px var(--pr-shadow);
}

.pr-product-card__media {
    display: block;
    overflow: hidden;
}

.pr-product-card__media img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pr-product-card:hover .pr-product-card__media img {
    transform: scale(1.05);
}

.pr-product-card__body {
    position: relative;
    padding: 24px 24px 28px;
}

.pr-product-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--pr-text);
}

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

.pr-product-card__sub {
    display: block;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pr-accent);
    margin-bottom: 10px;
}

.pr-product-card__desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--pr-text-soft);
    margin: 0;
    padding-right: 40px;
}

html[dir="rtl"] .pr-product-card__desc {
    padding-right: 0;
    padding-left: 40px;
}

.pr-product-card__link {
    position: absolute;
    right: 20px;
    bottom: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--pr-line);
    color: var(--pr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

html[dir="rtl"] .pr-product-card__link {
    right: auto;
    left: 20px;
}

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

.pr-product-card__link svg {
    width: 16px;
    height: 16px;
}

html[dir="rtl"] .pr-product-card__link svg {
    transform: scaleX(-1);
}

/* Features */
.pr-features {
    padding: 88px 0;
    background: var(--pr-bg-soft);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(176, 141, 87, 0.06), transparent 60%);
}

.pr-features__head {
    margin-bottom: 48px;
}

.pr-features__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.pr-feature {
    text-align: center;
    padding: 0 24px;
    border-right: 1px solid var(--pr-line);
}

html[dir="rtl"] .pr-feature {
    border-right: none;
    border-left: 1px solid var(--pr-line);
}

.pr-feature:last-child {
    border-right: none;
}

html[dir="rtl"] .pr-feature:last-child {
    border-left: none;
}

.pr-feature__icon {
    display: flex;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
    color: var(--pr-accent);
}

.pr-feature__icon svg {
    width: 100%;
    height: 100%;
}

.pr-feature__title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 10px;
    color: var(--pr-text);
}

.pr-feature__desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--pr-text-soft);
    margin: 0 auto;
    max-width: 220px;
}

/* Lifestyle gallery */
.pr-lifestyle {
    padding: 88px 0;
}

.pr-lifestyle__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.pr-life-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.pr-life-tile {
    position: relative;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 5;
    min-height: 220px;
}

.pr-life-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.pr-life-tile:hover img {
    transform: scale(1.06);
}

.pr-life-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 80%);
    pointer-events: none;
}

.pr-life-tile__icon {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.85;
}

.pr-life-tile__icon svg {
    width: 100%;
    height: 100%;
}

.pr-life-tile__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 1;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    padding: 0 8px;
}

/* Sustainability */
.pr-sust {
    padding: 88px 0 96px;
}

.pr-sust__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.pr-sust__visual {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 64px var(--pr-shadow);
}

.pr-sust__visual img {
    width: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
}

.pr-sust__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.pr-sust-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--pr-line);
}

.pr-sust-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pr-sust-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--pr-accent);
}

.pr-sust-item__icon svg {
    width: 100%;
    height: 100%;
}

.pr-sust-item__title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 6px;
    color: var(--pr-text);
}

.pr-sust-item__desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--pr-text-soft);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .pr-life-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pr-life-tile:nth-child(n+4) {
        grid-column: span 1;
    }
}

@media (max-width: 960px) {
    .pr-hero__grid,
    .pr-showcase__head,
    .pr-lifestyle__grid,
    .pr-sust__grid {
        grid-template-columns: 1fr;
    }

    .pr-product-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .pr-features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 0;
    }

    .pr-feature {
        border-right: none;
        border-bottom: 1px solid var(--pr-line);
        padding-bottom: 28px;
    }

    html[dir="rtl"] .pr-feature {
        border-left: none;
    }

    .pr-life-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .pr-wrap {
        width: calc(100% - 40px);
    }

    .pr-features__grid {
        grid-template-columns: 1fr;
    }

    .pr-life-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .pr-life-tile:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pr-product-card,
    .pr-product-card__media img,
    .pr-life-tile img,
    .pr-hero__cta {
        transition: none;
    }
}
