/* TOYA Mağaza — sepet, beğendiklerim ve sipariş sayfaları */

.shop-nav-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}
.shop-nav-icon .badge {
    font-size: 0.62rem;
    min-width: 18px;
}

.shop-page-head {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 28px 0;
    border-bottom: 3px solid #2563eb;
}

.shop-section {
    padding: 32px 0 56px;
    background: #f8fafc;
    min-height: 45vh;
}

.shop-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

/* Sepet satırı */
.shop-cart-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto auto 36px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.shop-cart-row:last-child { border-bottom: 0; }
.shop-thumb {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #94a3b8;
    font-size: 1.4rem;
}
.shop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.shop-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}
.shop-qty button {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #334155;
    font-weight: 700;
}
.shop-qty button:hover { background: #f1f5f9; }
.shop-qty input {
    width: 44px;
    height: 32px;
    border: 0;
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
}
.shop-qty input::-webkit-outer-spin-button,
.shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.shop-summary {
    position: sticky;
    top: 90px;
}
.shop-summary-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.92rem;
    color: #475569;
}
.shop-summary-total {
    border-top: 1px dashed #cbd5e1;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

/* Beğeni düğmesi */
.shop-fav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.shop-fav-btn:hover { color: #dc2626; border-color: #fecaca; }
.shop-fav-btn.active { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.shop-card-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* Bildirim */
.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2000;
    max-width: calc(100vw - 32px);
}
.shop-toast.show { opacity: 1; transform: translate(-50%, 0); }
.shop-toast.error { background: #b91c1c; }

.shop-empty {
    text-align: center;
    padding: 56px 16px;
}
.shop-empty i { font-size: 2.6rem; color: #cbd5e1; }

@media (max-width: 767.98px) {
    .shop-cart-row {
        grid-template-columns: 60px minmax(0, 1fr) 32px;
        grid-template-areas:
            "thumb info remove"
            "thumb qty  total";
        row-gap: 8px;
    }
    .shop-cart-row .shop-thumb { grid-area: thumb; width: 60px; height: 60px; }
    .shop-cart-row .shop-cart-info { grid-area: info; }
    .shop-cart-row .shop-cart-qty { grid-area: qty; }
    .shop-cart-row .shop-cart-total { grid-area: total; text-align: right; }
    .shop-cart-row .shop-cart-remove { grid-area: remove; }
    .shop-summary { position: static; }
}

/* Tema, <section> etiketlerine geniş dikey boşluk verir; mağaza sayfalarında sıkı tutulur */
section.shop-page-head { padding: 28px 0 !important; }
section.shop-section { padding: 32px 0 56px !important; }

/* Menüye sepet/beğeni simgeleri eklendiğinde bağlantılar alt satıra kırılmasın */
.bn-navbar .bn-nav-link,
.bn-navbar .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .bn-navbar .bn-nav-link { padding-left: 8px; padding-right: 8px; }
}
