/* SC-SOKET — Sepetim (WooCommerce Cart block). Loaded only on the cart page; scoped to body.sa-cart-page. */

body.sa-cart-page,
body.sa-cart-page #page,
body.sa-cart-page #content {
    background: #0b0d0f;
    color: #e5e7eb;
}
body.sa-cart-page {
    background: #0b0d0f !important;
}
body.sa-cart-page .site-content > .ast-container {
    width: 100%;
    max-width: 1440px;
    padding-inline: 28px;
    box-sizing: border-box;
    margin-inline: auto;
}
body.sa-cart-page #primary {
    float: none;
    width: 100%;
    margin: 0 auto;
    padding-block: 28px 64px;
}
body.sa-cart-page .entry-header {
    margin: 0 0 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #30343a;
}
body.sa-cart-page .entry-title {
    position: relative;
    margin: 0;
    padding-left: 16px;
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
}
body.sa-cart-page .entry-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: .14em;
    bottom: .14em;
    width: 4px;
    background: #e91e32;
    border-radius: 2px;
}
body.sa-cart-page #colophon,
body.sa-cart-page #colophon .site-below-footer-wrap {
    color: #b9bec6;
    background: #0b0d0f;
    border-color: #34383e;
}
body.sa-cart-page #colophon a {
    color: #e5e7eb;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
/* Astra gives .alignwide negative side margins; the cart must stay inside the page gutter. */
body.sa-cart-page .entry-content .wp-block-woocommerce-cart,
body.sa-cart-page .entry-content .wp-block-woocommerce-cart.alignwide {
    width: auto;
    max-width: none;
    margin: 0 !important;
    color: #e5e7eb;
}
body.sa-cart-page .wc-block-cart.wc-block-components-sidebar-layout {
    margin: 0;
}
/* Wide container: items + summary side by side (WooCommerce's own 65/35 split, our gutter). */
body.sa-cart-page .wc-block-cart.is-large .wc-block-components-main {
    width: 65%;
    min-width: 0;
    padding: 0 24px 0 0;
    box-sizing: border-box;
}
body.sa-cart-page .wc-block-cart.is-large .wc-block-cart__sidebar {
    width: 35%;
    box-sizing: border-box;
}
/* Narrower containers (WooCommerce adds is-medium / is-small / is-mobile): stack, summary below items. */
body.sa-cart-page .wc-block-cart:is(.is-medium, .is-small, .is-mobile) {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 18px;
}
body.sa-cart-page .wc-block-cart:is(.is-medium, .is-small, .is-mobile) .wc-block-components-main,
body.sa-cart-page .wc-block-cart:is(.is-medium, .is-small, .is-mobile) .wc-block-cart__sidebar {
    width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}
body.sa-cart-page .wc-block-cart:is(.is-medium, .is-small, .is-mobile) .wc-block-components-main {
    padding: 0;
}
body.sa-cart-page .wc-block-cart:is(.is-medium, .is-small, .is-mobile) .wp-block-woocommerce-cart-totals-block {
    position: static;
}
/* Tablet: WooCommerce still reports "is-large" here, but a 250px summary is too cramped — stack instead. */
@media (max-width: 921px) {
    body.sa-cart-page .wc-block-cart.wc-block-components-sidebar-layout {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 18px;
    }
    body.sa-cart-page .wc-block-cart.wc-block-components-sidebar-layout .wc-block-components-main,
    body.sa-cart-page .wc-block-cart.wc-block-components-sidebar-layout .wc-block-cart__sidebar {
        width: 100%;
        min-width: 0;
        margin: 0;
    }
    body.sa-cart-page .wc-block-cart.wc-block-components-sidebar-layout .wc-block-components-main {
        padding: 0;
    }
    /* The sidebar IS the summary card: keep its card padding when stacked. */
    body.sa-cart-page .wc-block-cart.wc-block-components-sidebar-layout .wc-block-cart__sidebar.wp-block-woocommerce-cart-totals-block {
        position: static;
        padding: 20px;
    }
}

/* ── Items panel ────────────────────────────────────────────────────────── */
body.sa-cart-page .wc-block-cart .wc-block-cart-items {
    display: block;
    width: 100%;
    margin: 0;
    padding: clamp(14px, 2vw, 22px);
    background: #15181c;
    border: 1px solid #34383e;
    border-radius: 12px;
    box-sizing: border-box;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-items thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-items tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    grid-template-areas: "image product total";
    align-items: start;
    gap: 6px 18px;
    padding: 14px;
    background: #1b1e23;
    border: 1px solid #30343a;
    border-left: 3px solid #e91e32;
    border-radius: 10px;
    transition: border-color .2s ease;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row:hover {
    border-color: #4a4f57;
    border-left-color: #e91e32;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row > td {
    display: block;
    padding: 0;
    border: 0;
    background: none;
}
/* Explicit grid placement (WooCommerce's own container-query rules set grid lines with high specificity). */
body.sa-cart-page .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
}
body.sa-cart-page .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
}
body.sa-cart-page .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 3;
    grid-row: 1;
    padding: 0;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-item__image {
    grid-area: image;
    width: 104px;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-item__image a {
    display: block;
    padding: 6px;
    background: #f4f5f6;
    border-radius: 8px;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-item__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 4px;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-item__product {
    grid-area: product;
    min-width: 0;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-item__wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
body.sa-cart-page .wc-block-cart .wc-block-components-product-name {
    max-width: 100%;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}
body.sa-cart-page .wc-block-cart .wc-block-components-product-name:hover,
body.sa-cart-page .wc-block-cart .wc-block-components-product-name:focus-visible {
    color: #ff4051;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-item__prices,
body.sa-cart-page .wc-block-cart .wc-block-cart-item__prices .wc-block-components-product-price {
    margin: 0;
    color: #afb6c0;
    font-size: 13px;
    font-weight: 600;
}
body.sa-cart-page .wc-block-cart .wc-block-components-product-metadata {
    margin: 0;
    color: #8f96a0;
    font-size: 12px;
}
body.sa-cart-page .wc-block-cart .wc-block-components-product-metadata:empty {
    display: none;
}
body.sa-cart-page .wc-block-cart .wc-block-components-product-badge {
    color: #ffd7db;
    background: #3a1a1f;
    border-color: #6b2630;
}

/* Quantity + remove */
body.sa-cart-page .wc-block-cart .wc-block-cart-item__quantity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
body.sa-cart-page .wc-block-cart .wc-block-components-quantity-selector {
    display: inline-flex;
    width: auto;
    min-width: 122px;
    height: 42px;
    margin: 0;
    background: #23272d;
    border: 1px solid #4b515a;
    border-radius: 8px;
    overflow: hidden;
}
body.sa-cart-page .wc-block-cart .wc-block-components-quantity-selector::after {
    display: none;
}
body.sa-cart-page .wc-block-cart .wc-block-components-quantity-selector__button {
    min-width: 40px;
    margin: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    opacity: 1;
    cursor: pointer;
}
body.sa-cart-page .wc-block-cart .wc-block-components-quantity-selector__button:hover:not(:disabled),
body.sa-cart-page .wc-block-cart .wc-block-components-quantity-selector__button:focus-visible {
    color: #fff;
    background: #e91e32;
}
body.sa-cart-page .wc-block-cart .wc-block-components-quantity-selector__button:disabled {
    color: #5d636c;
    cursor: not-allowed;
}
body.sa-cart-page .wc-block-cart .wc-block-components-quantity-selector__input {
    width: 42px;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    color: #fff;
    background: #1b1e23;
    border: 0;
    border-inline: 1px solid #4b515a;
    border-radius: 0;
    box-shadow: none;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}
body.sa-cart-page .wc-block-cart .wc-block-components-quantity-selector__input:focus {
    outline: 2px solid #ff4051;
    outline-offset: -2px;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-item__remove-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    color: #afb6c0;
    background: transparent;
    border: 1px solid #3a3f46;
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-item__remove-link svg {
    fill: currentColor;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-item__remove-link:hover,
body.sa-cart-page .wc-block-cart .wc-block-cart-item__remove-link:focus-visible {
    color: #ff4051;
    background: rgba(233, 30, 50, .1);
    border-color: #e91e32;
}

/* Line total */
body.sa-cart-page .wc-block-cart .wc-block-cart-item__total {
    grid-area: total;
    text-align: right;
    white-space: nowrap;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-item__total::before {
    content: 'Toplam';
    display: block;
    margin-bottom: 4px;
    color: #8f96a0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
body.sa-cart-page .wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price,
body.sa-cart-page .wc-block-cart .wc-block-cart-item__total .wc-block-components-formatted-money-amount {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

/* ── Summary card ───────────────────────────────────────────────────────── */
body.sa-cart-page .wc-block-cart .wc-block-cart__sidebar {
    min-width: 0;
    padding: 0;
}
body.sa-cart-page .wc-block-cart .wp-block-woocommerce-cart-totals-block {
    position: sticky;
    top: 24px;
    padding: clamp(18px, 2.2vw, 26px);
    color: #e5e7eb;
    background: #15181c;
    border: 1px solid rgba(237, 32, 50, .28);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
body.sa-cart-page .wc-block-cart .wc-block-cart__totals-title {
    display: block;
    margin: 0 0 4px;
    padding: 0;
    color: #fff;
    border: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}
body.sa-cart-page .wc-block-cart .wc-block-components-totals-wrapper {
    padding: 12px 0;
    border-color: #30343a;
}
body.sa-cart-page .wc-block-cart .wc-block-components-totals-wrapper:empty {
    display: none;
}
body.sa-cart-page .wc-block-cart .wc-block-components-totals-item {
    color: #c2c8d0;
    font-size: 14px;
}
body.sa-cart-page .wc-block-cart .wc-block-components-totals-item__value {
    color: #fff;
    font-weight: 700;
}
body.sa-cart-page .wc-block-cart .wc-block-components-totals-item__description {
    color: #8f96a0;
    font-size: 12px;
}
body.sa-cart-page .wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.sa-cart-page .wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}
body.sa-cart-page .wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 24px;
}

/* Coupon (WooCommerce's own panel + form) */
body.sa-cart-page .wc-block-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
    margin: 0;
    padding: 4px 0;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
body.sa-cart-page .wc-block-cart .wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
    color: #ff4051;
}
body.sa-cart-page .wc-block-cart .wc-block-components-panel__button-icon {
    fill: currentColor;
}
body.sa-cart-page .wc-block-cart .wc-block-components-totals-coupon__form {
    gap: 8px;
    margin-top: 10px;
}
body.sa-cart-page .wc-block-cart .wc-block-components-text-input input {
    color: #fff;
    background: #23272d;
    border: 1px solid #4b515a;
    border-radius: 8px;
}
body.sa-cart-page .wc-block-cart .wc-block-components-text-input input:focus {
    border-color: #e91e32;
    box-shadow: 0 0 0 1px #e91e32;
    outline: none;
}
body.sa-cart-page .wc-block-cart .wc-block-components-text-input label {
    color: #9aa1aa;
}
body.sa-cart-page .wc-block-cart .wc-block-components-totals-coupon__button,
body.sa-cart-page .wc-block-cart .wc-block-components-totals-coupon__button:not([disabled]) {
    min-height: 48px;
    padding-inline: 16px;
    color: #fff;
    background: #2a2e34;
    border: 1px solid #4b515a;
    border-radius: 8px;
    font-weight: 700;
}
body.sa-cart-page .wc-block-cart .wc-block-components-totals-coupon__button:not([disabled]):hover {
    background: #e91e32;
    border-color: #e91e32;
}
body.sa-cart-page .wc-block-cart .wc-block-components-chip {
    color: #fff;
    background: #2a2e34;
    border: 1px solid #4b515a;
}

/* Proceed to checkout */
body.sa-cart-page .wc-block-cart .wc-block-cart__submit {
    margin: 18px 0 0;
}
body.sa-cart-page .wc-block-cart .wc-block-cart__submit-button.wc-block-components-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    color: #fff;
    background: #e91e32;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(233, 30, 50, .22);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .01em;
    text-decoration: none;
}
body.sa-cart-page .wc-block-cart .wc-block-cart__submit-button.wc-block-components-button:hover,
body.sa-cart-page .wc-block-cart .wc-block-cart__submit-button.wc-block-components-button:focus-visible {
    color: #fff;
    background: #b91527;
}
body.sa-cart-page .wc-block-cart .wc-block-cart__submit-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
body.sa-cart-page .wc-block-cart .wc-block-cart__payment-options:empty {
    display: none;
}

/* Cross-sells (only rendered when products define cross-sells) */
body.sa-cart-page .wp-block-woocommerce-cart .wp-block-woocommerce-product-collection {
    margin-top: 28px;
    color: #e5e7eb;
}
body.sa-cart-page .wp-block-woocommerce-cart .wp-block-woocommerce-product-collection .wp-block-heading {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

/* ── Notices (block cart) ───────────────────────────────────────────────── */
body.sa-cart-page .wc-block-components-notice-banner {
    color: #f1f2f4;
    background: #1b1e23;
    border: 1px solid #3a3f46;
    border-left-width: 4px;
    border-radius: 8px;
    font-size: 14px;
    overflow-wrap: anywhere;
}
body.sa-cart-page .wc-block-components-notice-banner > svg {
    fill: currentColor;
    background: transparent;
}
body.sa-cart-page .wc-block-components-notice-banner.is-error {
    border-color: #6b2630;
    border-left-color: #e91e32;
    background: #241417;
}
body.sa-cart-page .wc-block-components-notice-banner.is-success {
    border-color: #1f5137;
    border-left-color: #3ccf7f;
    background: #12231a;
}
body.sa-cart-page .wc-block-components-notice-banner.is-info,
body.sa-cart-page .wc-block-components-notice-banner.is-warning {
    border-color: #4b515a;
    border-left-color: #ffb547;
}
body.sa-cart-page .wc-block-components-notice-banner a {
    color: #fff;
    text-decoration: underline;
}

/* ── Empty cart ─────────────────────────────────────────────────────────── */
body.sa-cart-page .sa-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 620px;
    margin: 12px auto 0;
    padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
    text-align: center;
    background: #15181c;
    border: 1px solid #34383e;
    border-top: 3px solid #e91e32;
    border-radius: 14px;
}
body.sa-cart-page .sa-empty-cart__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 20px;
    color: #ff4051;
    background: rgba(233, 30, 50, .1);
    border: 1px solid rgba(233, 30, 50, .35);
    border-radius: 50%;
}
body.sa-cart-page .sa-empty-cart__title.wp-block-heading {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    letter-spacing: -.01em;
}
body.sa-cart-page .sa-empty-cart__title::before {
    display: none;
}
body.sa-cart-page .sa-empty-cart__text {
    max-width: 440px;
    margin: 0 0 24px;
    color: #afb6c0;
    font-size: 15px;
    line-height: 1.6;
}
body.sa-cart-page .sa-empty-cart__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
body.sa-cart-page .sa-empty-cart__cta,
body.sa-cart-page .sa-empty-cart__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
body.sa-cart-page .sa-empty-cart__cta {
    color: #fff;
    background: #e91e32;
    box-shadow: 0 6px 20px rgba(233, 30, 50, .22);
}
body.sa-cart-page .sa-empty-cart__cta:hover,
body.sa-cart-page .sa-empty-cart__cta:focus-visible {
    color: #fff;
    background: #b91527;
}
body.sa-cart-page .sa-empty-cart__secondary {
    color: #fff;
    background: #24282e;
    border: 1px solid #4b515a;
}
body.sa-cart-page .sa-empty-cart__secondary:hover,
body.sa-cart-page .sa-empty-cart__secondary:focus-visible {
    color: #fff;
    border-color: #e91e32;
}
body.sa-cart-page .sa-empty-cart a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    body.sa-cart-page .site-content > .ast-container {
        padding-inline: 14px;
    }
    body.sa-cart-page #primary {
        padding-block: 18px 44px;
    }
    body.sa-cart-page .wc-block-cart .wc-block-cart-items {
        padding: 10px;
    }
    body.sa-cart-page .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row {
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-areas:
            "image product"
            "total total";
        gap: 10px 14px;
        padding: 12px;
    }
    body.sa-cart-page .wc-block-cart .wc-block-cart-item__image {
        width: 76px;
    }
    body.sa-cart-page .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid #30343a;
        text-align: left;
    }
    body.sa-cart-page .wc-block-cart .wc-block-cart-item__total::before {
        margin: 0;
    }
    body.sa-cart-page .wc-block-cart .wp-block-woocommerce-cart-totals-block {
        position: static;
    }
    body.sa-cart-page .sa-empty-cart__actions > a {
        flex: 1 1 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.sa-cart-page .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row {
        transition: none;
    }
}
