/*
 * Product pages: groups overview (/urunler), product listing (/urunler/{group}, /urunler/tum-urunler)
 * and product detail (/urun/{slug}). Builds on mufa-ds.css tokens; sharp corners, Montserrat, navy accent.
 */

.pr-page {
    font-family: var(--ds-font);
    color: var(--ds-ink);
    background-color: #ffffff;
}

.pr-page img {
    max-width: 100%;
}

/* ---------- shared bits ---------- */

.pr-num {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: var(--ds-muted);
    font-variant-numeric: tabular-nums;
}

/* square outlined arrow, fills navy when its card is hovered */
.pr-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(47, 61, 145, 0.3);
    color: var(--ds-accent);
    transition: background-color 0.4s var(--ds-ease), border-color 0.4s var(--ds-ease), color 0.4s var(--ds-ease);
}

.pr-arrow svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    transition: transform 0.45s var(--ds-ease);
}

a:hover > * .pr-arrow,
a:hover .pr-arrow {
    background-color: var(--ds-accent);
    border-color: var(--ds-accent);
    color: #ffffff;
}

a:hover .pr-arrow svg {
    transform: translateX(3px);
}

.pr-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--ds-muted);
}

.pr-crumbs a {
    color: var(--ds-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pr-crumbs a:hover {
    color: var(--ds-accent);
}

.pr-crumbs [aria-current] {
    color: var(--ds-ink);
}

.pr-crumbs-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(38, 38, 38, 0.25);
}

/* ======================================================================
   1. Groups overview
   ====================================================================== */

.pr-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 120px);
    align-items: end;
    padding-bottom: clamp(40px, 5vw, 72px);
    margin-bottom: clamp(40px, 5vw, 72px);
    border-bottom: 1px solid var(--ds-line);
}

.pr-intro .ds-heading {
    max-width: 640px;
    font-weight: 300;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -1px;
}

.pr-intro__side {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.pr-stats {
    display: flex;
    gap: clamp(32px, 4vw, 64px);
}

.pr-stat__value {
    display: block;
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--ds-ink);
    font-variant-numeric: tabular-nums;
}

.pr-stat__label {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ds-muted);
}

/* all groups the same size, three to a row: no group looks more important than another */
.pr-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 32px);
    row-gap: clamp(48px, 5vw, 72px);
}

.pr-group {
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: var(--ds-ink);
    text-decoration: none;
}

.pr-group__media {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    background-color: var(--ds-sand);
}

.pr-group__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ds-ease);
}

.pr-group__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 21, 30, 0.18), rgba(12, 21, 30, 0) 40%);
    opacity: 0;
    transition: opacity 0.6s var(--ds-ease);
}

.pr-group:hover .pr-group__media img {
    transform: scale(1.05);
}

.pr-group:hover .pr-group__media::after {
    opacity: 1;
}

.pr-group__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 20px;
    align-items: start;
    padding-top: 20px;
    border-top: 1px solid var(--ds-line);
    transition: border-color 0.5s var(--ds-ease);
}

.pr-group:hover .pr-group__body {
    border-top-color: var(--ds-accent);
}

.pr-group__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.pr-group__title {
    margin: 0;
    font-size: clamp(1.3rem, 1.7vw, 1.7rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.3px;
    transition: color 0.35s ease;
}

.pr-group:hover .pr-group__title {
    color: var(--ds-accent);
}

.pr-group__meta {
    grid-column: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ds-muted);
}

.pr-group__meta strong {
    font-weight: 500;
    color: var(--ds-ink-soft);
}

.pr-group .pr-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
}

/* ======================================================================
   2. Group listing
   ====================================================================== */

/* ---------- group switcher ---------- */

.pr-toolbar {
    position: sticky;
    top: var(--nav-height-scroll, 74px);
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ds-line);
}

.pr-toolbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pr-switch {
    display: flex;
    gap: clamp(18px, 2.4vw, 36px);
    overflow-x: auto;
    scrollbar-width: none;
}

.pr-switch::-webkit-scrollbar {
    display: none;
}

.pr-switch a {
    position: relative;
    flex-shrink: 0;
    padding: 22px 0 21px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ds-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.pr-switch a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background-color: var(--ds-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s var(--ds-ease);
}

.pr-switch a:hover {
    color: var(--ds-ink);
}

.pr-switch a[aria-current="page"] {
    color: var(--ds-ink);
}

.pr-switch a[aria-current="page"]::after {
    transform: scaleX(1);
}

.pr-toolbar__count {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--ds-muted);
}

/* ======================================================================
   3. Product cards
   ====================================================================== */

.pr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 32px);
    row-gap: clamp(48px, 5vw, 72px);
}

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

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

.pr-card {
    display: flex;
    flex-direction: column;
    color: var(--ds-ink);
    text-decoration: none;
}

.pr-card:hover {
    color: var(--ds-ink);
}

.pr-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--ds-sand);
}

.pr-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ds-ease), opacity 0.7s var(--ds-ease);
}

.pr-card__media .pr-card__alt {
    opacity: 0;
}

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

.pr-card:hover .pr-card__media .pr-card__alt {
    opacity: 1;
}

.pr-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 20px;
    align-items: start;
    margin-top: 22px;
}

.pr-card__cat {
    grid-column: 1 / -1;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ds-accent);
}

.pr-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.35s ease;
}

.pr-card:hover .pr-card__title {
    color: var(--ds-accent);
}

.pr-card .pr-arrow {
    width: 36px;
    height: 36px;
}

.pr-card__specs {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 6px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--ds-line);
    font-size: 13.5px;
    line-height: 1.5;
}

.pr-card__specs div {
    display: flex;
    gap: 8px;
}

.pr-card__specs dt {
    font-weight: 400;
    color: var(--ds-muted);
}

.pr-card__specs dd {
    margin: 0;
    font-weight: 500;
    color: var(--ds-ink-soft);
}

.pr-card__text {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--ds-line);
    font-size: 14px;
    line-height: 1.65;
    color: var(--ds-muted);
}

/* one product in the group: a single wide feature instead of a lonely card */
.pr-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 96px);
    align-items: center;
}

.pr-feature__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--ds-sand);
}

.pr-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ds-ease);
}

.pr-feature__media:hover img {
    transform: scale(1.04);
}

.pr-feature__title {
    margin: 0 0 18px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.pr-feature__text {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ds-ink-soft);
}

.pr-feature__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.pr-empty {
    padding: 72px 24px;
    text-align: center;
    background-color: var(--ds-cream);
}

.pr-empty p {
    margin: 0 0 24px;
    color: var(--ds-ink-soft);
}

/* pagination (resources/views/vendor/pagination/mufa.blade.php) */
.pr-pagination {
    margin-top: clamp(48px, 5vw, 80px);
}

.pg {
    display: flex;
    justify-content: center;
    padding-top: 28px;
    border-top: 1px solid rgba(38, 38, 38, 0.12);
}


.pg-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-btn {
    min-width: 46px;
    height: 46px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(38, 38, 38, 0.14);
    border-radius: var(--ds-radius-md);
    background-color: transparent;
    color: var(--ds-ink);
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.pg-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.35s var(--ds-ease);
}

.pg-btn.is-active {
    background-color: var(--ds-accent);
    border-color: var(--ds-accent);
    color: #ffffff;
}

.pg-btn.is-disabled {
    color: rgba(38, 38, 38, 0.28);
    border-color: var(--ds-line);
}

.pg-dots {
    min-width: 24px;
    display: inline-flex;
    justify-content: center;
    color: var(--ds-muted);
}

@media (hover: hover) {
    a.pg-btn:hover {
        border-color: var(--ds-accent);
        color: var(--ds-accent);
    }

    a.pg-btn[rel="prev"]:hover svg {
        transform: translateX(-3px);
    }

    a.pg-btn[rel="next"]:hover svg {
        transform: translateX(3px);
    }
}

@media (max-width: 575px) {
    .pg-btn {
        min-width: 42px;
        height: 42px;
    }
}

/* ======================================================================
   4. Spec table (detail page + single-product feature)
   ====================================================================== */

.pr-specs {
    width: 100%;
    margin: 0;
    border-top: 1px solid rgba(38, 38, 38, 0.12);
}

.pr-specs div {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    padding: 15px 0;
    border-bottom: 1px solid var(--ds-line);
}

.pr-specs dt {
    font-size: 14px;
    font-weight: 400;
    color: var(--ds-muted);
}

.pr-specs dd {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ds-ink);
}

/* ======================================================================
   5. Product detail
   ====================================================================== */

.pd-main {
    padding-top: clamp(48px, 5vw, 80px);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(32px, 5.5vw, 104px);
    align-items: start;
    padding-bottom: clamp(56px, 6vw, 96px);
}

/* ---------- gallery ---------- */

.pd-gallery {
    min-width: 0;
}

.pd-stage {
    position: relative;
    background-color: var(--ds-sand);
}

.pd-stage .swiper-slide {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--ds-sand);
}

.pd-stage .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.pd-stage .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-stage .swiper-slide iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.pd-stage__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 20px;
    pointer-events: none;
}

.pd-stage__count {
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.92);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: var(--ds-ink);
    font-variant-numeric: tabular-nums;
    transform: translateY(-20px);
}

.pd-stage__nav {
    display: flex;
    pointer-events: auto;
}

.pd-stage__nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    background-color: #ffffff;
    color: var(--ds-ink);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pd-stage__nav button + button {
    border-left: 1px solid var(--ds-line);
}

.pd-stage__nav button:hover {
    background-color: var(--ds-accent);
    color: #ffffff;
}

.pd-stage__nav button.swiper-button-disabled {
    color: rgba(38, 38, 38, 0.25);
    background-color: #ffffff;
    cursor: default;
}

.pd-stage__nav svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.pd-zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--ds-ink);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pd-stage:hover .pd-zoom {
    opacity: 1;
}

.pd-zoom svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.pd-thumbs {
    margin-top: 12px;
}

.pd-thumbs .swiper-slide {
    width: 96px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--ds-sand);
    opacity: 0.55;
    outline: 1px solid transparent;
    outline-offset: -1px;
    transition: opacity 0.3s ease, outline-color 0.3s ease;
}

.pd-thumbs .swiper-slide:hover {
    opacity: 0.85;
}

.pd-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    outline-color: var(--ds-accent);
}

.pd-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-thumbs__3d {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--ds-accent);
}

/* ---------- info column ---------- */

.pd-info {
    position: sticky;
    top: calc(var(--nav-height-scroll, 74px) + 32px);
}

.pd-info .ds-eyebrow {
    margin-bottom: 20px;
}

.pd-info .ds-eyebrow a {
    color: inherit;
    text-decoration: none;
}

.pd-title {
    margin: 0;
    font-size: clamp(2.2rem, 3.6vw, 3.6rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -1.2px;
    color: var(--ds-ink);
}

.pd-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--ds-muted);
}

.pd-codes strong {
    font-weight: 500;
    color: var(--ds-ink-soft);
}

.pd-intro {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ds-ink-soft);
}

.pd-intro p {
    margin: 0 0 1em;
}

.pd-intro h3 {
    margin: 1.4em 0 0.4em;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--ds-ink);
}

.pd-intro > :first-child {
    margin-top: 0;
}

.pd-intro > :last-child {
    margin-bottom: 0;
}

.pd-intro ul {
    margin: 0 0 1em;
    padding-left: 1.1em;
}

/* the four specs buyers look at first */
.pd-keys {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 32px 0 0;
    border-top: 1px solid rgba(38, 38, 38, 0.12);
}

.pd-keys div {
    padding: 18px 20px 18px 0;
    border-bottom: 1px solid var(--ds-line);
}

.pd-keys div:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--ds-line);
}

.pd-keys dt {
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ds-muted);
}

.pd-keys dd {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ds-ink);
}

.pd-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ds-accent);
    text-decoration: none;
}

.pd-more-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform 0.35s var(--ds-ease);
}

.pd-more-link:hover {
    color: var(--ds-accent-dark);
}

.pd-more-link:hover svg {
    transform: translateY(3px);
}

.pd-note {
    margin: 28px 0 0;
    padding: 18px 20px;
    background-color: var(--ds-cream);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ds-ink-soft);
}

.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.pd-actions .ds-btn {
    flex: 1 1 auto;
    height: 54px;
}

.pd-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--ds-line);
}

.pd-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ds-ink-soft);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pd-links a:hover {
    color: var(--ds-accent);
}

.pd-links svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* ---------- content sections (label column + content) ---------- */

.pd-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: clamp(32px, 6vw, 120px);
    padding: clamp(56px, 6vw, 96px) 0;
    border-top: 1px solid var(--ds-line);
    scroll-margin-top: calc(var(--nav-height-scroll, 74px) + 16px);
}

.pd-section__label {
    position: sticky;
    top: calc(var(--nav-height-scroll, 74px) + 40px);
    align-self: start;
}

.pd-section__label .pr-num {
    display: block;
    margin-bottom: 14px;
}

.pd-section__title {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.pd-section .ds-prose {
    max-width: 760px;
    font-size: 16.5px;
}

.pd-section .ds-prose h3 {
    font-size: 19px;
}

.pd-section .ds-prose ul {
    list-style: none;
    padding: 0;
}

/* lists of short items (advantages) run in two columns */
.pd-section .ds-prose ul.is-compact {
    columns: 2;
    column-gap: 40px;
}

.pd-section .ds-prose li {
    position: relative;
    padding-left: 22px;
    break-inside: avoid;
}

.pd-section .ds-prose li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 10px;
    height: 1px;
    background-color: var(--ds-accent);
}

/* tables from the editor (MDF sizes etc.) */
.pd-section .ds-prose figure {
    margin: 0 0 1.4em;
    overflow-x: auto;
}

.pd-section .ds-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    white-space: nowrap;
}

.pd-section .ds-prose th,
.pd-section .ds-prose td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ds-line);
    text-align: left;
}

.pd-section .ds-prose th {
    font-weight: 500;
    color: var(--ds-ink);
    background-color: var(--ds-cream);
}

.pd-section .pr-specs div {
    grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr);
    padding: 18px 0;
}

.pd-section .pr-specs dd {
    font-size: 16px;
}

/* gallery groups */
.pd-shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pd-shots a {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--ds-sand);
}

.pd-shots img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ds-ease);
}

.pd-shots a:hover img {
    transform: scale(1.05);
}

/* documents */
.pd-docs {
    border-top: 1px solid rgba(38, 38, 38, 0.12);
}

.pd-doc {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--ds-line);
    color: var(--ds-ink);
    text-decoration: none;
}

.pd-doc__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--ds-cream);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--ds-accent);
}

.pd-doc__title {
    font-size: 15.5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pd-doc:hover .pd-doc__title {
    color: var(--ds-accent);
}

.pd-doc__dl {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ds-muted);
}

/* related */
.pd-related__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.pd-related__head .ds-heading {
    font-weight: 300;
}

/* ======================================================================
   6. Project detail
   ====================================================================== */

.pj-cover {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: zoom-in;
}

.pj-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ds-ease);
}

.pj-cover:hover img {
    transform: scale(1.03);
}

/* two to a row; with an odd count the first photo runs full width */
.pj-shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pj-shots a {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--ds-sand);
    cursor: zoom-in;
}

.pj-shots.is-odd a:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.pj-shots img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ds-ease);
}

.pj-shots a:hover img {
    transform: scale(1.04);
}

/* ======================================================================
   7. Gallery mosaic (/galeri)
   Every five photos: one large with two small beside it, then a wide pair.
   ====================================================================== */

.ut-mosaic {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 20vw, 360px);
    gap: clamp(8px, 1vw, 16px);
}

.ut-shot {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: var(--ds-sand);
    cursor: zoom-in;
}

.ut-shot:nth-child(5n + 1) {
    grid-column: span 4;
    grid-row: span 2;
}

.ut-shot:nth-child(5n + 2),
.ut-shot:nth-child(5n + 3) {
    grid-column: span 2;
}

.ut-shot:nth-child(5n + 4),
.ut-shot:nth-child(5n + 5) {
    grid-column: span 3;
    grid-row: span 2;
}

/* a set that does not complete the pattern still closes the row */
.ut-shot:nth-child(5n + 1):last-child,
.ut-shot:nth-child(5n + 4):last-child {
    grid-column: 1 / -1;
}

.ut-shot:nth-child(5n + 2):last-child {
    grid-row: span 2;
}

.ut-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ds-ease);
}

.ut-shot:hover img {
    transform: scale(1.04);
}

.ut-shot__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 20px 16px;
    background: linear-gradient(to top, rgba(12, 21, 30, 0.6), rgba(12, 21, 30, 0));
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

@media (max-width: 767px) {
    .ut-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 42vw;
    }

    .ut-shot:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* the large photo of each set runs full width, the rest go in pairs;
       a leftover single closes the row on its own */
    .ut-shot:nth-child(5n + 1),
    .ut-shot:last-child:nth-child(5n + 2),
    .ut-shot:last-child:nth-child(5n + 4) {
        grid-column: 1 / -1;
        grid-row: span 1;
    }
}

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

@media (max-width: 1199px) {
    .pr-grid--4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 991px) {
    .pr-intro,
    .pr-feature,
    .pd-main,
    .pd-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .pr-intro {
        align-items: start;
    }



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

    .pd-info,
    .pd-section__label {
        position: static;
    }

    .pd-section {
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .pr-groups {
        grid-template-columns: minmax(0, 1fr);
    }

    .pr-group__media {
        aspect-ratio: 4 / 3;
    }

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

    .pd-section .ds-prose ul.is-compact {
        columns: 1;
    }

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

    .pj-shots {
        grid-template-columns: minmax(0, 1fr);
    }

    .pj-shots.is-odd a:first-child {
        aspect-ratio: 4 / 3;
    }

    .pd-thumbs .swiper-slide {
        width: 76px;
    }

    .pr-toolbar__count {
        display: none;
    }
}

@media (max-width: 575px) {
    .pr-grid,
    .pr-grid--4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-keys {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-keys div:nth-child(even) {
        padding-left: 0;
        border-left: 0;
    }

    .pr-specs div,
    .pd-section .pr-specs div {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .pd-actions .ds-btn {
        width: 100%;
    }

    /* phones: two related products are enough, the group page has the rest */
    .pd-related__grid > :nth-child(n + 3) {
        display: none;
    }

    .pd-related__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .pr-stats {
        gap: 28px;
    }
}
