:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --sidebar-width: 250px;
    --header-height: 140px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
}
body.modal-open {
    pointer-events: none;
}
body.modal-open .modal.show,
body.modal-open .modal.show .modal-content,
body.modal-open .modal.show .close-modal,
body.modal-open .modal.show button,
body.modal-open .modal.show input,
body.modal-open .modal.show select,
body.modal-open .modal.show .cart-item-controls button,
body.modal-open .modal.show .quantity-controls button,
body.modal-open .modal.show .remove-item {
    pointer-events: auto;
}
body.modal-open .modal.show ~ .main-header,
body.modal-open .modal.show ~ .content-wrapper,
body.modal-open .modal.show ~ .cart-button {
    pointer-events: none;
    opacity: 0.5;
    filter: blur(1px);
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}
.main-header {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 90;
    height: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.main-header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}
.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}
.content-wrapper {
    display: flex;
    gap: 2rem;
    padding: 0 2rem 2rem;
}
.category-nav {
    width: var(--sidebar-width);
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: calc(2rem + var(--header-height));
}
.nav-links {
    list-style: none;
}
.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    gap: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.nav-link i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}
.nav-link:hover, .nav-link.active {
    background: #f0f9ff;
    color: var(--primary-color);
}
.main-content {
    flex: 1;
}
.search-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
}
.search-container input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}
.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.filters {
    display: flex;
    gap: 1rem;
}
.filters select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    background: white;
    font-size: 1rem;
    cursor: pointer;
}
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.component-card {
    background: var(--card-background);
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.component-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.component-card.selected {
    border-color: var(--primary-color);
    background-color: #f0f9ff;
}
.component-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.specs {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.specs p {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.specs p strong {
    color: var(--primary-color);
    min-width: 120px;
    display: inline-block;
}
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition);
}
.quantity-btn:hover {
    background: #e2e8f0;
}
.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}
.details-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}
.details-btn:hover {
    background-color: var(--secondary-color);
}
.cart-button {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    z-index: 100;
}
.cart-button:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 0;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1001;
}
.modal.show .modal-content {
    transform: scale(1);
}
.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
}
.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}
.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-modal:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
}
.cart-item {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}
.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.cart-item-title {
    font-weight: 600;
    color: var(--primary-color);
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition);
}
.quantity-btn:hover {
    background: #e2e8f0;
}
.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}
.remove-item {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.remove-item:hover {
    background: #fecaca;
}
.cart-item-specs {
    font-size: 0.875rem;
}
.cart-item-specs p {
    margin-bottom: 0.25rem;
}
.cart-item-specs strong {
    color: var(--primary-color);
}
.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}
.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.8);
}
.add-component-btn, .confirm-cart-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}
.add-component-btn:hover, .confirm-cart-btn:hover {
    background: var(--secondary-color);
}
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.checkout-form input,
.checkout-form select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
    margin-bottom: 1rem;
}
.checkout-form input:focus,
.checkout-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}
.form-row > * {
    flex: 1;
    margin-bottom: 0;
}
.form-row input,
.form-row select {
    margin-bottom: 1rem;
}
.checkout-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.primary-btn {
    background-color: var(--primary-color);
    color: white;
}
.primary-btn:hover {
    background-color: var(--secondary-color);
}
.secondary-btn {
    background-color: #e2e8f0;
    color: var(--text-color);
}
.secondary-btn:hover {
    background-color: #cbd5e1;
}
.spec-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(241, 245, 249, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid rgba(226, 232, 240, 0.5);
}
.spec-group h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.spec-item:last-child {
    border-bottom: none;
}
.spec-label {
    color: var(--text-color);
    font-weight: 500;
}
.spec-value {
    color: var(--primary-color);
}
.build-tier {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}
.build-tier.entry,
.build-tier.entry-intel,
.build-tier.budget-intel {
    background-color: #dbeafe;
    color: #1e40af;
}
.build-tier.midhigh,
.build-tier.mid-high,
.build-tier.mid-high-intel {
    background-color: #fae8ff;
    color: #86198f;
}
.build-tier.high,
.build-tier.high-intel,
.build-tier.extreme-intel {
    background-color: #fee2e2;
    color: #991b1b;
}
.component-card.build-card {
    padding-top: 3rem;
}
.component-card.build-card .specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.component-card.build-card .specs p {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 0;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}
.component-card.build-card .specs p strong {
    min-width: unset;
    color: var(--primary-color);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }
    .category-nav {
        width: 100%;
        position: relative;
        top: 0;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .nav-link {
        flex: 1;
        min-width: 120px;
        text-align: center;
        justify-content: center;
    }
    /*.nav-link span {*/
    /*    display: none;*/
    /*}*/

  .nav-label {
    display: none;
  }
  /*  .nav-link .dashicons {*/
  /*  display: inline-block;*/
  /*}*/


  /*    .nav-link span:not(.dashicons) {*/
  /*  display: none;*/
  /*}*/
    .search-filters {
        flex-direction: column;
    }
    .filters {
        width: 100%;
    }
    .filters select {
        flex: 1;
    }
    .main-header {
        height: auto;
        padding: 1.25rem 1rem;
    }
    .main-header h1 {
        font-size: 1.75rem;
    }
    .subtitle {
        font-size: 0.9rem;
    }
    .component-card.build-card .specs {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .component-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    .checkout-buttons {
        flex-direction: column;
    }
}
