/**
 * PC Configurator Styles
 * "Clean Gamer" Aesthetic: Modern, Glassmorphism, Premium Feel
 */

:root {
    --pc-primary: #b11e22;
    --pc-primary-dark: #8f181b;
    --pc-primary-light: #fff5f5;
    --pc-success: #10b981;
    --pc-bg: #f3f4f6;
    --pc-surface: #ffffff;
    --pc-text-main: #1f2937;
    --pc-text-secondary: #6b7280;
    --pc-border: #e5e7eb;
    --pc-radius: 12px;
    --pc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --pc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --pc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --pc-glass-bg: rgba(255, 255, 255, 0.85);
    --pc-glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --pc-glass-blur: blur(12px);
    --pc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Spacing scale for consistent rhythm */
    --pc-space-xs: 8px;
    --pc-space-sm: 16px;
    --pc-space-md: 24px;
    --pc-space-lg: 32px;
    --pc-space-xl: 48px;
    --pc-space-2xl: 64px;
}

/* ============================================
   BASE CONTAINER & TYPOGRAPHY
   ============================================ */
.pc-configurator {
    background: var(--pc-bg);
    color: var(--pc-text-main);
    padding: 0;
    min-height: 80vh;
    font-family: 'Inter', 'Poppins', ui-sans-serif, system-ui, sans-serif;
}

.pc-configurator-inner {
    max-width: 1600px;
    width: 95%;
    margin: 0 auto;
    padding: var(--pc-space-xl) 40px;
}

/* ============================================
   HEADER
   ============================================ */
.pc-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.pc-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.pc-subtitle {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Reset button in header - Desktop: absolute positioned */
.pc-btn-reset-top {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px 14px;
    font-size: 12px;
    background: transparent;
    border: 1px solid #ddd;
    color: #888;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pc-btn-reset-top:hover {
    border-color: var(--pc-primary);
    color: var(--pc-primary);
    background: var(--pc-primary-light);
}

/* ============================================
   PROGRESS BAR - Sticky & Glassmorphic
   ============================================ */
.pc-progress-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--pc-glass-bg);
    backdrop-filter: var(--pc-glass-blur);
    -webkit-backdrop-filter: var(--pc-glass-blur);
    border: var(--pc-glass-border);
    border-radius: var(--pc-radius);
    margin-bottom: 40px;
    padding: 16px 20px;
    gap: 8px;
    box-shadow: var(--pc-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.pc-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    transition: all 0.3s ease;
    min-width: 80px;
    flex: 1;
    text-decoration: none;
}

.pc-progress-step:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.pc-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
    color: #666;
    /* Support for SVG fill/stroke */
}

.pc-step-icon img,
.pc-step-icon svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
    stroke-width: 2px;
}

.pc-step-name {
    font-size: 12px;
    color: #888;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Active step */
.pc-progress-step.active .pc-step-icon {
    background: var(--pc-surface);
    border-color: var(--pc-primary);
    box-shadow: 0 0 0 4px var(--pc-primary-light);
    transform: scale(1.05);
    color: var(--pc-primary);
}

.pc-progress-step.active .pc-step-name {
    color: #b11e22;
    font-weight: 600;
}

/* Completed step */
.pc-progress-step.completed .pc-step-icon {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #4caf50;
}

.pc-progress-step.completed .pc-step-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-progress-step.completed .pc-step-name {
    color: var(--pc-success);
}

/* Disabled step */
.pc-progress-step.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pc-progress-step.disabled:hover {
    transform: none;
}

/* Step connector lines - hidden by default, shown between steps */
.pc-step-line {
    display: none;
}

/* ============================================
   MAIN LAYOUT - Two Column Grid
   ============================================ */
.pc-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--pc-space-xl);
    align-items: start;
}

/* ============================================
   STEP CONTENT AREA
   ============================================ */
.pc-content {
    min-height: 400px;
}

.pc-step-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pc-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.pc-step-title {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
    font-weight: 600;
}

/* ============================================
   SEARCH BOX
   ============================================ */
.pc-search-box {
    flex: 1;
    max-width: 300px;
}

.pc-search-input {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pc-search-input:focus {
    outline: none;
    border-color: #b11e22;
    box-shadow: 0 0 0 3px rgba(177, 30, 34, 0.1);
}

.pc-search-input::placeholder {
    color: #999;
}

/* ============================================
   BRAND SELECTION - Intel/AMD Cards
   ============================================ */
.pc-brand-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 700px;
    margin: 60px auto;
}

.pc-brand-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.pc-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pc-brand-card.intel:hover,
.pc-brand-card.intel.selected {
    border-color: #b11e22;
}

.pc-brand-card.amd:hover,
.pc-brand-card.amd.selected {
    border-color: #b11e22;
}

.pc-brand-card.selected {
    border-color: #b11e22;
    background: #fff9f9;
}

.pc-brand-card img {
    max-width: 150px;
    max-height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.pc-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    min-height: 80px;
    overflow: visible;
}

.pc-brand-logo img {
    display: block;
    width: 180px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.pc-brand-logo.intel-logo img {
    width: 180px;
    max-height: 70px;
}

.pc-brand-logo.amd-logo img {
    width: 200px;
    max-height: 70px;
}

.pc-brand-subtitle {
    color: #666;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pc-brand-card h3 {
    font-size: 1.3rem;
    margin: 0 0 10px;
    color: #333;
}

.pc-brand-card p {
    color: #666;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.4;
}

.pc-brand-card .pc-btn {
    margin-top: auto;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.pc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.pc-product-card {
    background: var(--pc-surface);
    border: 1px solid transparent;
    border-radius: var(--pc-radius);
    overflow: hidden;
    transition: var(--pc-transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: var(--pc-shadow-sm);
    position: relative;
    height: 100%;
}

.pc-product-card:hover {
    border-color: var(--pc-border);
    box-shadow: var(--pc-shadow-lg);
    transform: translateY(-4px);
}

.pc-product-card.selected {
    border-color: var(--pc-primary);
    box-shadow: 0 0 0 2px var(--pc-primary), var(--pc-shadow);
    background: #fffafa;
}

.pc-product-image {
    background: #f9f9f9;
    padding: 15px;
    text-align: center;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-product-image img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    mix-blend-mode: multiply;
    /* Better image integration */
}

.pc-product-card:hover .pc-product-image img {
    transform: scale(1.08);
}

.pc-product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-product-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.pc-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #b11e22;
    margin-top: auto;
}

.pc-product-stock {
    font-size: 12px;
    color: #4caf50;
    margin-top: 5px;
}

.pc-product-select {
    width: 100%;
    padding: 14px;
    background: var(--pc-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.pc-product-select:hover {
    background: var(--pc-primary-dark);
}

.pc-product-card.selected .pc-product-select {
    background: var(--pc-success);
}

.pc-product-card.selected .pc-product-select:hover {
    background: #059669;
}

/* Quantity Selector */
.pc-product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
}

.pc-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-qty-btn:hover {
    border-color: #b11e22;
    color: #b11e22;
    background: #fff9f9;
}

.pc-qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.pc-qty-input:focus {
    outline: none;
    border-color: #b11e22;
}

/* ============================================
   PAGINATION
   ============================================ */
.pc-pagination {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pc-pagination-info {
    color: #666;
    font-size: 14px;
}

.pc-pagination-buttons {
    display: flex;
    gap: 10px;
}

.pc-page-btn {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pc-page-btn:hover {
    border-color: #b11e22;
    color: #b11e22;
    background: #fff9f9;
}

/* ============================================
   SIDEBAR - Configuration Summary
   ============================================ */
.pc-sidebar {
    background: var(--pc-surface);
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 140px;
    /* Offset to clear the sticky progress bar safely */
    max-height: calc(100vh - 230px);
    overflow-y: auto;
    box-shadow: var(--pc-shadow);
    border: 1px solid var(--pc-border);
    z-index: 90;
    /* Lower than progress bar (100) */
}

.pc-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e5e5e5;
}

.pc-sidebar-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #666;
}

.pc-sidebar-header-total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.pc-sidebar-items {
    margin-bottom: 15px;
}

.pc-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pc-sidebar-item:last-child {
    border-bottom: none;
}

.pc-sidebar-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 16px;
    color: #888;
    flex-shrink: 0;
}

.pc-sidebar-item-info {
    flex: 1;
    min-width: 0;
}

.pc-sidebar-item-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    font-weight: 500;
}

.pc-sidebar-item-price {
    font-size: 13px;
    color: #b11e22;
    font-weight: 600;
}

.pc-sidebar-item-text {
    font-size: 13px;
    color: #888;
}

/* Pending item */
.pc-sidebar-item.pending {
    opacity: 0.6;
}

.pc-sidebar-item.pending .pc-sidebar-item-icon {
    background: #f8f8f8;
    color: #ccc;
}

/* Skipped item */
.pc-sidebar-item.skipped {
    opacity: 0.5;
}

.pc-sidebar-item.skipped .pc-sidebar-item-text {
    font-style: italic;
    color: #999;
}

/* Selected item */
.pc-sidebar-item.selected .pc-sidebar-item-icon {
    background: #e8f5e9;
    color: #4caf50;
}

/* Remove button in sidebar */
.pc-sidebar-item-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--pc-text-secondary);
    font-size: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pc-sidebar-item-remove:hover {
    background: #fee2e2;
    color: var(--pc-primary);
}

/* Sidebar total */
.pc-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #e5e5e5;
}

.pc-sidebar-total-label {
    font-weight: 600;
    color: #333;
}

.pc-sidebar-total-value {
    font-size: 20px;
    font-weight: 700;
    color: #b11e22;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */
/* ============================================
   NAVIGATION BUTTONS - Sticky Footer
   ============================================ */
.pc-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--pc-space-xl);
    padding: var(--pc-space-md) var(--pc-space-lg);
    background: var(--pc-surface);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    gap: 15px;
}

.pc-navigation-bottom {
    position: sticky;
    bottom: 20px;
    z-index: 95;
    background: var(--pc-glass-bg);
    backdrop-filter: var(--pc-glass-blur);
    -webkit-backdrop-filter: var(--pc-glass-blur);
    border: var(--pc-glass-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    margin-top: var(--pc-space-lg);
}

.pc-nav-left,
.pc-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   BUTTONS
   ============================================ */
.pc-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pc-btn-primary {
    background: linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(177, 30, 34, 0.2);
    border: none;
}

.pc-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(177, 30, 34, 0.2);
}

.pc-btn-primary:hover {
    box-shadow: 0 6px 12px rgba(177, 30, 34, 0.3);
    background: linear-gradient(135deg, #c52226 0%, #a01a1e 100%);
}

.pc-btn-secondary {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.pc-btn-secondary:hover {
    background: #eee;
    border-color: #ccc;
}

.pc-btn-outline {
    background: transparent;
    border: 1px solid #b11e22;
    color: #b11e22;
}

.pc-btn-outline:hover {
    background: #fff9f9;
}

.pc-skip-link {
    color: #b11e22;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border: 1px solid #b11e22;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.pc-skip-link:hover {
    background: #fff9f9;
    text-decoration: none;
    color: #8f181b;
}

/* Prev/Next specific */
.pc-btn-prev,
.pc-btn-next {
    min-width: 120px;
    justify-content: center;
}

/* ============================================
   SUMMARY PAGE
   ============================================ */
.pc-summary-list {
    margin-bottom: 20px;
}

.pc-summary-item {
    display: grid;
    grid-template-columns: 140px 1fr 100px;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    align-items: center;
    border: 1px solid #e5e5e5;
}

.pc-summary-item-step {
    color: #666;
    font-size: 13px;
}

.pc-summary-item-name {
    font-weight: 500;
    color: #333;
}

.pc-summary-item-price {
    color: #b11e22;
    font-weight: 600;
    text-align: right;
}

.pc-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
}

.pc-total-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.pc-total-value {
    font-size: 28px;
    font-weight: 700;
    color: #b11e22;
}

.pc-summary-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ============================================
   LOADING & MESSAGES
   ============================================ */
.pc-loading,
.pc-error,
.pc-no-products,
.pc-no-items {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 15px;
}

.pc-loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid #e5e5e5;
    border-top-color: #b11e22;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.pc-error {
    color: #e53935;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.pc-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #4caf50;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pc-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pc-toast-error {
    background: #e53935;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.pc-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pc-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.pc-whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

/* ============================================
   MOBILE RESPONSIVE - Tablet
   ============================================ */
@media (max-width: 991px) {
    /* Container - More breathing room */
    .pc-configurator-inner {
        padding: 32px 24px;
    }

    .pc-main {
        grid-template-columns: 1fr;
    }

    /* Progress Bar - Horizontal scroll with larger targets */
    .pc-progress-bar {
        padding: 16px 16px;
        gap: 8px;
        margin-bottom: 32px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .pc-progress-step {
        min-width: 72px;
        padding: 10px 12px;
        scroll-snap-align: start;
    }

    .pc-step-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 8px;
    }

    .pc-step-icon img {
        width: 28px;
        height: 28px;
    }

    .pc-step-name {
        font-size: 11px;
        font-weight: 500;
    }

    /* Brand Selection - Larger, more prominent */
    .pc-brand-selection {
        grid-template-columns: 1fr;
        max-width: 380px;
        gap: 24px;
        margin: 48px auto;
    }

    .pc-brand-card {
        padding: 40px 32px;
        min-height: 200px;
        border-radius: 24px;
    }

    .pc-brand-logo {
        min-height: 90px;
        margin-bottom: 20px;
    }

    .pc-brand-logo img {
        width: 180px;
        max-height: 70px;
    }

    .pc-brand-subtitle {
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    /* Products Grid - Better card sizing */
    .pc-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    /* Summary */
    .pc-summary-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pc-summary-item-price {
        text-align: left;
    }

    /* Navigation - Full width buttons */
    .pc-navigation {
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px 24px;
        gap: 16px;
        margin-top: 32px;
    }

    .pc-nav-left,
    .pc-nav-right {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .pc-btn {
        padding: 14px 24px;
        font-size: 14px;
        min-height: 48px;
    }

    .pc-btn-prev,
    .pc-btn-next {
        min-width: 140px;
        flex: 1;
        max-width: 200px;
    }

    .pc-skip-link {
        padding: 14px 20px;
        font-size: 14px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Sidebar - Taller default for better UX */
    .pc-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        z-index: 100;
        max-height: 80px;
        padding: 20px 24px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        cursor: pointer;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    }

    .pc-sidebar::before {
        content: '';
        display: block;
        width: 48px;
        height: 5px;
        background: #ddd;
        border-radius: 3px;
        margin: 10px auto 12px;
    }

    .pc-sidebar:hover,
    .pc-sidebar.expanded {
        max-height: 70vh;
        overflow-y: auto;
    }

    .pc-sidebar-header {
        position: relative;
    }

    .pc-sidebar-header-total {
        font-size: 20px;
    }

    /* Content spacing for fixed sidebar */
    .pc-content {
        padding-bottom: 100px;
    }

    .pc-whatsapp-btn {
        bottom: 100px;
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   MOBILE RESPONSIVE - Phone
   ============================================ */
@media (max-width: 576px) {
    /* Container - Balanced padding */
    .pc-configurator-inner {
        padding: 24px 16px;
    }

    /* Header - Larger, bolder */
    .pc-header {
        margin-bottom: 24px;
        position: relative;
    }

    .pc-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .pc-subtitle {
        font-size: 14px;
        color: #666;
    }

    /* Reset button - inline on mobile */
    .pc-btn-reset-top {
        position: relative;
        margin-top: 14px;
        display: inline-block;
        padding: 8px 16px;
        font-size: 11px;
    }

    /* Hide reset from bottom nav on mobile */
    .pc-nav-left {
        display: none !important;
    }

    /* Progress Bar - Compact but readable horizontal scroll */
    .pc-progress-bar {
        padding: 14px 12px;
        padding-right: 50px; /* Space for scroll indicator */
        border-radius: 14px;
        gap: 6px;
        margin-bottom: 28px;
        overflow-x: auto;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        /* Hide scrollbar but keep functionality */
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
    }

    /* Right fade gradient - scroll indicator */
    .pc-progress-bar::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 55px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.98) 60%);
        pointer-events: none;
        z-index: 5;
        border-radius: 0 14px 14px 0;
    }

    /* Animated arrow hint */
    .pc-progress-bar::before {
        content: '›';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 22px;
        font-weight: bold;
        color: var(--pc-primary);
        opacity: 0.85;
        z-index: 10;
        animation: scrollHintMobile 1.2s ease-in-out infinite;
    }

    @keyframes scrollHintMobile {
        0%, 100% {
            transform: translateY(-50%) translateX(0);
            opacity: 0.85;
        }
        50% {
            transform: translateY(-50%) translateX(4px);
            opacity: 1;
        }
    }

    .pc-progress-bar::-webkit-scrollbar {
        display: none;
    }

    .pc-progress-step {
        min-width: 64px;
        padding: 8px 10px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .pc-step-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 10px;
        margin-bottom: 6px;
    }

    .pc-step-icon img {
        width: 24px;
        height: 24px;
    }

    .pc-step-name {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.2px;
        line-height: 1.2;
    }

    /* Active step - More prominent */
    .pc-progress-step.active .pc-step-icon {
        transform: scale(1.08);
        box-shadow: 0 0 0 3px var(--pc-primary-light), 0 4px 12px rgba(177, 30, 34, 0.25);
    }

    /* Step Header - Stacked layout */
    .pc-step-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 24px;
        gap: 16px;
    }

    .pc-step-title {
        font-size: 1.25rem;
        text-align: center;
    }

    .pc-search-box {
        width: 100%;
        max-width: none;
    }

    .pc-search-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom */
        border-radius: 12px;
    }

    /* Brand Selection - Side-by-side compact cards */
    .pc-brand-selection {
        display: flex;
        flex-direction: row;
        gap: 12px;
        max-width: 100%;
        margin: 20px auto;
        padding: 0;
    }

    .pc-brand-card {
        flex: 1;
        padding: 20px 12px;
        min-height: 120px;
        border-radius: 16px;
        border-width: 2px;
    }

    .pc-brand-card:active {
        transform: scale(0.97);
    }

    .pc-brand-logo {
        min-height: 45px;
        margin-bottom: 10px;
    }

    .pc-brand-logo img {
        width: 85px;
        max-height: 35px;
    }

    .pc-brand-logo.intel-logo img {
        width: 75px;
        max-height: 30px;
    }

    .pc-brand-logo.amd-logo img {
        width: 90px;
        max-height: 32px;
    }

    .pc-brand-subtitle {
        font-size: 10px;
        letter-spacing: 1px;
        color: #555;
    }

    /* Products Grid - 2 columns with better spacing */
    .pc-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pc-product-card {
        border-radius: 14px;
    }

    .pc-product-card:active {
        transform: scale(0.98);
    }

    .pc-product-image {
        padding: 12px;
        min-height: 110px;
    }

    .pc-product-image img {
        max-height: 90px;
    }

    .pc-product-info {
        padding: 12px;
    }

    .pc-product-name {
        font-size: 12px;
        min-height: 34px;
        line-height: 1.4;
    }

    .pc-product-price {
        font-size: 16px;
        margin-top: 8px;
    }

    .pc-product-select {
        padding: 12px;
        font-size: 12px;
        min-height: 44px;
    }

    /* Navigation - Simplified bottom bar (Reset moved to header) */
    .pc-navigation {
        padding: 12px 16px;
        border-radius: 16px 16px 0 0;
        gap: 10px;
        margin-top: 20px;
    }

    .pc-nav-right {
        width: 100%;
        display: flex;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .pc-btn {
        padding: 14px 18px;
        font-size: 14px;
        min-height: 48px;
        border-radius: 12px;
    }

    .pc-btn:active {
        transform: scale(0.97);
    }

    .pc-btn-prev,
    .pc-btn-next {
        min-width: 0;
        flex: 1;
    }

    .pc-skip-link {
        padding: 14px 14px;
        font-size: 13px;
        min-height: 48px;
        border-radius: 12px;
        text-align: center;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Sidebar - Collapsible bottom sheet */
    .pc-sidebar {
        max-height: 72px;
        padding: 16px 20px;
        border-radius: 20px 20px 0 0;
    }

    .pc-sidebar::before {
        width: 40px;
        height: 4px;
        margin: 6px auto 10px;
        background: #ccc;
    }

    .pc-sidebar-header h3 {
        font-size: 13px;
    }

    .pc-sidebar-header-total {
        font-size: 18px;
        font-weight: 700;
    }

    /* Content bottom padding */
    .pc-content {
        padding-bottom: 100px;
    }

    /* WhatsApp button - positioned higher to avoid sidebar overlap */
    .pc-whatsapp-btn {
        bottom: 130px;
        right: 12px;
        width: 50px;
        height: 50px;
    }

    .pc-whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Summary page */
    .pc-summary-total {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .pc-total-label {
        font-size: 16px;
    }

    .pc-total-value {
        font-size: 24px;
    }

    .pc-summary-actions {
        flex-direction: column;
        gap: 12px;
    }

    .pc-summary-actions .pc-btn {
        width: 100%;
    }

    /* Loading state */
    .pc-loading {
        padding: 48px 20px;
    }
}

/* ============================================
   MOBILE RESPONSIVE - Extra Small Phone (iPhone SE, etc.)
   ============================================ */
@media (max-width: 375px) {
    .pc-configurator-inner {
        padding: 20px 12px;
    }

    .pc-title {
        font-size: 1.2rem;
    }

    .pc-progress-step {
        min-width: 58px;
        padding: 6px 8px;
    }

    .pc-step-icon {
        width: 40px;
        height: 40px;
    }

    .pc-step-icon img {
        width: 22px;
        height: 22px;
    }

    .pc-step-name {
        font-size: 9px;
    }

    .pc-brand-card {
        padding: 28px 20px;
        min-height: 160px;
    }

    .pc-brand-logo img {
        width: 140px;
        max-height: 50px;
    }

    .pc-products-grid {
        gap: 10px;
    }

    .pc-product-info {
        padding: 10px;
    }

    .pc-product-name {
        font-size: 11px;
    }

    .pc-product-price {
        font-size: 14px;
    }

    .pc-btn {
        padding: 12px 16px;
        font-size: 13px;
        min-height: 44px;
    }
}

/* ============================================
   TOUCH ENHANCEMENTS
   ============================================ */
/* Better active states for touch devices */
@media (hover: none) and (pointer: coarse) {
    .pc-brand-card:active,
    .pc-product-card:active,
    .pc-btn:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }

    .pc-progress-step:active .pc-step-icon {
        transform: scale(0.95);
    }
}

/* Focus visible for accessibility */
.pc-btn:focus-visible,
.pc-brand-card:focus-visible,
.pc-product-card:focus-visible {
    outline: 3px solid var(--pc-primary);
    outline-offset: 2px;
}

/* Smooth scroll behavior for progress bar */
.pc-progress-bar {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #888;
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.pc-skeleton-card {
    background: #fff;
    border-radius: var(--pc-radius);
    padding: 15px;
    box-shadow: var(--pc-shadow-sm);
    height: 100%;
    border: 1px solid transparent;
}

.pc-skeleton-image {
    height: 140px;
    width: 60%;
    margin: 0 auto 15px;
    border-radius: 8px;
}

.pc-skeleton-text {
    height: 14px;
    background: #f0f0f0;
    margin-bottom: 10px;
    border-radius: 4px;
}

.pc-skeleton-text.short {
    width: 60%;
}

.pc-skeleton-text.price {
    width: 40%;
    height: 20px;
    margin-top: auto;
}

.pc-skeleton-btn {
    height: 40px;
    width: 100%;
    margin-top: 15px;
    border-radius: 4px;
}

.pc-skeleton-pulse {
    background: #f0f0f0;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: pc-shine 1.5s linear infinite;
}

@keyframes pc-shine {
    to {
        background-position-x: -200%;
    }
}

@keyframes pc-click {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.pc-click-anim {
    animation: pc-click 0.3s ease;
}

/* ============================================
   EXTERNAL DOM OVERRIDES (Scoped)
   Applied only when module is active via JS class
   ============================================ */
body.pc-configurator-active #content-wrapper {
    padding-top: 0;
    padding-bottom: 0;
}

body.pc-configurator-active .page-title {
    margin-bottom: 0;
}

body.pc-configurator-active .elementor-container {
    padding-left: 0;
    padding-right: 0;
}