/* GLOBAL RESET & BASE STYLES */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0d0d0d;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 32px 24px;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-header {
  max-width: 1100px;
  margin: 0 auto 32px auto;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title h1 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.header-title p {
  font-size: 15px;
  color: #cccccc;
  margin-top: 4px;
}

.header-logo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

/* CATALOG CONTAINER */
.catalog-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.catalog-section {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  text-transform: uppercase;
  display: block;
}

/* GRIDS */
.grid-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sections-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

.products-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  height: 100%;
}

/* CARDS */
.card-container {
  position: relative;
  background-color: #f2efe9;
  border-radius: 8px;
  padding: 14px;
  color: #000000;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.multi-product-box {
  height: 100%;
}

.product-item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #e62e1b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 3px;
  z-index: 5;
  letter-spacing: 0.5px;
}

/* MEDIA BASE CONTAINER */
.card-media {
  width: 100%;
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

/* ASPECT RATIOS */
.card-media.media-legacy {
  aspect-ratio: 16 / 10;
}

.card-media.media-portrait {
  aspect-ratio: 3 / 4;
}

.card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.card-footer-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: auto;
}

/* TYPOGRAPHY */
.card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 13px;
  font-weight: 800;
  color: #000000;
  line-height: 1.25;
}

.product-price {
  font-size: 14px;
  font-weight: 800;
  color: #000000;
  display: block;
  margin-top: 2px;
}

.product-fit {
  font-size: 11px;
  color: #666666;
  font-weight: 600;
  display: block;
}

/* BUTTONS */
.card-action {
  margin-top: 6px;
  width: 100%;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-action:focus-visible {
  outline: 2px solid #e62e1b;
  outline-offset: 2px;
}

.btn-amazon {
  background-color: #e3dad0;
  color: #111111;
  border: 1px solid #d0c2b2;
}

.btn-amazon:hover {
  background-color: #e62e1b;
  color: #ffffff;
  border-color: #e62e1b;
}

.btn-coming-soon {
  background-color: #e62e1b;
  color: #ffffff;
  border: none;
  cursor: not-allowed;
  opacity: 0.9;
}

/* ACCESSORIES HALF SIZE ON DESKTOP */
.half-width-wrapper {
  width: calc(50% - 10px);
}

/* RESPONSIVE LAYOUT FOR MOBILE */
@media (max-width: 768px) {
  body {
    padding: 16px 12px;
  }

  .site-header {
    margin-bottom: 24px;
  }

  .header-logo img {
    width: 70px;
    height: 70px;
  }

  .header-title h1 {
    font-size: 20px;
  }

  .header-title p {
    font-size: 12px;
  }

  .catalog-container {
    gap: 24px;
  }

  .grid-two-col,
  .sections-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .products-duo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .card-container {
    padding: 10px;
  }

  .half-width-wrapper {
    width: 100%;
  }

  .product-title {
    font-size: 11px;
  }

  .product-price {
    font-size: 12px;
  }

  .product-fit {
    font-size: 10px;
  }

  .btn-action {
    height: 30px;
    font-size: 10px;
    padding: 0 4px;
  }
}