/* Smart Cart & Checkout Pro v2.0 - Cart CSS - Icy Glassmorphism */

/* ══ CART FORM ══ */
.scc-cart-form { position: relative; }

/* ══ CART HEADER ══ */
.scc-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid rgba(0,180,216,0.15);
    flex-wrap: wrap;
}
.scc-cart-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.scc-cart-title-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--scc-primary, #00b4d8), #0077b6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0,180,216,0.4);
}
.scc-cart-title-icon svg { width: 26px; height: 26px; stroke: #fff; }
.scc-cart-title-text h2 {
    margin: 0 0 2px;
    font-size: 24px;
    font-weight: 800;
    color: #0d1b2a;
    letter-spacing: -0.02em;
}
.scc-cart-title-text span { font-size: 13px; color: #64748b; font-weight: 500; }
.scc-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--scc-primary, #00b4d8), #0077b6);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    padding: 4px 12px;
    box-shadow: 0 3px 12px rgba(0,180,216,0.35);
    animation: scc-badge-bounce 2.5s ease-in-out infinite;
}

/* ══ DESKTOP TABLE ══ */
.scc-desktop-cart { display: none; }
@media (min-width: 769px) {
    .scc-desktop-cart { display: block; }
    .scc-mobile-cart  { display: none !important; }
}

.scc-desktop-cart table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 0;
}
.scc-desktop-cart table.shop_table thead th {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 16px 12px;
    border: none;
    background: none;
}
.scc-desktop-cart table.shop_table tr.cart_item {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,180,216,0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1.5px solid rgba(255,255,255,0.85);
}
.scc-desktop-cart table.shop_table tr.cart_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,180,216,0.18);
}
.scc-desktop-cart table.shop_table tr.cart_item td {
    padding: 16px;
    border: none;
    vertical-align: middle;
    font-size: 14px;
    color: #0d1b2a;
}
.scc-desktop-cart table.shop_table tr.cart_item td:first-child { border-radius: 16px 0 0 16px; }
.scc-desktop-cart table.shop_table tr.cart_item td:last-child  { border-radius: 0 16px 16px 0; }

.scc-desktop-cart .product-thumbnail img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.scc-desktop-cart .product-name a {
    font-weight: 700;
    color: #0d1b2a;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
}
.scc-desktop-cart .product-name a:hover { color: var(--scc-primary, #00b4d8); }
.scc-desktop-cart .product-name .variation { margin-top: 4px; font-size: 12px; color: #64748b; }
.scc-desktop-cart .product-price .woocommerce-Price-amount { font-weight: 600; color: #64748b; }
.scc-desktop-cart .product-subtotal .woocommerce-Price-amount { font-weight: 800; color: var(--scc-primary, #00b4d8); font-size: 16px; }

.scc-desktop-cart .product-remove a {
    width: 34px;
    height: 34px;
    background: rgba(247,37,133,0.1);
    border: 1.5px solid rgba(247,37,133,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f72585;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 700;
    line-height: 1;
}
.scc-desktop-cart .product-remove a:hover {
    background: rgba(247,37,133,0.18);
    transform: scale(1.1);
}

/* ══ QTY BUTTONS (Desktop) ══ */
.scc-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(0,180,216,0.25);
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0,180,216,0.08);
}
.scc-qty-btn {
    width: 36px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--scc-primary, #00b4d8);
    font-size: 18px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
}
.scc-qty-btn:hover {
    background: rgba(0,180,216,0.12);
    color: #0077b6;
}
.scc-qty-input {
    width: 44px;
    height: 38px;
    border: none;
    border-left: 1.5px solid rgba(0,180,216,0.15);
    border-right: 1.5px solid rgba(0,180,216,0.15);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #0d1b2a;
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
    font-family: var(--scc-font, 'Inter', sans-serif);
}
.scc-qty-input::-webkit-inner-spin-button,
.scc-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ══ CART ACTIONS ══ */
.scc-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.scc-coupon-row { display: flex; gap: 10px; flex-wrap: wrap; }
.scc-coupon-input {
    padding: 11px 16px;
    border: 1.5px solid rgba(0,180,216,0.25);
    border-radius: var(--scc-radius, 14px);
    font-size: 14px;
    font-family: var(--scc-font, 'Inter', sans-serif);
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
    color: #0d1b2a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.scc-coupon-input:focus {
    border-color: var(--scc-primary, #00b4d8);
    box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}
.scc-btn {
    padding: 11px 24px;
    border: none;
    border-radius: var(--scc-radius, 14px);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: var(--scc-font, 'Inter', sans-serif);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
}
.scc-btn svg { width: 17px; height: 17px; }
.scc-btn-outline {
    background: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(0,180,216,0.3);
    color: var(--scc-primary, #00b4d8);
    backdrop-filter: blur(8px);
}
.scc-btn-outline:hover {
    background: rgba(0,180,216,0.08);
    border-color: var(--scc-primary, #00b4d8);
    transform: translateY(-1px);
}
.scc-btn-primary {
    background: linear-gradient(135deg, var(--scc-primary, #00b4d8), #0077b6);
    color: var(--scc-btn-text, #fff);
    box-shadow: 0 4px 18px rgba(0,180,216,0.4);
}
.scc-btn-primary:hover {
    box-shadow: 0 8px 28px rgba(0,180,216,0.55);
    transform: translateY(-2px);
}
.scc-btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,180,216,0.3); }
.scc-btn-checkout {
    padding: 14px 32px;
    font-size: 16px;
    background: linear-gradient(135deg, var(--scc-primary, #00b4d8), #0077b6);
    color: var(--scc-btn-text, #fff);
    border-radius: var(--scc-radius, 14px);
    box-shadow: 0 6px 24px rgba(0,180,216,0.5);
    animation: scc-pulse-glow 2.5s ease-in-out infinite;
}
.scc-btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,180,216,0.6);
    animation: none;
    text-decoration: none;
    color: var(--scc-btn-text, #fff);
}

/* ══ CART TOTALS ══ */
.cart_totals {
    background: rgba(255,255,255,0.68);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255,255,255,0.9);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 8px 40px rgba(0,180,216,0.15), 0 1px 0 rgba(255,255,255,0.9) inset;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}
.cart_totals::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--scc-primary, #00b4d8), #0077b6, var(--scc-accent, #f72585));
    border-radius: 22px 22px 0 0;
}
.cart_totals h2 {
    font-size: 18px;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals table tr { border-bottom: 1px solid rgba(0,180,216,0.1); }
.cart_totals table tr:last-child { border-bottom: none; }
.cart_totals table th,
.cart_totals table td { padding: 13px 0; font-size: 14px; vertical-align: middle; border: none; }
.cart_totals table th { color: #64748b; font-weight: 600; }
.cart_totals table td { color: #0d1b2a; font-weight: 600; text-align: right; }
.cart_totals .order-total th { font-size: 15px; font-weight: 700; color: #0d1b2a; }
.cart_totals .order-total td { font-size: 20px; font-weight: 800; color: var(--scc-primary, #00b4d8); }
.cart_totals .shipping th { color: #64748b; }
.cart_totals .woocommerce-shipping-destination { font-size: 12px; color: #94a3b8; margin-top: 3px; }

.cart_totals .wc-proceed-to-checkout { margin-top: 20px; }
.cart_totals .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--scc-primary, #00b4d8), #0077b6);
    color: var(--scc-btn-text, #fff) !important;
    border-radius: var(--scc-radius, 14px);
    font-size: 17px;
    font-weight: 800;
    font-family: var(--scc-font, 'Inter', sans-serif);
    text-decoration: none;
    box-shadow: 0 6px 28px rgba(0,180,216,0.5);
    transition: all 0.25s ease;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
}
.cart_totals .wc-proceed-to-checkout .checkout-button:hover {
    box-shadow: 0 12px 40px rgba(0,180,216,0.65);
    transform: translateY(-3px);
}

/* ══ CROSS-SELLS ══ */
.cross-sells { margin-top: 40px; }
.cross-sells h2 { font-size: 18px; font-weight: 800; color: #0d1b2a; margin-bottom: 20px; }

/* ══ MOBILE CARDS ══ */
/* Default: mobile cart hidden, desktop visible */
.scc-mobile-cart { display: none; }

/* On mobile: show card view, hide table */
@media (max-width: 768px) {
    .scc-desktop-cart { display: none !important; }
    .scc-mobile-cart  { display: block !important; }
}

.scc-cart-card {
    display: flex;
    gap: 14px;
    background: rgba(255,255,255,0.68);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(255,255,255,0.85);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(0,180,216,0.1), 0 1px 0 rgba(255,255,255,0.9) inset;
    position: relative;
    animation: scc-slide-up 0.4s ease;
    transition: box-shadow 0.2s, transform 0.2s;
}
.scc-cart-card:hover { box-shadow: 0 8px 32px rgba(0,180,216,0.2); transform: translateY(-2px); }
.scc-cart-card.is-removing { opacity:0; transform:translateX(100px); transition:all 0.4s ease; }

.scc-card-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: rgba(247,37,133,0.1);
    border: 1.5px solid rgba(247,37,133,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f72585;
    font-size: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    line-height: 1;
    z-index: 2;
}
.scc-card-remove:hover { background: rgba(247,37,133,0.18); transform: scale(1.1); color: #f72585; }

.scc-card-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.scc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.scc-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f7ff, #b3edff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00b4d8;
}

.scc-card-body { flex: 1; min-width: 0; padding-right: 36px; }
.scc-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #0d1b2a;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}
.scc-card-name:hover { color: var(--scc-primary, #00b4d8); }
.scc-card-meta { font-size: 12px; color: #64748b; margin-bottom: 10px; }
.scc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}
.scc-card-price { font-size: 16px; font-weight: 800; color: var(--scc-primary, #00b4d8); }
.scc-card-qty .scc-qty-wrap { border-radius: 10px; }
.scc-card-qty .scc-qty-btn { width: 32px; height: 34px; font-size: 16px; }
.scc-card-qty .scc-qty-input { width: 38px; height: 34px; font-size: 14px; }

/* ══ LOADING OVERLAY ══ */
.scc-updating-overlay {
    position: fixed;
    inset: 0;
    background: rgba(224,247,255,0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.scc-updating-overlay.active { display: flex; }
.scc-updating-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0,180,216,0.2);
    border-top-color: var(--scc-primary, #00b4d8);
    border-radius: 50%;
    animation: scc-spin 0.8s linear infinite;
}

/* ══ BUY TOGETHER ══ */
.scc-buy-together {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255,255,255,0.85);
    border-radius: 22px;
    padding: 28px;
    margin-top: 32px;
    box-shadow: 0 8px 40px rgba(0,180,216,0.12), 0 1px 0 rgba(255,255,255,0.9) inset;
    animation: scc-slide-up 0.5s ease;
}
.scc-bt-heading {
    font-size: 18px;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}
.scc-bt-heading svg { width: 20px; height: 20px; stroke: var(--scc-accent, #f72585); }

.scc-bt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.scc-bt-card {
    background: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255,255,255,0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,180,216,0.08);
    transition: transform 0.22s, box-shadow 0.22s;
}
.scc-bt-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,180,216,0.2); }
.scc-bt-img {
    display: block;
    height: 140px;
    overflow: hidden;
}
.scc-bt-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.scc-bt-card:hover .scc-bt-img img { transform: scale(1.06); }
.scc-bt-info { padding: 14px; }
.scc-bt-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0d1b2a;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 8px;
}
.scc-bt-name:hover { color: var(--scc-primary, #00b4d8); }
.scc-bt-price { font-size: 15px; font-weight: 800; color: var(--scc-primary, #00b4d8); margin-bottom: 12px; }
.scc-bt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 14px;
    background: linear-gradient(135deg, var(--scc-primary, #00b4d8), #0077b6);
    color: var(--scc-btn-text, #fff);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: var(--scc-font, 'Inter', sans-serif);
    box-shadow: 0 3px 12px rgba(0,180,216,0.35);
}
.scc-bt-btn:hover { box-shadow: 0 6px 20px rgba(0,180,216,0.5); transform: translateY(-1px); color: var(--scc-btn-text, #fff); }
.scc-bt-btn svg { width: 15px; height: 15px; }
.scc-bt-btn.added { background: linear-gradient(135deg, var(--scc-success, #06d6a0), #059669); }

/* ══ STICKY BAR ══ */
.scc-sticky-bar {
    position: fixed;
    bottom: -90px;
    left: 0;
    right: 0;
    z-index: 9990;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 12px 8px;
}
.scc-sticky-bar.scc-sticky--shadow .scc-sticky-inner {
    box-shadow: 0 -4px 32px rgba(0,180,216,0.2), 0 -1px 0 rgba(255,255,255,0.9) inset;
}
.scc-sticky-bar.scc-sticky-visible { bottom: 0; }

.scc-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--scc-sticky-bg, rgba(255,255,255,0.85));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(255,255,255,0.9);
    border-radius: 18px;
    padding: 14px 18px;
    max-width: 600px;
    margin: 0 auto;
}

.scc-sticky-back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}
.scc-sticky-back:hover { color: var(--scc-primary, #00b4d8); }
.scc-sticky-back svg { width: 18px; height: 18px; }

.scc-sticky-total { text-align: center; }
.scc-sticky-total-label { display: block; font-size: 11px; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.scc-sticky-total-amount { font-size: 17px; font-weight: 800; color: #0d1b2a; }

.scc-sticky-checkout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--scc-primary, #00b4d8), #0077b6);
    color: var(--scc-btn-text, #fff);
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(0,180,216,0.4);
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--scc-font, 'Inter', sans-serif);
}
.scc-sticky-checkout-btn:hover { box-shadow: 0 8px 24px rgba(0,180,216,0.55); transform: translateY(-1px); color: var(--scc-btn-text, #fff); }
.scc-sticky-checkout-btn svg { width: 16px; height: 16px; }

/* Only show on mobile */
@media (min-width: 769px) { .scc-sticky-bar { display: none; } }

/* ══ EMPTY CART ══ */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}
.return-to-shop .button {
    background: linear-gradient(135deg, var(--scc-primary, #00b4d8), #0077b6) !important;
    color: var(--scc-btn-text, #fff) !important;
    border-radius: var(--scc-radius, 14px) !important;
    padding: 13px 30px !important;
    font-weight: 700 !important;
    font-family: var(--scc-font, 'Inter', sans-serif) !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(0,180,216,0.4) !important;
    text-decoration: none !important;
}

/* ══ CART LAYOUT ══ */
.scc-cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) { .scc-cart-layout { grid-template-columns: 1fr; } }

/* WooCommerce default resets */
.woocommerce-cart .woocommerce { position: relative; }
table.shop_table { border: none !important; }
table.shop_table td, table.shop_table th { border: none !important; }
