/* =========================
   HERO / GLOBAL THEME UI
========================== */

.hero-slider {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #eee;
}

#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 400px;
}

#heroCarousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
}

.carousel-indicators {
    margin-bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
}

/* =========================
   CART BADGE
========================== */

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e60023;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* =========================
   CART
========================== */

.octo-cart {
    max-width: 1304px;
    margin: 30px auto 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    direction: rtl;
}

.octo-cart-main,
.octo-cart-summary {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}

.octo-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.octo-cart-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.octo-cart-header span {
    color: #777;
    font-size: 13px;
}

.octo-cart-items {
    padding: 0 24px;
}

.octo-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}

.octo-cart-product {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.octo-cart-product-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.octo-cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.octo-cart-product-info {
    min-width: 0;
}

.octo-cart-product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 12px;
}

.octo-cart-product-title a {
    color: #222;
    text-decoration: none;
}

.octo-cart-product-price {
    font-size: 14px;
    font-weight: 600;
}

.octo-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.octo-cart-quantity .quantity {
    margin: 0;
}

.octo-cart-quantity input.qty {
    width: 55px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.octo-cart-item-total {
    min-width: 100px;
    font-weight: 600;
}

.octo-cart-remove .remove {
    color: #888;
    text-decoration: none;
    font-size: 22px;
}

.octo-cart-update {
    padding: 20px 24px;
}

.octo-cart-update button {
    border: 0;
    background: #f5f5f5;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.octo-cart-sidebar {
    align-self: start;
}

.octo-cart-summary {
    padding: 22px;
    position: sticky;
    top: 100px;
}

.octo-cart-summary h2 {
    margin: 0 0 24px;
    font-size: 17px;
}

.octo-cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 13px;
}

.octo-cart-summary-row.discount {
    color: #16a34a;
}

.octo-cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    margin-top: 10px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.octo-cart-summary-total strong {
    font-size: 18px;
}

.octo-checkout-button {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    background: #ef4056;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.octo-cart-notice {
    margin-top: 14px;
    font-size: 11px;
    color: #888;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .octo-cart {
        grid-template-columns: 1fr;
        margin: 15px;
    }

    .octo-cart-item {
        flex-direction: column;
        align-items: stretch;
    }

    .octo-cart-item-actions {
        justify-content: space-between;
    }

    .octo-cart-summary {
        position: static;
    }
}
