/* Site — ortak + vitrin */
body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
    background: #fafafa;
}

.storefront {
    max-width: 60rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.storefront__head h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

.storefront__notice {
    margin: 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.storefront__notice--error {
    border-color: #ffcdd2;
    background: #fff8f8;
}

.catalog {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.catalog__item {
    margin: 0;
}

.product-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.product-card:hover {
    border-color: #cfd8dc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card__link {
    display: block;
    padding: 0 0 1rem;
    text-decoration: none;
    color: inherit;
}

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    overflow: hidden;
}

.product-card__video-badge {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    line-height: 2rem;
    text-align: center;
    pointer-events: none;
}

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

.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #888;
}

.product-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.75rem 1rem 0.35rem;
    line-height: 1.35;
}

.product-card__price {
    margin: 0 1rem 0.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #c62828;
}

.product-card__stock {
    margin: 0 1rem;
    font-size: 0.85rem;
    color: #555;
}

/* Diğer site sayfaları (product, sepet vb.) */
main:not(.storefront) {
    max-width: 48rem;
    margin: 2rem auto;
    padding: 0 1rem;
    background: transparent;
}

/* Ürün detay */
main.product-detail {
    max-width: 72rem;
}

.product-detail__top {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.product-detail__top a {
    color: #1565c0;
    text-decoration: none;
}

.product-detail__top a:hover {
    text-decoration: underline;
}

.product-detail__notice {
    color: #555;
    margin: 0;
}

.product-detail__h1 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.pd-breadcrumb {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 1.25rem;
    line-height: 1.45;
}

.pd-breadcrumb a {
    color: #1565c0;
    text-decoration: none;
}

.pd-breadcrumb a:hover {
    text-decoration: underline;
}

.pd-breadcrumb__sep {
    margin: 0 0.25rem;
    color: #999;
}

.pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 900px) {
    .pd-grid {
        grid-template-columns: 1fr;
    }
}

.pd-gallery__row {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.pd-gallery__row--solo {
    grid-template-columns: minmax(0, 1fr);
}

.pd-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pd-gallery__thumb {
    padding: 0;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    line-height: 0;
}

.pd-gallery__thumb.is-active {
    border-color: #c62828;
}

.pd-gallery__thumb img {
    width: 100%;
    height: 4rem;
    object-fit: cover;
    display: block;
}

.pd-gallery__main-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
}

.pd-gallery__main {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.pd-gallery__placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.pd-wish {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    z-index: 1;
}

.pd-trust {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.78rem;
    color: #444;
}

.pd-trust__item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pd-trust__ic {
    font-size: 1rem;
}

.pd-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.25;
    color: #111;
}

.pd-code {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    color: #555;
}

.pd-rating {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #777;
}

.pd-price {
    font-size: 1.65rem;
    font-weight: 700;
    color: #c62828;
    margin: 0 0 0.65rem;
}

.pd-more-cat a {
    color: #1565c0;
    font-size: 0.95rem;
    text-decoration: none;
}

.pd-more-cat a:hover {
    text-decoration: underline;
}

.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
    margin: 1rem 0;
}

.pd-cart-form {
    flex: 1;
    min-width: 12rem;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0 1rem;
    font: inherit;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
}

.pd-btn--cart {
    width: 100%;
    background: #e53935;
    color: #fff;
}

.pd-btn--cart:hover {
    background: #c62828;
}

.pd-btn--wish {
    width: 2.75rem;
    min-width: 2.75rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    font-size: 1.15rem;
}

.pd-ship {
    margin: 0;
    font-size: 0.88rem;
    color: #2e7d32;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.pd-oos {
    margin: 0;
    color: #c62828;
    font-weight: 600;
}

.pd-youtube {
    margin: 1.75rem 0 0;
    max-width: 100%;
}

.pd-youtube__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #333;
}

.pd-youtube__wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.pd-youtube__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pd-tabs-wrap {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8e8e8;
}

.pd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
}

.pd-tab {
    background: none;
    border: none;
    font: inherit;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    margin-bottom: -1px;
    cursor: pointer;
    color: #555;
    border-bottom: 2px solid transparent;
}

.pd-tab.is-active {
    color: #c62828;
    font-weight: 600;
    border-bottom-color: #c62828;
}

.pd-panels {
    position: relative;
    min-height: 4rem;
}

.pd-panel {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.55;
}

.pd-panel[hidden] {
    display: none !important;
}

.pd-desc {
    max-height: 18rem;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.pd-code-bottom {
    margin: 1rem 0 0;
    font-size: 0.88rem;
    color: #666;
}

.pd-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pd-contact__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
}

.pd-contact__btn--wa {
    border: 2px solid #25d366;
    color: #128c7e;
    background: #fff;
}

.pd-contact__btn--tel {
    border: 2px solid #e53935;
    color: #c62828;
    background: #fff;
}

.pd-related {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8e8e8;
}

.pd-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.pd-related__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.pd-related__nav {
    display: flex;
    gap: 0.35rem;
}

.pd-related__arrow {
    width: 2rem;
    height: 2rem;
    border: 1px solid #c62828;
    background: #fff;
    color: #c62828;
    border-radius: 4px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.pd-related__strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.pd-related__card {
    flex: 0 0 10rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    padding-bottom: 0.5rem;
}

.pd-related__media {
    aspect-ratio: 1;
    background: #f0f0f0;
    overflow: hidden;
}

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

.pd-related__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.8rem;
    color: #888;
}

.pd-related__name {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0.4rem 0.5rem 0.15rem;
    line-height: 1.3;
}

.pd-related__price {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #c62828;
    margin: 0 0.5rem;
}

.product-detail__back .site-nav {
    margin-bottom: 0;
}

.product-detail__top .site-nav {
    margin-bottom: 0;
}

/* Ortak: gezinme, uyarılar, formlar, tablolar (mobil) */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.site-nav a {
    color: #1565c0;
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav__sep {
    color: #999;
    user-select: none;
}

.alert {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 0.95rem;
}

.alert--error {
    border-color: #ffcdd2;
    background: #fff8f8;
    color: #1a1a1a;
}

.alert--success {
    border-color: #c8e6c9;
    background: #f1f8e9;
}

.alert--info {
    border-color: #bbdefb;
    background: #f5f9ff;
}

.alert__list {
    margin: 0;
    padding-left: 1.25rem;
}

.alert__list li {
    margin: 0.15rem 0;
}

.form .form__field {
    margin: 0 0 1rem;
}

.form .form__field label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.form__control {
    max-width: 100%;
    width: min(100%, 28rem);
    box-sizing: border-box;
    padding: 0.45rem 0.5rem;
    font: inherit;
}

textarea.form__control {
    width: min(100%, 36rem);
    min-height: 6rem;
    resize: vertical;
}

.form__actions {
    margin-top: 0.75rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.5rem 0 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 280px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

.data-table th {
    font-weight: 600;
    background: #f5f5f5;
}

@media (max-width: 480px) {
    .site-nav {
        font-size: 0.9rem;
    }

    .data-table {
        font-size: 0.85rem;
    }
}

.account-order {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e8e8;
}

.account-order:last-of-type {
    border-bottom: none;
}

.address-card {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.address-card__actions {
    margin-top: 0.5rem;
}

.product-detail__back .site-nav {
    margin-bottom: 0;
}

.form__field--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
