/* Product price display — theme-aware sale styling (does not rely on Tailwind line-through) */

.tyb-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    line-height: 1.2;
}

.tyb-product-price__compare {
    color: var(--text-muted, var(--text-secondary, #94a3b8));
    font-weight: 500;
    text-decoration: line-through !important;
    text-decoration-thickness: 1px;
    text-decoration-color: color-mix(in srgb, var(--text-secondary, #94a3b8) 75%, transparent);
    -webkit-text-decoration-line: line-through !important;
}

.tyb-product-price__current {
    color: var(--text-main, #0f172a);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tyb-product-price--on-sale .tyb-product-price__current {
    color: var(--sale-color, var(--primary-accent, var(--primary-color, #b45309)));
}

.tyb-product-price__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--sale-color, var(--primary-accent, var(--primary-color, #92400e)));
    background-color: color-mix(in srgb, var(--sale-color, var(--primary-accent, var(--primary-color, #b45309))) 14%, white);
    border: 1px solid color-mix(in srgb, var(--sale-color, var(--primary-accent, var(--primary-color, #b45309))) 22%, white);
}

/* Size variants */
.tyb-product-price--sm .tyb-product-price__compare { font-size: 0.6875rem; }
.tyb-product-price--sm .tyb-product-price__current { font-size: 0.875rem; }

.tyb-product-price--md .tyb-product-price__compare { font-size: 0.8125rem; }
.tyb-product-price--md .tyb-product-price__current { font-size: 1.125rem; }

.tyb-product-price--lg .tyb-product-price__compare { font-size: 1rem; }
.tyb-product-price--lg .tyb-product-price__current { font-size: 1.5rem; }

.dark .tyb-product-price__compare,
.dark .tyb-product-price__current {
    color: inherit;
}

.dark .tyb-product-price__compare {
    color: #94a3b8;
}

.dark .tyb-product-price--on-sale .tyb-product-price__current {
    color: var(--sale-color, var(--primary-accent, #fbbf24));
}

.dark .tyb-product-price__badge {
    background-color: color-mix(in srgb, var(--sale-color, var(--primary-accent, #fbbf24)) 18%, #1e293b);
    border-color: color-mix(in srgb, var(--sale-color, var(--primary-accent, #fbbf24)) 28%, #334155);
}

/* Per-piece price for a package product ("tanesi 42,50 ₺").
   Sits on its own line under the headline price so it reads as a qualifier, never as a
   competing price the customer might mistake for the amount charged. */
.tyb-product-price__per-piece {
    flex-basis: 100%;
    color: var(--text-secondary, #64748b);
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.3;
}

.tyb-product-price--sm .tyb-product-price__per-piece { font-size: 0.6875rem; }
.tyb-product-price--lg .tyb-product-price__per-piece { font-size: 0.875rem; }

/* ── Package ("Takım") badge ─────────────────────────────────────────────────
   Uses the accent colour rather than the sale colour: a package is a property of
   the product, not a discount, and must not be mistaken for one. */
.tyb-package-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--accent-color, var(--primary-color, #1e293b));
    background-color: color-mix(in srgb, var(--accent-color, var(--primary-color, #1e293b)) 12%, white);
    border: 1px solid color-mix(in srgb, var(--accent-color, var(--primary-color, #1e293b)) 24%, white);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .tyb-package-badge { background-color: #f1f5f9; border-color: #cbd5e1; }
}

.tyb-package-badge__icon {
    font-size: 0.875rem;
    line-height: 1;
}

/* Corner placement on product card images. */
.tyb-package-badge--corner {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}

.tyb-package-badge--lg {
    font-size: 0.8125rem;
    padding: 0.25rem 0.65rem;
}

/* ── Kategori SEO makalesi ────────────────────────────────────────────────────
   The buying guide under the product grid. Deliberately quiet: it sits below the
   fold for shoppers and must not compete with the products above it. */

.tyb-category-seo {
    max-width: 72ch;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
    color: var(--text-secondary, #64748b);
    font-size: 0.875rem;
    line-height: 1.75;
}

.tyb-category-seo h2 {
    margin: 0 0 0.75rem;
    color: var(--text-main, #0f172a);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

.tyb-category-seo h3 {
    margin: 1.75rem 0 0.5rem;
    color: var(--text-main, #0f172a);
    font-size: 0.9375rem;
    font-weight: 600;
}

.tyb-category-seo p {
    margin: 0 0 1rem;
}

.tyb-category-seo ul {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    list-style: disc;
}

.tyb-category-seo li {
    margin-bottom: 0.35rem;
}

.tyb-category-seo a {
    color: var(--primary-color, #e10600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tyb-category-seo a:hover {
    text-decoration-thickness: 2px;
}

.tyb-category-seo strong {
    color: var(--text-main, #0f172a);
    font-weight: 600;
}
