:root {
  --navy: #21213f;
  --navy-dark: #17172c;
  --gold: #ffc72c;
  --ink: #242424;
  --paper: #ffffff;
  --paper-alt: #f7f7f9;
  --border: #e4e4ea;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 700;
  margin: 0;
}

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

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fcfcfc;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 48px;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fcfcfc;
  font-size: 28px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
}

.nav-links a:hover { color: var(--gold); }

.nav-links .has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-dark);
  min-width: 200px;
  padding: 8px 0;
  border-radius: 4px;
  z-index: 10;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 16px;
  white-space: nowrap;
}

.dropdown a:hover { background: var(--navy); color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: #fcfcfc;
  padding: 64px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  max-width: 640px;
}

.hero-content .kicker {
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
}

.hero-content h1 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 19px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 17px;
}

.btn:hover { background: #e6b326; }

/* Hero tiles */
.hero-tiles {
  padding: 40px 0;
}

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

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

.tile-grid.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.tile {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
}

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

.tile h3 {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: #fcfcfc;
  font-size: 20px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 55%);
}

/* Category page header */
.page-header {
  background: var(--navy);
  color: #fcfcfc;
  padding: 48px 0;
  text-align: center;
}

.page-header .logo-badge {
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 6px;
}

.page-header h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto;
}

.catalog-section {
  padding: 48px 0;
}

.empty-note {
  text-align: center;
  color: #767676;
  padding: 32px 0;
}

/* Section headings */
.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 32px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

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

.product-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--paper-alt);
}

.product-img-wrap {
  position: relative;
}

.badge-soldout {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: #fcfcfc;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.price-sale {
  color: #c23b3b;
}

.price-was {
  color: #8b8b8b;
  font-weight: 400;
  text-decoration: line-through;
  font-size: 15px;
}

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

.product-body h3 {
  font-size: 18px;
  font-weight: 600;
}

.price {
  color: var(--navy);
  font-weight: 700;
  font-size: 17px;
}

.quote-btn {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  background: var(--navy);
  color: #fcfcfc;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 16px;
  transition: background 0.15s ease;
}

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

/* Footer */
.site-footer {
  background: var(--navy);
  color: #fcfcfc;
  padding: 48px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  font-size: 15px;
  opacity: 0.8;
  text-align: center;
}

/* Product detail page */
.breadcrumb {
  padding: 16px 0;
  font-size: 15px;
  color: #767676;
}

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

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 16px 0 48px;
}

.gallery-main {
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-alt);
  aspect-ratio: 1 / 1;
}

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

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-thumbs img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.75;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--navy);
}

.product-info h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.product-info .price {
  font-size: 24px;
  margin-bottom: 16px;
}

.product-info .badge-soldout {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

.product-info .sku {
  color: #8b8b8b;
  font-size: 14px;
  margin-bottom: 20px;
}

.product-info .description p {
  margin: 0 0 14px;
  white-space: pre-line;
}

.product-info .quote-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 17px;
  margin: 8px 0 28px;
}

.features-list {
  margin: 0 0 24px;
  padding-left: 20px;
}

.features-list li {
  margin-bottom: 6px;
}

.features-list-heading, .description-heading {
  font-size: 20px;
  margin-bottom: 10px;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.category-pills a {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--navy);
}

.category-pills a:hover { background: var(--gold); border-color: var(--gold); }

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

.blog-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper-alt);
}

.blog-card .blog-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .blog-date {
  color: #8b8b8b;
  font-size: 14px;
  margin-bottom: 6px;
}

.blog-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.blog-card p {
  color: #555;
  font-size: 15px;
  flex: 1;
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 64px;
}

.blog-article .blog-date {
  color: #8b8b8b;
  margin-bottom: 24px;
}

.blog-article img {
  border-radius: 8px;
  margin: 24px 0;
}

.blog-article p {
  margin: 0 0 18px;
}

.blog-article h2, .blog-article h3 {
  margin: 32px 0 12px;
}

.blog-article ul, .blog-article ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 15px;
}

.pagination a:hover { background: var(--paper-alt); }
.pagination .current { background: var(--navy); color: #fcfcfc; border-color: var(--navy); }

@media (max-width: 900px) {
  .hero-content h1 { font-size: 32px; }
  .product-hero { grid-template-columns: 1fr; gap: 24px; }
  .tile-grid { grid-template-columns: 1fr; }
  .tile-grid.cols-4 { grid-template-columns: 1fr; }
  .tile-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}
