/* ============ Ürün Detay Sayfası: genel düzen + bilgi + satın alma ============ */

.pd {
    background: #FFFFFF;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #202124;
}

.pd__wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 60px 72px;
}

/* Breadcrumb */
.pd-crumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    font-size: 12.5px;
    color: #666666;
}

.pd-crumb li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pd-crumb li + li::before {
    content: '/';
    color: #C9C4BD;
}

.pd-crumb a {
    color: #666666;
    text-decoration: none;
    transition: color 180ms;
}

.pd-crumb a:hover {
    color: #8E4B55;
}

.pd-crumb li[aria-current="page"] {
    color: #202124;
    font-weight: 500;
}

/* Ana düzen */
.pd__layout {
    display: grid;
    grid-template-columns: 58fr 42fr;
    gap: 56px;
    align-items: start;
}

.pd__gallery {
    min-width: 0;
}

.pd__info {
    min-width: 0;
}

/* Ürün bilgi alanı */
.pi__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #8E4B55;
    text-decoration: none;
    margin-bottom: 12px;
}

.pi__category:hover {
    color: #6E3540;
}

.pi__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #202124;
    margin: 0 0 14px;
}

.pi__short {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin: 0 0 18px;
    max-width: 46ch;
}

.pi__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #202124;
    font-size: 14px;
    margin-bottom: 22px;
}

.pi__rating:hover .pi__rating-count {
    color: #8E4B55;
}

.pi__stars {
    color: #D9A441;
    font-size: 15px;
    letter-spacing: 1px;
}

.pi__rating strong {
    font-weight: 600;
}

.pi__rating-count {
    color: #666666;
    transition: color 180ms;
}

.pi__price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.pi__price-now {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 600;
    color: #202124;
}

.pi__price-old {
    font-size: 16px;
    color: #9A958D;
}

.pi__price-discount {
    font-size: 12.5px;
    font-weight: 600;
    color: #8E4B55;
    background: #F4E8EA;
    border-radius: 2px;
    padding: 3px 8px;
}

.pi__vat {
    font-size: 12.5px;
    color: #8A857C;
    margin: 6px 0 0;
}

/* Varyantlar */
.pi__variants {
    margin: 26px 0;
    padding-top: 22px;
    border-top: 1px solid #E7E3DE;
}

.pi-variant + .pi-variant {
    margin-top: 20px;
}

.pi-variant__label {
    font-size: 13px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 10px;
}

.pi-variant__selected {
    font-weight: 400;
    color: #666666;
    margin-left: 4px;
}

.pi-variant__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pi-variant__pill {
    font-family: inherit;
    font-size: 13.5px;
    color: #202124;
    background: #FFFFFF;
    border: 1px solid #D8D3CB;
    border-radius: 2px;
    padding: 9px 18px;
    cursor: pointer;
    transition: border-color 180ms, background 180ms, color 180ms;
}

.pi-variant__pill:hover {
    border-color: #8E4B55;
}

.pi-variant__pill.is-active {
    border: 2px solid #242424;
    padding: 8px 17px;
    background: #F4E8EA;
    border-color: #8E4B55;
    color: #6E3540;
    font-weight: 500;
}

.pi-variant__dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    padding: 0;
    transition: transform 180ms, box-shadow 180ms;
}

.pi-variant__dot:hover {
    transform: scale(1.08);
}

.pi-variant__dot.is-active {
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #242424;
}

.pi-variant__err {
    font-size: 12.5px;
    color: #B23A48;
    margin: 8px 0 0;
}

/* Satın alma */
.pi__buy {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.pi__qty {
    display: flex;
    align-items: center;
    border: 1px solid #D8D3CB;
    border-radius: 2px;
    height: 56px;
    flex-shrink: 0;
}

.pi__qty-btn {
    width: 44px;
    height: 100%;
    border: 0;
    background: none;
    font-size: 18px;
    color: #202124;
    cursor: pointer;
    font-family: inherit;
}

.pi__qty-btn:hover {
    background: #F7F5F2;
}

.pi__qty input {
    width: 52px;
    height: 100%;
    border: 0;
    border-left: 1px solid #E7E3DE;
    border-right: 1px solid #E7E3DE;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: #202124;
    -moz-appearance: textfield;
    appearance: textfield;
}

.pi__qty input::-webkit-outer-spin-button,
.pi__qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pi__add {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 56px;
    padding: 0 22px;
    background: #242424;
    color: #FFFFFF;
    border: 0;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 200ms ease, transform 200ms ease;
}

.pi__add:not(:disabled):hover {
    background: #8E4B55;
    transform: translateY(-2px);
}

.pi__add:disabled {
    background: #C9C4BD;
    cursor: not-allowed;
}

.pi__add.is-loading .pi__add-text::after {
    content: 'Ekleniyor...';
}

.pi__add.is-success .pi__add-text::after {
    content: 'Sepete Eklendi';
}

.pi__add.is-success {
    background: #4A7C59;
}

.pi__add-total {
    font-weight: 400;
    opacity: 0.85;
    font-size: 13.5px;
}

/* Stok */
.pi__stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #4A7C59;
    margin: 14px 0 0;
}

.pi__stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4A7C59;
    flex-shrink: 0;
}

.pi__stock--low {
    color: #B7791F;
}

.pi__stock--low::before {
    background: #B7791F;
}

.pi__stock--out {
    color: #B23A48;
}

.pi__stock--out::before {
    background: #B23A48;
}

/* Güven bilgileri */
.pi__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #E7E3DE;
}

.pi__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666666;
}

.pi__trust-item svg {
    color: #8E4B55;
}

/* Accordion (açıklama/SSS ortak) */
.pd-acc {
    margin-top: 34px;
    border-top: 1px solid #E7E3DE;
}

.pd-acc__item,
.pd-faq__item {
    border-bottom: 1px solid #E7E3DE;
}

.pd-acc__head,
.pd-faq__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #202124;
    cursor: pointer;
    text-align: left;
}

.pd-acc__head svg,
.pd-faq__head svg {
    flex-shrink: 0;
    color: #8A857C;
    transition: transform 260ms ease;
}

.pd-acc__item.is-open .pd-acc__head svg,
.pd-faq__item.is-open .pd-faq__head svg {
    transform: rotate(180deg);
}

.pd-acc__body,
.pd-faq__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 320ms ease;
}

.pd-acc__item.is-open .pd-acc__body,
.pd-faq__item.is-open .pd-faq__body {
    grid-template-rows: 1fr;
}

.pd-acc__inner,
.pd-faq__inner {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    padding-bottom: 18px;
}

/* Bölüm başlıkları */
.pd-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    color: #202124;
    margin: 0 0 24px;
}

/* Birlikte Daha İyi */
.pd-related {
    margin-top: 72px;
    padding-top: 36px;
    border-top: 1px solid #E7E3DE;
}

.pd-related__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.pd-related__card {
    position: relative;
    display: block;
    padding: 16px 14px;
    border: 1px solid #E7E3DE;
    border-radius: 2px;
    background: #FFFFFF;
    cursor: pointer;
    transition: border-color 180ms, background 180ms;
}

.pd-related__card:hover {
    border-color: #C9C4BD;
}

.pd-related__card:has(input:checked) {
    border-color: #8E4B55;
    background: #FDF9F9;
}

.pd-related__check {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 16px;
    height: 16px;
    accent-color: #8E4B55;
    cursor: pointer;
}

.pd-related__name {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: #202124;
    line-height: 1.4;
    margin: 22px 0 8px;
}

.pd-related__price {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #202124;
}

.pd-related__old {
    display: block;
    font-size: 12px;
    color: #9A958D;
    text-decoration: line-through;
}

.pd-related__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #E7E3DE;
    flex-wrap: wrap;
}

.pd-related__total {
    font-size: 15px;
    color: #666666;
}

.pd-related__total strong {
    color: #202124;
    font-weight: 600;
}

.pd-related__add {
    height: 48px;
    padding: 0 26px;
    background: #242424;
    color: #FFFFFF;
    border: 0;
    border-radius: 2px;
    font-size: 14.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 200ms;
}

.pd-related__add:hover {
    background: #8E4B55;
}

.pd-related__add.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* SSS */
.pd-faq {
    margin-top: 72px;
}

.pd-faq__list {
    border-top: 1px solid #E7E3DE;
}

/* Mobil sticky satın alma çubuğu */
.pd-stickybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #FFFFFF;
    border-top: 1px solid #E7E3DE;
    padding: 10px 16px;
    box-shadow: 0 -6px 18px rgba(32, 33, 36, 0.06);
}

.pd-stickybar__inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-stickybar__price {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.pd-stickybar__qty {
    display: flex;
    align-items: center;
    border: 1px solid #D8D3CB;
    border-radius: 2px;
    height: 44px;
}

.pd-stickybar__qty button {
    width: 36px;
    height: 100%;
    border: 0;
    background: none;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
    color: #202124;
}

.pd-stickybar__qty input {
    width: 44px;
    height: 100%;
    border: 0;
    border-left: 1px solid #E7E3DE;
    border-right: 1px solid #E7E3DE;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    -moz-appearance: textfield;
    appearance: textfield;
}

.pd-stickybar__qty input::-webkit-outer-spin-button,
.pd-stickybar__qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pd-stickybar__add {
    flex: 1;
    height: 44px;
    background: #242424;
    color: #FFFFFF;
    border: 0;
    border-radius: 2px;
    font-size: 14.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 200ms;
}

.pd-stickybar__add:not(:disabled):hover {
    background: #8E4B55;
}

.pd-stickybar__add:disabled {
    background: #C9C4BD;
    cursor: not-allowed;
}

/* Yardımcılar */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.pd__notfound-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
}

.pd__notfound-text {
    color: #666666;
    margin-bottom: 20px;
}

.pd__back {
    color: #8E4B55;
    text-decoration: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1199px) {
    .pd__layout {
        gap: 40px;
    }

    .pd__wrap {
        padding: 24px 32px 64px;
    }

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

@media (max-width: 899px) {
    .pd__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pd__wrap {
        padding: 20px 24px 56px;
    }

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

@media (max-width: 599px) {
    .pd__wrap {
        padding: 16px 16px 110px;
    }

    .pd-crumb {
        margin-bottom: 18px;
    }

    .pi__title {
        font-size: 30px;
    }

    .pi__price-now {
        font-size: 26px;
    }

    .pi__buy {
        flex-direction: column;
    }

    .pi__qty {
        height: 52px;
        align-self: flex-start;
    }

    .pi__add {
        height: 54px;
    }

    .pd-related__grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pd-section-title {
        font-size: 24px;
    }
}
