:root {
    color-scheme: light;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: radial-gradient(circle at 10% 20%, rgba(94, 202, 255, 0.35) 0%, rgba(242, 247, 255, 0.95) 50%, #f5f7ff 100%);
    color: #1d2840;
}
body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(160deg, rgba(237,243,255,1) 0%, rgba(249,251,255,1) 100%);
    min-width: 280px;
}
a {
    color: inherit;
    text-decoration: none;
}
header {
    border-bottom: 1px solid rgba(94, 150, 255, 0.18);
    padding: 1.5rem 1.5rem 2.5rem;
    position: relative;
    overflow: visible;
    background: linear-gradient(140deg, rgba(255,255,255,0.92) 0%, rgba(231,241,255,0.95) 55%, rgba(210,236,255,0.85) 100%);
    z-index: 10000;
}
header .brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1140px;
    margin: 0 auto 2rem;
}
header .brand .identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
header .brand .identity img {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    object-fit: cover;
}
header .brand .identity .brand-name {
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1b2740;
}
@media (max-width: 960px) {
    header .brand .identity .brand-name {
        display: none;
    }
}
header .brand .contact {
    text-align: right;
}
header .brand .contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: rgba(94, 202, 255, 0.18);
    border: 1px solid rgba(94, 150, 255, 0.35);
    box-shadow: 0 10px 26px rgba(94, 150, 255, 0.18);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
header .brand .contact a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(94, 150, 255, 0.3);
}
header .brand .contact .contact-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 1rem;
}
header .brand .contact .phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1d2840;
    transition: color 0.2s ease;
    padding: 0;
    padding-left: 20px;
    border-right: 0;
}
header .brand .contact .phone-link:hover {
    color: #3664ff;
}
header .brand .contact .phone-number {
    font-weight: 600;
    font-size: 0.95rem;
    color: inherit;
}
header .brand .contact .phone-icon {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(190,214,255,0.75));
    border: 1px solid rgba(94, 150, 255, 0.35);
    box-shadow: 0 10px 20px rgba(142,176,255,0.25);
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
header .brand .contact .icon-link {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(190,214,255,0.75));
    border: 1px solid rgba(94, 150, 255, 0.35);
    box-shadow: 0 10px 20px rgba(142,176,255,0.25);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
header .brand .contact .icon-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(94, 150, 255, 0.35);
}
header .brand .contact .icon-link.phone-icon:hover {
    transform: none;
    box-shadow: 0 10px 20px rgba(142,176,255,0.25);
}
header .brand .contact .icon-link svg {
    width: 24px;
    height: 24px;
    fill: #3664ff;
}
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.search-overlay.is-active {
    display: block;
    opacity: 1;
}
header .search-bar {
    max-width: 1140px;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10010;
    display: none;
    width: 100%;
    pointer-events: none;
}
header .search-bar.is-open {
    display: block;
}
header .search-bar .search-form {
    pointer-events: auto;
}
header nav {
    position: relative;
    z-index: 10000;
}
header .search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(94, 150, 255, 0.3);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    box-shadow: 0 8px 20px rgba(94, 150, 255, 0.15);
    position: relative;
    z-index: 10001;
    transform-origin: center;
    transform: scaleX(0.25);
    opacity: 0;
    transition: transform 1s ease, opacity 0.3s ease, box-shadow 0.2s ease;
}
header .search-bar.is-open .search-form {
    transform: scaleX(1);
    opacity: 1;
}
header .search-form:focus-within {
    box-shadow: 0 12px 28px rgba(94, 150, 255, 0.25);
}
header .search-input-wrapper {
    flex: 1;
    position: relative;
    z-index: 10002;
}
header .search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #1d2840;
    outline: none;
    padding: 0.5rem 0.5rem;
    padding-right: 120px;
}
header .search-input::placeholder {
    color: rgba(29, 40, 64, 0.5);
}
header .search-button {
    background: linear-gradient(135deg, #5fc1ff, #6fe3ff);
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    color: #0c1730;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: absolute;
    right: 20px;
}
header .search-button:hover {
    transform: translateY(-1px);
}
header .search-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(94, 150, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(94, 150, 255, 0.25);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}
header .search-dropdown.active {
    display: block;
}
header .search-dropdown-section {
    padding: 0.75rem 0;
    z-index: 10;
}
header .search-dropdown-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(29, 40, 64, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(94, 150, 255, 0.15);
    margin-bottom: 0.5rem;
}
header .search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(94, 150, 255, 0.08);
}
header .search-dropdown-item:last-child {
    border-bottom: none;
}
header .search-dropdown-item:hover {
    background: rgba(94, 202, 255, 0.1);
}
header .search-dropdown-item-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(240, 245, 255, 0.8);
    flex-shrink: 0;
}
header .search-dropdown-item-images {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
header .search-dropdown-item-images a {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}
header .search-dropdown-item-images a:hover {
    transform: scale(1.1);
}
header .search-dropdown-item-images img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(240, 245, 255, 0.8);
}
header .search-dropdown-item-content {
    flex: 1;
    min-width: 0;
}
header .search-dropdown-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1b2740;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
header .search-dropdown-item-meta {
    font-size: 0.8rem;
    color: rgba(29, 40, 64, 0.6);
}
header .search-dropdown-item-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: #3664ff;
    margin-left: auto;
    flex-shrink: 0;
}
header .search-dropdown-loading {
    padding: 1.5rem;
    text-align: center;
    color: rgba(29, 40, 64, 0.5);
    font-size: 0.9rem;
}
header .search-dropdown-empty {
    padding: 1.5rem;
    text-align: center;
    color: rgba(29, 40, 64, 0.5);
    font-size: 0.9rem;
}
nav {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(240, 245, 255, 0.9);
    border: 1px solid rgba(94, 150, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 16px 28px rgba(143, 159, 255, 0.2);
    flex-wrap: wrap;
}
nav a {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: rgba(34, 47, 86, 0.78);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
@media (max-width: 1084px) {
    nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(94,150,255,0.4) rgba(240, 245, 255, 0.5);
        gap: 0.4rem;
    }
    nav::-webkit-scrollbar {
        height: 6px;
    }
    nav::-webkit-scrollbar-track {
        background: rgba(240, 245, 255, 0.5);
        border-radius: 999px;
    }
    nav::-webkit-scrollbar-thumb {
        background: rgba(94,150,255,0.4);
        border-radius: 999px;
    }
    nav::-webkit-scrollbar-thumb:hover {
        background: rgba(94,150,255,0.6);
    }
    nav a {
        white-space: nowrap;
        flex-shrink: 0;
    }
}
nav a:hover,
nav a.active {
    background: linear-gradient(135deg, rgba(94, 202, 255, 0.65), rgba(136, 154, 255, 0.75));
    color: #0c1230;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(94, 150, 255, 0.28);
}
nav a[href="/comanda-curier/"] {
    font-weight: 700;
    color: #0400ff;
}
main {
    max-width: 1140px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    gap: 2rem;
}
footer {
    margin-top: auto;
    padding: 0 1.5rem 2rem;
}
@media (max-width: 768px) {
    header .brand {
        align-items: flex-start;
        text-align: left;
    }
    header .brand .contact {
        text-align: left;
        margin-top: 1rem;
    }
    nav {
        justify-content: flex-start;
        border-radius: 18px;
    }
    main {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    footer {
        padding: 0 1rem 1.6rem;
    }
}
@media (max-width: 480px) {
    header {
        padding: 1.8rem 0.6rem 1.6rem;
    }
    header .brand {
        margin-bottom: 1.4rem;
        gap:0;
    }
    header .brand .contact .phone-number {
        display: none;
    }
    header .brand .contact .contact-icons {
        gap:0.4rem;
        margin-left:0;
    }
    header .brand .contact .phone-link {
        padding-left: 0px;
        border: none;
    }
    nav {
        padding: 0.2rem;
    }
    main {
        padding: 0 0.5rem;
        margin: 1.8rem auto;
    }
    footer {
        padding: 0 0.5rem 1.2rem;
    }
}
.cart-link {
    position: relative;
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 25px;
    height: 25px;
    border-radius: 999px;
    background: #ff4b4b;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #ffffff;
}
.cart-badge--lg {
    min-width: 24px;
    height: 24px;
    font-size: 0.8rem;
}
.red {
    color: #ff0000 !important;
    font-weight: 600 !important;
}
footer p {
    margin: 0.3rem 0 !important;
    padding: 0 !important;
}
footer {
    background: linear-gradient(180deg, rgba(243,248,255,0.95) 0%, rgba(225,239,255,0.95) 100%);
    color: #24365a;
    padding: 3rem 1.5rem 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(150,190,255,0.25);
}
.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}
.footer-link {
    color: inherit;
}
.footer-sal-sol-container {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-sal-sol-link {
    display: inline-block;
}
.footer-sal-sol-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    max-width: 220px;
}
.footer-copyright {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(51,72,110,0.6);
}
.footer-copyright--standalone {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(51,72,110,0.6);
}
.search-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(240, 245, 255, 0.8);
    font-size: 1rem;
}
.search-icon-wrapper--large {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(240, 245, 255, 0.8);
    font-size: 1.5rem;
}
.search-icon-wrapper--medium {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(240, 245, 255, 0.8);
    font-size: 1.2rem;
}
.ip-pass-message {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-bottom: 2px solid #ffc107;
    padding: 1rem;
    text-align: center;
    position: relative;
    z-index: 10001;
}
.ip-pass-message p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}
.brand-identity-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
}
.search-dropdown-loading,
.search-dropdown-empty {
    display: none;
}

/* CSS pentru piese */
.piese-page {
    display: grid;
    gap: 2.5rem;
    padding: 1rem 0 3rem;
}
.piese-hero {
    position: relative;
    background: linear-gradient(160deg, rgba(237,243,255,0.95) 0%, rgba(210,235,255,0.9) 60%, rgba(192,224,255,0.85) 100%);
    padding: 2.5rem;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(99, 140, 255, 0.18);
    display: grid;
    gap: 1.25rem;
}
.piese-hero__title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.piese-hero__title {
    flex: 1;
    min-width: 0;
}
.piese-hero__model-image {
    flex-shrink: 0;
}
.piese-hero__model-image a {
    display: block;
    text-decoration: none;
}
.piese-hero__model-image img {
    max-width: 120px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.piese-hero__model-image a:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
@media (max-width: 720px) {
    .piese-hero__title-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .piese-hero__model-image {
        align-self: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .piese-hero__model-image img {
        max-width: 100px;
    }
}
.piese-hero h1 {
    font-size: 2.4rem;
    margin: 0;
    color: #1b2540;
}
.piese-hero p {
    margin: 0;
    color: rgba(27, 37, 64, 0.78);
    max-width: 720px;
    line-height: 1.6;
}
.piese-hero__schimbare-link {
    margin-top: 1rem;
}
.piese-hero__schimbare-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #5fc1ff 0%, #6fe3ff 100%);
    color: #0c1730;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(95, 193, 255, 0.3);
}
.piese-hero__schimbare-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(95, 193, 255, 0.4);
}
.piese-filters {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(94, 150, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
    box-shadow: 0 12px 28px rgba(94, 150, 255, 0.15);
}
.piese-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}
.piese-filter-group {
    display: grid;
    gap: 0.5rem;
}
.piese-filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(29, 40, 64, 0.8);
}
.piese-filter-group select,
.piese-filter-group input {
    display: none;
}
.piese-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(94, 150, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    color: #1d2840;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.piese-filter-toggle:hover {
    background: linear-gradient(135deg, rgba(95, 193, 255, 0.1) 0%, rgba(111, 227, 255, 0.15) 100%);
    border-color: rgba(94, 150, 255, 0.5);
    box-shadow: 0 4px 12px rgba(95, 193, 255, 0.15);
}
.piese-filter-toggle--active {
    background: linear-gradient(135deg, #5fc1ff 0%, #6fe3ff 100%);
    border-color: rgba(95, 193, 255, 0.6);
    color: #0c1730;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(95, 193, 255, 0.3);
    font-size: 0.85rem;
}
.piese-filter-toggle--active .piese-filter-toggle__text {
    font-size: 0.85rem;
}
.piese-filter-toggle__text {
    flex: 1;
    text-align: left;
    transition: font-size 0.2s ease;
}
.piese-filter-toggle__icon {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    color: rgba(29, 40, 64, 0.6);
}
.piese-filter-toggle--active .piese-filter-toggle__icon {
    transform: rotate(180deg);
    color: #0c1730;
}
.piese-filter-toggle--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(240, 245, 255, 0.5);
}
.piese-filter-toggle--disabled:hover {
    background: rgba(240, 245, 255, 0.5);
    border-color: rgba(94, 150, 255, 0.3);
    box-shadow: none;
}
.piese-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1.5px solid rgba(94, 150, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(94, 150, 255, 0.2);
    padding: 0.75rem;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.piese-filter-dropdown__close {
    display: none;
}
.piese-filter-dropdown--open {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.piese-filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    max-height: 350px;
    overflow-y: auto;
}
.piese-filter-links::-webkit-scrollbar {
    width: 6px;
}
.piese-filter-links::-webkit-scrollbar-track {
    background: rgba(240, 245, 255, 0.5);
    border-radius: 3px;
}
.piese-filter-links::-webkit-scrollbar-thumb {
    background: rgba(94, 150, 255, 0.4);
    border-radius: 3px;
}
.piese-filter-links::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 150, 255, 0.6);
}
.piese-filter-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    border: 1.5px solid rgba(94, 150, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: #1d2840;
    text-decoration: none;
    min-width:60px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.piese-filter-link:hover {
    background: linear-gradient(135deg, rgba(95, 193, 255, 0.15) 0%, rgba(111, 227, 255, 0.2) 100%);
    border-color: rgba(94, 150, 255, 0.5);
    color: #0c1730;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(95, 193, 255, 0.2);
}
.piese-filter-link:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 6px rgba(95, 193, 255, 0.15);
}
.piese-filter-link--active {
    background: linear-gradient(135deg, #5fc1ff 0%, #6fe3ff 100%);
    border-color: rgba(95, 193, 255, 0.6);
    color: #0c1730;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(95, 193, 255, 0.3);
}
.piese-filter-link--active:hover {
    background: linear-gradient(135deg, #6fe3ff 0%, #7ff5ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(95, 193, 255, 0.35);
}
.piese-filter-link--all {
    background: rgba(240, 245, 255, 0.8);
    border-color: rgba(94, 150, 255, 0.25);
    color: rgba(29, 40, 64, 0.7);
}
.piese-filter-link--all:hover {
    background: rgba(240, 245, 255, 0.95);
    border-color: rgba(94, 150, 255, 0.4);
    color: #1d2840;
}
.piese-filter-group {
    position: relative;
}
.piese-filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: end;
}
.piese-filter-button {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #5fc1ff, #6fe3ff);
    color: #0c1730;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    white-space: nowrap;
}
.piese-filter-button:hover {
    transform: translateY(-1px);
}
.piese-filter-button--clear {
    background: rgba(240, 245, 255, 0.9);
    color: #1d2840;
    border: 1px solid rgba(94, 150, 255, 0.3);
}
.piese-results {
    display: grid;
    gap: 1.5rem;
}
.piese-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.piese-results-count {
    font-size: 0.95rem;
    color: rgba(29, 40, 64, 0.7);
}
.piese-empty {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(150,190,255,0.3);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 18px 36px rgba(169,201,255,0.2);
}
.sg-grid {
    display: grid;
    gap: 1.25rem;
}
.sg-grid--parts {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.sg-part {
    background: #ffffff;
    max-width: 400px;
    width: 100%;
    justify-self: center;
    border-radius: 28px;
    border: 1px solid rgba(150,190,255,0.25);
    box-shadow: 0 18px 38px rgba(169,201,255,0.24);
    display: grid;
    gap: 1rem;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.sg-part--link {
    display: grid;
    color: inherit;
    text-decoration: none;
}
.sg-part:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 52px rgba(130,170,255,0.28);
    border-color: rgba(94,150,255,0.35);
    background: linear-gradient(to bottom, #ffffff 0%, rgba(247,250,255,0.95) 100%);
}
.sg-part:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 16px 32px rgba(130,170,255,0.22);
    border-color: rgba(94,150,255,0.5);
    background: linear-gradient(to bottom, rgba(247,250,255,0.98) 0%, rgba(240,247,255,0.95) 100%);
}
.sg-part__media {
    position: relative;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    min-height: 180px;
}
.sg-part__media-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.sg-part__media-link:hover .sg-part__media {
    opacity: 0.9;
}
.sg-part__media-link:active .sg-part__media {
    opacity: 0.85;
    transform: scale(0.98);
}
.sg-part__media-link:focus {
    outline: 3px solid rgba(95, 193, 255, 0.4);
    outline-offset: 2px;
    border-radius: 28px 28px 0 0;
}
.sg-part__media::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 24px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(0deg, rgb(255 255 255 / 35%) 0%, rgba(18, 25, 48, 0.02) 100%);
}
.sg-part__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.sg-part:hover .sg-part__media img {
    transform: scale(1.25);
}
.sg-part:active .sg-part__media img {
    transform: scale(1.18);
}
.sg-part__body {
    display: grid;
    gap: 0.6rem;
    margin: 1.5rem;
}
.sg-part__badge {
    position: absolute;
    top: 2.4rem;
    left: -3px;
    padding: 0.35rem 0.95rem 0.35rem 1.1rem;
    border-radius: 0 999px 999px 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0c1730;
    background: rgba(94,150,255,0.85);
    box-shadow: 0 10px 18px rgba(94,150,255,0.25);
    transform: translateY(-45%);
    z-index: 3;
}
.sg-part__badge--original {
    background: rgb(0 255 74 / 95%);
    color: #1f5935;
}
.sg-part__badge--original-sh {
    background: rgba(168, 212, 255, 0.92);
    color: #0b3158;
}
.sg-part__badge--aftermarket {
    background: rgba(255, 210, 128, 0.9);
    color: #5c3b05;
}
.sg-part__badge--aftermarket-plusplus {
    background: rgb(222 255 172 / 92%);
    color: #2d6a23;
}
.sg-part__badge--refurbished {
    background: rgb(110 215 77 / 92%);
    color: #2f5536;
}
.sg-part__badge--compatibil {
    background: rgba(60, 165, 250, 0.9);
    color: #ffffff;
}
.sg-part__badge--premium {
    background: rgba(245, 158, 11, 0.9);
    color: #ffffff;
}
.sg-part__badge--default {
    background: rgba(94, 150, 255, 0.85);
    color: #0c1730;
}
.sg-part__brand-model {
    color: rgba(29,40,64,0.75);
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
}
.sg-part__brand {
    color: rgba(54,100,255,0.85);
    font-weight: 600;
}
.sg-part__model {
    color: rgba(29,40,64,0.8);
}
.sg-part__separator {
    color: rgba(29,40,64,0.4);
}
.sg-part__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1d2840;
    margin: 0;
}
.sg-part__meta {
    color: rgba(29,40,64,0.65);
    margin: 0;
    font-size: 0.9rem;
}
.sg-part__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
}
.sg-part__actions > .sg-cta__primary,
.sg-part__actions > .sg-cta__primary--ghost {
    width: 100%;
}
.sg-part--admin {
    border-color: rgba(255,90,90,0.4);
}
.sg-admin-tools {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.sg-admin-tools__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: space-evenly;
}
.sg-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.55rem;
    border-radius: 10px;
    border: 1px solid rgba(150,190,255,0.35);
    background: rgba(240,245,255,0.9);
    color: #1d2840;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
}
.sg-admin-btn--danger {
    background: #ff5a5a;
    color: #fff;
    border-color: #ff5a5a;
}
.sg-admin-btn--dark {
    background: #1d2233;
    color: #fff;
    border-color: #1d2233;
}
.sg-admin-input {
    max-width: 20px;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(150,190,255,0.45);
    font-size: 0.75rem;
    text-align: center;
}
.sg-admin-note {
    font-size: 0.75rem;
    color: rgba(29,40,64,0.6);
    text-shadow: 0 0 1px rgba(35,31,105,0.3);
}
.sg-cta__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, #5fc1ff 0%, #6fe3ff 100%);
    color: #0c1730;
}
.sg-cta__primary--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(94,150,255,0.45);
    color: #1d2840;
    background: rgba(240,245,255,0.7);
    font-weight: 600;
    width: 100%;
}
.sg-pagination {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}
.sg-pagination__link,
.sg-pagination__gap {
    min-width: 36px;
    height: 36px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    text-decoration: none;
    font-weight: 600;
}
.sg-pagination__link {
    background: rgba(240,245,255,0.9);
    color: #1d2840;
    border: 1px solid rgba(150,190,255,0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.sg-pagination__link:hover {
    background: rgba(94,150,255,0.2);
    box-shadow: 0 8px 16px rgba(150,190,255,0.2);
}
.sg-pagination__link--active {
    background: linear-gradient(135deg, #5fc1ff 0%, #6fe3ff 100%);
    color: #0c1730;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(111,212,255,0.28);
}
.sg-pagination__link--disabled {
    background: rgba(240,245,255,0.6);
    color: rgba(29,40,64,0.35);
    border-color: rgba(150,190,255,0.2);
    cursor: default;
}
.sg-pagination__gap {
    color: rgba(29,40,64,0.45);
}
@media (max-width: 720px) {
    .piese-filters-row {
        grid-template-columns: 1fr;
    }
    .piese-filter-actions {
        flex-direction: column;
        width: 100%;
    }
    .piese-filter-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        z-index: 10011;
        margin: 0;
        border-radius: 0;
        border: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }
    .piese-filter-dropdown--open {
        transform: translateY(0);
    }
    .piese-filter-dropdown__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        margin: 1rem 1rem 0 auto;
        border: none;
        background: rgba(94, 150, 255, 0.1);
        border-radius: 50%;
        color: #1d2840;
        font-size: 1.5rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
        position: relative;
        z-index: 10;
    }
    .piese-filter-dropdown__close:hover {
        background: rgba(94, 150, 255, 0.2);
        transform: scale(1.1);
    }
    .piese-filter-dropdown__close:active {
        transform: scale(0.95);
    }
    .piese-filter-links {
        gap: 0.75rem;
        max-height: none;
        overflow: auto;
        padding: 4rem 1.5rem 1.5rem;
        align-items: flex-start;
        justify-content: flex-start;
        margin-top: 0;
        
    }
    .piese-filter-link {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-width: auto;
        width: 100%;
        max-width: calc(50% - 50px);
        justify-content: center;
        transform: none !important;
    }
    .piese-filter-link:hover {
        transform: none !important;
    }
    .piese-filter-link:active {
        transform: scale(0.98) !important;
    }
    .piese-filter-link--active:hover {
        transform: none !important;
    }
    .piese-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

