/* Shopify-style product page */
.product-page {
    margin: 4rem auto 8rem;
}

.product-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.product-page__media {
    border-radius: 12px;
    overflow: hidden;
    background: #f6f6f7;
    border: 1px solid rgba(18, 18, 18, 0.08);
}

.product-page__media img {
    width: 100%;
    height: auto;
    display: block;
}

.product-page__gallery {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.product-page__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.product-page__thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f6f6f7;
}

.product-page__thumb.is-active {
    border-color: #121212;
}

.product-page__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-page__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 1.3rem;
    color: rgba(18, 18, 18, 0.55);
    margin-bottom: 2rem;
}

.product-page__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.product-page__breadcrumb a:hover {
    text-decoration: underline;
}

.product-page__unit-price {
    font-size: 1.3rem;
    color: rgba(18, 18, 18, 0.65);
    margin: -0.8rem 0 1.2rem;
}

.product-page__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
}

.product-page__tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #f1f2f3;
    font-size: 1.2rem;
    color: #202223;
    text-decoration: none;
}

.product-page__quantity {
    margin-bottom: 1.6rem;
}

.product-page__qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(18, 18, 18, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.product-page__qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.product-page__qty-input {
    width: 56px;
    height: 44px;
    border: none;
    border-left: 1px solid rgba(18, 18, 18, 0.15);
    border-right: 1px solid rgba(18, 18, 18, 0.15);
    text-align: center;
    font-size: 1.4rem;
}

.product-page__video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.product-page__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-page__thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    background: rgba(0,0,0,.35);
    pointer-events: none;
}

.product-page__thumb { position: relative; }

.product-page__media-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9cccf;
}

.product-page__vendor {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(18, 18, 18, 0.55);
    margin-bottom: 0.8rem;
}

.product-page__vendor a {
    color: inherit;
    text-decoration: none;
}

.product-page__title {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.15;
    margin: 0 0 1.6rem;
    font-weight: 600;
}

.product-page__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-page__price {
    font-size: 2.4rem;
    font-weight: 600;
}

.product-page__compare-price {
    font-size: 1.6rem;
    color: rgba(18, 18, 18, 0.55);
    text-decoration: line-through;
}

.product-page__discount-badge {
    font-size: 1.2rem;
    font-weight: 600;
    color: #b00020;
}

.product-page__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.product-page__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-page__badge--sale {
    background: #5c2d91;
    color: #fff;
}

.product-page__badge--timer {
    background: #f3edf8;
    color: #5c2d91;
}

.product-page__urgency {
    color: #b00020;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.product-page__shipping {
    font-size: 1.4rem;
    color: rgba(18, 18, 18, 0.75);
    margin-bottom: 2rem;
}

.product-page__shipping i {
    margin-right: 0.4rem;
}

.product-page__option {
    margin-bottom: 1.8rem;
}

.product-page__option-label {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.product-page__option-label span {
    font-weight: 400;
    color: rgba(18, 18, 18, 0.65);
}

.product-page__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.product-page__swatch {
    width: var(--theme-swatch-size, 4.4rem);
    height: var(--theme-swatch-size, 4.4rem);
    border-radius: 50%;
    border: 2px solid rgba(18, 18, 18, 0.15);
    background: #f6f6f7;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    position: relative;
}

body[data-swatch-style="kare"] .product-page__swatch {
    border-radius: 4px;
}

body[data-swatch-style="pill"] .product-page__swatch {
    border-radius: 999px;
    width: calc(var(--theme-swatch-size, 4.4rem) * 1.6);
}

.product-page__swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-page__swatch.is-selected {
    border-color: #5c2d91;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #5c2d91;
}

.product-page__swatch.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.product-page__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.product-page__pill {
    min-width: 4.4rem;
    min-height: 4rem;
    padding: 0 1.4rem;
    border: 1px solid rgba(18, 18, 18, 0.2);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 1.4rem;
    cursor: pointer;
}

.product-page__pill.is-selected {
    border-color: #5c2d91;
    color: #5c2d91;
    box-shadow: inset 0 0 0 1px #5c2d91;
}

.product-page__pill.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.product-page__actions {
    display: grid;
    gap: 1rem;
    margin: 2.4rem 0 1.6rem;
}

.product-page__btn-primary {
    width: 100%;
    min-height: 5rem;
    border: none;
    border-radius: 999px;
    background: #5c2d91;
    color: #fff;
    font: inherit;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
}

.product-page__btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.product-page__btn-shop {
    width: 100%;
    min-height: 5rem;
    border: none;
    border-radius: 999px;
    background: #5433eb;
    color: #fff;
    font: inherit;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
}

.product-page__installments {
    font-size: 1.3rem;
    color: rgba(18, 18, 18, 0.75);
    margin-bottom: 2.4rem;
    line-height: 1.6;
}

.product-page__description {
    line-height: 1.8;
    color: rgba(18, 18, 18, 0.85);
    border-top: 1px solid rgba(18, 18, 18, 0.08);
    padding-top: 2rem;
}

.product-page__meta-list {
    margin-top: 2rem;
    font-size: 1.4rem;
}

.product-page__meta-list dt {
    font-weight: 600;
    margin-top: 0.8rem;
}

.product-page__meta-list dd {
    margin: 0.2rem 0 0;
    color: rgba(18, 18, 18, 0.75);
}

@media screen and (min-width: 990px) {
    .product-page__grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
        align-items: start;
    }

    body[data-product-gallery="sağ"] .product-page__gallery { order: 2; }
    body[data-product-gallery="sağ"] .product-page__info { order: 1; }

    body[data-product-gallery="üstte"] .product-page__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    body[data-product-info-sticky="true"] .product-page__info--sticky {
        position: sticky;
        top: calc(8rem + 2rem);
    }
}

body[data-product-gallery="üstte"] .product-page__grid {
    grid-template-columns: 1fr;
}

body:not([data-enable-product-zoom="false"]) .product-page__media img {
    cursor: zoom-in;
    transition: transform var(--theme-transition, 0.25s ease);
}

body:not([data-enable-product-zoom="false"]) .product-page__media:hover img {
    transform: scale(1.03);
}
