body {
    background-color: #fbfbfb;
    color: var(--text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6
}

h1,
h2,
h3 {
    font-family: inherit;
    font-weight: 700
}

.old-header {
    display: none
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

.cart-icon-container {
    position: relative;
    cursor: pointer
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: #000;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%
}

.search-container {
    padding: 2rem 5% 1rem;
    text-align: center
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative
}

.search-box input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid #ddd;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: #1a1a1a;
    font-size: 1rem;
    transition: all .3s ease
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 210, 255, .3)
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 5% 5rem
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glass-shadow)
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 1rem
}

.product-ref {
    color: var(--text-muted);
    font-size: .8rem;
    margin-bottom: .5rem
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    flex-grow: 1
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color)
}

.btn-add {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: .8rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity .3s ease
}

.btn-add:hover {
    opacity: .9
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(13, 13, 13, .95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 5000;
    transition: right .3s ease-in-out;
    padding: 2rem;
    display: flex;
    flex-direction: column
}

.cart-panel.open {
    right: 0
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff
}

.cart-item-info {
    flex-grow: 1
}

.cart-item-title {
    font-size: .9rem;
    font-weight: 600
}

.cart-item-price {
    font-size: .85rem;
    color: var(--primary-color)
}

.cart-total {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between
}

.btn-checkout {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--accent-color);
    color: #000;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px
}

.pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding-bottom: 4rem;
    flex-wrap: wrap
}

.page-link {
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    padding: .5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all .3s ease;
    min-width: 40px;
    text-align: center
}

.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color)
}

.page-link:hover:not(.active) {
    border-color: var(--primary-color)
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem
}

.modal.show {
    display: flex
}

.modal-content {
    background: #fff !important;
    color: #1a1a1a !important;
    border: 1px solid #ddd;
    border-radius: 24px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    animation: fadeIn .4s ease
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #666 !important;
    cursor: pointer;
    transition: all .3s;
    line-height: 1;
    z-index: 10
}

.close-modal:hover {
    color: var(--primary-color) !important;
    transform: rotate(90deg)
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem
}

@media (max-width:768px) {
    .modal-grid {
        grid-template-columns: 1fr
    }

    .modal-content {
        padding: 2rem 1.5rem
    }
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: #fafafa !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee
}

.spec-table tr:nth-child(even) {
    background: #f1f1f1 !important
}

.spec-table th,
.spec-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: .95rem;
    color: #1a1a1a !important
}

.spec-table th {
    color: #555 !important;
    font-weight: 600;
    width: 40%;
    background: rgba(0, 0, 0, .02)
}

.compat-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem
}

.compat-item {
    background: #fff !important;
    color: #1a1a1a !important;
    padding: .8rem 1rem;
    border-radius: 10px;
    font-size: .85rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .02);
    text-align: center;
    font-weight: 500
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.product-card {
    animation: fadeIn .5s ease backwards
}