/*
 * viewcart.tpl — configureproduct ile aynı düzen (container, özet kartı, mobil).
 * Ortak stiller: configureproduct.css (.configure-product-orderform, .config-intro-box, #orderSummary …)
 */

#order-standard_cart.configure-product-orderform,
#order-standard_cart.configure-product-orderform.viewcart-page {
    overflow-x: clip;
    max-width: 100%;
}

/* Kategoriler (cart-sidebar) + İşlemler / secondary sidebar (sidebar-collapsed) — DOM korunur */
#order-standard_cart.configure-product-orderform.viewcart-page .cart-sidebar,
#order-standard_cart.configure-product-orderform.viewcart-page .sidebar-collapsed {
    display: none !important;
}

#order-standard_cart.configure-product-orderform.viewcart-page .configure-product-container > .row > .cart-sidebar {
    margin-bottom: 0;
}

/*
 * Ürün/Seçenek kartı — tek kutu.
 * style.css (#order-standard_cart .view-cart-items-header mavi şerit, .item zebra, kalın alt çizgi)
 * burada şeffaf/ayırıcıya indirgenir; iç içe ikinci “kutu” hissi kalkar.
 */
#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card {
    max-width: 100%;
    min-width: 0;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-lineitems-body {
    min-width: 0;
    padding: 12px 14px 14px;
}

@media (min-width: 576px) {
    #order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-lineitems-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .config-intro-title {
    margin-bottom: 0;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-items-header {
    margin: 0 0 10px !important;
    padding: 0 0 10px !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #6b7280 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #e9edf3;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-items {
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-items .item {
    margin: 0 !important;
    padding: 14px 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #e9edf3;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-items .item:last-child {
    border-bottom: 0;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-items .item:nth-child(even) {
    background: transparent !important;
    background-color: transparent !important;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .panel,
#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .table,
#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .cart-item,
#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .inner-box {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 0;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-items .item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2a37;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-items .item-group {
    font-size: 0.875rem;
    color: #6b7280;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-items .item-domain {
    color: #4b5563;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-items .item-price span {
    font-size: 1.05rem;
}

#order-standard_cart.configure-product-orderform.viewcart-page .product-options-card .view-cart-items .item-price .cycle {
    font-size: 0.85rem;
    color: #6b7280;
}

#order-standard_cart.configure-product-orderform.viewcart-page .empty-cart {
    margin: 12px 0 0;
    text-align: right;
}

#order-standard_cart.configure-product-orderform.viewcart-page .empty-cart .btn {
    border-radius: 6px;
}

/* Üst satır: sidebar + cart-body float’ları kapat, taşmayı önle */
#order-standard_cart.configure-product-orderform .configure-product-container > .row > .cart-sidebar,
#order-standard_cart.configure-product-orderform .configure-product-container > .row > .cart-body {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

#order-standard_cart.configure-product-orderform .configure-product-container > .row > .cart-sidebar {
    margin-bottom: 12px;
}

/* Sepet satırları — uzun metin / fiyat taşması */
#order-standard_cart.configure-product-orderform .view-cart-items .item,
#order-standard_cart.configure-product-orderform .view-cart-items-header .row {
    min-width: 0;
}

#order-standard_cart.configure-product-orderform .view-cart-items .item-title,
#order-standard_cart.configure-product-orderform .view-cart-items .item-domain,
#order-standard_cart.configure-product-orderform .view-cart-items .item-group,
#order-standard_cart.configure-product-orderform .view-cart-items small {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Özet altı: checkout / express */
#order-standard_cart.configure-product-orderform .view-cart-summary-actions {
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
}

#order-standard_cart.configure-product-orderform .view-cart-summary-actions .express-checkout-buttons {
    margin-bottom: 12px;
}

/* Promosyon / indirim kodu + vergi sekmeleri — DOM ve formlar durur, yalnızca görünmez */
#order-standard_cart.configure-product-orderform .view-cart-promo-ui-off {
    display: none !important;
}

@media (max-width: 991.98px) {
    /* Sticky kapatma: configureproduct.css ile aynı; özet alta + boşluk */
    #order-standard_cart.configure-product-orderform #scrollingPanelContainer.secondary-cart-sidebar {
        margin-top: 20px;
    }

    #order-standard_cart.configure-product-orderform .view-cart-summary-actions .btn-checkout,
    #order-standard_cart.configure-product-orderform .view-cart-summary-actions .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #order-standard_cart.configure-product-orderform .view-cart-summary-actions .text-right {
        text-align: center !important;
    }
}

@media (max-width: 575.98px) {
    #order-standard_cart.configure-product-orderform .configure-product-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    #order-standard_cart.configure-product-orderform .view-cart-items-header {
        font-size: 0.85rem;
    }

    #order-standard_cart.configure-product-orderform .view-cart-items .item-price {
        text-align: right;
        word-break: break-word;
    }

    #order-standard_cart.configure-product-orderform.viewcart-page .view-cart-lineitems-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    #order-standard_cart.configure-product-orderform.viewcart-page .view-cart-lineitems-card .row {
        margin-left: 0;
        margin-right: 0;
    }

    #order-standard_cart.configure-product-orderform.viewcart-page .view-cart-lineitems-card [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
        min-width: 0;
    }
}
