:root {
  --accent: #df3537;
  --hover: #c21f21;
  --ink: #252525;
  --muted: #777;
  --line: #e8e8e8;
  --soft: #f7f7f7;
  --radius: 5px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font:
    15px/1.6 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #2279ba;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(1360px, calc(100% - 64px));
  margin: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  background: #fff;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 28px;
}
h2 {
  font-size: 25px;
  line-height: 1.35;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  line-height: 1.5;
}
small {
  font-size: 12px;
}
main {
  min-height: 50vh;
  padding-bottom: 50px;
}
section {
  margin-bottom: 48px;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #666;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 12px;
}
.topbar nav {
  display: flex;
  gap: 28px;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
}
.logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 200px;
}
.logo img {
  object-fit: contain;
  object-position: left;
  height: 70px;
  width: 190px;
}
.logo span {
  font-size: 10px;
  color: #777;
}
.header-search {
  display: flex;
  flex: 1;
  max-width: 590px;
}
.header-search input {
  border: 1px solid var(--accent);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  min-width: 0;
  flex: 1;
  padding: 12px 16px;
}
.header-search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 4px 4px 0;
}
.cart-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.cart-link b {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  height: 20px;
  padding: 2px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
}
.navline {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.navigation {
  display: flex;
  align-items: stretch;
  gap: 28px;
}
.catalog-button {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent);
  color: #fff;
  padding: 14px 23px;
  font-weight: 600;
  white-space: nowrap;
}
.catalog-button:hover {
  background: var(--hover);
  color: #fff;
}
.category-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 0;
}
.mobile-menu {
  display: none;
}
.eyebrow {
  letter-spacing: 1.7px;
  font-size: 11px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  gap: 8px;
  line-height: 1.4;
}
.button:hover {
  background: var(--hover);
  color: #fff;
  border-color: var(--hover);
}
.button-outline {
  background: #fff;
  color: var(--accent);
}
.button:disabled {
  background: #bbb;
  border-color: #bbb;
  cursor: not-allowed;
}
.text-button {
  background: none;
  border: 0;
  text-decoration: underline;
  color: var(--muted);
  padding: 10px;
}
.home-categories {
  margin-top: 40px;
}
.home-categories h1 {
  font-size: 27px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.section-heading > a {
  font-size: 13px;
  color: var(--muted);
}
.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.category-tiles a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.category-tiles a:hover {
  border-color: var(--accent);
}
.category-tiles small {
  color: var(--muted);
}
.category-tiles img {
  height: 170px;
  object-fit: contain;
  margin-bottom: 20px;
}
.about-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background: var(--soft);
  padding: 38px;
  border-radius: 5px;
}
.about-banner p {
  max-width: 680px;
}
.about-banner .button {
  flex-shrink: 0;
}
.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  background: #fff;
  min-width: 0;
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.product-card:hover {
  border-color: #ccc;
  box-shadow: 0 5px 18px #00000008;
}
.card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  height: 235px;
}
.card-image img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.card-body {
  padding: 0 18px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card-body h3 {
  margin: 8px 0 18px;
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}
.card-price {
  font-size: 21px;
  font-weight: bold;
}
.pack {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 18px;
}
.card-body > .button {
  width: 100%;
  margin-top: auto;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 30px;
}
.catalog-layout .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.filters {
  background: var(--soft);
  padding: 22px;
  border-radius: 5px;
  align-self: start;
}
.filters h2 {
  font-size: 16px;
}
.filters label,
.buy-panel label,
.checkout label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 7px;
}
input,
select,
textarea {
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  background: #fff;
  border-radius: 4px;
  color: var(--ink);
  max-width: 100%;
}
.filters input,
.filters select {
  width: 100%;
  font-size: 13px;
}
.filters fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
.filters legend {
  font-size: 13px;
  font-weight: 600;
}
.price-range {
  display: flex;
  gap: 8px;
}
.price-range label {
  width: 50%;
  margin: 7px 0;
}
.filters .button {
  width: 100%;
  margin-top: 20px;
}
.category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.category-chips a {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 12px;
}
.category-chips small {
  color: #999;
  margin-left: 4px;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 30px 0;
}
.pagination a,
.pagination button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 14px;
  border-radius: 3px;
}
.pagination [aria-current="page"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.empty {
  text-align: center;
  background: var(--soft);
  padding: 40px;
  border-radius: 5px;
  grid-column: 1/-1;
}
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 65px;
  margin-bottom: 45px;
}
.gallery {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 24px;
}
.gallery > a {
  display: flex;
  height: 430px;
  justify-content: center;
}
.gallery > a img {
  object-fit: contain;
  height: 100%;
}
.thumbnails {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.thumbnails a {
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 3px;
  width: 72px;
  height: 72px;
}
.thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.buy-panel {
  padding-top: 12px;
}
.buy-panel .eyebrow {
  margin-bottom: 12px;
}
.buy-panel select {
  width: 100%;
}
.detail-price {
  font-size: 34px;
  font-weight: bold;
  margin: 20px 0 0;
}
.old-price {
  color: #999;
  text-decoration: line-through;
  margin: 0;
}
.card-discount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.discount-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 3px 7px;
  font-size: 13px;
  font-weight: 600;
}
.buy-row {
  display: flex;
  gap: 12px;
}
.buy-row input {
  width: 100px;
}
.buy-row .button {
  flex: 1;
}
.delivery-note {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 24px;
  font-size: 13px;
}
.delivery-note p {
  color: var(--muted);
  margin-top: 8px;
}
.product-info {
  max-width: 1000px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.prose {
  overflow-wrap: anywhere;
  line-height: 1.8;
  max-width: 1000px;
}
.prose p {
  margin-bottom: 16px;
}
.prose a {
  text-decoration: underline;
  color: var(--accent);
}
.prose img {
  object-fit: contain;
  max-height: 650px;
  margin: 12px 8px 12px 0;
  vertical-align: middle;
}
.prose h2 {
  margin-top: 28px;
}
.prose table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow: auto;
}
.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 10px;
}
.specs {
  max-width: 800px;
}
.specs > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.specs dt {
  color: var(--muted);
}
.specs dd {
  margin: 0;
}
.info-action {
  margin-top: 30px;
}
.cart-layout {
  margin: 24px 0;
}
.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 100px 150px 36px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.cart-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.cart-item h2 {
  font-size: 15px;
  margin-bottom: 5px;
}
.cart-item small {
  display: block;
  color: var(--muted);
}
.cart-item input {
  width: 100%;
}
.cart-item .remove {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 24px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--soft);
  padding: 25px;
  margin-top: 20px;
}
.cart-total strong {
  font-size: 23px;
}
.checkout {
  max-width: 900px;
  margin-top: 40px;
}
.checkout textarea {
  width: 100%;
  resize: vertical;
  font-size: 13px;
}
.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}
.notice {
  padding: 15px 20px;
  background: #fff5e3;
  border-left: 3px solid #e8ba5b;
  font-size: 13px;
  white-space: pre-line;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 14px 25px;
  border-radius: 5px;
  max-width: calc(100% - 32px);
  width: max-content;
  font-size: 14px;
  z-index: 50;
  box-shadow: 0 5px 25px #0003;
}
.footer {
  background: #4d4d4d;
  color: #fff;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 60px;
  padding-top: 45px;
  padding-bottom: 35px;
}
.footer h2 {
  font-size: 15px;
  margin-bottom: 15px;
}
.footer-grid a:not(.footer-brand) {
  display: block;
  margin-bottom: 8px;
}
.footer-brand {
  font-size: 29px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
}
.footer-grid p {
  margin-top: 15px;
}
.footer .muted {
  color: #ddd;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid #666;
  padding-top: 20px;
  padding-bottom: 20px;
  color: #ddd;
  font-size: 11px;
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    gap: 20px;
  }
  .category-nav {
    gap: 16px;
  }
  .category-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .catalog-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 22px;
  }
  .catalog-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    gap: 30px;
  }
  .product-detail {
    gap: 30px;
  }
  .card-image {
    height: 210px;
  }
}
@media (max-width: 740px) {
  body {
    font-size: 14px;
  }
  .container {
    width: calc(100% - 28px);
  }
  .topbar-inner > span {
    display: none;
  }
  .topbar-inner {
    justify-content: center;
  }
  .topbar nav {
    gap: 23px;
  }
  .topbar nav a {
    font-size: 11px;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 15px;
  }
  .logo {
    width: 145px;
  }
  .logo img {
    width: 135px;
    height: 45px;
  }
  .logo span {
    font-size: 9px;
  }
  .cart-link {
    margin-left: auto;
  }
  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .header-search input {
    padding: 10px 12px;
  }
  .navigation {
    gap: 0;
    justify-content: space-between;
  }
  .catalog-button {
    font-size: 13px;
    padding: 12px 18px;
  }
  .category-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
    position: relative;
    align-self: center;
    font-size: 13px;
  }
  .mobile-menu summary {
    cursor: pointer;
    padding: 12px;
  }
  .mobile-menu nav {
    position: absolute;
    right: 0;
    top: 100%;
    width: 260px;
    max-width: calc(100vw - 28px);
    background: #fff;
    z-index: 10;
    box-shadow: 0 10px 30px #0002;
    padding: 12px;
  }
  .mobile-menu nav a {
    display: block;
    padding: 9px 12px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.3px;
  }
  .home-categories {
    margin-top: 25px;
  }
  .home-categories h1 {
    font-size: 22px;
  }
  section {
    margin-bottom: 30px;
  }
  h1 {
    font-size: 25px;
    margin-bottom: 22px;
  }
  h2 {
    font-size: 21px;
  }
  .section-heading {
    gap: 8px;
  }
  .section-heading > a {
    font-size: 11px;
    white-space: nowrap;
  }
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .category-tiles a {
    padding: 16px 12px;
    font-size: 12px;
  }
  .category-tiles small {
    font-size: 10px;
  }
  .category-tiles img {
    height: 125px;
    margin-bottom: 10px;
  }
  .product-grid,
  .catalog-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card-image {
    height: 165px;
    padding: 12px;
  }
  .card-body {
    padding: 0 12px 14px;
  }
  .card-body h3 {
    font-size: 12px;
    margin: 6px 0 12px;
  }
  .card-price {
    font-size: 18px;
  }
  .pack {
    font-size: 10px;
  }
  .card-body .button {
    padding: 10px 5px;
    font-size: 12px;
  }
  .card-body > small {
    font-size: 10px;
  }
  .about-banner {
    padding: 25px;
    display: block;
  }
  .about-banner .button {
    margin-top: 10px;
  }
  .catalog-layout {
    display: block;
  }
  .filters {
    padding: 18px;
    margin-bottom: 20px;
  }
  .filters form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
  }
  .filters h2 {
    grid-column: 1/-1;
  }
  .filters label,
  .filters select,
  .filters input,
  .filters fieldset {
    grid-column: 1/-1;
  }
  .filters fieldset {
    margin: 12px 0;
  }
  .filters .button {
    margin-top: 12px;
  }
  .filters .text-button {
    margin-top: 12px;
  }
  .breadcrumbs {
    font-size: 10px;
    margin: 18px 0;
    gap: 5px;
  }
  .category-chips a {
    font-size: 11px;
  }
  .product-detail {
    display: block;
  }
  .gallery {
    margin-bottom: 22px;
    padding: 18px;
  }
  .gallery > a {
    height: 300px;
  }
  .detail-price {
    font-size: 30px;
  }
  .buy-panel {
    padding-top: 8px;
  }
  .specs > div {
    gap: 12px;
    font-size: 13px;
  }
  .prose {
    font-size: 13px;
  }
  .cart-item {
    grid-template-columns: 65px minmax(0, 1fr) 28px;
    gap: 12px;
  }
  .cart-item img {
    width: 65px;
    height: 65px;
    grid-row: 1/3;
  }
  .cart-item h2 {
    font-size: 13px;
  }
  .cart-item input {
    grid-column: 2;
    width: 90px;
    grid-row: 2;
  }
  .cart-item .line-total {
    grid-column: 2;
    grid-row: 3;
  }
  .cart-item .remove {
    grid-column: 3;
    grid-row: 1;
  }
  .cart-total {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .checkout-actions {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
    padding-top: 30px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .footer-bottom {
    gap: 12px;
    font-size: 10px;
  }
  .footer h2 {
    font-size: 14px;
  }
  .footer {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
