/* Product detail — mockup-inspired, Doshe green */
.pd-page {
    padding: 16px 0 56px;
    color: #1a1a1a;
    --green: #16a34a;
    --green-dark: #15803d;
    --bg-soft: #f4f4f5;
    --border: #e8e8e8;
    --muted: #71717a;
}

.pd-page *, .pd-page *::before, .pd-page *::after { box-sizing: border-box; }

.pd-crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin-bottom: 24px; font-size: 12px; color: var(--muted);
}
.pd-crumb a { color: var(--muted); text-decoration: none; }
.pd-crumb a:hover { color: var(--green); }
.pd-crumb__now { color: #111; font-weight: 500; }

/* ===== HERO: sol (thumbs) | orta (image) | sağ (info) ===== */
.pd-hero {
    display: grid;
    grid-template-columns: 72px minmax(0, 2fr) minmax(300px, 380px);
    column-gap: 20px;
    align-items: start;
    width: 100%;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

/* Gallery wrapper — children join hero grid */
.pd-gallery {
    display: contents;
}

.pd-gallery__thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pd-gallery__nav {
    width: 72px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-gallery__nav:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.pd-gallery__nav:disabled { opacity: 0.3; cursor: default; }

.pd-gallery__scroll {
    width: 72px;
    max-height: 246px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.pd-gallery__scroll::-webkit-scrollbar { display: none; }

.pd-gallery__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-gallery__thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 5px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-soft);
    opacity: 0.85;
    transition: opacity 0.15s, border-color 0.15s;
}
.pd-gallery__thumb:hover { opacity: 1; }
.pd-gallery__thumb.is-on {
    opacity: 1;
    border-color: var(--green);
}
.pd-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-gallery__thumb--video { position: relative; }
.pd-gallery__thumb--video::after {
    content: '▶';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.pd-gallery__nav.is-hidden {
    display: none;
}

/* Main image — NO container, direct in grid */
.pd-gallery__hero-media,
.pd-gallery__hero-video {
    grid-column: 2;
    grid-row: 1;
    display: block;
    width: 100%;
    height: auto;
    max-height: min(90vh, 1000px);
    margin: 0;
    padding: 0;
    border: 5px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    object-fit: contain;
    object-position: center top;
    cursor: zoom-in;
    align-self: start;
    justify-self: stretch;
}

.pd-gallery__sale {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    margin: 12px 0 0 12px;
    z-index: 3;
    padding: 5px 12px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    line-height: 1.2;
}

.pd-gallery__zoom {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    margin: 0 12px 12px 0;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: border-color 0.15s, color 0.15s;
}
.pd-gallery__zoom:hover { border-color: var(--green); color: var(--green); }

/* Info panel — sağ sütun */
.pd-info {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    max-width: 380px;
    justify-self: end;
    min-width: 0;
}

.pd-info__brand {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #555;
    text-decoration: none;
    margin-bottom: 8px;
}
.pd-info__brand:hover { color: var(--green); }

.pd-info__title {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.pd-info__price { margin-bottom: 6px; }
.pd-info__price-now {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
}
.pd-info__price-was {
    margin-left: 10px;
    font-size: 1rem;
    color: #a1a1aa;
    text-decoration: line-through;
    font-weight: 400;
}
.pd-info__price-off {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
}

.pd-info__note {
    margin: 0 0 14px;
    font-size: 12px;
    color: #666;
}

.pd-info__stars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #333;
}
.pd-info__stars a { color: #111; font-weight: 600; text-decoration: none; border-bottom: 1px solid #ccc; }
.pd-info__stars span { color: #444; }
.pd-info__stars a:hover { color: var(--green); border-color: var(--green); }

.pd-stars { display: inline-flex; gap: 1px; font-size: 14px; line-height: 1; }
.pd-stars--sm { font-size: 12px; }
.pd-star { color: #d4d4d8; }
.pd-star.is-on { color: #f59e0b; }

.pd-info__intro {
    font-size: 14px;
    line-height: 1.65;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
}
.pd-info__intro p { margin: 0 0 8px; }
.pd-info__intro--peek {
    max-height: 66px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
    mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.pd-info__intro--open {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.pd-info__more {
    border: none;
    background: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    cursor: pointer;
    font-family: inherit;
}
.pd-info__more:hover { text-decoration: underline; }

.pd-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pd-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #222;
    font-weight: 500;
}
.pd-features svg { flex-shrink: 0; color: var(--green); }

.pd-option { margin-bottom: 16px; }
.pd-option__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
.pd-option__label strong { color: #111; }

/* Custom dropdown */
.pd-dd { position: relative; }
.pd-dd__btn {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #d4d4d8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pd-dd__btn:hover { border-color: #a1a1aa; }
.pd-dd.is-open .pd-dd__btn,
.pd-dd__btn:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.pd-dd__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-dd__main { font-size: 14px; font-weight: 600; color: #111; }
.pd-dd__sub { font-size: 12px; color: var(--muted); }
.pd-dd__icon { flex-shrink: 0; color: #71717a; transition: transform 0.2s; }
.pd-dd.is-open .pd-dd__icon { transform: rotate(180deg); }

.pd-dd__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    z-index: 100;
    margin: 0; padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0,0,0,.1);
    max-height: 240px;
    overflow-y: auto;
}
.pd-dd__menu[hidden] { display: none !important; }

.pd-dd__opt {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pd-dd__opt:hover:not(:disabled) { background: #f0fdf4; }
.pd-dd__opt.is-on { background: #ecfdf5; }
.pd-dd__opt:disabled { opacity: 0.4; cursor: not-allowed; }
.pd-dd__opt-name { font-size: 14px; font-weight: 600; color: #111; }
.pd-dd__opt-meta { font-size: 12px; color: var(--muted); }

.pd-cart-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
    margin-bottom: 20px;
}
.pd-cart-btn:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); }
.pd-cart-btn:disabled { background: #d4d4d8; cursor: not-allowed; transform: none; }
.pd-cart-btn--sm { width: auto; padding: 0 28px; height: 42px; font-size: 14px; }
.pd-cart-btn.is-added { background: #14532d; }

.pd-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}
.pd-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
}
.pd-trust svg { flex-shrink: 0; color: var(--green); }

/* ===== SECTIONS ===== */
.pd-section {
    margin-bottom: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--border);
}
.pd-section:last-child { border-bottom: none; }

.pd-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}
.pd-section__head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}
.pd-section__action {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    white-space: nowrap;
}
.pd-section__action:hover { text-decoration: underline; }

/* Reviews */
.pd-reviews-summary {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: 12px;
}
.pd-reviews-summary__score { text-align: center; }
.pd-reviews-summary__num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #111;
}
.pd-reviews-summary .pd-stars { justify-content: center; margin: 8px 0 4px; }
.pd-reviews-summary__lbl { font-size: 12px; color: #555; }

.pd-reviews-summary__bars { display: flex; flex-direction: column; gap: 7px; }
.pd-bar {
    display: grid;
    grid-template-columns: 16px 1fr 28px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #333;
}
.pd-bar__track {
    height: 8px;
    background: #e4e4e7;
    border-radius: 99px;
    overflow: hidden;
}
.pd-bar__track span {
    display: block;
    height: 100%;
    background: #f59e0b;
    border-radius: inherit;
}

.pd-reviews-scroll-wrap,
.pd-products-scroll-wrap {
    position: relative;
}

.pd-reviews-scroll,
.pd-products-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.pd-reviews-scroll::-webkit-scrollbar,
.pd-products-scroll::-webkit-scrollbar { display: none; }

.pd-review-card {
    flex: 0 0 min(300px, 80vw);
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.pd-review-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.pd-review-card__av {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.pd-review-card strong { display: block; font-size: 14px; color: #111; }
.pd-review-card p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.pd-review-card time { font-size: 12px; color: #666; }

.pd-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-scroll-btn:hover { border-color: var(--green); color: var(--green); }
.pd-scroll-btn--r { right: -6px; }

.pd-link-all {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
}
.pd-link-all:hover { text-decoration: underline; }

.pd-empty-msg {
    margin: 0 0 20px;
    padding: 16px 18px;
    font-size: 14px;
    color: #444;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
}
.pd-empty-msg a { color: var(--green); font-weight: 600; text-decoration: none; }
.pd-empty-msg a:hover { text-decoration: underline; }

/* Review compose — full width */
.pd-review-compose {
    width: 100%;
}
.pd-review-compose__empty {
    margin: 0 0 16px;
    padding: 18px 22px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}
.pd-review-compose__signin {
    margin: 0;
    padding: 16px 18px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}
.pd-review-compose__signin a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}
.pd-review-compose__signin a:hover { text-decoration: underline; }

.pd-review-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}
.pd-review-form__rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.pd-review-form__rating-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.pd-review-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pd-review-form__label {
    font-size: 13px;
    font-weight: 600;
    color: #222;
}
.pd-review-form__field textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border: 1px solid #d4d4d8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
    color: #111;
    background: #fff;
    resize: vertical;
}
.pd-review-form__field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.pd-review-form__actions {
    display: flex;
    justify-content: flex-end;
}
.pd-review-form__actions .pd-cart-btn {
    min-width: 160px;
}
.pd-star-pick {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}
.pd-star-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.pd-star-pick label { font-size: 26px; color: #d4d4d8; cursor: pointer; }
.pd-star-pick label:hover,
.pd-star-pick label:hover ~ label,
.pd-star-pick input:checked ~ label { color: #f59e0b; }

/* Product cards scroll */
.pd-product-card {
    position: relative;
    flex: 0 0 160px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.15s, transform 0.15s;
}
.pd-product-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.pd-product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: var(--bg-soft);
}
.pd-product-card__name {
    display: block;
    padding: 10px 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pd-product-card__price {
    display: block;
    padding: 4px 10px 12px;
    font-size: 14px;
    font-weight: 800;
    color: #111;
}
.pd-product-card__ad {
    position: absolute;
    top: 8px; left: 8px; z-index: 2;
    padding: 2px 7px;
    background: #fef3c7;
    color: #92400e;
    font-size: 9px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Lightbox */
.pd-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.9);
    align-items: center;
    justify-content: center;
    padding: 48px;
}
.pd-lightbox.is-open { display: flex; }
.pd-lightbox img { max-width: min(92vw, 1100px); max-height: 88vh; object-fit: contain; }
.pd-lightbox__x {
    position: absolute; top: 20px; right: 28px;
    background: none; border: none;
    color: #fff; font-size: 36px; cursor: pointer;
}
.pd-lightbox__prev, .pd-lightbox__next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff; font-size: 22px; cursor: pointer;
}
.pd-lightbox__prev { left: 16px; }
.pd-lightbox__next { right: 16px; }

.pd-toast {
    position: fixed; left: 50%; bottom: 24px;
    transform: translateX(-50%);
    z-index: 11000;
    padding: 12px 18px;
    background: #111; color: #fff;
    border-radius: 8px;
    font-size: 13px; font-weight: 600;
}

@media (max-width: 900px) {
    .pd-hero {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }
    .pd-gallery {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .pd-gallery__thumbs,
    .pd-gallery__hero-media,
    .pd-gallery__hero-video,
    .pd-gallery__sale,
    .pd-gallery__zoom,
    .pd-info {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        max-width: none;
    }
    .pd-gallery__hero-media,
    .pd-gallery__hero-video {
        max-height: min(70vh, 800px);
    }
    .pd-gallery__thumbs { flex-direction: row; width: 100%; }
    .pd-gallery__scroll { width: auto; flex: 1; overflow-x: auto; max-height: none; }
    .pd-gallery__list { flex-direction: row; }
    .pd-gallery__nav { width: 32px; height: 60px; }
    .pd-info { width: 100%; }
    .pd-reviews-summary { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 480px) {
    .pd-info__title { font-size: 1.35rem; }
    .pd-info__price-now { font-size: 1.45rem; }
}
