/* =============================================
   CART PAGE - Custom Styles
   File: wp-content/themes/astra/cart-style.css
   ============================================= */

.ct-page-wrapper {
    min-height: 100vh;
    background-color: #0B0B0F;
    color: #FFFFFF;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Ambient BG */
.ct-ambient-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.ct-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.08;
}
.ct-blob-1 { top: -100px; right: -100px; width: 700px; height: 700px; background: #8B5CF6; }
.ct-blob-2 { bottom: -100px; left: -100px; width: 600px; height: 600px; background: #A78BFA; }

/* Container */
.ct-container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }

/* Back Bar */
.ct-back-bar { position: relative; z-index: 10; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ct-back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: #B0B0B8; text-decoration: none !important; font-size: 0.9rem; transition: color 0.2s; }
.ct-back-link:hover { color: #A78BFA; }

/* Main */
.ct-main { position: relative; z-index: 10; padding: 3rem 0 6rem; }

/* Page Header */
.ct-page-header { margin-bottom: 2.5rem; }
.ct-page-title { font-size: 2.5rem !important; font-weight: 700 !important; letter-spacing: -0.025em !important; color: white !important; margin-bottom: 0.4rem !important; }
.ct-page-subtitle { color: #B0B0B8 !important; font-size: 1rem !important; margin: 0 !important; }

/* Cart Grid */
.ct-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }

/* Item Card */
.ct-item-card { background: #1A1A24; border: 1px solid rgba(255,255,255,0.06); border-radius: 1.25rem; overflow: hidden; margin-bottom: 1rem; transition: border-color 0.2s; }
.ct-item-card:hover { border-color: rgba(139,92,246,0.3); }
.ct-item-inner { display: flex; gap: 1.5rem; padding: 1.5rem; }
.ct-item-img { width: 130px; height: 95px; border-radius: 0.75rem; overflow: hidden; flex-shrink: 0; background: #0B0B0F; }
.ct-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-item-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #333; }
.ct-item-details { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.ct-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.ct-item-cat { font-size: 0.72rem !important; color: #A78BFA !important; letter-spacing: 0.08em !important; margin-bottom: 0.25rem !important; }
.ct-item-name { font-size: 1.05rem !important; font-weight: 600 !important; color: white !important; margin: 0 !important; line-height: 1.3 !important; }
.ct-item-price { font-size: 1.4rem; font-weight: 700; color: white; white-space: nowrap; flex-shrink: 0; }
.ct-item-price .woocommerce-Price-amount { color: white !important; font-size: 1.4rem !important; font-weight: 700 !important; }
.ct-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.ct-item-license { display: flex; align-items: center; gap: 0.4rem; color: #666; font-size: 0.8rem; }
.ct-item-license svg { color: #555; }

/* Quantity Controls */
.ct-qty-controls { display: inline-flex !important; align-items: center !important; gap: 0 !important; background: #1A1A24 !important; border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 0.75rem !important; padding: 0 !important; overflow: hidden !important; }
.ct-qty-btn { width: 36px !important; height: 36px !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 0 !important; color: #B0B0B8 !important; text-decoration: none !important; transition: all 0.2s !important; background: transparent !important; }
.ct-qty-btn:hover { background: rgba(139,92,246,0.2) !important; color: #A78BFA !important; }
.ct-qty-num { min-width: 36px !important; text-align: center !important; color: white !important; font-size: 0.875rem !important; font-weight: 600 !important; border-left: 1px solid rgba(255,255,255,0.06) !important; border-right: 1px solid rgba(255,255,255,0.06) !important; padding: 0 0.5rem !important; line-height: 36px !important; }

/* Summary Card */
.ct-summary-col { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 2rem; }
.ct-summary-card { background: #1A1A24; border: 1px solid rgba(255,255,255,0.06); border-radius: 1.25rem; padding: 1.75rem; }
.ct-summary-title { font-size: 1.1rem !important; font-weight: 700 !important; color: white !important; margin-bottom: 1.5rem !important; }
.ct-summary-rows { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 1.5rem; }
.ct-summary-row { display: flex; justify-content: space-between; align-items: center; }
.ct-summary-label { color: #B0B0B8; font-size: 0.875rem; }
.ct-summary-value { color: white; font-size: 0.875rem; font-weight: 500; }
.ct-summary-value .woocommerce-Price-amount { color: white !important; }
.ct-discount { color: #10B981 !important; }
.ct-summary-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 0.25rem 0; }
.ct-summary-total-row { padding-top: 0.25rem; }
.ct-summary-label-total { color: white; font-weight: 600; font-size: 1rem; }
.ct-summary-value-total { color: white; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }
.ct-summary-value-total .woocommerce-Price-amount { color: white !important; font-size: 1.5rem !important; font-weight: 700 !important; }

/* Coupon */
.ct-coupon-wrap { margin-bottom: 1.25rem; }
.ct-coupon-form { display: flex; gap: 0.5rem; }
.ct-coupon-input { flex: 1; padding: 0.75rem 1rem; border-radius: 0.625rem; background: #0B0B0F; border: 1px solid rgba(255,255,255,0.08); color: white; font-size: 0.875rem; outline: none; transition: border-color 0.2s; }
.ct-coupon-input:focus { border-color: rgba(139,92,246,0.5); }
.ct-coupon-input::placeholder { color: #444; }
.ct-coupon-btn { padding: 0.75rem 1.25rem !important; border-radius: 0.875rem !important; background: linear-gradient(to right, #8B5CF6, #A78BFA) !important; border: none !important; color: white !important; font-size: 0.875rem !important; font-weight: 600 !important; cursor: pointer !important; transition: opacity 0.2s !important; white-space: nowrap !important; box-shadow: 0 4px 15px rgba(139,92,246,0.3) !important; }
.ct-coupon-btn:hover { opacity: 0.9 !important; }

/* Checkout Button */
.ct-checkout-btn { display: flex; align-items: center; justify-content: center; gap: 0.75rem; width: 100%; padding: 1rem 2rem; border-radius: 0.875rem; background: linear-gradient(to right, #8B5CF6, #A78BFA); color: white !important; text-decoration: none !important; font-size: 1rem; font-weight: 600; transition: opacity 0.2s, transform 0.2s; box-shadow: 0 4px 20px rgba(139,92,246,0.35); margin-bottom: 1.25rem; }
.ct-checkout-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Trust Badges */
.ct-trust-badges { display: flex; gap: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.05); }
.ct-trust-badge { display: flex; align-items: center; gap: 0.4rem; color: #B0B0B8; font-size: 0.78rem; }
.ct-trust-badge svg { color: #8B5CF6; }

/* Guarantee Card */
.ct-guarantee-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; border-radius: 1rem; background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.2); }
.ct-guarantee-icon { width: 42px; height: 42px; border-radius: 0.75rem; background: linear-gradient(135deg, #8B5CF6, #A78BFA); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; }
.ct-guarantee-text h4 { color: white !important; font-size: 0.9rem !important; font-weight: 600 !important; margin-bottom: 0.25rem !important; }
.ct-guarantee-text p { color: #B0B0B8 !important; font-size: 0.8rem !important; margin: 0 !important; }

/* Continue Shopping Button */
.ct-continue-btn { display: block !important; text-align: center !important; margin-top: 0.75rem !important; padding: 0.875rem !important; border-radius: 0.875rem !important; background: linear-gradient(to right, #8B5CF6, #A78BFA) !important; color: white !important; text-decoration: none !important; font-weight: 600 !important; font-size: 0.9rem !important; transition: opacity 0.2s !important; }
.ct-continue-btn:hover { opacity: 0.9 !important; }

/* Empty Cart */
.ct-empty-cart { text-align: center; padding: 5rem 2rem; }
.ct-empty-icon { display: inline-flex; padding: 1.75rem; border-radius: 1.25rem; background: #1A1A24; border: 1px solid rgba(255,255,255,0.06); color: #444; margin-bottom: 1.5rem; }
.ct-empty-cart h3 { color: white !important; font-size: 1.5rem !important; font-weight: 700 !important; margin-bottom: 0.5rem !important; }
.ct-empty-cart p { color: #B0B0B8 !important; margin-bottom: 1.5rem !important; }
.ct-browse-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; border-radius: 0.875rem; background: linear-gradient(to right, #8B5CF6, #A78BFA); color: white !important; text-decoration: none !important; font-weight: 600; font-size: 0.95rem; transition: opacity 0.2s; }
.ct-browse-btn:hover { opacity: 0.9; }

/* WooCommerce Notices */
.ct-coupon-wrap .woocommerce-message,
.ct-coupon-wrap .woocommerce-error,
.ct-coupon-wrap .woocommerce-info { background: #1A1A24 !important; border-color: rgba(139,92,246,0.3) !important; color: #B0B0B8 !important; border-radius: 0.5rem !important; padding: 0.75rem 1rem !important; margin-top: 0.75rem !important; font-size: 0.85rem !important; list-style: none !important; }

/* Animations */
@keyframes ctFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ctFadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.ct-fade-in { animation: ctFadeIn 0.5s ease-out forwards; }
.ct-fade-in-up { animation: ctFadeInUp 0.5s ease-out forwards; }

/* Responsive */
@media (max-width: 1024px) {
    .ct-grid { grid-template-columns: 1fr; }
    .ct-summary-col { position: static; }
}
@media (max-width: 640px) {
    .ct-item-inner { flex-direction: column; }
    .ct-item-img { width: 100%; height: 180px; }
    .ct-item-top { flex-direction: column; }
    .ct-page-title { font-size: 2rem !important; }
    .ct-container { padding: 0 1rem; }
}
@media (max-width: 1024px) {
    .ct-continue-btn {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}