/* ═══════════════════════════════════════════════
   Staudinger Cart – Amazon-style
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

/* Remove body margin/padding from theme */
body.woocommerce-cart {
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    background: #EAEDED !important;
}

html.wp-toolbar {
    padding-top: 0 !important;
}

/* WP admin bar: show correctly when logged in */
body.admin-bar.woocommerce-cart {
    background: #232F3E !important;
    padding-top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar.woocommerce-cart {
        padding-top: 46px !important;
    }
}

/* Hide theme wrappers */
body.woocommerce-cart #page,
body.woocommerce-cart .site-header,
body.woocommerce-cart .site-footer,
body.woocommerce-cart .ehp-header,
body.woocommerce-cart .ehp-footer,
body.woocommerce-cart .elementor-location-header,
body.woocommerce-cart .elementor-location-footer {
    display: none !important;
}

.spp-c-wrapper {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #EAEDED;
    color: #0F1111;
    min-height: 100vh;
}

/* ── Header ── */
.spp-c-header {
    background: #232F3E;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.spp-c-header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 10px 24px;
    display: flex; align-items: center; gap: 24px;
}
.spp-c-logo img { height: 32px; filter: brightness(0) invert(1); }
.spp-c-search { flex: 1; max-width: 520px; }
.spp-c-search form { display: flex; }
.spp-c-search input[type="search"] {
    flex: 1; border: none; padding: 8px 14px;
    font-size: 13px; border-radius: 6px 0 0 6px; outline: none;
}
.spp-c-search button {
    background: #FEBD69; border: none; border-radius: 0 6px 6px 0;
    padding: 8px 14px; cursor: pointer;
}
.spp-c-header-actions { display: flex; gap: 20px; color: #fff; font-size: 12px; align-items: center; margin-left: auto; }
.spp-c-header-link { color: #fff; text-decoration: none; cursor: pointer; }
.spp-c-small { display: block; font-size: 10px; opacity: .7; }
.spp-c-bold { display: block; font-weight: 700; }
.spp-c-cart-link { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.spp-c-cart-count { color: #FEBD69; font-weight: 800; font-size: 15px; }

/* ── Main ── */
.spp-c-main { max-width: 1280px; margin: 0 auto; padding: 20px 24px; }

/* ── Success Banner ── */
.spp-c-success {
    background: #fff; border: 2px solid #067D62; border-radius: 10px;
    padding: 18px; margin-bottom: 16px;
}
.spp-c-success-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spp-c-success-inner > svg { flex-shrink: 0; }
.spp-c-success-text { flex: 1; }
.spp-c-success-title { font-size: 15px; font-weight: 700; color: #067D62; }
.spp-c-success-product { font-size: 12px; color: #565959; }
.spp-c-success-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Buttons ── */
.spp-c-btn-primary {
    display: inline-block; padding: 10px 24px; border-radius: 20px;
    border: 1px solid #FCD200; text-decoration: none; text-align: center;
    background: linear-gradient(180deg, #FFD814, #F7CA00);
    color: #0F1111 !important; font-size: 13px; font-weight: 700; cursor: pointer;
}
.spp-c-btn-primary:hover { background: linear-gradient(180deg, #F7CA00, #E8B800); color: #0F1111 !important; }
.spp-c-btn-secondary {
    display: inline-block; padding: 10px 24px; border-radius: 20px;
    border: 1px solid #D5D9D9; text-decoration: none; text-align: center;
    background: #fff; color: #0F1111; font-size: 13px; font-weight: 600; cursor: pointer;
}
.spp-c-btn-secondary:hover { background: #F0F2F2; }
.spp-c-btn-checkout { width: 100%; display: block; margin-bottom: 14px; padding: 12px; font-size: 14px; }

/* ── Grid ── */
.spp-c-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }

/* ── Cards ── */
.spp-c-card { background: #fff; border: 1px solid #E7E7E7; border-radius: 10px; padding: 20px; margin-bottom: 16px; }

/* ── Cart Title ── */
.spp-c-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.spp-c-price-header {
    font-size: 12px; color: #565959; text-align: right;
    border-bottom: 1px solid #E7E7E7; padding-bottom: 12px; margin-bottom: 16px;
}

/* ── Empty Cart ── */
.spp-c-empty { padding: 40px 0; text-align: center; }
.spp-c-empty-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.spp-c-empty-text { font-size: 13px; color: #565959; margin-bottom: 16px; }

/* ── Cart Item ── */
.spp-c-item {
    display: flex; gap: 16px; padding-bottom: 16px; margin-bottom: 16px;
    border-bottom: 1px solid #E7E7E7;
}
.spp-c-item:last-of-type { border-bottom: none; margin-bottom: 0; }
.spp-c-item-img {
    width: 110px; height: 110px; border-radius: 8px; overflow: hidden;
    flex-shrink: 0; background: #f5f0eb; display: block;
}
.spp-c-item-img img { width: 100%; height: 100%; object-fit: cover; }
.spp-c-item-info { flex: 1; min-width: 0; }
.spp-c-item-name {
    font-size: 15px; font-weight: 600; color: #0F1111; text-decoration: none;
    display: block; margin-bottom: 3px; line-height: 1.3;
}
.spp-c-item-name:hover { color: #007185; }
.spp-c-item-subtitle { font-size: 11px; color: #565959; margin-bottom: 4px; }
.spp-c-stock { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 11px; font-weight: 500; }
.spp-c-in-stock { color: #007600; }
.spp-c-no-stock { color: #CC0C39; }
.spp-c-stock-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.spp-c-in-stock .spp-c-stock-dot { background: #007600; }
.spp-c-no-stock .spp-c-stock-dot { background: #CC0C39; }
.spp-c-item-tax { font-size: 10px; color: #565959; margin-bottom: 8px; }
.spp-c-item-price { text-align: right; flex-shrink: 0; }
.spp-c-item-amount { font-size: 17px; font-weight: 700; }
.spp-c-item-unit { font-size: 11px; color: #565959; }

/* ── Quantity Stepper ── */
.spp-c-item-controls { display: flex; align-items: center; gap: 8px; }
.spp-c-qty-stepper {
    display: flex; align-items: center;
    border: 1px solid #D5D9D9; border-radius: 8px; overflow: hidden; background: #F0F2F2;
}
.spp-c-qty-btn {
    width: 32px; height: 32px; border: none; background: none; cursor: pointer;
    font-size: 16px; display: flex; align-items: center; justify-content: center;
    color: #0F1111;
}
.spp-c-qty-btn:hover { background: #E3E6E6; }
.spp-c-qty-btn.spp-c-disabled { opacity: 0.4; pointer-events: none; }
.spp-c-qty-value {
    width: 36px; text-align: center; font-size: 13px; font-weight: 600;
    background: #fff; height: 32px; line-height: 32px;
    border-left: 1px solid #D5D9D9; border-right: 1px solid #D5D9D9;
}
.spp-c-divider { color: #D5D9D9; }
.spp-c-remove-btn {
    background: none; border: none; color: #007185; font-size: 11px;
    cursor: pointer; font-weight: 500;
}
.spp-c-remove-btn:hover { text-decoration: underline; }

/* ── Subtotal row ── */
.spp-c-subtotal-row { text-align: right; font-size: 14px; padding-top: 8px; }
.spp-c-subtotal-row strong { font-size: 17px; }

/* ── Cross-Sells ── */
.spp-c-section-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.spp-c-section-subtitle { font-size: 12px; color: #565959; margin: 0 0 14px; }
.spp-c-cross-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spp-c-cross-card {
    border: 1px solid #E7E7E7; border-radius: 10px; padding: 14px;
    display: flex; flex-direction: column; position: relative;
}
.spp-c-cross-tag {
    position: absolute; top: 8px; right: 8px;
    color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px;
}
.spp-c-cross-reason { font-size: 10px; color: #007185; font-weight: 600; margin-bottom: 6px; }
.spp-c-cross-row { display: flex; gap: 10px; margin-bottom: 8px; }
.spp-c-cross-img {
    width: 80px; height: 80px; border-radius: 6px; background: #f5f0eb;
    overflow: hidden; flex-shrink: 0;
}
.spp-c-cross-img img { width: 100%; height: 100%; object-fit: cover; }
.spp-c-cross-info { flex: 1; }
.spp-c-cross-name { font-size: 12px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.spp-c-cross-subtitle { font-size: 10px; color: #565959; line-height: 1.3; }
.spp-c-cross-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.spp-c-cross-price { font-size: 16px; font-weight: 700; }
.spp-c-cross-old { font-size: 11px; color: #565959; text-decoration: line-through; }
.spp-c-cross-btn,
.spp-c-btn-cart {
    width: 100%; padding: 8px 12px; border-radius: 20px;
    border: 1px solid #FCD200;
    background: linear-gradient(180deg, #FFD814, #F7CA00);
    color: #0F1111 !important; font-size: 11px; font-weight: 600; cursor: pointer;
    margin-top: auto; transition: all .3s;
}
.spp-c-cross-btn:hover { background: linear-gradient(180deg, #F7CA00, #E8B800); color: #0F1111 !important; }
.spp-c-cross-btn.spp-c-btn-added {
    background: linear-gradient(180deg, #007600, #005500);
    border-color: #005500; color: #fff;
}
.spp-c-addon-hint {
    display: block; text-align: center; padding: 8px 0;
    background: #F7F7F7; border-radius: 20px; font-size: 10px;
    font-weight: 500; color: #565959; margin-top: auto;
}

/* ── More Products ── */
.spp-c-more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.spp-c-more-card {
    border: 1px solid #E7E7E7; border-radius: 8px; overflow: hidden;
    text-decoration: none; color: inherit; display: block; position: relative;
    transition: box-shadow .2s;
}
.spp-c-more-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.spp-c-more-tag {
    position: absolute; top: 6px; left: 6px; z-index: 2;
    background: #CC0C39; color: #fff; font-size: 9px; font-weight: 700;
    padding: 2px 6px; border-radius: 3px;
}
.spp-c-more-img { aspect-ratio: 4/5; background: #f5f0eb; overflow: hidden; }
.spp-c-more-img img { width: 100%; height: 100%; object-fit: cover; }
.spp-c-more-body { padding: 10px; }
.spp-c-more-name { font-size: 11px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; min-height: 28px; }
.spp-c-more-subtitle { font-size: 10px; color: #565959; margin-bottom: 4px; }
.spp-c-more-price { font-size: 15px; font-weight: 700; }

/* ── Right Sidebar ── */
.spp-c-right { position: sticky; top: 20px; }
.spp-c-summary { margin-bottom: 12px; }
.spp-c-secure { font-size: 12px; color: #565959; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.spp-c-summary-rows { border-top: 1px solid #E7E7E7; padding-top: 12px; font-size: 13px; }
.spp-c-summary-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.spp-c-summary-small { font-size: 12px; color: #565959; }
.spp-c-shipping-note { color: #007185; font-size: 11px; }
.spp-c-summary-total {
    border-top: 1px solid #E7E7E7; padding-top: 8px; margin-top: 8px;
    display: flex; justify-content: space-between; font-weight: 700; font-size: 16px;
}
.spp-c-summary-note { font-size: 10px; color: #565959; text-align: right; margin-top: 2px; }

/* ── Trust Sidebar ── */
.spp-c-trust { font-size: 11px; color: #565959; }
.spp-c-trust-row {
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid #F0F0F0;
}
.spp-c-trust-row svg { flex-shrink: 0; }
.spp-c-trust-last { border-bottom: none; margin-bottom: 0; }
.spp-c-installment {
    background: #F7F9FA; border-radius: 6px; padding: 8px 10px;
    margin-top: 8px; font-size: 11px; color: #333;
}

/* ── Footer ── */
.spp-c-back-top {
    background: #37475A; padding: 12px 0; text-align: center;
    cursor: pointer; color: #fff; font-size: 12px; font-weight: 500;
    margin-top: 24px;
}
.spp-c-back-top:hover { background: #3E5168; }
.spp-c-footer {
    background: #232F3E; color: rgba(255,255,255,.5); padding: 16px 24px;
    text-align: center; font-size: 11px;
}

/* ── Responsive ── */
@media (max-width: 780px) {
    .spp-c-header-inner { padding: 10px 12px; gap: 10px; }
    .spp-c-logo img { height: 24px; }
    .spp-c-header-link { display: none; }
    .spp-c-main { padding: 12px; }
    .spp-c-grid { grid-template-columns: 1fr; }
    .spp-c-right { position: static; }
    .spp-c-card { padding: 14px; }
    .spp-c-item { gap: 10px; flex-wrap: wrap; }
    .spp-c-item-img { width: 80px; height: 80px; }
    .spp-c-item-name { font-size: 14px; }
    .spp-c-cross-grid { grid-template-columns: 1fr; }
    .spp-c-more-grid { grid-template-columns: repeat(2, 1fr); }
    .spp-c-success { padding: 14px; }
    .spp-c-success-inner { gap: 10px; }
    .spp-c-success-actions { width: 100%; }
    .spp-c-success-actions a { flex: 1; text-align: center; padding: 10px 12px; }
}

/* ── Hide WooCommerce default cart elements ── */
.woocommerce-cart-form,
.cart_totals,
.cross-sells,
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.return-to-shop {
    display: none !important;
}
