/* ==========================================================================
   1. MASTER GRID CONTENT CONFIGURATION 
   ========================================================================== */

/* Master Store Front Wrapper layout boundary configuration (1200px limit match) */
.master-store-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header Text Alignments and Visual Anchors */
.catalog-section-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 35px;
}

.catalog-section-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a; /* Tech Black standard block */
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-section-header h2 i {
    color: #2563eb; /* Corporate Electric Blue Focus */
}

.catalog-section-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

/* CSS Grid Component Multi-Column Processing Framework */
.product-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    width: 100%;
}


/* ==========================================================================
   2. SEARCH ENGINE & BRAND FILTRATION PANEL 
   ========================================================================== */

/* Filtering Control Panel Base Row Layout */
.filter-controls-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    box-sizing: border-box;
}

.filter-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Fluid Layout Horizontal Width Controls */
.search-box-width { flex: 2 1 300px; }
.brand-select-width { flex: 1 1 200px; }

.filter-input-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-input-group label i {
    color: #2563eb; /* Corporate Electric Blue Icon Color */
}

/* Form Action Button Sizing Row */
.filter-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
}

/* Vibrant Blue Filter Submission Action Controls */
.btn-filter-submit {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 11px 22px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease-in-out;
}

.btn-filter-submit:hover {
    background: #1d4ed8;
}

/* Neutral Clear / Filter Reset Layout Tokens */
.btn-filter-clear {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s ease-in-out;
}

.btn-filter-clear:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Neutral Sizing Form Fields inside Filter Panel */
.filter-controls-panel .form-control-field {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #cbd5e1; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 14px;
    background-color: #fff;
    color: #0f172a;
    transition: border-color 0.15s ease-in-out;
}

.filter-controls-panel .form-control-field:focus {
    outline: none;
    border-color: #2563eb;
}


/* ==========================================================================
   3. INDIVIDUAL HARDWARE PRODUCT CARD SCALING 
   ========================================================================== */

/* Individual Card Structural Architecture Layout */
.product-item-card {
    background: #ffffff; /* Solid white card base layout */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 2px 4px -2px rgba(15, 23, 42, 0.02);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease-in-out;
}

.product-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

/* Image Showcase Mask Frame configuration rules */
.card-thumbnail-zone {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.card-thumbnail-zone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hardware Condition Pill Badges layout matrices */
.condition-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.tag-brand-new { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; } /* Blue Tint matching theme */
.tag-refurbished { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; } 
.tag-used { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

/* Out of Stock Crimson Alert Mask and Overlays */
.stock-overlay-sold {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-dimmed {
    border-color: #e2e8f0 !important;
}
.card-dimmed .card-thumbnail-zone img {
    filter: grayscale(80%);
    opacity: 0.7;
}

/* Details Padding Matrix Structure space */
.card-details-space {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.brand-line-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.manufacturer-name {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #2563eb; /* Corporate Blue Brand Label */
    letter-spacing: 0.5px;
}

.sku-code-label {
    font-size: 11px;
    color: #94a3b8;
    font-family: monospace;
}

/* Title Headline Fonts Layout */
.product-title-link {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a; /* Tech Black Headline */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px; /* Static height fixes misalignment issues inside layout grids */
}

.variant-model-no {
    font-weight: 400;
    font-size: 13px;
    color: #64748b;
}

/* Financial Price Block Matrices alignment layout rows */
.card-footer-metrics {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.price-box {
    color: #0f172a; /* Clean high contrast black figure metrics */
    font-weight: 800;
}

.price-box .currency-symbol {
    font-size: 14px;
    margin-right: 1px;
}

.price-box .main-price-figure {
    font-size: 20px;
    letter-spacing: -0.5px;
}

/* Inventory Levels Callout Labels */
.inventory-status-stamp {
    font-size: 12px;
    font-weight: 600;
}
.status-available { color: #475569; }
.status-empty { color: #dc2626; font-weight: 700; } /* Crimson Warning Red for sold out products */

/* Action Button Trigger Layout Blocks */
.card-action-box {
    margin-top: 14px;
    width: 100%;
}

.btn-catalog-action {
    width: 100%;
    background: #0f172a; /* Strong Technical Black Base default trigger */
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease-in-out;
}

.btn-catalog-action:hover {
    background: #2563eb; /* Shifts to Vibrant Corporate Electric Blue on hover */
}

.btn-catalog-action.btn-disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}


/* ==========================================================================
   4. FALLBACK STATES & RESPONSIVE ENGINE RULES
   ========================================================================== */

/* Empty Catalog Fallback Utility Elements constraints */
.empty-catalog-fallback {
    grid-column: span -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
}

.empty-catalog-fallback i { font-size: 40px; color: #94a3b8; margin-bottom: 12px; }
.empty-catalog-fallback h3 { margin: 0 0 6px 0; color: #1e293b; }
.empty-catalog-fallback p { margin: 0; color: #64748b; font-size: 14px; }

/* Responsive Media Breakdown Adjustments */
@media (max-width: 768px) {
    .filter-controls-panel {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box-width, .brand-select-width {
        flex: 1 1 auto;
    }
    .filter-actions-group {
        width: 100%;
        margin-top: 5px;
    }
    .btn-filter-submit, .btn-filter-clear {
        flex-grow: 1;
    }
    .product-catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
}
/* Header Navbar Mini-Basket Alert Counter Tokens Layout */
.navbar-cart-anchor {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    color: #0f172a; /* Technical Dark Black links alignment */
    font-size: 14px;
    padding: 8px 12px;
    transition: color 0.15s ease-in-out;
}

.navbar-cart-anchor:hover {
    color: #2563eb; /* Shifts corporate bright blue on mouse over properties loops */
}

.navbar-cart-anchor i {
    font-size: 16px;
}

/* Crimson Notification Counter Float Pillar Sizing Alignment Card */
.nav-basket-badge-counter {
    background: #dc2626; /* Crimson Red active notification beacon spot */
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    line-height: 1;
    
    /* Elegant alignment positioning anchors */
    position: absolute;
    top: -2px;
    right: -4px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    animation: bounceBadge 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceBadge {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
/* ==========================================================================
   11. STRETCHED MONOCHROME UNDERLINE THEME
   ========================================================================== */

/* Spacious Grid Split Container Layout */
.spec-checkout-page .checkout-split-master-grid {
    display: grid;
    grid-template-columns: 1fr 380px; /* Left column takes all remaining space */
    gap: 2px; /* Set exactly to a crisp 2px layout separation gap */
    align-items: flex-start;
    width: 100%;
    margin-top: 30px;
    box-sizing: border-box;
}

.checkout-form-column-left, 
.checkout-summary-column-right {
    width: 100%;
}

.checkout-summary-column-right {
    position: sticky;
    top: 40px;
}

/* Stretched Flat Luxury Paper Compact Card Wrapper */
.checkout-form-card.card-compact {
    max-width: 100%; /* Fully stretched horizontally to fill the layout space */
    margin: 0;
    padding: 0px 24px 0px 0px; /* Breathing room on the right side before the 2px gap */
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Refined Typography Headers */
.checkout-form-card.card-compact h3,
.summary-invoice-sticky-card.dynamic-checkout-sidebar h3 {
    margin: 0 0 28px 0;
    font-size: 16px;
    font-weight: 600; 
    color: #111827; 
    letter-spacing: -0.01em;
    border: none;
    padding: 0;
}

/* Vertical Input Distribution Stack */
.form-compact-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 24px; 
    width: 100%;
}

/* Understated Label Configurations */
.card-compact .form-input-cell label {
    font-size: 12.5px;
    font-weight: 600;
    color: #4b5563; 
    margin-bottom: 4px;
    display: block;
}

/* Underline-Only Form Control Fields */
.form-control-field.field-compact {
    width: 100%;
    padding: 8px 0px 10px 0px; 
    font-size: 14.5px;
    font-weight: 500;
    background-color: transparent; 
    border: none; 
    border-bottom: 1px solid #cbd5e1; /* Subtle default bottom boundary baseline */
    border-radius: 0px; 
    color: #111827;
    box-sizing: border-box;
    box-shadow: none;
    transition: border-color 0.15s ease-in-out;
}

/* Monochrome Active State: Switches from light grey to sharp solid black */
.form-control-field.field-compact:focus {
    outline: none;
    border-bottom: 2px solid #0f172a; /* Tech Black underline highlight on active focus state */
}

/* Textarea Specific Underline Polish */
textarea.form-control-field.field-compact.text-compact {
    min-height: 80px;
    line-height: 1.6;
    resize: vertical;
    border-bottom: 1px solid #cbd5e1;
}

textarea.form-control-field.field-compact.text-compact:focus {
    border-bottom: 2px solid #0f172a;
}

/* Flat Luxury Sidebar Manifest Summary Block Card */
.summary-invoice-sticky-card.dynamic-checkout-sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb; 
    border-radius: 12px; 
    padding: 30px;
    box-shadow: 0 4px 20px -2px rgba(17, 24, 39, 0.03); 
    box-sizing: border-box;
}

/* Suppress all decorative accent markers completely */
.summary-invoice-sticky-card.dynamic-checkout-sidebar::before {
    display: none !important;
}

/* Miniature Build Manifest Item Scroll List Row */
.checkout-mini-manifest-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.mini-manifest-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.mini-manifest-thumb {
    width: 44px;
    aspect-ratio: 1 / 1;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.mini-manifest-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mini-manifest-details {
    flex-grow: 1;
    min-width: 0;
}

.mini-manifest-title {
    margin: 0 0 3px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-manifest-qty-price {
    font-size: 12px;
    color: #6b7280;
}

.mini-manifest-row-total {
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    flex-shrink: 0;
}

/* Invoice Cost Summaries Fields */
.invoice-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
}
.summary-neutral-dark { color: #111827; font-weight: 600; }

.invoice-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    color: #111827;
}
.invoice-summary-total-row .main-price-figure { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }

/* Clean Matte Action Submit Triggers */
.cyber-submit-trigger {
    width: 100%;
    background: #111827 !important; 
    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;
}

.cyber-submit-trigger:hover {
    background: #1f2937 !important; /* Muted Charcoal Black state shift */
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.15) !important;
}

.cyber-back-link {
    display: block;
    text-align: center;
    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;
}

.cyber-back-link:hover {
    background: #f9fafb !important;
    color: #111827 !important;
    border-color: #111827 !important;
}

.checkout-mini-manifest-list::-webkit-scrollbar { width: 3px; }
.checkout-mini-manifest-list::-webkit-scrollbar-track { background: #f9fafb; }
.checkout-mini-manifest-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }

/* Responsive Adaptations */
@media (max-width: 992px) {
    .spec-checkout-page .checkout-split-master-grid {
        grid-template-columns: 1fr;
        gap: 40px; /* Stacks vertically with plenty of separation space on smaller viewports */
    }
    .checkout-form-card.card-compact {
        padding-right: 0px; 
    }
}

