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

:root {
  --bg:        #f0f9ff;
  --bg2:       #ffffff;
  --bg3:       #e0f2fe;
  --border:    #bae6fd;
  --accent:    #0284c7;
  --accent2:   #38bdf8;
  --accent3:   #0ea5e9;
  --dark:      #0c1a2e;
  --dark2:     #1e3a5f;
  --text:      #0f172a;
  --text2:     #334155;
  --gray:      #64748b;
  --green:     #16a34a;
  --red:       #dc2626;
  --white:     #ffffff;
  --radius:    18px;
  --shadow-sm: 0 2px 8px rgba(2,132,199,0.08);
  --shadow:    0 8px 32px rgba(2,132,199,0.14);
  --shadow-lg: 0 20px 60px rgba(2,132,199,0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

/* ─── HEADER ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 1px 20px rgba(2,132,199,0.08);
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -1px;
  white-space: nowrap;
  color: var(--dark);
}
.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav { display: flex; gap: 4px; flex: 1; }

nav a {
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  transition: background 0.15s, color 0.15s;
}
nav a:hover { background: var(--bg3); color: var(--accent); }
nav a.active { background: var(--bg3); color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: white;
  padding: 9px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(2,132,199,0.35);
}
.cart-btn:hover { opacity: 0.9; transform: translateY(-1px); }

#cart-badge {
  position: absolute;
  top: -7px; right: -7px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ─── HERO ─── */
.hero {
  padding: 90px 32px 80px;
  text-align: center;
  background: linear-gradient(160deg, #ffffff 0%, #e0f2fe 50%, #bae6fd 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(56,189,248,0.25) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(2,132,199,0.15) 0%, transparent 70%);
  bottom: -100px; left: -50px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1.5px solid var(--border);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
  color: var(--dark);
}
.hero h1 .grad {
  background: linear-gradient(135deg, #0284c7, #38bdf8, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: white;
  box-shadow: 0 8px 24px rgba(2,132,199,0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(2,132,199,0.5); }

.btn-outline {
  background: white;
  color: var(--accent);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--accent2); background: var(--bg3); }

.btn-green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  box-shadow: 0 8px 24px rgba(22,163,74,0.3);
}
.btn-green:hover { box-shadow: 0 12px 32px rgba(22,163,74,0.45); }

.btn-sm { padding: 8px 18px; font-size: 0.84rem; border-radius: 10px; }

/* ─── SECTION ─── */
.section { padding: 72px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--dark);
}
.section-head a { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-left: auto; }
.section-head a:hover { text-decoration: underline; }

/* ─── CATEGORIES ─── */
.cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }

.cat-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--gray);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.cat-btn:hover { border-color: var(--accent2); color: var(--accent); background: var(--bg3); }
.cat-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(2,132,199,0.3);
}

/* ─── PRODUCT GRID ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  border-color: var(--accent2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: white;
  font-size: 0.71rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.4px;
}
.product-tag.green { background: var(--green); }
.product-tag.orange { background: #f97316; }

.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.product-name { font-size: 0.95rem; font-weight: 700; line-height: 1.35; color: var(--dark); }
.product-compat { font-size: 0.77rem; color: var(--gray); }

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.product-price { font-size: 1.1rem; font-weight: 900; color: var(--accent); }
.product-old-price { font-size: 0.8rem; color: var(--gray); text-decoration: line-through; }

.product-actions { padding: 0 16px 16px; display: flex; gap: 8px; }

/* ─── FEATURES BAR ─── */
.features-bar {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 36px 32px;
}
.features-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  text-align: center;
}
.feat-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.feat-icon { font-size: 2rem; }
.feat-title { font-size: 0.9rem; font-weight: 800; color: white; }
.feat-desc { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ─── PRODUCT PAGE ─── */
.product-page { max-width: 1100px; margin: 0 auto; padding: 48px 32px; }
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media(max-width: 720px) { .product-layout { grid-template-columns: 1fr; } }

.product-big-img {
  height: 380px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.product-info h1 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.2;
  color: var(--dark);
}
.product-info .compat-tag {
  display: inline-block;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  color: var(--accent);
  padding: 3px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.product-info .big-price { font-size: 2.2rem; font-weight: 900; color: var(--accent); margin-bottom: 4px; }
.product-info .old-p { color: var(--gray); text-decoration: line-through; font-size: 1rem; margin-bottom: 20px; }
.product-info .desc {
  color: var(--text2);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 28px;
  padding: 18px;
  background: var(--bg3);
  border-radius: 14px;
  border: 1.5px solid var(--border);
}
.product-info .qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty-control {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.qty-control button {
  width: 40px; height: 40px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.1s;
}
.qty-control button:hover { background: var(--border); }
.qty-control span { width: 40px; text-align: center; font-weight: 800; color: var(--dark); }

/* ─── CART PAGE ─── */
.cart-page { max-width: 800px; margin: 0 auto; padding: 48px 32px; }
.cart-page h1 { font-size: 1.9rem; font-weight: 900; margin-bottom: 32px; color: var(--dark); }

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.cart-item:hover { box-shadow: var(--shadow); }

.cart-item-img { width: 72px; height: 72px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.cart-item-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; color: var(--dark); }
.cart-item-price { color: var(--gray); font-size: 0.84rem; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-total { font-weight: 900; font-size: 1rem; color: var(--accent); }

.remove-btn {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.1s, background 0.1s;
}
.remove-btn:hover { color: var(--red); background: #fee2e2; }

.cart-summary {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; color: var(--gray); }
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 900;
  padding-top: 16px;
  border-top: 1.5px solid var(--border);
  margin-top: 4px;
  margin-bottom: 24px;
  color: var(--dark);
}
.cart-summary-total span:last-child { color: var(--accent); }
.cart-empty { text-align: center; padding: 80px 24px; color: var(--gray); }
.cart-empty .big-emoji { font-size: 4rem; margin-bottom: 16px; }
.cart-empty h2 { font-size: 1.4rem; margin-bottom: 8px; color: var(--dark); }

/* ─── ABOUT ─── */
.about-page { max-width: 820px; margin: 0 auto; padding: 64px 32px; }
.about-page h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 16px; letter-spacing: -1px; color: var(--dark); }
.about-page .lead { font-size: 1.1rem; color: var(--text2); margin-bottom: 48px; line-height: 1.75; }
.about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 48px; }
.about-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-card .ico { font-size: 2rem; margin-bottom: 12px; }
.about-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; color: var(--dark); }
.about-card p { font-size: 0.87rem; color: var(--gray); line-height: 1.6; }
.contact-block {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.contact-block h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; color: white; }
.contact-block p { color: rgba(255,255,255,0.6); margin-bottom: 28px; }
.contact-block .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  padding: 36px 32px;
  text-align: center;
}
footer .footer-logo { font-size: 1.2rem; font-weight: 900; color: white; margin-bottom: 8px; }
footer .footer-logo span {
  background: linear-gradient(135deg, var(--accent2), #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
footer p { color: rgba(255,255,255,0.35); font-size: 0.83rem; }
footer p + p { margin-top: 4px; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 16px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }

/* ─── SEARCH ─── */
.search-bar {
  width: 100%;
  max-width: 400px;
  padding: 11px 18px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.search-bar:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(56,189,248,0.2); }
.search-bar::placeholder { color: var(--gray); }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: white;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 28px rgba(2,132,199,0.45);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ─── PROMO STRIP ─── */
.promo-strip {
  background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 100%);
  padding: 12px 32px;
  text-align: center;
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ─── NO RESULTS ─── */
#no-results { text-align: center; padding: 60px; color: var(--gray); }

/* ─── MOBILE ─── */
@media(max-width: 600px) {
  header { padding: 0 16px; gap: 12px; }
  nav { display: none; }
  .hero { padding: 56px 16px 48px; }
  .section { padding: 48px 16px; }
  .cart-item { grid-template-columns: 56px 1fr; }
  .cart-item-right { grid-column: 2; flex-direction: row; align-items: center; }
  .product-page, .cart-page, .about-page { padding-left: 16px; padding-right: 16px; }
}
