/* ===============================
   GENEL
================================ */
.homepage section {
    margin-bottom: 30px;
}

/* ===============================
   STORY
================================ */
.story-bar {
    overflow-x: auto;
}
.story-scroll {
    display: flex;
    gap: 14px;
    padding: 10px 5px;
}
.story-item {
    text-align: center;
    font-size: 12px;
    color: #333;
    min-width: 80px;
}
.story-item img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #ff6a00;
    object-fit: cover;
}

/* ===============================
   PRODUCT GRID (TEK TANIM)
================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

/* ===============================
   PRODUCT CARD
================================ */
.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    position: relative;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card > a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.product-card h3 {
    font-size: 14px;
    margin: 8px 0;
}

/* ===============================
   BADGE
================================ */
.badges {
    position: absolute;
    top: 8px;
    left: 8px;
}
.badge.discount {
    background: red;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
}

/* ===============================
   PRICE
================================ */
.price {
    margin-top: auto;
}
.price .old {
    text-decoration: line-through;
    font-size: 12px;
    color: #999;
}
.price .new {
    color: #e60023;
    font-weight: bold;
}

/* ===============================
   SEPET FORM (KARTIN EN ALTINDA)
================================ */
.sepet-form {
    margin-top: 8px;
}

.sepet-form .adet-input {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.sepet-form .sepete-ekle {
    width: 100%;
    margin-top: 6px;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.sepet-form .sepete-ekle:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ===============================
   LOCAL TOAST (KARTI BOZMAZ)
================================ */
.sepet-form .local-toast {
    margin-top: 6px;
}

/* ===============================
   MARKALAR
================================ */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}
.brand-grid img {
    width: 100%;
    object-fit: contain;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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