/**
 * Doggos Fast Checkout - Cart & Side Cart Styles
 * @version 2.9.0 - Snappy Add to Cart
 */

/* CSS Variables */
:root {
    --dfc-white: #fff;
    --dfc-bg: #f8f9fa;
    --dfc-border: #e5e7eb;
    --dfc-text: #1f2937;
    --dfc-text-light: #6b7280;
    --dfc-success: #16a34a;
    --dfc-error: #dc2626;
    --dfc-primary-hover: #234012;
}

/* Single Product AJAX Add-to-Cart Button */
.single-product .single_add_to_cart_button.loading {
    position: relative;
    pointer-events: none;
}

/* Button Spinner */
.dfc-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dfcBtnSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

.dfc-btn-check {
    display: inline-block;
    margin-right: 4px;
    font-size: 16px;
}

@keyframes dfcBtnSpin {
    to { transform: rotate(360deg); }
}

/* Optimistic UI Pulse Animation */
@keyframes dfcPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.4; }
}

.dfc-sc-item-optimistic {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: dfcShimmer 1.5s ease-in-out infinite;
}

@keyframes dfcShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   FLOATING CART BUTTON
   ============================================ */
.dfc-cart-trigger {
    position: fixed;
    bottom: 180px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--dfc-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9990;
    transition: transform 0.3s, background 0.3s;
}

.dfc-cart-trigger:hover {
    transform: scale(1.1);
    background: var(--dfc-primary-hover);
}

.dfc-cart-trigger svg { width: 24px; height: 24px; }

.dfc-cart-trigger-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--dfc-accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.dfc-cart-trigger-count:empty,
.dfc-cart-trigger-count[data-count="0"] { display: none; }

.woocommerce-cart .dfc-cart-trigger,
.woocommerce-checkout .dfc-cart-trigger { display: none; }

/* ============================================
   SIDE CART OVERLAY & DRAWER
   ============================================ */
.dfc-side-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9998;
}

.dfc-side-cart-overlay.open { opacity: 1; visibility: visible; }

.dfc-side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--dfc-side-cart-width, 400px);
    max-width: 100vw;
    height: 100%;
    background: var(--dfc-white);
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.dfc-side-cart.position-left {
    left: 0;
    right: auto;
    transform: translateX(-100%);
    box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}

.dfc-side-cart.open { transform: translateX(0); }

/* Side Cart Header */
.dfc-side-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--dfc-border);
    background: var(--dfc-white);
    flex-shrink: 0;
}

.dfc-side-cart-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dfc-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dfc-side-cart-title svg { width: 24px; height: 24px; }

.dfc-cart-count-badge {
    background: var(--dfc-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.dfc-side-cart-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--dfc-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dfc-side-cart-close:hover { background: var(--dfc-border); }
.dfc-side-cart-close svg { width: 20px; height: 20px; color: var(--dfc-text); }

/* Side Cart Content */
.dfc-side-cart-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dfc-sc-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Side Cart Footer */
.dfc-side-cart-footer {
    padding: 16px;
    background: var(--dfc-white);
    border-top: 1px solid var(--dfc-border);
    flex-shrink: 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

/* Shipping Progress */
.dfc-sc-shipping-progress {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 1px solid #bbf7d0;
}

.dfc-sc-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dfc-sc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dfc-primary), var(--dfc-success));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.dfc-sc-progress-text {
    font-size: 13px;
    color: #166534;
    text-align: center;
    font-weight: 500;
}

.dfc-sc-progress-text strong { color: var(--dfc-primary); }
.dfc-sc-free-shipping { text-align: center; font-size: 14px; font-weight: 600; color: #166534; }

/* Cart Items */
.dfc-sc-items { padding: 0; }

.dfc-sc-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dfc-border);
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dfc-sc-item:last-child { border-bottom: none; }

.dfc-sc-item-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--dfc-bg);
}

.dfc-sc-item-image img { width: 100%; height: 100%; object-fit: cover; }

.dfc-sc-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dfc-sc-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dfc-text);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.dfc-sc-item-name a { color: inherit; text-decoration: none; }
.dfc-sc-item-name a:hover { color: var(--dfc-primary); }

.dfc-sc-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--dfc-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dfc-sc-item-price del { color: var(--dfc-text-light); font-weight: 400; font-size: 12px; }

/* Bundle Badges */
.dfc-sc-bundle-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.dfc-sc-bundle-savings { font-size: 11px; color: #15803d; margin-top: 2px; }

/* Quantity Controls */
.dfc-sc-qty-wrap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

.dfc-sc-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--dfc-border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--dfc-bg);
}

.dfc-sc-qty button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--dfc-text);
    transition: background 0.2s;
}

.dfc-sc-qty button:hover { background: var(--dfc-border); }
.dfc-sc-qty button:disabled { opacity: 0.4; cursor: not-allowed; }

.dfc-sc-qty-value {
    width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--dfc-text);
    background: var(--dfc-white);
}

.dfc-sc-item-remove {
    background: none;
    border: none;
    color: var(--dfc-text-light);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    margin-left: auto;
}

.dfc-sc-item-remove:hover { color: var(--dfc-error); }
.dfc-sc-item-remove svg { width: 16px; height: 16px; }

/* Loading State (SINGLE definition) */
.dfc-sc-item.loading,
.dfc-cart-item.loading,
.dfc-side-cart-content.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty Cart */
.dfc-sc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    flex: 1;
}

.dfc-sc-empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.dfc-sc-empty-text { font-size: 18px; font-weight: 600; color: var(--dfc-text); margin: 0 0 8px; }
.dfc-sc-empty-subtext { font-size: 14px; color: var(--dfc-text-light); margin: 0 0 20px; }

.dfc-sc-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--dfc-primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.2s;
}

.dfc-sc-shop-btn:hover { background: var(--dfc-primary-hover); color: white; }

/* Charity */
.dfc-sc-charity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-top: 1px solid #fcd34d;
}

.dfc-sc-charity-icon { font-size: 28px; animation: dogWag 1s ease-in-out infinite; }
.dfc-sc-charity-text { flex: 1; font-size: 13px; color: #92400e; }
.dfc-sc-charity-text strong { display: block; font-size: 14px; margin-bottom: 2px; }

@keyframes dogWag { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* Subscription Upsell (Side Cart) */
.dfc-sc-upsell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 16px 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dfc-sc-upsell:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(251, 191, 36, 0.3);
}

.dfc-sc-upsell-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.dfc-sc-upsell-text {
    flex: 1;
    font-size: 12px;
    color: #b45309;
    line-height: 1.3;
}

.dfc-sc-upsell-text strong {
    display: block;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 1px;
}

.dfc-sc-upsell-arrow {
    font-size: 16px;
    color: #92400e;
    font-weight: bold;
}

/* Coupon */
.dfc-sc-coupon { display: flex; gap: 8px; margin-bottom: 12px; }

.dfc-sc-coupon input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--dfc-border);
    border-radius: 6px;
    font-size: 13px;
    text-transform: uppercase;
    min-width: 0;
}

.dfc-sc-coupon input:focus { outline: none; border-color: var(--dfc-primary); }

.dfc-sc-coupon button {
    padding: 8px 12px;
    background: var(--dfc-text);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.dfc-sc-coupon-applied {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #dcfce7;
    border-radius: 6px;
    font-size: 12px;
    color: #166534;
    margin-bottom: 10px;
}

.dfc-sc-coupon-applied button {
    margin-left: auto;
    background: none;
    border: none;
    color: #991b1b;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

/* Totals */
.dfc-sc-totals { margin-bottom: 12px; }

.dfc-sc-total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: var(--dfc-text-light);
}

.dfc-sc-total-row.grand-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--dfc-text);
    padding-top: 10px;
    margin-top: 6px;
    border-top: 2px solid var(--dfc-border);
}

.dfc-sc-discount { color: var(--dfc-success); }
.dfc-sc-free-ship { color: var(--dfc-success); font-weight: 500; }

/* Footer Buttons */
.dfc-sc-buttons { display: flex; flex-direction: column; gap: 8px; }

.dfc-sc-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--dfc-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.dfc-sc-checkout-btn:hover { background: var(--dfc-primary-hover); color: white; }
.dfc-sc-checkout-btn:active { transform: scale(0.98); }
.dfc-sc-checkout-btn .dfc-btn-price { background: rgba(255,255,255,0.2); padding: 3px 8px; border-radius: 5px; font-size: 13px; }

.dfc-sc-cart-link {
    display: block;
    text-align: center;
    padding: 10px;
    color: var(--dfc-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--dfc-border);
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.dfc-sc-cart-link:hover { border-color: var(--dfc-primary); background: var(--dfc-bg); color: var(--dfc-text); }

/* ============================================
   CART PAGE STYLES
   ============================================ */
.dfc-cart-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.dfc-cart-page-header { margin-bottom: 24px; }
.dfc-cart-page-title { font-size: 28px; font-weight: 700; color: var(--dfc-text); margin: 0 0 8px; }
.dfc-cart-page-count { font-size: 15px; color: var(--dfc-text-light); }

/* Cart Progress */
.dfc-cart-progress {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.dfc-cart-progress-bar { height: 10px; background: rgba(255,255,255,0.8); border-radius: 5px; overflow: hidden; margin-bottom: 10px; }
.dfc-cart-progress-fill { height: 100%; background: linear-gradient(90deg, var(--dfc-primary), var(--dfc-success)); border-radius: 5px; transition: width 0.4s ease; }
.dfc-cart-progress-text { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.dfc-cart-progress-text span:first-child { color: #166534; font-weight: 500; }
.dfc-cart-progress-text span:last-child { color: var(--dfc-text-light); font-size: 13px; }

/* Cart Layout */
.dfc-cart-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* Cart Items */
.dfc-cart-items-wrap {
    background: var(--dfc-white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.dfc-cart-items-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    padding: 16px 20px;
    background: var(--dfc-bg);
    font-size: 13px;
    font-weight: 600;
    color: var(--dfc-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dfc-cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--dfc-border);
    position: relative;
    transition: opacity 0.3s ease;
}

.dfc-cart-item:last-child { border-bottom: none; }

.dfc-cart-item-product { display: flex; align-items: center; gap: 16px; }

.dfc-cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--dfc-bg);
}

.dfc-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.dfc-cart-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dfc-text);
    margin: 0 0 4px;
    line-height: 1.3;
}

.dfc-cart-item-info h4 a { color: inherit; text-decoration: none; }
.dfc-cart-item-info h4 a:hover { color: var(--dfc-primary); }
.dfc-cart-item-meta { font-size: 12px; color: var(--dfc-text-light); }

.dfc-cart-bundle-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.dfc-cart-bundle-savings { font-size: 11px; color: #15803d; margin-top: 2px; font-weight: 500; }
.dfc-cart-item-price { font-size: 14px; color: var(--dfc-text); }
.dfc-cart-item-price del { color: var(--dfc-text-light); font-size: 12px; display: block; margin-bottom: 2px; }
.dfc-cart-item-qty { display: flex; align-items: center; }

.dfc-qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--dfc-border);
    border-radius: 10px;
    overflow: hidden;
}

.dfc-qty-control button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--dfc-bg);
    cursor: pointer;
    font-size: 18px;
    color: var(--dfc-text);
    transition: background 0.2s;
}

.dfc-qty-control button:hover { background: var(--dfc-border); }

.dfc-qty-control input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    background: var(--dfc-white);
}

.dfc-qty-control input:focus { outline: none; }
.dfc-cart-item-subtotal { font-size: 16px; font-weight: 700; color: var(--dfc-primary); }

.dfc-cart-item-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--dfc-bg);
    color: var(--dfc-text-light);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.dfc-cart-item-remove:hover { background: #fef2f2; color: var(--dfc-error); }

/* Cart Actions */
.dfc-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--dfc-bg);
    border-top: 1px solid var(--dfc-border);
}

.dfc-cart-coupon { display: flex; gap: 8px; }
.dfc-cart-coupon input { padding: 10px 14px; border: 2px solid var(--dfc-border); border-radius: 8px; font-size: 14px; width: 180px; text-transform: uppercase; }
.dfc-cart-coupon button { padding: 10px 16px; background: var(--dfc-text); color: white; border: none; border-radius: 8px; font-weight: 500; cursor: pointer; }

.dfc-clear-cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: none;
    border: 2px solid var(--dfc-error);
    color: var(--dfc-error);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.dfc-clear-cart-btn:hover { background: #fef2f2; }

/* Cart Summary */
.dfc-cart-summary {
    background: var(--dfc-white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
    position: sticky;
    top: 24px;
    height: fit-content;
}

.dfc-cart-summary-title { font-size: 18px; font-weight: 700; color: var(--dfc-text); margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--dfc-border); }
.dfc-cart-summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; color: var(--dfc-text-light); }
.dfc-cart-summary-row.total { font-size: 20px; font-weight: 700; color: var(--dfc-text); padding: 16px 0; margin-top: 12px; border-top: 2px solid var(--dfc-border); }
.dfc-cart-discount-value { color: var(--dfc-success); }
.dfc-cart-shipping-free { color: var(--dfc-success); font-weight: 600; }

/* Charity Banner */
.dfc-cart-charity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    margin: 16px 0;
}

.dfc-cart-charity-icon { font-size: 32px; animation: dogWag 1s ease-in-out infinite; }
.dfc-cart-charity-text { flex: 1; }
.dfc-cart-charity-text strong { display: block; font-size: 14px; color: #92400e; }
.dfc-cart-charity-text span { font-size: 12px; color: #b45309; }

/* Checkout Button */
.dfc-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: var(--dfc-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    margin-top: 20px;
}

.dfc-cart-checkout-btn:hover { background: var(--dfc-primary-hover); color: white; }
.dfc-cart-checkout-btn:active { transform: scale(0.98); }

.dfc-cart-continue-shopping {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 12px;
    color: var(--dfc-text);
    text-decoration: none;
    font-size: 14px;
    border: 2px solid var(--dfc-border);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.dfc-cart-continue-shopping:hover { border-color: var(--dfc-primary); color: var(--dfc-text); }

/* Trust Badges */
.dfc-cart-trust { display: flex; justify-content: center; gap: 20px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--dfc-border); }
.dfc-cart-trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--dfc-text-light); }
.dfc-cart-trust-item svg { width: 24px; height: 24px; color: var(--dfc-primary); }

/* Empty Cart */
.dfc-cart-empty { text-align: center; padding: 80px 20px; background: var(--dfc-white); border-radius: 16px; }
.dfc-cart-empty-icon { font-size: 80px; margin-bottom: 20px; opacity: 0.4; }
.dfc-cart-empty h2 { font-size: 24px; color: var(--dfc-text); margin: 0 0 8px; }
.dfc-cart-empty p { font-size: 16px; color: var(--dfc-text-light); margin: 0 0 24px; }

.dfc-cart-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--dfc-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
}

.dfc-cart-empty-btn:hover { background: var(--dfc-primary-hover); color: white; }

/* Coupon Tags */
.dfc-cart-coupons-applied { margin-bottom: 16px; }

.dfc-cart-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #dcfce7;
    border-radius: 6px;
    font-size: 13px;
    color: #166534;
    margin-right: 8px;
    margin-bottom: 8px;
}

.dfc-cart-coupon-tag button { background: none; border: none; color: #991b1b; cursor: pointer; padding: 0; font-size: 16px; line-height: 1; }

/* Toast Notifications */
.dfc-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dfc-text);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dfc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.dfc-toast-success { background: var(--dfc-success); }
.dfc-toast-error { background: var(--dfc-error); }
.dfc-toast-info { background: var(--dfc-primary); }

/* Theme Conflict Overrides (SINGLE consolidated block) */
.dfc-cart-page .blockUI,
.dfc-cart-page .blockOverlay,
.dfc-cart-page .loader,
.dfc-cart-page .loading-overlay,
.dfc-cart-page [class*="spinner"],
.dfc-cart-page img[src*="spinner"],
.dfc-cart-page img[src*="loading"],
.dfc-side-cart .blockUI,
.dfc-side-cart .blockOverlay,
body.woocommerce-cart .blockUI,
body.woocommerce-cart .blockOverlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 900px) {
    .dfc-cart-layout { grid-template-columns: 1fr 380px; }
}

@media (max-width: 768px) {
    .dfc-cart-items-header { display: none; }
    
    .dfc-cart-item {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }
    
    .dfc-cart-item-product { display: flex; gap: 12px; width: calc(100% - 40px); }
    .dfc-cart-item-image { width: 70px !important; height: 70px !important; }
    .dfc-cart-item-info { flex: 1; min-width: 0; }
    .dfc-cart-item-info h4 { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .dfc-cart-item-price { order: 1; }
    .dfc-cart-item-qty { order: 2; }
    .dfc-cart-item-subtotal { order: 3; font-size: 15px; }
    .dfc-cart-item-remove { position: absolute; top: 12px; right: 12px; }
    .dfc-cart-actions { flex-direction: column; gap: 12px; }
    .dfc-cart-coupon { width: 100%; }
    .dfc-cart-coupon input { flex: 1; width: auto; }
    .dfc-clear-cart-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .dfc-cart-trigger { bottom: 140px; right: 12px; width: 48px; height: 48px; }
    .dfc-cart-trigger svg { width: 20px; height: 20px; }
    .dfc-cart-trigger-count { font-size: 10px; min-width: 18px; height: 18px; }
    .dfc-side-cart { width: 100vw; }
    .dfc-side-cart-header { padding: 12px 14px; }
    .dfc-side-cart-title { font-size: 16px; }
    .dfc-cart-count-badge { font-size: 11px; padding: 2px 6px; }
    .dfc-sc-shipping-progress { padding: 12px 14px; }
    .dfc-sc-progress-text { font-size: 12px; }
    .dfc-sc-item { padding: 12px 14px; gap: 10px; }
    .dfc-sc-item-image { width: 60px; height: 60px; }
    .dfc-sc-item-name { font-size: 12px; }
    .dfc-sc-item-price { font-size: 13px; }
    .dfc-sc-bundle-badge { font-size: 9px; padding: 2px 5px; }
    .dfc-sc-bundle-savings { font-size: 10px; }
    .dfc-side-cart-footer { padding: 12px 14px; }
    .dfc-sc-checkout-btn { padding: 12px 16px; font-size: 14px; }
    .dfc-sc-cart-link { padding: 8px; font-size: 12px; }
    .dfc-cart-page { padding: 16px 12px; }
    .dfc-cart-page-title { font-size: 22px; }
}
