/* Ürün detay — editorial / premium vitrin (referans düzen) */

.page-product--detail {
    --pd-bg: #f7f3ee;
    --pd-paper: #fdfaf6;
    --pd-border: #e8dfd4;
    background: var(--pd-bg);
    scroll-behavior: smooth;
}

.page-product.page-product--detail {
    background: var(--pd-bg);
}

.product-detail {
    padding: 6.5rem 0 4rem;
}

.product-detail__shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.75rem;
}

/* Ürün detay altı — 4 sütun özellik vitrin (referans: “5-star functions”) */
.product-star {
    margin-top: 2.5rem;
    padding: 3rem 0 3.5rem;
    background: linear-gradient(180deg, #ebe4dc 0%, #f2ece4 45%, #f7f3ee 100%);
    border-top: 1px solid var(--pd-border);
}

.product-star__shell {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-star__title {
    margin: 0 0 2rem;
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.75rem, 1.1vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-primary);
}

.product-star__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 0.9rem;
    align-items: start;
}

.product-star__card {
    margin: 0;
    min-width: 0;
}

.product-star__media {
    margin: 0 0 1rem;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 1px solid rgba(62, 51, 37, 0.12);
    background: #e5ddd4;
    aspect-ratio: 4 / 4.8;
}

.product-star__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

.product-star__media-ph {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-star__card-title {
    margin: 0 0 0.55rem;
    font-family: "Poppins", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--text-primary);
}

.product-star__card-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--text-muted);
    font-weight: 400;
}

@media (max-width: 1024px) {
    .product-star__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .product-star {
        padding: 2.25rem 0 2.5rem;
    }

    .product-star__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Müşteri yorumları (hesap ile) */
.product-reviews {
    padding: 2.75rem 0 3.5rem;
    background: #fdfaf6;
    border-top: 1px solid var(--pd-border);
}

.product-reviews__shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.75rem;
}

.product-reviews__title {
    margin: 0 0 0.75rem;
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.78rem, 1.1vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-primary);
}

.product-reviews__summary {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-reviews__summary strong {
    color: var(--text-primary);
    font-weight: 700;
}

.product-reviews__flash {
    margin: 0 0 1.25rem;
    padding: 0.65rem 1rem;
    border-radius: 0.35rem;
    background: rgba(45, 74, 62, 0.1);
    border: 1px solid rgba(45, 74, 62, 0.2);
    color: #2d4a3e;
    font-size: 0.88rem;
    text-align: center;
}

.product-reviews__list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.product-reviews__item {
    padding: 1.15rem 1.2rem;
    background: #fff;
    border: 1px solid var(--pd-border);
    border-radius: 0.4rem;
    box-shadow: 0 2px 12px rgba(30, 24, 18, 0.05);
}

.product-reviews__item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.45rem;
}

.product-reviews__author {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.product-reviews__date {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.product-reviews__stars {
    color: #b8860b;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.55rem;
}

.product-reviews__body {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-primary);
}

.product-reviews__empty {
    margin: 0 0 1.75rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.product-reviews__compose-title {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-reviews__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 100%;
}

.product-reviews__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-reviews__select,
.product-reviews__textarea {
    font-family: "Poppins", sans-serif;
    font-size: 0.88rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--pd-border);
    border-radius: 0.3rem;
    background: #fff;
    color: var(--text-primary);
}

.product-reviews__textarea {
    resize: vertical;
    min-height: 6rem;
}

.product-reviews__submit {
    align-self: flex-start;
    margin-top: 0.35rem;
    padding: 0.75rem 1.35rem;
    font-family: "Poppins", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: none;
    border-radius: 0.25rem;
    background: #2a2218;
    color: #fdfaf6;
    cursor: pointer;
    transition: background 0.15s ease;
}

.product-reviews__submit:hover {
    background: #1a1510;
}

.product-reviews__login-hint,
.product-reviews__done {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
    text-align: center;
}

.product-reviews__login-hint a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.product-reviews__login-hint a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .product-reviews {
        padding: 2rem 0 2.5rem;
    }

    .product-reviews__shell {
        padding: 0 1rem;
    }
}

.product-detail__layout--editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
    gap: 0 1.4rem;
    align-items: start;
}

/* Sol: 2 sütun ızgara (satırda 2 görsel) */
.product-detail__rail {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-detail__rail-slider-controls {
    display: none;
}

.product-detail__rail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    align-content: start;
    font-size: 0;
}

.product-detail__rail-grid > .product-detail__figure {
    flex: 0 0 50%;
    max-width: 50%;
}

.product-detail__rail-videos {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-detail__figure {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
}

.product-detail__figure--empty {
    grid-column: 1 / -1;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail__figure--zoom {
    position: relative;
    aspect-ratio: 2 / 3;
    max-height: 520px;
}

.product-detail__zoom-hit {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    font: inherit;
    line-height: 0;
}

.product-detail__zoom-hit:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.product-detail__zoom-hit:focus:not(:focus-visible) {
    outline: none;
}

.product-detail__rail-img {
    width: 100%;
    height: 100%;
    display: block;
    vertical-align: middle;
    object-fit: cover;
    aspect-ratio: auto;
    max-height: none;
}

.product-detail__figure--video .product-detail__video-hit {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: auto;
    max-height: none;
    background: #1a1510;
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    overflow: hidden;
}

.product-detail__video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92);
}

.product-detail__figure--video {
    aspect-ratio: 2 / 3;
    max-height: 520px;
}

.product-detail__video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: none;
    background: rgba(253, 250, 246, 0.92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    color: #fdfaf6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: #2a2218;
    cursor: pointer;
    z-index: 2;
}

.product-detail__video-hit:hover .product-detail__video-play {
    background: #fff;
}

.product-detail__figure--video.is-playing .product-detail__video-play {
    display: none;
}

.product-detail__placeholder-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Sağ: yapışkan panel (sayfa tek kaydırma; ayrı iç scroll yok) */
.product-detail__sticky {
    position: sticky;
    top: 6.5rem;
    padding: 0.5rem 0 3rem;
    align-self: start;
}

.product-detail__breadcrumb--inline {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    font-weight: 500;
    line-height: 1.5;
}

.product-detail__breadcrumb--inline a {
    color: var(--text-muted);
    text-decoration: none;
}

.product-detail__breadcrumb--inline a:hover {
    color: var(--accent);
}

.product-detail__bc-slash {
    margin: 0 0.35rem;
    opacity: 0.45;
}

.product-detail__breadcrumb--inline .product-detail__bc-current {
    color: var(--text-primary);
    font-weight: 600;
}

.product-detail__title--display {
    font-family: "Cormorant Garamond", "Georgia", serif;
    font-size: clamp(1.85rem, 2.8vw, 2.35rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: var(--text-primary);
}

.product-detail__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.65rem 1rem;
    margin: 0 0 0.75rem;
}

.product-detail__price-current {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.product-detail__stock {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.product-detail__stock--ok {
    color: #2d4a3e;
}

.product-detail__stock--ok strong {
    font-weight: 700;
}

.product-detail__stock--out {
    color: #8b2942;
    font-weight: 600;
}

.product-detail__pay-hint {
    margin: 0 0 1.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.product-detail__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 1.75rem;
    font-size: 0.82rem;
}

.product-detail__stars {
    color: #b8860b;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.product-detail__stars i {
    margin-right: 0.05rem;
}

.product-detail__stars--empty {
    color: #c9c1b6;
}

.product-detail__rating-text {
    color: var(--text-primary);
    font-weight: 500;
}

.product-detail__rating-muted {
    color: var(--text-muted);
    font-weight: 400;
}

.product-detail__actions--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.product-detail__cart-form {
    margin: 0;
    display: block;
}

.product-detail__cart-form .product-detail__btn--primary {
    width: 100%;
    cursor: pointer;
    opacity: 1 !important;
}

.product-detail__cart-form .product-detail__btn--ghost {
    width: 100%;
    cursor: pointer;
}

.product-detail__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    font-family: "Poppins", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 0.2rem;
    cursor: not-allowed;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.product-detail__btn--ghost {
    background: transparent;
    border-color: #3e3325;
    color: #3e3325;
    opacity: 0.65;
}

.product-detail__btn--primary {
    background: #2a2218;
    border-color: #2a2218;
    color: #fdfaf6;
    opacity: 0.75;
}

.product-detail__btn:not(:disabled) {
    cursor: pointer;
    opacity: 1;
}

.product-detail__btn--ghost:not(:disabled):hover {
    background: rgba(62, 51, 37, 0.06);
}

.product-detail__btn--primary:not(:disabled):hover {
    background: #1a1510;
}

/* Sağ sütun — akordeon, özellik grid’i, bilgi kutusu, kombin önerisi */
.product-detail__sidebar-stack {
    margin-top: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.product-detail__acc {
    border: 1px solid var(--pd-border);
    border-radius: 0.3rem;
    background: rgba(255, 255, 255, 0.65);
}

.product-detail__acc-sum {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.product-detail__acc-sum::-webkit-details-marker {
    display: none;
}

.product-detail__acc-sum::after {
    content: "+";
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1;
    opacity: 0.65;
    flex-shrink: 0;
}

.product-detail__acc[open] .product-detail__acc-sum::after {
    content: "−";
}

.product-detail__acc-body {
    padding: 0 1rem 1.05rem;
    border-top: 1px solid rgba(232, 223, 212, 0.85);
}

.product-detail__desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.product-detail__muted {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.product-detail__feat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    padding: 0 0.15rem;
}

.product-detail__feat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.product-detail__feat-item i {
    font-size: 1.15rem;
    color: #3e3325;
    opacity: 0.85;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.product-detail__spec-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--text-primary);
}

.product-detail__spec-list li {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.product-detail__spec-list li:last-child {
    margin-bottom: 0;
}

.product-detail__spec-k {
    font-weight: 600;
    min-width: 5.5rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-detail__spec-note {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.product-detail__notice {
    padding: 0.95rem 1rem;
    background: rgba(235, 228, 220, 0.55);
    border: 1px solid var(--pd-border);
    border-radius: 0.3rem;
}

.product-detail__notice-title {
    display: block;
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.product-detail__notice-text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.product-detail__related-title {
    margin: 0 0 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.product-detail__related-scroll {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.product-detail__related-scroll::-webkit-scrollbar {
    height: 4px;
}

.product-detail__related-scroll::-webkit-scrollbar-thumb {
    background: rgba(62, 51, 37, 0.25);
    border-radius: 999px;
}

.product-detail__related-card {
    flex: 0 0 auto;
    width: min(42vw, 150px);
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.product-detail__related-img-wrap {
    aspect-ratio: 4 / 5;
    border: 1px solid var(--pd-border);
    border-radius: 0.25rem;
    overflow: hidden;
    background: #ebe4dc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail__related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail__related-img-wrap--dual {
    position: relative;
    display: block;
}

.product-detail__related-img-wrap--dual img.product-detail__related-img {
    position: absolute;
    inset: 0;
}

.product-detail__related-img--secondary {
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 1;
}

.product-detail__related-img-wrap--dual:hover .product-detail__related-img--secondary {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .product-detail__related-img--secondary {
        transition-duration: 0.05s;
    }
}

.product-detail__related-ph {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem;
    text-align: center;
}

.product-detail__related-name {
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-detail__related-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-detail__related-card:hover .product-detail__related-name {
    color: var(--accent);
}

.product-detail__media-strip {
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pd-border);
}

.product-detail__media-strip-label {
    margin: 0 0 0.65rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-detail__media-strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-detail__strip-thumb {
    width: 66px;
    height: 84px;
    border: 1px solid var(--pd-border);
    border-radius: 0.2rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    font: inherit;
    padding: 0;
    cursor: zoom-in;
}

button.product-detail__strip-thumb--lightbox {
    cursor: zoom-in;
}

.product-detail__strip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail__strip-thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #1a1510;
}

.product-detail__strip-thumb--vid-thumb {
    background: transparent;
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 80px;
    aspect-ratio: 80 / 120;
}

.product-detail__strip-thumb--vid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2a2218;
    color: #fdfaf6;
    text-decoration: none;
    font-size: 1.25rem;
}

/* Galeri video tıklandığında sağ panel */
.product-side-video-open {
    overflow: hidden;
}

.product-side-video {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.product-side-video[hidden] {
    display: none !important;
}

.product-side-video__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
}

.product-side-video__panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: min(92vw, 320px);
    height: min(86vh, 580px);
    border-radius: 0.8rem;
    overflow: hidden;
    background: #101010;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-side-video__frame {
    width: 100%;
    height: 100%;
}

.product-side-video__player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    display: block;
}

.product-side-video__close {
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.62);
    color: #f5f5f5;
    cursor: pointer;
    font-size: 1.15rem;
}

.product-detail__shipping {
    margin: 1.75rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.product-detail__shipping i {
    color: var(--accent);
    font-size: 1.1rem;
}

.product-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.product-detail__back:hover {
    color: var(--accent);
}

/* Lightbox — görsel büyütme */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.product-lightbox[hidden] {
    display: none !important;
}

.product-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 24, 18, 0.82);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
}

.product-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1100px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.product-lightbox__dialog > * {
    pointer-events: auto;
}

.product-lightbox__frame {
    max-width: 100%;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox__img {
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.25rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.product-lightbox__close {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: #fdfaf6;
    color: #3e3325;
    cursor: pointer;
    font-size: 1.35rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.15s ease, transform 0.1s ease;
}

.product-lightbox__close:hover {
    background: #fff;
    transform: scale(1.05);
}

.product-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: rgba(253, 250, 246, 0.95);
    color: #3e3325;
    cursor: pointer;
    font-size: 1.35rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease;
}

.product-lightbox__nav:hover {
    background: #fff;
}

.product-lightbox__nav--prev {
    left: 0.25rem;
}

.product-lightbox__nav--next {
    right: 0.25rem;
}

/* Sepete ekleme popup */
.product-cart-popup-open {
    overflow: hidden;
}

.product-cart-popup {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.product-cart-popup[hidden] {
    display: none !important;
}

.product-cart-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 21, 16, 0.45);
}

.product-cart-popup__panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 440px);
    background: #fdfaf6;
    border: 1px solid var(--pd-border);
    border-radius: 0.45rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    padding: 1.2rem 1.1rem 1rem;
}

.product-cart-popup__title {
    margin: 0 0 0.95rem;
    font-family: "Poppins", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-align: center;
}

.product-cart-popup__check {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.8rem;
}

.product-cart-popup__check svg {
    width: 100%;
    height: 100%;
    display: block;
}

.product-cart-popup__check-circle {
    fill: rgba(62, 51, 37, 0.08);
    stroke: #3e3325;
    stroke-width: 2.2;
    transform-origin: center;
    animation: productCartCheckPop 0.34s ease-out both;
}

.product-cart-popup__check-mark {
    fill: none;
    stroke: #3e3325;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: productCartCheckDraw 0.55s ease-out 0.12s forwards;
}

@keyframes productCartCheckDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes productCartCheckPop {
    0% {
        transform: scale(0.82);
        opacity: 0.45;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.product-cart-popup__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.product-cart-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0.72rem 0.95rem;
    border-radius: 0.3rem;
    border: 1px solid transparent;
    font-family: "Poppins", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.product-cart-popup__btn--primary {
    background: #2a2218;
    border-color: #2a2218;
    color: #fdfaf6;
}

.product-cart-popup__btn--primary:hover {
    background: #1a1510;
}

.product-cart-popup__btn--ghost {
    background: transparent;
    border-color: #3e3325;
    color: #3e3325;
}

.product-cart-popup__btn--ghost:hover {
    background: rgba(62, 51, 37, 0.06);
}

@media (max-width: 640px) {
    .product-cart-popup__panel {
        width: min(94vw, 420px);
        padding: 1rem 0.9rem 0.9rem;
    }

    .product-side-video__panel {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: min(94vw, 330px);
        height: min(88vh, 560px);
    }
}

/* 404 */
.page-product .product-detail--notfound {
    background: var(--page-bg);
}

.product-detail--notfound {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.product-detail__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.product-detail__nf {
    text-align: center;
    max-width: 28rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.product-detail__nf-label {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--text-muted);
}

.product-detail__nf-title {
    margin: 0 0 0.75rem;
    font-family: "Outfit", sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-detail__nf-text {
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.product-detail__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fdfaf6;
    background: #3e3325;
    border: 1px solid #2d2419;
    border-radius: 0.35rem;
}

.product-detail__cta--link {
    text-decoration: none;
    cursor: pointer;
    opacity: 1 !important;
}

a.product-detail__cta--link:hover {
    background: #2d2419;
    color: #fdfaf6;
}

@media (max-width: 1024px) {
    .product-detail__layout--editorial {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-detail__sticky {
        position: static;
        padding-top: 0;
    }

    .product-detail__rail-img {
        max-height: none;
    }

    .product-detail__figure--zoom,
    .product-detail__figure--video {
        max-height: 620px;
    }
}

@media (max-width: 520px) {
    .product-detail__rail-grid > .product-detail__figure {
        flex-basis: 100%;
        max-width: 100%;
    }

    .product-detail__rail-img {
        max-height: none;
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 768px) {
    .product-detail__rail-slider-controls {
        display: flex;
        justify-content: flex-end;
        gap: 0.45rem;
        margin-bottom: 0.35rem;
    }

    .product-detail__rail-arrow {
        width: 34px;
        height: 34px;
        border: 1px solid var(--pd-border);
        border-radius: 999px;
        background: #fff;
        color: var(--text-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .product-detail__rail-arrow:disabled {
        opacity: 0.45;
        cursor: default;
    }

    .product-detail__rail-viewport {
        overflow: hidden;
    }

    .product-detail__rail-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.65rem !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 0.2rem;
        scroll-padding-inline: 0;
    }

    .product-detail__rail-grid > .product-detail__figure {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    .product-detail {
        padding: 6rem 0 0.5rem;
    }

    .product-detail__shell {
        padding: 0 1rem;
    }

    .product-detail__actions--split {
        grid-template-columns: 1fr;
    }
}
