/* Ürün detay — tema CSS değişkenlerini (--accent, --surface, --ink vb.) kullanır */
.app--product {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.product-top {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top));
    background: color-mix(in srgb, var(--surface, #fff) 94%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line, #e5e5e5);
}

.product-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #111);
    text-decoration: none;
}

.product-back-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line, #e5e5e5);
    background: var(--surface, #fff);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.product-lang {
    overflow-x: auto;
    scrollbar-width: none;
}

.product-lang::-webkit-scrollbar { display: none; }

.product-main {
    flex: 1;
    padding: 16px;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: var(--line, #eee);
    border: 1px solid var(--line, #e5e5e5);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image-empty {
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--accent, #1f6f4e) 12%, var(--surface, #fff));
}

.product-cat {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: color-mix(in srgb, var(--accent, #1f6f4e) 14%, var(--surface, #fff));
    color: var(--accent, #1f6f4e);
}

.product-business {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #666);
    margin-bottom: 6px;
}

.product-name {
    font-size: clamp(26px, 6vw, 34px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--ink, #111);
}

.product-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-top: 14px;
}

.product-price {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 800;
    color: var(--accent, #1f6f4e);
}

.product-price .sym {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #666);
    margin-left: 4px;
}

.product-price-old {
    font-size: 15px;
    color: var(--muted, #666);
    text-decoration: line-through;
}

.product-discount-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent, #1f6f4e) 14%, var(--surface, #fff));
    color: var(--accent, #1f6f4e);
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.product-badges .badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.product-lead {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted, #666);
}

.product-long {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line, #e5e5e5);
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink, #111);
    white-space: pre-wrap;
}

.product-foot {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line, #e5e5e5);
}

.product-foot-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--line, #e5e5e5);
    background: var(--surface, #fff);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink, #111);
    text-decoration: none;
}

.product-foot-link svg {
    width: 18px;
    height: 18px;
    opacity: .7;
}

@media (min-width: 768px) {
    body:has(.app--product) {
        padding: 20px 16px;
        background: color-mix(in srgb, var(--bg, #f4f4f2) 88%, #000);
    }

    .app--product {
        max-width: min(92vw, 820px);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
    }

    .product-main { padding: 24px 28px; }

    .product-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }

    .product-image { aspect-ratio: 1 / 1; }

    .product-content {
        position: sticky;
        top: 72px;
    }
}

@media (min-width: 1100px) {
    .app--product { max-width: min(88vw, 920px); }
}
