/* 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 {
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    overflow: hidden;
}

.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: #0d47a1;
}

.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: 56rem;
}

.product-detail__back {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}

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

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

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

.product-detail__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 640px) {
    .product-detail__layout {
        grid-template-columns: 1fr;
    }
}

.product-detail__visual {
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #e8e8e8;
}

.product-detail__img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail__placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.95rem;
}

.product-detail__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.product-detail__price {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0d47a1;
    margin: 0 0 0.75rem;
}

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

.product-detail__desc {
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.95rem;
    color: #333;
}

/* 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;
}
