/* ==========================================================================
   3. ULTRA-MINIMALIST MONOCHROME CART LAYOUT 
   ========================================================================== */

/* Flexible Workspace Layout Engine */
.cart-page-split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Increased padding gap lets components breathe */
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
}

/* LEFT PANEL: Clean Row Cards Configuration */
.cart-items-list-panel {
    flex: 2 1 550px;
    display: flex;
    flex-direction: column;
}

/* Overhauled Borderless Flat Item Cards with Bottom Underline Only */
.cart-item-row-card {
    background: transparent; /* Drops box background entirely */
    border: none;
    border-bottom: 1px solid #cbd5e1; /* Flat, crisp bottom baseline */
    border-radius: 0px; /* Sharp corners */
    padding: 20px 0px; /* Extra vertical space makes rows elegant */
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: none; /* No box shadows */
    transition: border-color 0.15s ease-in-out;
}

.cart-item-row-card:hover {
    border-bottom-color: #0f172a; /* Darkens line on item hover */
}

/* Premium Component Thumbnail Frame */
.cart-row-thumbnail {
    width: 70px;
    aspect-ratio: 1 / 1;
    background: #f9fafb;
    border-radius: 6px; /* Smooth corner clipping radius for images */
    border: 1px solid #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-row-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.cart-row-details { flex-grow: 1; }
.cart-row-details h4 { margin: 0 0 6px 0; font-size: 15px; font-weight: 600; color: #111827; }
.unit-price-tag { font-size: 13px; color: #6b7280; font-weight: 500; }

.cart-row-quantity { flex-shrink: 0; }

/* Underline-Only Quantity Input Field Control */
.cart-item-row-card .form-control-field {
    text-align: center;
    font-weight: 600;
    width: 55px;
    padding: 6px 0px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #cbd5e1; /* Clean line design matching inputs */
    border-radius: 0px;
    color: #111827;
    font-size: 14px;
    box-shadow: none;
    transition: border-color 0.15s ease-in-out;
}

.cart-item-row-card .form-control-field:focus {
    outline: none;
    border-bottom: 2px solid #0f172a; /* Tech Black active indicator underline */
}

/* Financial Values Alignment Layout Rows */
.cart-row-totals {
    flex-shrink: 0;
    font-weight: 600;
    color: #111827;
    min-width: 120px;
    text-align: right;
    font-size: 15px;
}
.cart-row-totals .currency-label { font-size: 12px; color: #4b5563; font-weight: 500; margin-right: 3px; }

/* Understated Row Deletion Triggers */
.btn-cart-remove-item {
    background: transparent;
    color: #9ca3af;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
}
.btn-cart-remove-item:hover {
    color: #dc2626; /* Crimson text accent on drop click events */
    background: #fef2f2;
}

/* RIGHT PANEL: Fixed Invoice Order Summary Column Block Card */
.cart-summary-sidebar-panel {
    flex: 1 1 280px;
    position: sticky;
    top: 40px; 
}

/* Flat Luxury Sidebar Summary Card Rebuild */
.summary-invoice-sticky-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px; /* Soft corporate card corner radius */
    padding: 30px;
    box-shadow: 0 4px 20px -2px rgba(17, 24, 39, 0.03); /* Whisper soft blurred drop shadow */
}

.summary-invoice-sticky-card h3 { 
    margin: 0 0 24px 0; 
    font-size: 16px; 
    font-weight: 600; 
    color: #111827; 
    letter-spacing: -0.01em;
}

.invoice-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 14px;
}
.summary-neutral-dark { color: #111827; font-weight: 600; }

.invoice-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    color: #111827;
}
.invoice-summary-total-row .currency-symbol { font-size: 13px; color: #111827; font-weight: 600; }
.invoice-summary-total-row .main-price-figure { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }

.summary-action-block { margin-top: 24px; }

/* Premium Understated Action Button Trigger Configuration */
.summary-action-block .btn-catalog-action {
    width: 100%;
    background: #111827 !important; /* Premium Matte Deep Black */
    color: #ffffff !important;
    border: none !important;
    padding: 13px 20px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.1) !important;
    transition: background 0.15s ease-in-out, transform 0.1s ease !important;
}

.summary-action-block .btn-catalog-action:hover {
    background: #1f2937 !important; /* Muted Charcoal Black state shift */
    transform: translateY(-1px);
}

/* Neutral Clear / Secondary Actions Button Links */
.summary-action-block .btn-filter-clear {
    background: transparent !important;
    color: #4b5563 !important;
    border: 1px solid #d1d5db !important;
    padding: 11px !important;
    font-size: 13.5px !important;
    margin-top: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.summary-action-block .btn-filter-clear:hover {
    background: #f9fafb !important;
    color: #111827 !important;
    border-color: #111827 !important;
}

/* Responsive Mobile System Architecture Viewport Rules */
@media (max-width: 768px) {
    .cart-page-split-layout { flex-direction: column; gap: 30px; }
    .cart-items-list-panel, .cart-summary-sidebar-panel { flex: 1 1 auto; width: 100%; }
    .cart-item-row-card { flex-wrap: wrap; gap: 16px; padding: 16px 0px; }
    .cart-row-details { min-width: 160px; }
    .cart-row-totals { margin-left: auto; min-width: auto; }
}
