:root {
  --as-red: #bd1722;
  --as-text: #321004;
  --as-bg: #ffffff;
  --as-border: #e8e8e8;
  --as-font-heading: 'Bayon', sans-serif;
  --as-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  margin: 0;
  color: var(--as-text);
  font-family: var(--as-font-body);
  font-size: 15px;
  line-height: 1.5;
  background: var(--as-bg);
}

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

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

.site-main {
  min-height: 50vh;
}

.announcement-bar {
  background: var(--as-red);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.announcement-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.site-header {
  background: var(--as-red);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.site-logo__text {
  font-family: var(--as-font-heading);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #fff;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 22px;
}

.site-nav__item > a {
  font-family: var(--as-font-heading);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 8px 0;
}

.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  color: var(--as-text);
  border: 1px solid var(--as-border);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 50;
}

.site-nav__item.has-dropdown {
  position: relative;
}

.site-nav__item.has-dropdown:hover .site-nav__dropdown {
  display: block;
}

.site-nav__dropdown a {
  display: block;
  padding: 8px 16px;
  font-family: var(--as-font-body);
  font-size: 14px;
}

.site-nav__dropdown a:hover {
  background: #f5f5f5;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__icon {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  position: relative;
  padding: 6px;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  color: var(--as-red);
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.site-header__menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 2px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

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

.btn--primary:hover {
  background: #9a121b;
}

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

.home-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #321004 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.home-hero h1 {
  font-family: var(--as-font-heading);
  font-size: 48px;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.home-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 20px;
}

.home-section__title {
  font-family: var(--as-font-heading);
  font-size: 28px;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  text-align: center;
}

.home-section__subtitle {
  text-align: center;
  margin: 0 0 24px;
  color: #666;
}

.home-section__footer {
  text-align: center;
  margin-top: 24px;
}

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

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  background: #f7f7f7;
  overflow: hidden;
}

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

.product-card__title {
  font-size: 14px;
  font-weight: 500;
  margin: 12px 0 6px;
  line-height: 1.35;
}

.product-card__price {
  font-weight: 600;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #333;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.shop-header,
.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 20px;
}

.shop-title,
.page-title {
  font-family: var(--as-font-heading);
  font-size: 32px;
  letter-spacing: 0.06em;
}

.single-product {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.single-product__title {
  font-family: var(--as-font-heading);
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.single-product__price {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.variations {
  border: none;
  margin-bottom: 16px;
}

.variations th,
.variations td {
  border: none;
  padding: 8px 0;
  vertical-align: top;
}

.variations .label label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.variations select {
  display: none;
}

.variation-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variation-swatch {
  min-width: 44px;
  padding: 10px 14px;
  border: 1px solid var(--as-border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.variation-swatch.is-selected {
  border-color: var(--as-text);
  background: var(--as-text);
  color: #fff;
}

.variation-swatch.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--as-border);
}

.cart-drawer__header h2 {
  font-family: var(--as-font-heading);
  margin: 0;
}

.cart-drawer__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.cart-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 20px;
}

.cart-drawer__footer {
  padding: 20px;
  border-top: 1px solid var(--as-border);
  display: flex;
  gap: 10px;
}

.cart-drawer__footer .btn {
  flex: 1;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 90;
}

.mobile-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.site-footer {
  background: #111;
  color: #fff;
  margin-top: 48px;
}

.site-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__nav a:hover {
  color: var(--as-red);
}

.site-footer__bottom {
  border-top: 1px solid #333;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: #aaa;
}

.woocommerce-pagination {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 20px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header__menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--as-red);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 120;
    padding: 60px 20px 20px;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__dropdown {
    position: static;
    display: block;
    background: transparent;
    border: none;
    color: #fff;
    padding-left: 12px;
  }

  .site-nav__dropdown a {
    color: rgba(255, 255, 255, 0.85);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .single-product {
    grid-template-columns: 1fr;
  }
}
