@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #090d16;
    --bg-card: #111726;
    --bg-card-hover: #172033;
    --border-color: #1e293b;
    --border-highlight: #334155;
    --cat-yellow: #f59e0b;
    --cat-yellow-hover: #d97706;
    --cat-yellow-glow: rgba(245, 158, 11, 0.18);
    --tech-blue: #0284c7;
    --tech-blue-glow: rgba(2, 132, 199, 0.15);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --green-stock: #10b981;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cat-yellow);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.font-mono {
    font-family: var(--font-mono);
}

.topbar {
    background: #060910;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
}
.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar-item i {
    color: var(--cat-yellow);
    font-size: 14px;
}
.currency-selector {
    display: flex;
    background: #111726;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px;
}
.currency-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s ease;
}
.currency-btn.active {
    background: var(--cat-yellow);
    color: #000;
}

.navbar {
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
}
.logo-icon-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 15px var(--cat-yellow-glow);
}
.brand-text h1 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}
.brand-text span {
    font-size: 11px;
    color: var(--cat-yellow);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-wa-header {
    background: #25d366;
    color: #fff;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}
.btn-wa-header:hover {
    background: #20ba5a;
    transform: translateY(-1px);
}

.hero {
    position: relative;
    padding: 60px 0 50px;
    background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.08) 0%, rgba(9, 13, 22, 0) 70%),
                radial-gradient(circle at 80% 80%, rgba(2, 132, 199, 0.05) 0%, rgba(9, 13, 22, 0) 50%);
    border-bottom: 1px solid var(--border-color);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--cat-yellow);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 850px;
}
.hero-title .highlight {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 720px;
    margin-bottom: 35px;
}

.hero-search-wrapper {
    background: rgba(17, 23, 38, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(245, 158, 11, 0.1);
    transition: all 0.3s ease;
}
.hero-search-wrapper:focus-within {
    border-color: var(--cat-yellow);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--cat-yellow-glow);
}
.hero-search-icon {
    padding-left: 14px;
    color: var(--cat-yellow);
}
.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-family: var(--font-main);
}
.hero-search-input::placeholder {
    color: var(--text-subtle);
    font-size: 14px;
}
.btn-hero-search {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.btn-hero-search:hover {
    background: #fbbf24;
    transform: scale(1.02);
}

.search-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-subtle);
}
.tag-btn {
    background: #111726;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    transition: all 0.2s ease;
}
.tag-btn:hover {
    border-color: var(--cat-yellow);
    color: var(--cat-yellow);
}

.brands-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    background: #090d16;
}
.brand-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.brand-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.brand-pill:hover, .brand-pill.active {
    background: #1e293b;
    border-color: var(--cat-yellow);
    color: #fff;
}
.brand-pill .badge-count {
    background: rgba(245, 158, 11, 0.15);
    color: var(--cat-yellow);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.catalog-section {
    padding: 40px 0 80px;
}
.catalog-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.catalog-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    height: fit-content;
    position: sticky;
    top: 90px;
}
.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-group {
    margin-bottom: 24px;
}
.filter-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}
.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.filter-item-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}
.filter-item-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}
.filter-item-btn.active {
    background: rgba(245, 158, 11, 0.12);
    color: var(--cat-yellow);
    font-weight: 600;
}
.filter-item-btn .count {
    font-size: 11px;
    color: var(--text-subtle);
}

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
}
.results-count {
    font-size: 14px;
    color: var(--text-muted);
}
.results-count b {
    color: #fff;
}
.controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sort-select {
    background: #090d16;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    font-family: var(--font-main);
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.product-card:hover {
    border-color: var(--cat-yellow);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--cat-yellow-glow);
}
.product-image-box {
    position: relative;
    width: 100%;
    height: 200px;
    background: #0c101c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image-box img {
    transform: scale(1.06);
}
.brand-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
}
.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--green-stock);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.stock-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green-stock);
    border-radius: 50%;
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pn-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.part-number {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--cat-yellow);
    background: rgba(245, 158, 11, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.btn-copy-pn {
    background: transparent;
    border: none;
    color: var(--text-subtle);
    cursor: pointer;
    padding: 2px;
    font-size: 12px;
    transition: color 0.2s;
}
.btn-copy-pn:hover {
    color: #fff;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}
.category-name {
    font-size: 12px;
    color: var(--text-subtle);
    margin-bottom: 14px;
}

.product-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price-box {
    display: flex;
    flex-direction: column;
}
.price-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-subtle);
    font-weight: 600;
}
.price-value {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-mono);
}
.price-value .currency {
    color: var(--cat-yellow);
    font-size: 13px;
    margin-right: 2px;
}
.price-secondary {
    font-size: 11px;
    color: var(--text-subtle);
    font-family: var(--font-mono);
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 14px;
}
.btn-quote-wa {
    background: linear-gradient(135deg, #25d366, #1eb855);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-quote-wa:hover {
    background: #1eb855;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}
.btn-view-detail {
    background: #1e293b;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.btn-view-detail:hover {
    background: #334155;
    color: #fff;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.page-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    min-width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}
.page-btn:hover {
    border-color: var(--cat-yellow);
    color: #fff;
}
.page-btn.active {
    background: var(--cat-yellow);
    border-color: var(--cat-yellow);
    color: #000;
    font-weight: 700;
}

.trust-banner {
    background: #0f1523;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.trust-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cat-yellow);
    flex-shrink: 0;
}
.trust-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.trust-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.footer {
    background: #060910;
    padding: 60px 0 30px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-col h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--cat-yellow);
}
.footer-contact-item {
    display: flex;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 12px;
}
.footer-contact-item i {
    color: var(--cat-yellow);
    font-size: 16px;
    margin-top: 2px;
}
.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-card {
    background: #111726;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 158, 11, 0.15);
    animation: modalPop 0.25s ease-out;
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.btn-close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}
.btn-close-modal:hover {
    background: #ef4444;
}
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}
.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modal-main-img {
    width: 100%;
    height: 280px;
    background: #090d16;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.modal-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.modal-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.modal-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
}
.modal-thumb.active {
    border-color: var(--cat-yellow);
}
.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details h2 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #fff;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}
.spec-label {
    color: var(--text-subtle);
}
.spec-val {
    color: #fff;
    font-weight: 600;
}

.toast-box {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #1e293b;
    border: 1px solid var(--cat-yellow);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 992px) {
    .catalog-grid-layout {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .modal-body {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .topbar-left, .hero-title {
        font-size: 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-search-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-hero-search {
        justify-content: center;
    }
}