:root {
  --red: #ee3131;
  --red-dark: #c41e1e;
  --black: #111111;
  --gray-bg: #f8f8f8;
  --gray-border: #e5e5e5;
  --text: #333333;
  --text-muted: #666666;
  --white: #ffffff;
  --max: 1200px;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  padding-bottom: 64px;
}

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

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

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Top bar */
.top-bar {
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.top-bar a {
  color: var(--white);
  text-decoration: underline;
}

.top-bar-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.logo-link img {
  height: 44px;
  width: auto;
}

.header-search {
  display: flex;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.header-search input {
  flex: 1;
  border: 0;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.header-search button {
  background: var(--red);
  color: var(--white);
  border: 0;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.header-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  position: relative;
}

.header-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--black);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: 0;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  place-items: center;
  font-style: normal;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
}

.main-nav {
  background: var(--black);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-list a {
  display: block;
  color: var(--white);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--red);
}

.nav-sale-badge {
  background: var(--red);
  color: var(--white);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 8px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

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

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline-dark {
  border-color: var(--black);
  color: var(--black);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.link-btn {
  background: none;
  border: 0;
  color: var(--red);
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

/* Hero */
.hero {
  background: linear-gradient(105deg, #fff5f5 55%, #ffe8e8 55%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 420px;
  gap: 24px;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--black);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-content .hero-price {
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  color: var(--text-muted);
  max-width: 480px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--gray-bg);
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  color: var(--black);
  text-transform: uppercase;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.category-chip {
  text-align: center;
  width: 100px;
}

.category-chip img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 3px solid var(--gray-border);
  transition: border-color 0.2s;
}

.category-chip:hover img {
  border-color: var(--red);
}

.category-chip span {
  font-size: 0.85rem;
  font-weight: 600;
}

.promo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.promo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.promo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card .promo-overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: var(--white);
  padding: 20px;
  width: 100%;
}

.promo-tag {
  background: var(--red);
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-bg);
}

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

.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  z-index: 2;
}

.product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(100%);
  transition: transform 0.2s;
}

.product-card:hover .product-actions {
  transform: translateY(0);
}

.product-body {
  padding: 14px;
}

.product-title {
  font-size: 0.9rem;
  margin: 0 0 8px;
  line-height: 1.35;
}

.product-title a:hover {
  color: var(--red);
}

.stars {
  color: #ddd;
  font-size: 0.85rem;
}

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

.product-price {
  margin: 8px 0 0;
  font-weight: 700;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 8px;
  font-size: 0.85rem;
}

.price-current {
  color: var(--red);
}

.featured-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  min-height: 400px;
}

.featured-large {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.featured-large .featured-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
}

.featured-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.featured-small {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-small .featured-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: var(--white);
}

.featured-small .featured-text h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.featured-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 190px;
}

.discount-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 48px 24px;
}

.discount-banner h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-transform: uppercase;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  opacity: 0.55;
  filter: grayscale(1);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.deal-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: center;
}

.deal-info h2 {
  text-transform: uppercase;
}

.deal-timer {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.deal-timer span {
  background: var(--black);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  min-width: 64px;
  text-align: center;
}

.deal-timer small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
}

.deal-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 18px;
}

.blog-tag {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 8px 0;
  font-size: 1.05rem;
}

.read-more {
  color: var(--red);
  font-weight: 600;
}

/* Features bar */
.features-bar {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-border);
  padding: 32px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-item p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--gray-bg);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: 28px;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--black);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

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

.footer-about p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-links a {
  background: var(--black);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.social-links a:hover {
  background: var(--red);
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-newsletter-form input {
  padding: 12px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
}

.footer-newsletter-form button {
  background: var(--red);
  color: var(--white);
  border: 0;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid var(--gray-border);
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment-icons {
  display: flex;
  gap: 12px;
  font-weight: 700;
  font-size: 0.75rem;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  z-index: 99;
  justify-content: space-around;
  padding: 8px 0;
  font-size: 0.65rem;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
}

.mobile-bottom-nav em {
  font-style: normal;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.6rem;
  padding: 2px 5px;
}

/* Page layouts */
.page-hero {
  background: var(--gray-bg);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--gray-border);
}

.page-hero h1 {
  margin: 0 0 8px;
  text-transform: uppercase;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--red);
}

.content-prose {
  max-width: 820px;
  margin: 0 auto;
}

.content-prose h2 {
  margin-top: 2em;
  color: var(--black);
}

.content-wide {
  max-width: var(--max);
  margin: 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font: inherit;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--red);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 3px;
  accent-color: var(--red);
  flex-shrink: 0;
}

.checkbox-field label {
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.field-error {
  display: block;
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 6px;
}

.alert-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
}

.cart-table-wrap {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  padding: 12px;
  border-bottom: 1px solid var(--gray-border);
  text-align: left;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.cart-summary {
  background: var(--gray-bg);
  padding: 24px;
  border-radius: var(--radius);
  height: fit-content;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-tags a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--gray-border);
  border-radius: 20px;
  margin-right: 8px;
  font-size: 0.85rem;
}

.filter-tags a:hover {
  border-color: var(--red);
  color: var(--red);
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-cards {
    grid-template-columns: 1fr;
  }
  .featured-split {
    grid-template-columns: 1fr;
  }
  .deal-section {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .header-main {
    grid-template-columns: auto 1fr;
  }
  .header-search {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }
  .nav-toggle {
    display: flex;
  }
  .main-nav .nav-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav:not(.open) .nav-list {
    display: none;
  }
  .nav-sale-badge {
    align-self: center;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .header-actions .icon-label {
    display: none;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 72px;
  }
  .two-col,
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .deal-products {
    grid-template-columns: 1fr;
  }
}
