/**
 * PC Builder Pro - Public Styles
 */

/* Container */
.pc-builder-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* CSS Variables */
:root {
    --pc-primary-color: #ec1d24;
    --pc-secondary-color: #000000;
}

/* Header */
.pc-builder-header {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pc-builder-totals {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.total-item {
    display: flex;
    flex-direction: column;
}

.total-item .label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.total-item .value {
    font-size: 24px;
    font-weight: bold;
    color: var(--pc-primary-color, #ec1d24);
}

/* Section */
.pc-builder-section {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

/* Component Row */
.component-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.component-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.component-row.selected {
    background: #fff;
    border-color: var(--pc-primary-color, #ec1d24);
}

.component-row.empty {
    background: #f9f9f9;
}

/* Component Icon */
.component-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    /* background: var(--pc-primary-color, #ec1d24); */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-icon .dashicons {
    font-size: 28px;
    color: #fff;
    width: 28px;
    height: 28px;
}

/* Component Info */
.component-info {
    flex: 1;
    min-width: 0;
}

.component-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.required-mark {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
}

.component-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.selected-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

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

/* Component Actions */
.component-actions {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
}

.btn-choose,
.btn-change,
.btn-select-product {
    background: var(--pc-primary-color, #ec1d24);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-choose:hover,
.btn-change:hover,
.btn-select-product:hover {
    background: #b31217;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-remove {
    background: #e74c3c;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #c0392b;
}

.btn-remove .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Footer */
.pc-builder-footer {
    text-align: center;
    padding: 30px;
}

.validation-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ffeeba;
}

.btn-add-to-cart {
    background: #27ae60;
    color: #fff;
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-add-to-cart:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.btn-clear-all {
    background: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-clear-all:hover {
    background: #c0392b;
}

/* Component Selector */
.pc-builder-selector {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.selector-header {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-back {
    background: #34495e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #2c3e50;
}

.selector-title {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.products-count {
    color: #666;
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #333;
    min-height: 40px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--pc-primary-color, #ec1d24);
    margin-bottom: 10px;
}

.product-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-view-product {
    background: #34495e;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-product:hover {
    background: #2c3e50;
}

.no-products-message {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pc-builder-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pc-builder-totals {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .component-row {
        flex-direction: column;
        text-align: center;
    }

    .component-actions {
        width: 100%;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .selector-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Loading State */
.component-row.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ================================
   CUSTOM PRODUCT PAGE (BUILDER CONTEXT)
   ================================ */

/* Builder Context Banner */
.pc-builder-context-banner {
    background: linear-gradient(135deg, var(--pc-primary-color, #ec1d24) 0%, #b31217 100%);
    color: #fff;
    padding: 20px 30px;
    margin: 0 0 30px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-wrap: wrap;
    gap: 15px;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-content .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.banner-text strong {
    font-size: 18px;
    font-weight: 700;
}

.banner-text span {
    font-size: 14px;
    opacity: 0.95;
}

.btn-back-to-selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-back-to-selection:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-5px);
}

.btn-back-to-selection .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Product Page Wrapper */
.pc-builder-product-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Builder Product Actions */
.pc-builder-product-actions {
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border: 3px solid var(--pc-primary-color, #ec1d24);
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.pc-builder-product-actions::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--pc-primary-color, #ec1d24), #b31217);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.1;
}

.pc-builder-select-btn {
    background: var(--pc-primary-color, #ec1d24) !important;
    color: #fff !important;
    padding: 20px 50px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    width: 100%;
    max-width: 500px;
}

.pc-builder-select-btn:hover {
    background: #b31217 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.pc-builder-select-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pc-builder-action-note {
    margin: 15px 0 0 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    font-style: italic;
}

/* Hide WooCommerce elements in builder context */
.pc-builder-product-wrapper .related.products,
.pc-builder-product-wrapper .upsells.products,
.pc-builder-product-wrapper .cross-sells {
    display: none !important;
}

/* Enhance product gallery in builder context */
.pc-builder-product-wrapper .woocommerce-product-gallery {
    margin-bottom: 30px;
}

/* Info message below select button */
.pc-builder-product-actions::after {
    content: attr(data-message);
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* RTL Support for Builder Product Page */
.rtl .pc-builder-context-banner {
    direction: rtl;
}

.rtl .banner-content {
    direction: rtl;
}

.rtl .btn-back-to-selection:hover {
    transform: translateX(5px);
}

.rtl .btn-back-to-selection .dashicons {
    transform: scaleX(-1);
}

/* Mobile Responsive - Builder Product Page */
@media (max-width: 768px) {
    .pc-builder-context-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .banner-content {
        width: 100%;
    }

    .btn-back-to-selection {
        width: 100%;
        justify-content: center;
    }

    .pc-builder-select-btn {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        padding: 18px 30px !important;
        font-size: 18px !important;
    }

    .pc-builder-product-actions {
        padding: 20px 15px;
        margin: 20px 0;
    }
}

/* Animation for builder context */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.pc-builder-context-banner {
    animation: slideInFromTop 0.5s ease-out;
}

/* Highlight important product info in builder context */
.pc-builder-product-wrapper .product_meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--pc-primary-color, #ec1d24);
}

/* Quick Select Floating Button */
.pc-builder-quick-select {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: bounceIn 0.6s ease-out;
}

.btn-quick-jump {
    background: var(--pc-primary-color, #ec1d24);
    color: #fff;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-quick-jump:hover {
    background: #b31217;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

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

/* RTL Quick Select */
.rtl .pc-builder-quick-select {
    right: auto;
    left: 30px;
}

@media (max-width: 768px) {
    .pc-builder-quick-select {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }

    .rtl .pc-builder-quick-select {
        left: 20px;
    }

    .btn-quick-jump {
        width: 100%;
        justify-content: center;
        padding: 18px 25px;
    }
}

/* PC Builder v1.2.2 */

.pc-action-buttons-top,
.pc-action-buttons-bottom {
    display: flex !important;
    gap: 15px !important;
    margin: 25px 0 !important;
}

.pc-action-btn {
    flex: 1 !important;
    padding: 16px 30px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-transform: uppercase !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.pc-btn-red {
    background: #d32f2f !important;
    color: white !important;
}

.pc-btn-red:hover {
    background: #b71c1c !important;
    transform: translateY(-2px) !important;
}

.pc-btn-green {
    background: #4caf50 !important;
    color: white !important;
}

.pc-btn-green:hover {
    background: #388e3c !important;
    transform: translateY(-2px) !important;
}

.component-actions {
    display: flex !important;
    gap: 10px !important;
}

.btn-select-product {
    background: #ec1d24 !important;
    color: white !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.btn-select-product:hover {
    background: #c91920 !important;
    transform: scale(1.05) !important;
}

.btn-remove {
    background: #666 !important;
    color: white !important;
    padding: 8px 12px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

.btn-remove:hover {
    background: #333 !important;
}

.pc-product-modal,
.pc-confirm-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
}

.pc-product-modal .modal-content {
    position: relative !important;
    background: white !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 900px !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.pc-confirm-modal .modal-content {
    position: relative !important;
    background: white !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 500px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 25px !important;
    background: #f8f8f8 !important;
    border-bottom: 2px solid #e0e0e0 !important;
}

.modal-header h3 {
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
}

.modal-close {
    background: none !important;
    border: none !important;
    font-size: 32px !important;
    color: #666 !important;
    cursor: pointer !important;
}

.pc-product-modal .modal-body {
    padding: 20px !important;
    max-height: calc(85vh - 80px) !important;
    overflow-y: auto !important;
}

.pc-confirm-modal .modal-body {
    padding: 30px 25px !important;
}

.pc-confirm-modal .modal-body p {
    margin: 0 !important;
    font-size: 18px !important;
}

.modal-loading {
    text-align: center !important;
    padding: 40px !important;
    font-size: 18px !important;
}

.modal-products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 20px !important;
}

.product-card {
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 15px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.product-card:hover {
    border-color: #ec1d24 !important;
    box-shadow: 0 4px 12px rgba(236, 29, 36, 0.2) !important;
}

.product-card img {
    width: 100% !important;
    height: 150px !important;
    object-fit: contain !important;
    margin-bottom: 12px !important;
}

.product-card-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    min-height: 40px !important;
}

.product-card-price {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ec1d24 !important;
}

.modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    padding: 20px 25px !important;
    background: #f8f8f8 !important;
}

.modal-btn {
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.btn-ok {
    background: #2196f3 !important;
    color: white !important;
}

.btn-cancel {
    background: #e0e0e0 !important;
    color: #333 !important;
}

/* Force hide modals by default */
#product-modal,
#confirm-modal {
    display: none !important;
}

#product-modal.show,
#confirm-modal.show {
    display: flex !important;
}

/* Save Build Features */
.pc-btn-orange {
    background: #ff9800 !important;
    color: white !important;
}

.pc-btn-orange:hover {
    background: #f57c00 !important;
    transform: translateY(-2px) !important;
}

.pc-btn-blue {
    background: #2196f3 !important;
    color: white !important;
}

.pc-btn-blue:hover {
    background: #1976d2 !important;
    transform: translateY(-2px) !important;
}

.pc-saved-builds-wrapper {
    position: relative !important;
}

.pc-saved-builds-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 10px !important;
    background: white !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 1000 !important;
    min-width: 350px !important;
    max-width: 450px !important;
    max-height: 500px !important;
    overflow: hidden !important;
}

.saved-builds-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    border-bottom: 2px solid #e0e0e0 !important;
    background: #f8f8f8 !important;
}

.saved-builds-header h4 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.close-dropdown {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #666 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
}

.close-dropdown:hover {
    background: #e0e0e0 !important;
    color: #333 !important;
}

.saved-builds-list {
    max-height: 400px !important;
    overflow-y: auto !important;
}

.saved-build-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    transition: background 0.2s !important;
}

.saved-build-item:last-child {
    border-bottom: none !important;
}

.saved-build-item:hover {
    background: #f8f8f8 !important;
}

.saved-build-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.saved-build-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 5px !important;
    word-break: break-word !important;
}

.saved-build-meta {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
    font-size: 13px !important;
    color: #666 !important;
}

.saved-build-price {
    color: #ec1d24 !important;
    font-weight: 600 !important;
}

.saved-build-date {
    color: #999 !important;
}

.saved-build-actions {
    display: flex !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.load-saved-build,
.delete-saved-build {
    padding: 8px 12px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s !important;
}

.load-saved-build {
    background: #2196f3 !important;
    color: white !important;
}

.load-saved-build:hover {
    background: #1976d2 !important;
}

.delete-saved-build {
    background: #e74c3c !important;
    color: white !important;
    padding: 8px !important;
}

.delete-saved-build:hover {
    background: #c0392b !important;
}

.load-saved-build .dashicons,
.delete-saved-build .dashicons {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
}

.loading-builds,
.no-saved-builds,
.error-loading {
    padding: 30px 20px !important;
    text-align: center !important;
    color: #666 !important;
    font-size: 14px !important;
}

/* Save Build Modal */
.pc-save-build-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.pc-save-build-modal.show {
    display: flex !important;
}

.pc-save-build-modal .modal-content {
    position: relative !important;
    background: white !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 500px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.pc-save-build-modal .modal-body {
    padding: 25px !important;
}

.save-build-instruction {
    margin: 0 0 15px 0 !important;
    font-size: 15px !important;
    color: #333 !important;
}

.build-name-input {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    margin-bottom: 10px !important;
    transition: border-color 0.2s !important;
    box-sizing: border-box !important;
}

.build-name-input:focus {
    outline: none !important;
    border-color: #2196f3 !important;
}

.save-build-note {
    margin: 0 !important;
    font-size: 13px !important;
    color: #666 !important;
    font-style: italic !important;
}

/* RTL Support for saved builds */
[dir="rtl"] .pc-saved-builds-dropdown {
    left: auto !important;
    right: 0 !important;
}

/* Modern Notification System */
.pc-notifications {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    max-width: 400px !important;
}

[dir="rtl"] .pc-notifications {
    right: auto !important;
    left: 20px !important;
}

.pc-notification {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 18px 24px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 320px !important;
    backdrop-filter: blur(10px) !important;
}

[dir="rtl"] .pc-notification {
    animation: slideInLeft 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%) !important;
        opacity: 0 !important;
    }

    to {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-120%) !important;
        opacity: 0 !important;
    }

    to {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    to {
        transform: translateX(120%) !important;
        opacity: 0 !important;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    to {
        transform: translateX(-120%) !important;
        opacity: 0 !important;
    }
}

.pc-notification.hiding {
    animation: slideOutRight 0.3s ease-in forwards !important;
}

[dir="rtl"] .pc-notification.hiding {
    animation: slideOutLeft 0.3s ease-in forwards !important;
}

.pc-notification.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.pc-notification.error {
    background: linear-gradient(135deg, #b9151c 0%, #ec1d25 50%, #ff4a50 100%) !important;
}

.pc-notification.warning {
    background: linear-gradient(135deg, #b9151c 0%, #ec1d25 50%, #ff4a50 100%) !important;

}

.pc-notification.info {
    background: linear-gradient(135deg, #1f2933 0%, #3b4a5a 100%) !important;

}

.pc-notification-icon {
    font-size: 28px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
}

.pc-notification-content {
    flex: 1 !important;
}

.pc-notification-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.pc-notification-message {
    font-size: 14px !important;
    margin: 0 !important;
    opacity: 0.95 !important;
    line-height: 1.4 !important;
}

.pc-notification-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    transition: all 0.2s !important;
}

.pc-notification-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}

.pc-notification-progress {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    animation: progress 5s linear !important;
}

@keyframes progress {
    from {
        width: 100% !important;
    }

    to {
        width: 0% !important;
    }
}

@media (max-width: 768px) {
    .pc-notifications {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }

    [dir="rtl"] .pc-notifications {
        left: 10px !important;
    }

    .pc-notification {
        min-width: auto !important;
    }
}

/* ========================================
   COMPATIBILITY BADGES - GAMING STYLE
   ======================================== */

.product-card {
    position: relative !important;
    transition: all 0.3s ease !important;
}

/* Compatibility Badge */
.compat-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    animation: badgePulse 2s ease-in-out infinite !important;
}

/* Compatible Badge - Green Gaming Style */
.compat-badge.compat-yes {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%) !important;
    color: #000 !important;
    border: 2px solid #00ff88 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.compat-badge.compat-yes .badge-icon {
    font-size: 16px !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px #00ff88 !important;
}

/* Incompatible Badge - Red Gaming Style */
.compat-badge.compat-no {
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%) !important;
    color: #fff !important;
    border: 2px solid #ff3333 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.compat-badge.compat-no .badge-icon {
    font-size: 16px !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px #ff3333 !important;
}

/* Warning Badge - Yellow/Orange for Compatible but Not Recommended */
.compat-badge.compat-warning {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%) !important;
    color: #000 !important;
    border: 2px solid #ffaa00 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.compat-badge.compat-warning .badge-icon {
    font-size: 16px !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px #ffaa00 !important;
}

.product-card:hover .compat-badge.compat-warning {
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.6) !important;
}

/* Warning Reason Styling */
.compat-reason.compat-reason-warning {
    color: #ff8800 !important;
    background: rgba(255, 170, 0, 0.1) !important;
    border-left: 3px solid #ffaa00 !important;
}

.compat-reason.compat-reason-error {
    color: #ff3333 !important;
    background: rgba(255, 51, 51, 0.1) !important;
    border-left: 3px solid #ff3333 !important;
}

@keyframes badgePulse {

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

    50% {
        transform: scale(1.05);
    }
}

/* Incompatible Product Card Styling */
.product-card.incompatible {
    opacity: 0.5 !important;
    filter: grayscale(50%) blur(1px) !important;
    cursor: not-allowed !important;
}

.product-card.incompatible:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.product-card.incompatible img {
    opacity: 0.4 !important;
}

/* Compatibility Reasons */
.compat-reasons {
    padding: 8px 12px !important;
    margin: 8px 0 !important;
    background: rgba(255, 51, 51, 0.1) !important;
    border-left: 3px solid #ff3333 !important;
    border-radius: 4px !important;
}

.compat-reason {
    font-size: 12px !important;
    color: #ff6666 !important;
    line-height: 1.4 !important;
    margin: 4px 0 !important;
}

/* RTL Support for Badges */
[dir="rtl"] .compat-badge {
    right: auto !important;
    left: 10px !important;
}

[dir="rtl"] .compat-reasons {
    border-left: none !important;
    border-right: 3px solid #ff3333 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .compat-badge {
        font-size: 11px !important;
        padding: 4px 10px !important;
        gap: 4px !important;
    }

    .compat-badge .badge-icon {
        font-size: 14px !important;
    }

    .compat-reason {
        font-size: 11px !important;
    }
}

/* Hover effect for compatible products */
.product-card:not(.incompatible):hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3) !important;
}

.product-card:not(.incompatible):hover .compat-badge.compat-yes {
    animation: badgeGlow 1s ease-in-out infinite !important;
}

@keyframes badgeGlow {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.4);
    }
}

/* Neon Effect for Compatible Badge */
.compat-badge.compat-yes::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(135deg, #00ff88, #00cc6a) !important;
    border-radius: 20px !important;
    opacity: 0 !important;
    z-index: -1 !important;
    transition: opacity 0.3s !important;
    filter: blur(8px) !important;
}

.product-card:hover .compat-badge.compat-yes::before {
    opacity: 0.7 !important;
}

/* Gaming Glow Effect */
.product-card:not(.incompatible)::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 8px !important;
    opacity: 0 !important;
    transition: opacity 0.3s !important;
    pointer-events: none !important;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, transparent 100%) !important;
}

.product-card:not(.incompatible):hover::after {
    opacity: 1 !important;
}

/* ========================================
   RAM SLOTS INFO BADGE
   ======================================== */

.ram-slots-info {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 12px !important;
    padding: 10px 14px !important;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%) !important;
    border-radius: 8px !important;
    border: 2px solid #00d4ff !important;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3) !important;
}

.ram-slots-icon {
    font-size: 18px !important;
    line-height: 1 !important;
}

.ram-slots-text {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #000 !important;
    line-height: 1.4 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

/* RTL Support */
[dir="rtl"] .ram-slots-info {
    flex-direction: row-reverse !important;
}

/* Responsive */
@media (max-width: 768px) {
    .ram-slots-info {
        padding: 8px 12px !important;
    }

    .ram-slots-text {
        font-size: 12px !important;
    }
}


/* ========================================
   SHARE MODAL
   ======================================== */

#share-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#share-modal .modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

#share-modal .modal-content {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    width: 90% !important;
    max-width: 600px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6) !important;
    z-index: 1 !important;
    animation: modalFadeIn 0.3s ease !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

#share-modal .modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 24px 30px !important;
    background: linear-gradient(135deg, #ec1d24 0%, #c41018 100%) !important;
    border-radius: 16px 16px 0 0 !important;
}

#share-modal .modal-header h3 {
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#share-modal .modal-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    font-size: 28px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

#share-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg) !important;
}

#share-modal .modal-body {
    padding: 30px !important;
}

#share-modal .modal-body p {
    margin: 0 0 20px 0 !important;
    font-size: 16px !important;
    color: #333 !important;
    line-height: 1.6 !important;
}

.share-url-container {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
    align-items: stretch !important;
}

#share-url-input {
    flex: 1 !important;
    padding: 14px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: 'Courier New', monospace !important;
    background: #f9f9f9 !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
}

#share-url-input:focus {
    border-color: #ec1d24 !important;
    outline: none !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(236, 29, 36, 0.1) !important;
}

.btn-copy {
    padding: 14px 24px !important;
    background: linear-gradient(135deg, #00bcd4 0%, #0099cc 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3) !important;
}

.btn-copy:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5) !important;
}

.btn-copy:active {
    transform: translateY(0) !important;
}

.btn-copy .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

/* RTL Support */
[dir="rtl"] #share-modal .modal-header {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .share-url-container {
    flex-direction: row-reverse !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #share-modal .modal-content {
        width: 95% !important;
        margin: 20px !important;
    }

    #share-modal .modal-header {
        padding: 20px !important;
    }

    #share-modal .modal-header h3 {
        font-size: 20px !important;
    }

    #share-modal .modal-body {
        padding: 20px !important;
    }

    .share-url-container {
        flex-direction: column !important;
    }

    .btn-copy {
        justify-content: center !important;
    }
}