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

:root {
  --primary: hsl(340, 85%, 45%);
  --primary-light: hsl(340, 85%, 95%);
  --primary-dark: hsl(340, 85%, 35%);
  --text: hsl(0, 0%, 12%);
  --text-secondary: hsl(0, 0%, 40%);
  --text-muted: hsl(0, 0%, 55%);
  --bg: hsl(0, 0%, 100%);
  --bg-subtle: hsl(0, 0%, 97%);
  --bg-card: hsl(0, 0%, 99%);
  --border: hsl(0, 0%, 90%);
  --border-light: hsl(0, 0%, 94%);
  --star: hsl(45, 93%, 55%);
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --max-w: 1200px;
  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -.01em;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-links a {
  padding: .5rem .875rem;
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .15s;
}

.nav-links a:hover {
  background: var(--bg-subtle);
}

.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.search-form {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.search-input {
  padding: .5rem .75rem .5rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-family: var(--font);
  width: 220px;
  background: var(--bg-subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cline x1='10.5' y1='10.5' x2='14' y2='14'/%3E%3C/svg%3E") no-repeat .75rem center;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(340, 85%, 45%, .12);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: .5rem;
  cursor: pointer;
  color: var(--text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding-bottom: 1rem;
  gap: .25rem;
}

.mobile-nav a {
  padding: .625rem .875rem;
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .15s;
}

.mobile-nav a:hover { background: var(--bg-subtle); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.72), rgba(0,0,0,.45), transparent);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  max-width: 520px;
  margin-bottom: .75rem;
}

.hero-content p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, background .15s;
  white-space: nowrap;
}

.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255,255,255,.2);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover { background: var(--bg-subtle); }

.btn-sm {
  padding: .375rem .75rem;
  font-size: .8125rem;
}

.btn-lg {
  padding: .75rem 1.5rem;
  font-size: .9375rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-header p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

/* ===== USP BAR ===== */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.usp-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
}

.usp-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.usp-icon svg { width: 20px; height: 20px; }

.usp-item h3 {
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .125rem;
}

.usp-item p {
  font-size: .8125rem;
  color: var(--text-muted);
}

/* ===== GRIDS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.category-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== CARDS ===== */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-subtle);
  position: relative;
}

.card-img-square {
  aspect-ratio: 1;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.card:hover .card-img img {
  transform: scale(1.03);
}

.card-body {
  padding: 1rem;
}

.card-brand {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .25rem;
}

.card-title {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: .25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: .75rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .5rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.card-cat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 1rem;
}

.card-cat-footer h3 {
  font-size: .875rem;
  font-weight: 600;
}

.card-cat-footer p {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: .125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-cat-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s;
}

.card:hover .card-cat-arrow {
  transform: translateX(3px);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .625rem;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-primary {
  background: var(--primary);
  color: #fff;
}

.badge-secondary {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.badge-popular {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
}

.badge-category {
  cursor: pointer;
  transition: background .15s;
}

.badge-category:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-light);
}

.badge-category.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== STARS ===== */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.star {
  width: 14px;
  height: 14px;
  color: var(--border);
}

.star.filled {
  color: var(--star);
  fill: var(--star);
}

.stars-lg .star {
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.rating-inline {
  display: flex;
  align-items: center;
  gap: .375rem;
}

.rating-text {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 0;
}

.product-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
  position: relative;
  aspect-ratio: 3/4;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .25rem;
}

.product-brand {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.product-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.product-meta {
  margin-bottom: 1.25rem;
}

.product-meta-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .375rem;
}

.product-meta-title svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.product-meta p {
  font-size: .8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-info-box {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1.5rem;
}

.product-info-box p {
  font-size: .75rem;
  color: var(--text-muted);
}

.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1.25rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding: .375rem .75rem;
  border-radius: var(--radius);
  transition: background .15s;
}

.back-link:hover { background: var(--bg-subtle); }

.back-link svg { width: 14px; height: 14px; }

/* ===== REVIEWS ===== */
.reviews-section {
  padding: 3rem 0;
}

.reviews-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.reviews-header svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.reviews-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.reviews-header span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1rem;
}

.reviews-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

.review-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.review-avatar svg { width: 16px; height: 16px; }

.review-name {
  font-size: .875rem;
  font-weight: 600;
}

.review-date {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .25rem;
}

.review-date svg { width: 12px; height: 12px; }

.review-title {
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .375rem;
}

.review-content {
  font-size: .8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.reviews-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
}

.reviews-empty svg {
  width: 40px;
  height: 40px;
  margin: 0 auto .75rem;
  opacity: .3;
}

.reviews-empty h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .25rem;
}

.reviews-empty p {
  font-size: .8125rem;
}

/* ===== FORMS ===== */
.form-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-card);
}

.form-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: .375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: var(--bg);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(340, 85%, 45%, .12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: .75rem;
  color: hsl(0, 84%, 42%);
  margin-top: .25rem;
}

.form-message {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .8125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.form-message-success {
  background: hsl(145, 60%, 94%);
  color: hsl(145, 60%, 30%);
  border: 1px solid hsl(145, 60%, 85%);
}

.form-message-error {
  background: hsl(0, 60%, 95%);
  color: hsl(0, 60%, 35%);
  border: 1px solid hsl(0, 60%, 88%);
}

/* ===== PRODUCTS PAGE ===== */
.products-layout {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
}

.products-sidebar {
  width: 220px;
  flex-shrink: 0;
}

.products-sidebar h3 {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.filter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}

.products-main {
  flex: 1;
  min-width: 0;
}

.page-title {
  margin-bottom: 2rem;
}

.page-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.page-title p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 0;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  opacity: .3;
  margin: 0 auto 1rem;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: .375rem;
}

.empty-state p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

.footer-brand svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.footer-desc {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h3 {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }

.footer-col a {
  font-size: .8125rem;
  color: var(--text-muted);
  transition: color .15s;
}

.footer-col a:hover { color: var(--primary); }

.footer-col li {
  font-size: .8125rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  text-align: center;
  font-size: .8125rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { gap: 2rem; }
  .reviews-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .category-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: 1fr; gap: .5rem; }
  .hero { height: 380px; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-content p { font-size: .9rem; }
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .products-layout { flex-direction: column; }
  .products-sidebar { width: 100%; }
  .filter-badges { flex-direction: row; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.open { display: flex; }

  .search-input { width: 160px; }
}

@media (max-width: 480px) {
  .hero { height: 320px; }
  .hero-content h1 { font-size: 1.5rem; }
  .product-grid { gap: .5rem; }
  .card-body { padding: .75rem; }
  .card-title { font-size: .8rem; }
  .card-price { font-size: .875rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-input { width: 120px; }
}

/* Category info block */
.cat-info-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin: 1.75rem 0;
}
.cat-info-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.cat-info-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.cat-info-block p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.cat-info-block ul {
  padding-left: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.cat-info-block ul li {
  margin-bottom: 0.35rem;
}
.cat-info-block strong {
  color: var(--text-primary);
  font-weight: 600;
}
@media (max-width: 768px) {
  .cat-info-block {
    padding: 1.25rem 1rem;
  }
}
