/* Monta PC Frontend Styles */

.monta-pc-builder {
    --monta-pc-primary: #0073aa;
    --monta-pc-primary-light: #0073aa20;
    --monta-pc-success: #46b450;
    --monta-pc-error: #dc3232;
    --monta-pc-warning: #f56e28;
    --monta-pc-border: #ddd;
    --monta-pc-background: #f9f9f9;
    --monta-pc-text: #333;
    --monta-pc-text-light: #666;
}

.monta-pc-builder * {
    box-sizing: border-box;
}

.monta-pc-builder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--monta-pc-text);
}

/* Header */
.monta-pc-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--monta-pc-primary), #005177);
    color: white;
    border-radius: 12px;
}

.monta-pc-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 300;
}

.monta-pc-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Progress Bar */
.monta-pc-progress {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--monta-pc-primary), #005177);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 120px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: var(--monta-pc-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
}

.progress-step.active .step-number {
    background: var(--monta-pc-primary);
    color: white;
    transform: scale(1.1);
    border-color: var(--monta-pc-primary);
    box-shadow: 0 0 0 4px var(--monta-pc-primary-light);
}

.progress-step.completed .step-number {
    background: var(--monta-pc-success);
    color: white;
    border-color: var(--monta-pc-success);
}

.progress-step.completed .step-number::before {
    content: "✓";
    font-size: 20px;
}

.step-name {
    font-size: 14px;
    text-align: center;
    color: var(--monta-pc-text-light);
    font-weight: 500;
    max-width: 120px;
    line-height: 1.3;
}

.progress-step.active .step-name {
    color: var(--monta-pc-primary);
    font-weight: 600;
}

/* Steps */
.pc-step {
    background: white;
    border: 1px solid var(--monta-pc-border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.pc-step:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.step-header {
    margin-bottom: 30px;
    text-align: center;
}

.step-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-header h3 {
    color: var(--monta-pc-primary);
    margin: 0;
    font-size: 2em;
    font-weight: 600;
}

.selection-badge {
    background: var(--monta-pc-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-quantity-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #28a745;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.product-quantity-badge.show {
    opacity: 1;
    transform: scale(1);
}

.step-description {
    color: var(--monta-pc-text-light);
    margin: 0;
    font-size: 1.1em;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.product-card:hover {
    border-color: var(--monta-pc-primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.product-card:hover::before {
    background: var(--monta-pc-primary);
}

.product-card.selected {
    border-color: var(--monta-pc-primary);
    background: var(--monta-pc-primary-light);
    box-shadow: 0 8px 25px rgba(0,115,170,0.2);
}

.product-card.selected::before {
    background: var(--monta-pc-primary);
}

.product-card.selected::after {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--monta-pc-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
    background: var(--monta-pc-background);
}

.product-image-placeholder {
    width: 100%;
    height: 180px;
    background: var(--monta-pc-background);
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--monta-pc-text-light);
    font-size: 14px;
}

.product-image-placeholder::before {
    content: "📦";
    font-size: 48px;
}

.product-name {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--monta-pc-text);
    font-size: 16px;
    line-height: 1.4;
}

.product-price {
    color: var(--monta-pc-primary);
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 15px;
}

.product-attributes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.product-attributes .attribute {
    display: inline-block;
    background: var(--monta-pc-background);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--monta-pc-text-light);
    margin: 2px 4px 2px 0;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.button {
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    color: var(--monta-pc-text);
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-primary {
    background: var(--monta-pc-primary);
    color: white;
    border-color: var(--monta-pc-primary);
}

.button-primary:hover:not(:disabled) {
    background: #005177;
    border-color: #005177;
}

/* Summary */
.monta-pc-summary {
    background: white;
    border: 1px solid var(--monta-pc-border);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.monta-pc-summary h3 {
    color: var(--monta-pc-primary);
    margin: 0 0 25px 0;
    font-size: 1.5em;
    text-align: center;
}

.selected-products {
    margin-bottom: 25px;
}

.selected-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.selected-product:last-child {
    border-bottom: none;
}

.product-info {
    flex: 1;
}

.product-info strong {
    color: var(--monta-pc-primary);
}

.total-price {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--monta-pc-primary);
    padding: 25px 0;
    border-top: 3px solid var(--monta-pc-primary);
    background: var(--monta-pc-primary-light);
    border-radius: 8px;
}

/* Success Message */
.monta-pc-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.success-content {
    background: white;
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: successSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-content h3 {
    color: var(--monta-pc-success);
    margin: 0 0 20px 0;
    font-size: 2em;
}

.success-content p {
    margin: 0 0 30px 0;
    color: var(--monta-pc-text-light);
    line-height: 1.6;
}

.success-content .button {
    margin: 0 10px 10px 0;
}

/* Loading States */
.products-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--monta-pc-text-light);
}

.products-loading::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--monta-pc-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.no-products,
.error-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--monta-pc-background);
    border-radius: 12px;
    color: var(--monta-pc-text-light);
}

.error-products {
    background: #fff5f5;
    color: var(--monta-pc-error);
    border: 1px solid #fed7d7;
}

/* Login Required */
.monta-pc-login-required,
.monta-pc-no-steps {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border: 1px solid var(--monta-pc-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.monta-pc-login-required h3,
.monta-pc-no-steps h3 {
    color: var(--monta-pc-primary);
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .monta-pc-builder {
        padding: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile Navigation Footer */
.mobile-nav-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--monta-pc-primary);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 10001;
    padding: 0;
    transition: transform 0.3s ease;
}

/* Hide mobile footer when modal is open */
.mobile-nav-footer.hidden {
    transform: translateY(100%);
    visibility: hidden;
}

.mobile-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 15px;
}

.mobile-step-info {
    flex-shrink: 0;
    text-align: left;
}

.mobile-step-counter {
    font-size: 18px;
    font-weight: bold;
    color: var(--monta-pc-primary);
    margin-bottom: 2px;
}

.mobile-current-step-name {
    font-size: 12px;
    color: var(--monta-pc-text-light);
    font-weight: 500;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav-buttons {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.mobile-nav-btn {
    background: var(--monta-pc-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 90px;
    justify-content: center;
}

.mobile-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.mobile-nav-btn:not(:disabled):hover {
    background: #005177;
    transform: translateY(-1px);
}

.mobile-prev-btn {
    background: #6c757d;
}

.mobile-prev-btn:hover {
    background: #5a6268;
}

.mobile-btn-icon {
    font-size: 14px;
}

.mobile-btn-text {
    font-size: 12px;
}

/* Mobile Cart Button */
.mobile-cart-button {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--monta-pc-primary);
    color: white;
    border-radius: 50px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0,115,170,0.3);
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    min-width: 100px;
}

.mobile-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,115,170,0.4);
}

.mobile-cart-button .cart-icon {
    font-size: 24px;
    margin-bottom: 5px;
    text-align: center;
}

.mobile-cart-button .cart-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.mobile-cart-button .cart-count {
    font-size: 12px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.mobile-cart-button .cart-total {
    font-size: 11px;
    font-weight: 600;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .monta-pc-header h2 {
        font-size: 1.8em;
        text-align: center;
    }
    
    .pc-step {
        padding: 20px 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-image {
        height: 120px;
        margin-bottom: 10px;
    }
    
    .product-name {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .progress-steps {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .progress-step {
        flex: 0 0 auto;
        margin: 0;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-name {
        font-size: 11px;
        max-width: 80px;
    }
    
    /* Show mobile navigation footer */
    .mobile-nav-footer {
        display: block;
    }
    
    /* Show mobile cart button */
    .mobile-cart-button {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* FORCE hide sidebar on mobile - Override ALL styles */
    body .monta-pc-footer-nav {
        position: fixed !important;
        top: 0 !important;
        left: -100vw !important;
        bottom: 0 !important;
        width: 320px !important;
        background: white !important;
        border-right: 3px solid var(--monta-pc-primary) !important;
        border-left: none !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.3) !important;
        z-index: 9999 !important;
        transition: left 0.3s ease !important;
        transform: translateX(-100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Show sidebar when active */
    body .monta-pc-footer-nav.active {
        left: 0 !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .footer-nav-content {
        height: 100% !important;
        overflow-y: auto;
    }
    
    .footer-selected-summary {
        margin-bottom: 20px;
    }
    
    .selected-items-preview {
        flex-direction: column;
        gap: 10px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .selected-item-chip {
        flex-direction: row;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }
    
    .selected-item-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        flex: 1;
        margin-left: 10px;
    }
    
    .selected-item-step {
        display: block;
        font-size: 11px;
        color: var(--monta-pc-primary);
        font-weight: 600;
    }
    
    .selected-item-name {
        font-size: 13px;
        font-weight: 600;
        white-space: normal;
        max-width: none;
    }
    
    .selected-item-price {
        font-size: 14px;
        color: var(--monta-pc-primary);
        font-weight: bold;
    }
    
    .footer-total-price {
        font-size: 18px;
        text-align: center;
        margin: 15px 0;
        padding: 15px;
        background: var(--monta-pc-primary-light);
        border-radius: 8px;
        font-weight: bold;
        color: var(--monta-pc-primary);
    }
    
    .footer-nav-controls {
        margin-top: auto;
        padding-top: 20px;
        border-top: 2px solid #e0e0e0;
    }
    
    .step-info {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .step-counter {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .current-step-name {
        font-size: 13px;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-buttons .button {
        padding: 15px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .monta-pc-builder {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-bottom: 90px !important;
    }
    
    /* FORCE hide sidebar completely on mobile */
    body .monta-pc-footer-nav {
        display: none !important;
    }
    
    body .monta-pc-footer-nav.active {
        display: block !important;
        left: 0 !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 480px) {
    .monta-pc-builder {
        padding: 10px !important;
    }
    
    .monta-pc-header {
        padding: 15px 10px;
    }
    
    .monta-pc-header h2 {
        font-size: 1.5em;
    }
    
    .monta-pc-progress {
        padding: 15px 10px;
    }
    
    .pc-step {
        padding: 15px 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-image {
        height: 100px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .step-name {
        font-size: 10px;
        max-width: 60px;
    }
    
    .monta-pc-footer-nav {
        width: 100% !important;
        left: -100% !important;
    }
    
    .mobile-cart-button {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
        min-width: 100px;
    }
    
    .mobile-cart-button .cart-icon {
        font-size: 20px;
    }
}

/* Sidebar Navigation - Desktop Only */
@media (min-width: 769px) {
    .monta-pc-footer-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 350px !important;
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
        border-right: 3px solid var(--monta-pc-primary) !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.12) !important;
        z-index: 9999 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-y: auto;
        display: block !important;
        visibility: visible !important;
        transform: none !important;
    }
}


.footer-nav-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px 20px 20px;
    height: 100%;
}

/* Sidebar Header */
.sidebar-header {
    background: var(--monta-pc-primary);
    color: white;
    padding: 15px;
    margin: 0 -20px 20px -20px;
    border-radius: 0;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Selected Products Summary */
.footer-selected-summary {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.summary-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--monta-pc-text);
}

.total-items {
    color: var(--monta-pc-primary);
    font-size: 12px;
    background: var(--monta-pc-primary-light);
    padding: 4px 8px;
    border-radius: 12px;
}

.selected-items-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.selected-item-chip {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: var(--monta-pc-text);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    transition: all 0.2s ease;
}

.selected-item-chip:hover {
    border-color: var(--monta-pc-primary);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.selected-item-chip .item-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    background: var(--monta-pc-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.selected-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.selected-item-step {
    font-size: 11px;
    color: var(--monta-pc-primary);
    font-weight: 600;
    text-transform: uppercase;
}

.selected-item-name {
    font-size: 13px;
    color: var(--monta-pc-text);
    font-weight: 500;
}

.selected-item-price {
    font-size: 14px;
    color: var(--monta-pc-primary);
    font-weight: bold;
}

.empty-state {
    color: var(--monta-pc-text-light);
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 30px 0;
}

.footer-total-price {
    font-size: 20px;
    color: var(--monta-pc-primary);
    font-weight: bold;
    text-align: center;
    padding: 15px;
    background: var(--monta-pc-primary-light);
    border-radius: 8px;
    margin-top: 10px;
}

/* Navigation Controls */
.footer-nav-controls {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.step-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.step-counter {
    font-size: 24px;
    font-weight: bold;
    color: var(--monta-pc-primary);
    margin-bottom: 5px;
}

.current-step-name {
    font-size: 14px;
    color: var(--monta-pc-text-light);
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-buttons .button {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 2px solid transparent;
}

.nav-buttons .button:not(.button-primary) {
    background: #f8f9fa;
    color: var(--monta-pc-text);
    border-color: #e0e0e0;
}

.nav-buttons .button:not(.button-primary):hover:not(:disabled) {
    background: #e9ecef;
    border-color: var(--monta-pc-primary);
    transform: translateY(-1px);
}

.nav-buttons .button-primary {
    background: linear-gradient(135deg, var(--monta-pc-primary), #005177);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.nav-buttons .button-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,115,170,0.4);
}

.button-icon {
    font-size: 12px;
    font-weight: bold;
}

.button-text {
    font-size: 13px;
}

/* Review Modal */
.monta-pc-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.review-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.review-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--monta-pc-primary);
    color: white;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.review-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-review {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-review:hover {
    background: rgba(255,255,255,0.2);
}

.review-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.review-content {
    padding: 25px;
}

.review-summary h4 {
    margin: 0 0 20px 0;
    color: var(--monta-pc-text);
    font-size: 16px;
    font-weight: 600;
}

.review-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.review-product {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

.review-product-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: var(--monta-pc-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-product-step {
    font-size: 12px;
    color: var(--monta-pc-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.review-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--monta-pc-text);
    margin-bottom: 4px;
}

.review-product-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--monta-pc-primary);
}

.review-total {
    font-weight: bold;
    color: var(--monta-pc-primary);
}

.review-actions {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
}

.review-actions .button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 120px;
    text-align: center;
}

.review-actions .button:not(.button-primary) {
    background: white;
    color: var(--monta-pc-text);
    border-color: #e0e0e0;
}

.review-actions .button:not(.button-primary):hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.review-actions .button-primary {
    background: linear-gradient(135deg, var(--monta-pc-primary), #005177);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.review-actions .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

/* Mobile adjustments for review modal */
@media (max-width: 768px) {
    .review-modal-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .review-header {
        padding: 15px 20px;
    }
    
    .review-content {
        padding: 20px;
    }
    
    .review-actions {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .review-actions .button {
        width: 100%;
        min-width: auto;
    }
}

/* Desktop: Add left padding to prevent content from being hidden behind sidebar */
@media (min-width: 769px) {
    .monta-pc-builder {
        padding-left: 370px !important;
        padding-bottom: 20px !important;
        margin-bottom: 0 !important;
        max-width: none !important;
    }
}

/* Mobile: No sidebar padding */
@media (max-width: 768px) {
    .monta-pc-builder {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-bottom: 20px !important;
        margin-bottom: 0 !important;
        max-width: none !important;
    }
}

/* Ensure products grid uses full available width */
.pc-step {
    max-width: none !important;
    width: 100% !important;
}

/* Ensure footer is always visible */
body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Override any theme styles that might interfere */
.monta-pc-footer-nav {
    display: block !important;
    visibility: visible !important;
}

/* Selection info styling */
.selection-info {
    background: var(--monta-pc-primary-light);
    color: var(--monta-pc-primary);
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    font-weight: 500;
}

/* Multiple selection styling */
.pc-step[data-selection-type="multiple"] .product-card {
    position: relative;
}

.pc-step[data-selection-type="multiple"] .product-card.selected::after {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--monta-pc-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
}

.pc-step[data-selection-type="multiple"] .product-card.selected {
    border-color: var(--monta-pc-success);
    background: #f0f8f0;
}

/* Print Styles */
@media print {
    .monta-pc-builder {
        box-shadow: none;
        padding: 0;
    }
    
    .step-actions,
    .monta-pc-progress,
    .monta-pc-success,
    .monta-pc-footer-nav {
        display: none !important;
    }
    
    .pc-step {
        display: block !important;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }
    
    .products-grid {
        display: block;
    }
    
    .product-card {
        display: inline-block;
        width: 100%;
        margin-bottom: 10px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .product-card.selected {
        background: #f0f0f0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .monta-pc-builder {
        --monta-pc-primary: #000080;
        --monta-pc-border: #000;
        --monta-pc-text: #000;
    }
    
    .product-card {
        border-width: 3px;
    }
    
    .button {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .progress-fill {
        transition: none;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .button:hover:not(:disabled) {
        transform: none;
    }
}
