/* =====================================================
   CARLISM - PRODUCTS
===================================================== */


/* HERO */

.product-page-hero {
  width: 100%;
  overflow: hidden;
  padding: 32px 0 55px;
  background: #f4f4f4;
  color: #111;
  border-bottom: 1px solid #e5e5e5;
}

.product-page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 38px;
  color: #777;
  font-size: 10px;
  font-weight: 600;
}

.product-page-breadcrumb > a:not(.back-link) {
  color: #111;
  transition: opacity 0.2s ease;
}

.product-page-breadcrumb > a:not(.back-link):hover {
  opacity: 0.55;
}

.breadcrumb-divider {
  color: #aaa;
}

.back-link {
  min-height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #111;
  color: #fff !important;
  border: 1px solid #111;
  font-size: 10px;
  font-weight: 800;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.back-link i {
  font-size: 10px;
}

.back-link:hover {
  background: #fff;
  color: #111 !important;
  transform: translateX(-2px);
}

.product-hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
}

.product-hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.product-page-label {
  margin: 0 0 14px;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.product-hero-content h1 {
  margin: 0;
  color: #111;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -2px;
}

.product-page-description {
  max-width: 530px;
  margin: 26px 0 0;
  color: #555;
  font-size: 12px;
  line-height: 1.75;
}

.product-hero-image {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #eee;
}

.product-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 70%;
}


/* FILTER */

.product-filter-section {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

.product-filter-bar {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
}

.product-filter-scroll {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
}

.product-filter-buttons {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.product-filter-buttons::-webkit-scrollbar {
  display: none;
}

.product-filter-arrow {
  width: 36px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #111;
  border: 0;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.product-filter-arrow.is-disabled {
  opacity: 0.2;
}


.product-filter-btn {
  flex: 0 0 auto;
  min-width: 105px;
  height: 40px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.product-filter-btn:hover {
  border-color: #111;
}

.product-filter-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}


/* PRODUCTS */

.product-list-section {
  min-height: 350px;
  padding: 28px 0 70px;
  background: #f7f7f7;
}

.product-list-head {
  min-height: 22px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.product-count {
  color: #777;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.category-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}


/* CARD */

.category-product-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedede;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.category-product-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #fff;
}

.category-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.category-product-card:hover .category-product-image img {
  transform: scale(1.02);
}

.category-product-image.image-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
}

.category-product-image.image-missing::after {
  content: "PRODUCT IMAGE";
  color: #aaa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.category-product-view {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 13px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.category-product-card:hover .category-product-view {
  transform: translateY(0);
}

.category-product-info {
  padding: 16px 17px 17px;
}

.category-product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.category-product-category {
  color: #777;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.category-product-brand {
  color: #999;
  font-size: 8px;
  font-weight: 600;
}

.category-product-info h3 {
  min-height: 20px;
  margin: 0;
  color: #111;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.category-product-subtitle {
  display: block;
  margin-top: 3px;
  color: #777;
  font-size: 9px;
  font-weight: 500;
}

.category-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.category-product-price {
  color: #111;
  font-size: 10px;
  font-weight: 700;
}

.category-product-arrow {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  font-size: 10px;
}

.products-empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  text-align: center;
  color: #777;
}

.products-empty i {
  display: block;
  margin-bottom: 15px;
  font-size: 30px;
}

.products-empty p {
  margin: 0;
  font-size: 12px;
}


/* TABLET */

@media (max-width: 1024px) {

  .product-page-hero {
    padding: 30px 0 48px;
  }

  .product-hero-grid {
    grid-template-columns:
      minmax(0, 0.9fr)
      minmax(0, 1.1fr);
    gap: 25px;
  }

  .product-hero-content h1 {
    font-size: clamp(42px, 5.5vw, 58px);
  }

  .product-hero-image {
    aspect-ratio: 16 / 9;
  }

  .category-products-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* MOBILE */

@media (max-width: 768px) {

  .product-page-hero {
    padding: 24px 0 32px;
  }

  .product-page-breadcrumb {
    gap: 8px;
    margin-bottom: 32px;
    font-size: 8px;
  }

  .back-link {
    min-height: 32px;
    padding: 0 12px;
    font-size: 9px;
  }

  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product-page-label {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .product-hero-content h1 {
    font-size: clamp(40px, 12vw, 54px);
    letter-spacing: -1.5px;
  }

  .product-page-description {
    max-width: 430px;
    margin-top: 18px;
    font-size: 10px;
    line-height: 1.65;
  }

  .product-hero-image {
    margin-top: 2px;
    aspect-ratio: 16 / 9;
  }


  /* FILTER */

  .product-filter-bar {
    min-height: 68px;
  }

  .product-filter-scroll {
    grid-template-columns:
      28px minmax(0, 1fr) 28px;
    gap: 5px;
  }

  .product-filter-arrow {
    width: 28px;
    height: 38px;
    font-size: 11px;
  }

  .product-filter-buttons {
    gap: 7px;
  }

  .product-filter-btn {
    min-width: 96px;
    height: 38px;
    padding: 0 14px;
    font-size: 9px;
  }


  /* PRODUCTS */

  .product-list-section {
    padding: 20px 0 45px;
  }

  .product-list-head {
    margin-bottom: 12px;
  }

  .product-count {
    font-size: 8px;
  }

  .category-products-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .category-product-info {
    padding: 11px;
  }

  .category-product-top {
    margin-bottom: 7px;
  }

  .category-product-brand {
    display: none;
  }

  .category-product-info h3 {
    min-height: 28px;
    font-size: 10px;
  }

  .category-product-subtitle {
    font-size: 8px;
  }

  .category-product-bottom {
    margin-top: 10px;
    padding-top: 10px;
  }

  .category-product-price {
    font-size: 8px;
  }

  .category-product-arrow {
    width: 29px;
    height: 29px;
    font-size: 8px;
  }

  .category-product-view {
    display: none;
  }

}


/* SMALL MOBILE */

@media (max-width: 480px) {

  .product-page-hero {
    padding-bottom: 27px;
  }

  .product-page-breadcrumb {
    margin-bottom: 27px;
  }

  .product-hero-content h1 {
    font-size: 39px;
    line-height: 0.94;
  }

  .product-page-description {
    max-width: 95%;
    font-size: 9px;
  }

  .product-hero-image {
    margin-top: 0;
    aspect-ratio: 16 / 9;
  }

  .product-filter-scroll {
    grid-template-columns:
      25px minmax(0, 1fr) 25px;
  }

  .product-filter-arrow {
    width: 25px;
  }

  .product-filter-btn {
    min-width: 90px;
    padding: 0 12px;
    font-size: 8px;
  }

  .product-count {
    font-size: 7px;
  }

  .category-products-grid {
    gap: 8px;
  }

  .category-product-info {
    padding: 9px;
  }

  .category-product-info h3 {
    font-size: 9px;
  }

}