:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #ff6b35;
  --bg: #f5f5f5;
  --white: #fff;
  --dark: #1a1a2e;
  --text: #333;
  --text-light: #666;
  --border: #e0e0e0;
  --success: #28a745;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top-bar {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: #fff; }
.top-bar__phones { display: flex; gap: 16px; align-items: center; }
.top-bar__schedule { color: #aaa; }

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}
.logo span { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
}

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero p { font-size: 18px; opacity: .85; max-width: 600px; margin: 0 auto 24px; }
.hero .btn { font-size: 16px; padding: 14px 32px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.btn:hover { background: #e55a2b; text-decoration: none; }
.btn--outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #fff; }

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 32px 0;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.product-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f0f0f0;
}
.product-card__body { padding: 16px; }
.product-card__name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.product-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.product-card__price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
}
.product-card__brand {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.product-card a {
  color: inherit;
  text-decoration: none;
}

/* Product page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}
.product-gallery img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-gallery__thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.product-gallery__thumbs img:hover,
.product-gallery__thumbs img.active { border-color: var(--primary); }
.product-info h1 { font-size: 24px; margin-bottom: 12px; }
.product-info__price {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.product-info__meta { margin-bottom: 20px; }
.product-info__meta dt {
  font-weight: 600;
  float: left;
  width: 120px;
  color: var(--text-light);
}
.product-info__meta dd { margin-bottom: 8px; margin-left: 130px; }
.product-info__desc {
  line-height: 1.8;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Category/section headers */
.section-header {
  padding: 32px 0 16px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 24px;
}
.section-header h1,
.section-header h2 {
  font-size: 28px;
  color: var(--dark);
}
.section-header p {
  color: var(--text-light);
  margin-top: 8px;
}

/* Info page */
.info-page {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.info-page h1 { font-size: 28px; margin-bottom: 20px; color: var(--dark); }
.info-page h2 { font-size: 20px; margin: 24px 0 12px; color: var(--dark); }
.info-page p { margin-bottom: 16px; }
.info-page ul, .info-page ol { margin: 12px 0 16px 24px; }
.info-page li { margin-bottom: 8px; }

/* Reviews */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.review-card__author { font-weight: 600; }
.review-card__date { color: var(--text-light); font-size: 13px; }
.review-card__stars { color: #ffc107; }
.review-card__text { font-size: 14px; line-height: 1.7; }

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* Footer */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 40px 0 20px;
  margin-top: 48px;
}
.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer a { color: #aaa; display: block; margin-bottom: 6px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid #333;
  margin-top: 32px;
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #666;
  grid-column: 1 / -1;
}

/* Stats bar */
.stats-bar {
  background: var(--white);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.stats-bar .container {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item__num { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-item__label { font-size: 13px; color: var(--text-light); }

/* Contact info */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-card__icon { font-size: 32px; margin-bottom: 12px; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--text-light); font-size: 14px; }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 24px 0;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* Article cards */
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.article-card__body { padding: 20px; }
.article-card h3 { margin-bottom: 8px; }
.article-card p { color: var(--text-light); font-size: 14px; }

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge--sale { background: #fff3e0; color: var(--accent); }
.badge--new { background: #e8f5e9; color: var(--success); }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; }
  .product-detail { grid-template-columns: 1fr; gap: 20px; }
  .info-page { padding: 20px; }
  .stats-bar .container { gap: 24px; }
  .top-bar .container { justify-content: center; text-align: center; }
  .footer .container { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-card__body { padding: 12px; }
  .product-card__name { font-size: 13px; }
  .product-card__price { font-size: 18px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .header .container { padding-top: 8px; padding-bottom: 8px; }
  .logo { font-size: 20px; }
}
