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

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

:root {
  --blue: #2f5ed7;
  --blue-dark: #1a3fa0;
  --black: #101010;
  --grey: #969696;
  --light-grey: #ececec;
  --bg-grey: #f6f6f6;
  --red: #f02424;
  --orange: #fc5d17;
  --green: #42c156;
  --white: #fff;
  --font: 'Manrope', Arial, sans-serif;
}

html { font-family: var(--font); color: var(--black); font-size: 14px; line-height: 1.6; font-weight: 700; }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* Layout */
.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; width: 100%; }
@media (max-width: 1024px) { .container { padding: 0 24px; } }
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-top {
  background: var(--black); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 8px 0; text-align: center;
}
.header-main {
  height: 70px; display: flex; align-items: center; gap: 24px;
}
.header-logo {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--black); white-space: nowrap;
}
.header-logo span { color: var(--blue); }
.header-nav {
  display: flex; gap: 4px; margin-left: 20px;
}
.header-nav a {
  padding: 8px 12px; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--black); transition: color 0.2s;
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search-form {
  display: flex; align-items: center;
  border: 1.5px solid var(--light-grey); padding: 0 12px;
  height: 38px; gap: 8px; transition: border-color 0.2s;
}
.header-search-form:focus-within { border-color: var(--blue); }
.header-search-form input {
  border: none; outline: none; font-family: var(--font);
  font-size: 14px; font-weight: 600; width: 200px; background: transparent;
}
.header-search-form button { color: var(--grey); padding: 0; }
.header-search-form button:hover { color: var(--blue); }
.btn-icon {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--black); transition: color 0.2s;
}
.btn-icon:hover { color: var(--blue); }
.btn-icon .badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--blue); color: #fff;
  font-size: 10px; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.header-padding { height: 110px; }
@media (max-width: 768px) { .header-padding { height: 70px; } }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; cursor: pointer; }
.hamburger span { height: 2px; background: var(--black); border-radius: 2px; transition: all 0.3s; }
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .header-nav { display: none; }
  .header-search-form { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0;
  width: 100%; height: calc(100vh - 70px);
  background: #fff; z-index: 999; overflow-y: auto;
  padding: 24px 16px; flex-direction: column; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 16px 0; font-size: 16px; font-weight: 800;
  text-transform: uppercase; border-bottom: 1px solid var(--light-grey);
}

/* ===== HERO BANNER ===== */
.hero {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a3fa0 50%, #2f5ed7 100%);
  color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-tag {
  display: inline-block; background: var(--orange);
  color: #fff; font-size: 12px; font-weight: 800;
  padding: 4px 12px; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: #7eb3ff; }
.hero p { font-size: 16px; font-weight: 600; opacity: 0.85; margin-bottom: 32px; line-height: 1.6; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--blue); padding: 14px 28px;
  font-weight: 800; font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.5px; transition: all 0.2s;
}
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.5); color: #fff; padding: 13px 28px;
  font-weight: 800; font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.5px; transition: all 0.2s;
}
.btn-secondary:hover { border-color: #fff; }
@media (max-width: 768px) {
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 32px; }
}

/* ===== CATEGORY TABS ===== */
.cat-section { padding: 40px 0 0; }
.cat-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.cat-tab {
  padding: 8px 16px; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.3px;
  border: 2px solid var(--light-grey); color: var(--grey);
  cursor: pointer; transition: all 0.2s; background: #fff;
}
.cat-tab:hover { border-color: var(--blue); color: var(--blue); }
.cat-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ===== FILTERS + CATALOG ===== */
.catalog-layout {
  display: flex; gap: 32px; padding: 0 0 60px;
}
.sidebar-filter {
  width: 260px; flex-shrink: 0;
}
@media (max-width: 1024px) { .sidebar-filter { display: none; } }

.filter-block { margin-bottom: 24px; }
.filter-title {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--light-grey); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.filter-option {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.filter-option input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer;
}
.filter-option:hover { color: var(--blue); }

.price-range { display: flex; gap: 8px; align-items: center; }
.price-input {
  width: 90px; border: 1px solid var(--light-grey); padding: 6px 8px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
}
.price-input:focus { outline: none; border-color: var(--blue); }

/* ===== PRODUCTS GRID ===== */
.catalog-main { flex: 1; min-width: 0; }
.catalog-toolbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.catalog-count { font-size: 14px; color: var(--grey); font-weight: 600; }
.sort-select {
  border: 1px solid var(--light-grey); padding: 8px 12px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; outline: none; background: #fff;
}
.filter-btn-mob {
  display: none; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--light-grey);
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  cursor: pointer; color: var(--blue);
}
@media (max-width: 1024px) { .filter-btn-mob { display: flex; } }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1280px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (max-width: 400px) { .products-grid { grid-template-columns: 1fr; } }

/* ===== PRODUCT CARD ===== */
.product-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid transparent; padding: 20px 10px 10px;
  transition: border-color 0.2s; background: #fff;
}
.product-card:hover { border-color: #ddd; }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 3px; z-index: 2;
}
.badge {
  display: inline-block; padding: 3px 6px;
  font-size: 10px; font-weight: 700; color: #fff;
}
.badge-sale { background: var(--red); }
.badge-hit { background: var(--orange); }
.badge-new { background: var(--green); }
.product-fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 24px; height: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--light-grey); transition: color 0.2s;
}
.product-fav:hover, .product-fav.active { color: var(--blue); }
.product-img {
  display: flex; justify-content: center; align-items: center;
  height: 180px; padding-bottom: 16px;
}
.product-img img {
  max-height: 160px; max-width: 100%; object-fit: contain;
  transition: transform 0.3s;
}
.product-card:hover .product-img img { transform: scale(1.04); }
.product-brand { font-size: 11px; font-weight: 800; color: var(--grey); margin-bottom: 4px; }
.product-name {
  font-size: 13px; line-height: 1.4; margin-bottom: 8px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-name a:hover { color: var(--blue); }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-current { font-size: 17px; font-weight: 800; }
.price-current.discounted { color: var(--red); }
.price-old {
  font-size: 13px; font-weight: 700; color: var(--grey);
  text-decoration: line-through;
}
.btn-cart {
  width: 100%; height: 40px; background: var(--blue); color: #fff;
  font-family: var(--font); font-weight: 800; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: background 0.2s; cursor: pointer;
}
.btn-cart:hover { background: var(--black); }
.btn-cart.in-cart { background: var(--green); }
.btn-cart.in-cart:hover { background: #0ead43; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; gap: 4px; justify-content: center;
  margin-top: 40px; flex-wrap: wrap;
}
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; cursor: pointer;
  border: 1px solid var(--light-grey); color: var(--black);
  transition: all 0.2s; background: #fff;
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-btn.dots { cursor: default; border-color: transparent; }

/* ===== FEATURES ===== */
.features { background: var(--bg-grey); padding: 60px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
@media (max-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }
.feature-item { display: flex; flex-direction: column; gap: 12px; }
.feature-icon {
  width: 48px; height: 48px; display: flex; align-items: center;
  justify-content: center; color: var(--blue);
}
.feature-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
.feature-desc { font-size: 12px; font-weight: 600; color: var(--grey); line-height: 1.6; }

/* ===== PRODUCT PAGE ===== */
.product-page { padding: 40px 0 60px; }
.breadcrumb {
  font-size: 12px; color: var(--grey); margin-bottom: 24px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--light-grey); }
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; gap: 32px; } }
.product-gallery { position: sticky; top: 90px; }
.gallery-main {
  display: flex; justify-content: center; align-items: center;
  background: var(--bg-grey); height: 400px; margin-bottom: 12px;
}
.gallery-main img { max-height: 360px; max-width: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
  width: 70px; height: 70px; border: 2px solid var(--light-grey);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 4px; transition: border-color 0.2s;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--blue); }
.gallery-thumb img { max-height: 58px; object-fit: contain; }
.product-info { display: flex; flex-direction: column; gap: 16px; }
.product-info .product-brand { font-size: 14px; }
.product-info h1 { font-size: 26px; font-weight: 800; line-height: 1.2; }
.product-info .product-price { margin: 0; }
.product-info .price-current { font-size: 28px; }
.product-desc-short { font-size: 14px; font-weight: 600; color: #444; line-height: 1.6; }
.product-actions { display: flex; gap: 10px; }
.product-actions .btn-cart { height: 52px; font-size: 14px; flex: 1; }
.product-tabs { margin-top: 40px; }
.tab-btns { display: flex; gap: 0; border-bottom: 2px solid var(--light-grey); }
.tab-btn {
  padding: 12px 20px; font-size: 14px; font-weight: 800;
  color: var(--grey); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
}
.tab-btn.active { color: var(--blue); border-color: var(--blue); }
.tab-content { padding: 24px 0; display: none; }
.tab-content.active { display: block; }
.tab-content p { font-size: 14px; font-weight: 600; line-height: 1.8; color: #444; margin-bottom: 12px; }

/* ===== CART ===== */
.cart-page { padding: 40px 0 60px; }
.cart-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 32px;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-empty { text-align: center; padding: 80px 0; }
.cart-empty h2 { font-size: 24px; margin-bottom: 12px; }
.cart-empty p { color: var(--grey); margin-bottom: 24px; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto auto;
  gap: 16px; align-items: center; padding: 20px 0;
  border-bottom: 1px solid var(--light-grey);
}
@media (max-width: 600px) { .cart-item { grid-template-columns: 70px 1fr; } }
.cart-item-img { width: 80px; height: 80px; object-fit: contain; }
.cart-item-name { font-size: 14px; line-height: 1.4; }
.cart-item-brand { font-size: 11px; color: var(--grey); margin-bottom: 4px; }
.qty-ctrl { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 30px; height: 30px; border: 1px solid var(--light-grey);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; font-weight: 700; background: #fff;
  transition: border-color 0.2s;
}
.qty-btn:hover { border-color: var(--blue); }
.qty-val { font-size: 16px; font-weight: 800; min-width: 28px; text-align: center; }
.cart-item-price { font-size: 16px; font-weight: 800; white-space: nowrap; }
.cart-item-remove { color: var(--grey); cursor: pointer; transition: color 0.2s; }
.cart-item-remove:hover { color: var(--red); }
.cart-summary {
  background: var(--bg-grey); padding: 24px; height: fit-content;
  position: sticky; top: 90px;
}
.cart-summary h3 { font-size: 18px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-total { font-size: 20px; font-weight: 800; border-top: 2px solid var(--light-grey); padding-top: 16px; margin-top: 4px; }
.btn-checkout {
  display: block; width: 100%; height: 52px; background: var(--blue);
  color: #fff; font-family: var(--font); font-weight: 800; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 20px;
  transition: background 0.2s; cursor: pointer;
}
.btn-checkout:hover { background: var(--black); }

/* ===== CHECKOUT ===== */
.checkout-page { padding: 40px 0 60px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-form h2 { font-size: 22px; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--grey); margin-bottom: 6px; }
.form-input {
  width: 100%; border: 1px solid #d1d1d1; padding: 12px 14px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.delivery-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.delivery-opt {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border: 2px solid var(--light-grey); cursor: pointer; transition: border-color 0.2s;
}
.delivery-opt.selected, .delivery-opt:hover { border-color: var(--blue); }
.delivery-opt input { accent-color: var(--blue); width: 16px; height: 16px; }
.order-summary { background: var(--bg-grey); padding: 24px; position: sticky; top: 90px; }
.order-summary h3 { font-size: 18px; margin-bottom: 20px; }
.order-item { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.order-item img { width: 60px; height: 60px; object-fit: contain; }
.order-item-name { font-size: 13px; line-height: 1.3; flex: 1; }
.order-item-price { font-size: 14px; font-weight: 800; }
.form-disclaimer { font-size: 11px; color: var(--grey); margin-top: 12px; }
.form-disclaimer a { color: var(--blue); }

/* ===== SUCCESS PAGE ===== */
.success-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.success-box { text-align: center; max-width: 500px; }
.success-icon { font-size: 64px; margin-bottom: 24px; }
.success-box h2 { font-size: 28px; margin-bottom: 12px; }
.success-box p { color: var(--grey); font-size: 15px; margin-bottom: 28px; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-grey); padding: 60px 0 40px; margin-top: auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.footer-brand h3 span { color: var(--blue); }
.footer-brand p { font-size: 13px; color: var(--grey); line-height: 1.6; margin-bottom: 16px; }
.footer-contacts { font-size: 13px; }
.footer-contacts a { display: block; font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.footer-contacts a:hover { color: var(--blue); }
.footer-contacts .city { font-size: 11px; color: var(--grey); margin-bottom: 12px; }
.footer-col h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 12px; font-weight: 600; color: var(--grey); margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid #ddd; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--grey); flex-wrap: wrap; gap: 12px;
}
.footer-dealer { display: flex; align-items: center; gap: 16px; font-size: 11px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--black); color: #fff;
  padding: 14px 20px; font-size: 14px; font-weight: 700;
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green); }

/* ===== SECTION TITLES ===== */
.section-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.section-sub { font-size: 14px; color: var(--grey); font-weight: 600; margin-bottom: 32px; }

/* ===== MOBILE FILTER OVERLAY ===== */
.filter-overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000;
}
.filter-overlay.open { display: block; }
.filter-panel {
  position: fixed; top: 0; right: -100%; width: 320px; height: 100%;
  background: #fff; z-index: 2001; padding: 24px;
  overflow-y: auto; transition: right 0.3s;
}
.filter-panel.open { right: 0; }
.filter-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.filter-panel-head h3 { font-size: 18px; }
.filter-close { cursor: pointer; font-size: 20px; }

/* ===== NO RESULTS ===== */
.no-results { text-align: center; padding: 60px 0; color: var(--grey); font-size: 16px; }
