/* Category pages share the same marketplace theme as the homepage and shop pages. */
body {
  background: #f3f8f5;
  color: #173f45;
}

a {
  color: #0f766e;
}

a:hover {
  color: #0b5d56;
  text-decoration: none;
}

.line-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.o2o-cat-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 193, 61, 0.14), transparent 32%),
    linear-gradient(180deg, #f3f8f5 0%, #ffffff 60%, #eef6f3 100%);
  min-height: 100vh;
  padding-bottom: 28px;
}

.o2o-cat-hero {
  background: linear-gradient(135deg, #003f3f 0%, #0f766e 100%);
  border-radius: 8px;
  color: #ffffff;
  margin: 16px auto;
  max-width: 1180px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.o2o-cat-hero::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  inset: 0;
  opacity: 0.5;
  position: absolute;
}

.o2o-cat-hero > * {
  position: relative;
  z-index: 1;
}

.o2o-cat-eyebrow {
  align-items: center;
  background: rgba(255, 193, 61, 0.16);
  border: 1px solid rgba(255, 193, 61, 0.38);
  border-radius: 999px;
  color: #ffd35c;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 12px;
}

.o2o-cat-hero h1 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 12px 0 8px;
}

.o2o-cat-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

.o2o-cat-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 12px;
}

.o2o-cat-main,
.o2o-cat-aside,
.o2o-cat-panel {
  background: #ffffff;
  border: 1px solid #dbe8e3;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(24, 33, 47, 0.06);
}

.o2o-cat-main,
.o2o-cat-aside {
  padding: 18px;
}

.o2o-cat-section-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.o2o-cat-section-title {
  align-items: center;
  color: #003f3f;
  display: inline-flex;
  font-size: 24px;
  font-weight: 900;
  gap: 9px;
  margin: 0;
}

.o2o-cat-section-title .material-icons {
  color: #ffc13d;
}

.o2o-cat-pill {
  align-items: center;
  background: #eaf7f3;
  border: 1px solid #cce6df;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 12px;
}

.o2o-subcat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.o2o-subcat-card {
  background:
    linear-gradient(180deg, var(--subcat-soft, #eef8f5) 0%, #ffffff 68%);
  border: 1px solid #e1e9e5;
  border-left: 4px solid var(--subcat-accent, #0f766e);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(24, 33, 47, 0.05);
  color: #17252a;
  min-height: 142px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.o2o-subcat-card:hover,
.o2o-subcat-card:focus {
  border-color: var(--subcat-accent, #0f766e);
  box-shadow: 0 10px 22px rgba(24, 33, 47, 0.09);
  color: #17252a;
  transform: translateY(-2px);
}

.o2o-subcat-img-wrap {
  align-items: center;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.9) 0 9px, transparent 10px),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.42) 0 14px, transparent 15px),
    linear-gradient(135deg, var(--subcat-soft, #eef8f5), #ffffff);
  display: flex;
  height: 88px;
  justify-content: center;
  padding: 10px;
}

.o2o-subcat-icon {
  align-items: center;
  background:
    linear-gradient(135deg, var(--subcat-accent, #0f766e), var(--subcat-accent-2, #22c55e));
  border: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(24, 33, 47, 0.12);
  color: #ffffff;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 58px;
}

.o2o-subcat-icon::before {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  content: "";
  height: 34px;
  position: absolute;
  right: -12px;
  top: -10px;
  width: 34px;
}

.o2o-subcat-icon::after {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  bottom: 7px;
  content: "";
  height: 14px;
  left: 8px;
  position: absolute;
  width: 14px;
}

.o2o-subcat-icon .material-icons {
  font-size: 30px;
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.o2o-subcat-img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.o2o-subcat-name {
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  padding: 11px 12px;
}

.o2o-cat-products-shell {
  margin-top: 18px;
  position: relative;
}

.o2o-cat-product-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-behavior: smooth;
}

.o2o-cat-product-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.o2o-product-card {
  background: #ffffff;
  border: 1px solid #e1e9e5;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(24, 33, 47, 0.06);
  color: #17252a;
  display: flex;
  flex-direction: column;
  min-height: 318px;
  overflow: hidden;
  position: relative;
}

.o2o-cat-product-scroll .o2o-product-card {
  flex: 0 0 210px;
}

.o2o-product-image-wrap {
  background: #f2f6f4;
  height: 150px;
  padding: 9px;
  position: relative;
}

.o2o-product-image {
  height: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.o2o-product-share,
.o2o-product-cart {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(24, 33, 47, 0.18);
  color: #0f766e;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 10px;
  text-decoration: none;
  top: 10px;
  width: 34px;
}

.o2o-product-cart {
  bottom: 12px;
  top: auto;
}

.o2o-product-share:hover,
.o2o-product-cart:hover {
  color: #0f766e;
  text-decoration: none;
}

.o2o-product-discount {
  background: #c94f5f;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  left: 10px;
  padding: 5px 9px;
  position: absolute;
  top: 10px;
}

.o2o-product-rating {
  align-items: center;
  background: rgba(15, 61, 62, 0.92);
  border-radius: 999px;
  bottom: 10px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  left: 10px;
  padding: 5px 9px;
  position: absolute;
}

.o2o-product-rating .material-icons {
  color: #f8c14a;
  font-size: 15px;
  margin-right: 3px;
}

.o2o-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px;
}

.o2o-product-title {
  color: #17252a;
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  min-height: 39px;
  padding-right: 30px;
}

.o2o-product-title:hover {
  color: #0f766e;
}

.o2o-product-price-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.o2o-product-price {
  color: #0f6b46;
  font-size: 18px;
  font-weight: 900;
}

.o2o-product-mrp {
  color: #8a969c;
  font-size: 12px;
  text-decoration: line-through;
}

.o2o-product-footer {
  align-items: center;
  border-top: 1px solid #edf1ef;
  color: #65737a;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.o2o-product-likes {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 3px;
}

.o2o-product-likes .material-icons {
  color: #c94f5f;
  font-size: 15px;
}

.o2o-product-open {
  color: #0f766e;
  font-weight: 900;
}

.o2o-stock-badge {
  background: #fff0f0;
  border: 1px solid #ffd2d2;
  border-radius: 999px;
  bottom: 12px;
  color: #c0392b;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  position: absolute;
  right: 10px;
}

.o2o-cat-arrow {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e1e9e5;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(24, 33, 47, 0.14);
  color: #173f45;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  position: absolute;
  top: 45%;
  width: 38px;
  z-index: 5;
}

.o2o-cat-arrow.left {
  left: -12px;
}

.o2o-cat-arrow.right {
  right: -12px;
}

.o2o-cat-aside {
  align-self: start;
  position: sticky;
  top: 12px;
}

.o2o-related-shop-list {
  display: grid;
  gap: 10px;
}

.o2o-related-shop {
  align-items: center;
  background: #f8fbfa;
  border: 1px solid #e1e9e5;
  border-radius: 8px;
  color: #17252a;
  display: grid;
  gap: 10px;
  grid-template-columns: 56px 1fr;
  padding: 10px;
}

.o2o-related-shop:hover {
  color: #17252a;
  border-color: #0f766e;
}

.o2o-related-shop img {
  background: #eef5f2;
  border-radius: 8px;
  height: 56px;
  object-fit: cover;
  width: 56px;
}

.o2o-related-shop strong {
  color: #003f3f;
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.o2o-related-shop small {
  color: #65737a;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.o2o-seller-cta {
  background: #fff8e4;
  border: 1px solid #f4dda3;
  border-radius: 8px;
  margin-top: 14px;
  padding: 14px;
  text-align: center;
}

.o2o-seller-cta .material-icons {
  color: #ffc13d;
  font-size: 30px;
}

.o2o-seller-cta h3 {
  color: #003f3f;
  font-size: 18px;
  font-weight: 900;
  margin: 6px 0;
}

.o2o-seller-cta p {
  color: #65737a;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.o2o-empty-state {
  background: #fff8e4;
  border: 1px dashed #e4c979;
  border-radius: 8px;
  color: #7a5c16;
  padding: 24px;
  text-align: center;
}

.o2o-empty-state .material-icons {
  color: #ffc13d;
  font-size: 36px;
}

.pagination .page-link {
  border-color: #dbe8e3;
  color: #0f766e;
  font-weight: 800;
}

.pagination .page-item.active .page-link {
  background: #0f766e;
  border-color: #0f766e;
}

@media (max-width: 991px) {
  .o2o-cat-layout {
    grid-template-columns: 1fr;
  }

  .o2o-cat-aside {
    position: static;
  }
}

@media (max-width: 575px) {
  .o2o-cat-hero {
    border-radius: 0;
    margin-top: 0;
    padding: 22px 18px;
  }

  .o2o-cat-hero h1 {
    font-size: 28px;
  }

  .o2o-cat-layout {
    padding: 0 10px;
  }

  .o2o-cat-main,
  .o2o-cat-aside {
    padding: 14px;
  }

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

  .o2o-product-card {
    min-height: 300px;
  }

  .o2o-product-image-wrap {
    height: 132px;
  }

  .o2o-product-title {
    font-size: 14px;
  }
}
