:root {
  --black: #050505;
  --dark: #111111;
  --card: #181818;
  --red: #e30613;
  --red-hover: #ff1a1a;
  --white: #ffffff;
  --muted: #b5b5b5;
  --border: #2a2a2a;
  --shadow: 0 18px 55px rgba(0, 0, 0, .42);
}
* { box-sizing: border-box; }
html { background: var(--black); color: var(--white); }
body { margin: 0; font-family: Inter, Montserrat, Arial, sans-serif; background: radial-gradient(circle at top, #171717, #050505 520px); color: var(--white); padding-bottom: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.92); border-bottom: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(14px); }
.header-inner { width: min(1280px, 100%); margin: auto; height: 104px; display: grid; grid-template-columns: 138px 1fr auto; align-items: center; gap: 28px; padding: 0 32px; }
.logo-link img { width: 76px; }
.main-nav { display: flex; justify-content: center; gap: 38px; text-transform: uppercase; font-weight: 800; font-size: 14px; letter-spacing: 0; }
.main-nav a { position: relative; padding: 42px 0 36px; }
.main-nav a.active, .main-nav a:hover { color: var(--red-hover); }
.main-nav a.active:after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 3px; background: var(--red); }
.header-actions { display: flex; gap: 22px; align-items: center; }
.icon-link { font-size: 25px; position: relative; min-width: 28px; text-align: center; }
.cart-link b { position: absolute; top: -9px; right: -13px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 11px; }
.mobile-menu-btn { display: none; }
.hero { min-height: 500px; width: min(1280px, calc(100% - 24px)); margin: 0 auto; display: flex; align-items: center; padding: 70px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.hero:before, .page-hero:before, .community-band:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.28)); }
.hero > div, .page-hero > *, .community-band > * { position: relative; z-index: 1; }
.hero-home { background-image: url("../img/hero-home.jpg"); }
.hero h1 { margin: 0 0 12px; font-size: clamp(52px, 8vw, 96px); line-height: .9; text-transform: uppercase; font-weight: 950; }
.hero h1 span, .page-hero span { color: var(--red); display: block; }
.hero p { font-size: 24px; line-height: 1.25; margin: 0 0 24px; }
.btn { border: 1px solid var(--border); color: var(--white); border-radius: 6px; min-height: 46px; padding: 13px 23px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; text-transform: uppercase; font-weight: 900; cursor: pointer; background: transparent; }
.btn-red { background: linear-gradient(135deg, var(--red), #c9000b); border-color: var(--red); }
.btn-red:hover { background: var(--red-hover); }
.btn-outline:hover { border-color: var(--red); color: var(--red-hover); }
.section { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0; }
.section h2, .section > h1, .contact-card h2, .cart-total h2 { text-transform: uppercase; font-size: 28px; margin: 0 0 22px; }
.section h2:after, .contact-card h2:after, .filters h3:after, .site-footer h4:after { content: ""; display: block; width: 42px; height: 3px; background: var(--red); margin-top: 10px; }
.category-grid, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card, .product-card, .contact-card, .cart-total, .cart-table, .checkout-form { background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.category-card { overflow: hidden; min-height: 210px; }
.category-card img { width: 100%; height: 166px; object-fit: cover; }
.category-card strong { display: block; text-transform: uppercase; font-size: 22px; padding: 18px 20px 4px; }
.category-card span { color: var(--red-hover); text-transform: uppercase; font-weight: 900; padding: 0 20px 18px; display: block; }
.community-band { width: min(1280px, calc(100% - 24px)); margin: 0 auto 30px; padding: 48px 64px; min-height: 190px; display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 34px; background: url("../img/community.jpg") center/cover; position: relative; }
.community-band h2 { font-size: 40px; text-transform: uppercase; margin: 0 0 18px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.values span { display: grid; gap: 7px; justify-items: center; text-align: center; color: var(--red); font-size: 34px; border-left: 1px solid var(--border); padding: 10px; }
.values b { color: var(--white); text-transform: uppercase; font-size: 16px; }
.values small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.page-hero { width: min(1280px, calc(100% - 24px)); margin: 0 auto; min-height: 190px; padding: 52px 56px; background: url("../img/hero-shop.jpg") center/cover; position: relative; }
.page-hero h1 { margin: 0 0 18px; font-size: clamp(42px, 5vw, 58px); line-height: 1; text-transform: uppercase; font-weight: 950; }
.page-hero p { color: var(--muted); margin: 0; }
.shop-layout { width: min(1180px, calc(100% - 36px)); margin: 0 auto 50px; display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding-top: 26px; }
.filters { border: 1px solid var(--border); background: rgba(10,10,10,.74); border-radius: 8px; padding: 24px; align-self: start; }
.filters h3 { text-transform: uppercase; margin: 0 0 18px; }
.filters a { display: flex; justify-content: space-between; padding: 12px 4px; color: var(--muted); }
.filters a.active, .filters a:hover { color: var(--red-hover); }
.range-line { height: 4px; border-radius: 99px; background: var(--red); margin: 24px 0; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
select, input, textarea { width: 100%; min-height: 44px; background: rgba(0,0,0,.34); border: 1px solid var(--border); color: var(--white); border-radius: 5px; padding: 10px 14px; }
textarea { min-height: 126px; resize: vertical; }
.product-grid { grid-template-columns: repeat(4, 1fr); }
.product-card { overflow: hidden; padding-bottom: 14px; }
.product-card img { width: 100%; aspect-ratio: 1 / .9; object-fit: cover; background: #101010; }
.product-card h3 { min-height: 46px; margin: 15px 14px 8px; text-transform: uppercase; font-size: 15px; line-height: 1.35; }
.product-card p, .product-info h2, .cart-row strong, .cart-total b { color: var(--red-hover); font-weight: 950; }
.product-card p { margin: 0 14px 14px; }
.product-card form { display: grid; grid-template-columns: 1fr 42px; gap: 8px; padding: 0 14px; }
.product-card .btn { font-size: 13px; padding: 9px; min-height: 38px; }
.heart { border: 0; background: transparent; color: white; font-size: 25px; cursor: pointer; }
.product-page { width: min(1180px, calc(100% - 36px)); margin: 40px auto 70px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; }
.product-gallery, .product-info { min-width: 0; }
.product-main { width: 100%; border: 1px solid var(--border); border-radius: 8px; aspect-ratio: 1 / .95; object-fit: cover; background: var(--card); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.thumbs img { border: 1px solid var(--border); border-radius: 7px; aspect-ratio: 1; object-fit: cover; }
.badge { display: inline-block; background: var(--red); border-radius: 4px; padding: 6px 11px; text-transform: uppercase; font-weight: 900; font-size: 12px; }
.product-info h1 { font-size: 40px; line-height: 1.05; text-transform: uppercase; margin: 18px 0 10px; }
.muted, .product-info p { color: var(--muted); line-height: 1.7; }
.buy-box { display: grid; gap: 14px; margin-top: 24px; }
.size-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.size-grid input { display: none; }
.size-grid span { min-width: 58px; height: 46px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 5px; cursor: pointer; }
.size-grid input:checked + span { border-color: var(--red); color: var(--red-hover); }
.size-grid small { display: block; color: var(--muted); font-size: 11px; text-align: center; margin-top: 3px; }
.qty { display: inline-grid; grid-template-columns: 40px 52px 40px; width: max-content; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.qty button, .qty input { border: 0; border-right: 1px solid var(--border); border-radius: 0; text-align: center; background: rgba(255,255,255,.03); color: var(--white); min-height: 42px; }
.qty button:last-child { border-right: 0; }
.info-list { margin-top: 28px; padding: 20px; border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; color: var(--muted); }
.cart-layout, .checkout-layout, .contact-layout, .account-layout { width: min(1180px, calc(100% - 36px)); margin: 24px auto 60px; display: grid; gap: 24px; }
.cart-layout, .checkout-layout { grid-template-columns: 1fr 430px; align-items: start; }
.cart-table, .checkout-form, .contact-card, .cart-total { padding: 22px; }
.cart-row { display: grid; grid-template-columns: 90px 1fr 120px 150px 120px; gap: 18px; align-items: center; border-bottom: 1px solid var(--border); padding: 16px 0; }
.cart-row img { width: 84px; aspect-ratio: 1; object-fit: cover; }
.cart-row h3 { text-transform: uppercase; margin: 0 0 6px; font-size: 16px; }
.cart-row p { color: var(--muted); margin: 0; }
.coupon-line { display: flex; max-width: 390px; margin: 22px 0; }
.coupon-line input { border-radius: 5px 0 0 5px; }
.coupon-line .btn { border-radius: 0 5px 5px 0; }
.cart-total p { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 12px 0; }
.cart-total .total { text-transform: uppercase; font-size: 24px; border-bottom: 0; }
.cart-total .btn { width: 100%; }
.cart-total small { display: block; color: var(--muted); text-align: center; margin-top: 12px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.radio-card { display: block; border: 1px solid var(--border); border-radius: 6px; padding: 14px; margin: 10px 0; }
.contact-layout { grid-template-columns: 1.45fr .95fr; }
.map { grid-column: 1 / -1; width: 100%; height: 180px; border: 1px solid var(--border); border-radius: 8px; filter: grayscale(1) invert(.85); }
.account-layout { grid-template-columns: repeat(2, 1fr); }
.narrow { max-width: 820px; }
.site-footer { width: min(1280px, calc(100% - 24px)); margin: 30px auto 0; background: linear-gradient(145deg, #090909, #151515); border: 1px solid var(--border); border-radius: 8px 8px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.7fr; gap: 54px; padding: 52px 70px; }
.footer-logo { width: 110px; margin-bottom: 16px; }
.site-footer h3, .site-footer h4 { text-transform: uppercase; margin: 0 0 18px; }
.site-footer p, .site-footer a { color: var(--muted); line-height: 1.5; }
.site-footer a { display: block; margin: 13px 0; }
.site-footer a:hover, .footer-bottom a { color: var(--red-hover); }
.legal-badge { display: grid !important; grid-template-columns: 104px 1fr; gap: 16px; align-items: center; }
.legal-badge span { height: 58px; display: grid; place-items: center; background: #f7f7f7; color: #0645ad; border-radius: 3px; font-weight: 950; }
.footer-bottom { border-top: 1px solid var(--border); display: flex; justify-content: space-between; padding: 24px 70px; color: var(--muted); }
.flash, .alert { width: min(1180px, calc(100% - 36px)); margin: 14px auto; padding: 14px 18px; border-radius: 6px; background: rgba(0, 160, 80, .18); border: 1px solid rgba(0, 160, 80, .35); }
.flash.error, .alert.error { background: rgba(227, 6, 19, .18); border-color: rgba(227, 6, 19, .5); }
.install-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.install-box { width: min(560px, 100%); background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 32px; box-shadow: var(--shadow); }
.install-logo { width: 110px; margin: 0 auto 16px; }
.mobile-bottom { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: 74px; }
  .header-inner { height: 96px; grid-template-columns: 42px 1fr auto; padding: 0 18px; }
  .logo-link { justify-self: center; }
  .logo-link img { width: 64px; }
  .mobile-menu-btn { display: grid; gap: 5px; background: none; border: 0; padding: 0; }
  .mobile-menu-btn span { width: 28px; height: 2px; background: var(--white); display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 96px; background: #070707; padding: 18px; border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 6px; }
  .header-actions .icon-link:nth-child(2) { display: none; }
  .hero { min-height: 280px; padding: 34px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 18px; }
  .category-grid, .product-grid, .values, .footer-grid, .account-layout, .contact-layout, .cart-layout, .checkout-layout, .product-page, .shop-layout { grid-template-columns: 1fr; }
  .category-card { display: grid; grid-template-columns: 38% 1fr; min-height: 132px; align-items: center; }
  .category-card img { height: 132px; }
  .community-band { grid-template-columns: 1fr; padding: 34px; }
  .values span { border-left: 0; border-top: 1px solid var(--border); }
  .page-hero { min-height: 160px; padding: 34px; }
  .filters { display: none; }
  .shop-toolbar { gap: 12px; }
  .product-card { display: grid; grid-template-columns: 112px 1fr; padding: 10px; gap: 12px; }
  .product-card img { aspect-ratio: 1; border-radius: 6px; }
  .product-card h3, .product-card p, .product-card form { grid-column: 2; margin-left: 0; padding-left: 0; }
  .product-card a { grid-row: 1 / 4; }
  .product-card form { grid-template-columns: 1fr 40px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 82px 1fr 42px; }
  .cart-row strong { grid-column: 2; }
  .cart-row .qty { grid-column: 2; }
  .footer-grid { gap: 20px; padding: 28px; }
  .footer-bottom { padding: 20px 28px; display: grid; gap: 8px; text-align: center; }
  .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(0,0,0,.94); border-top: 1px solid var(--border); padding: 8px 6px; }
  .mobile-bottom a { display: grid; justify-items: center; gap: 3px; color: var(--muted); font-size: 20px; }
  .mobile-bottom span { font-size: 11px; }
  .mobile-bottom a.active { color: var(--red-hover); }
}
