/* Product category landing page redesign v3. Scope only product/list.blade.php */
.gsee-category-page {
  --gsee-navy: #071d49;
  --gsee-blue: #2458b8;
  --gsee-red: #e60033;
  --gsee-text: #101828;
  --gsee-muted: #46546a;
  --gsee-light: #f2f3f5;
  --gsee-line: #dfe4ec;
  --gsee-soft-line: #edf0f5;
  padding: 1.2rem 0 24px;
  background: #fff;
  color: var(--gsee-text);
}
.gsee-category-page *,
.gsee-category-page *::before,
.gsee-category-page *::after { box-sizing: border-box; }
.gsee-category-page a { color: inherit; text-decoration: none; }
.gsee-category-page img { max-width: 100%; display: block; }
.gsee-category-container {
  width: min(1360px, calc(100vw - 72px));
  max-width: 1360px;
  margin: 0 auto;
}

/* breadcrumb */
.gsee-bread {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: #6b7280;
  font-size: 14px;
}
.gsee-bread a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  transition: color .18s ease;
}
.gsee-bread a:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #b8c3d3;
}
.gsee-bread a:hover,
.gsee-bread a:last-child { color: var(--gsee-blue); }
.gsee-bread img { width: 15px; height: 15px; object-fit: contain; }

/* top first-level category cards */
.gsee-top-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 88px;
}
.gsee-top-category-card {
  display: block;
  min-width: 0;
  transition: transform .22s ease;
}
.gsee-top-category-card:hover { transform: translateY(-4px); }
.gsee-top-category-img {
  height: 260px;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gsee-top-category-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px 34px 0;
  transition: transform .25s ease;
}
.gsee-top-category-card:hover .gsee-top-category-img img { transform: scale(1.035); }
.gsee-top-category-body { padding-top: 14px; }
.gsee-top-category-title {
  min-height: 40px;
  padding: 0 6px 13px 0;
  border-bottom: 1px solid var(--gsee-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #050b18;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.gsee-top-category-title em {
  flex: 0 0 auto;
  color: var(--gsee-red);
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}
.gsee-top-category-body p {
  margin: 24px 0 0;
  color: #283448;
  font-size: 15px;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product Categories accordion */
.gsee-category-accordion {
  border-top: 1px solid var(--gsee-line);
}
.gsee-category-accordion-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.gsee-category-accordion-head h2 {
  margin: 0;
  color: var(--gsee-red);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}
.gsee-category-toggle {
  width: 18px;
  height: 18px;
  border: 1.8px solid var(--gsee-red);
  border-radius: 50%;
  background: transparent;
  color: var(--gsee-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.gsee-category-accordion-body {
  padding: 34px 48px 40px;
  background: #f3f3f3;
}

/* 一级 + 二级直接展示 */
.gsee-category-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 58px;
  row-gap: 34px;
}
.gsee-category-group {
  position: relative;
  min-width: 0;
  padding: 0 0 4px;
}
.gsee-category-group-title {
  display: block;
  margin: 0 0 14px;
  color: var(--gsee-navy);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}
.gsee-category-group-title:hover { color: var(--gsee-red); }
.gsee-category-second-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gsee-category-second-item {
  position: relative;
}
.gsee-category-second-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 27px;
  padding: 4px 10px 4px 0;
  color: var(--gsee-red);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: color .18s ease, padding-left .18s ease, background .18s ease;
}
.gsee-category-second-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gsee-category-second-link em {
  flex: 0 0 auto;
  color: var(--gsee-red);
  font-style: normal;
  font-size: 16px;
}
.gsee-category-second-item:hover > .gsee-category-second-link {
  color: var(--gsee-navy);
  padding-left: 8px;
  background: rgba(255,255,255,.72);
}

/* 三级：鼠标移到二级分类上显示 */
.gsee-category-third-pop {
  position: absolute;
  z-index: 30;
  left: calc(100% + 14px);
  top: -12px;
  width: 300px;
  max-height: 360px;
  overflow-y: auto;
  padding: 16px 18px 18px;
  border: 1px solid var(--gsee-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(7, 29, 73, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
.gsee-category-second-item:hover > .gsee-category-third-pop {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.gsee-category-third-pop::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 0;
  width: 15px;
  height: 100%;
}
.gsee-category-third-head {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gsee-soft-line);
  color: var(--gsee-navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.gsee-category-third-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gsee-category-third-grid a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.35;
  transition: color .18s ease, padding-left .18s ease;
}
.gsee-category-third-grid a span {
  color: var(--gsee-red);
}
.gsee-category-third-grid a:hover {
  color: var(--gsee-red);
  padding-left: 6px;
}

@media (max-width: 1180px) {
  .gsee-category-page { padding-top: 82px; }
  .gsee-category-container { width: calc(100vw - 44px); }
  .gsee-top-category-grid { gap: 28px; margin-bottom: 72px; }
  .gsee-top-category-img { height: 220px; }
  .gsee-category-accordion-body { padding: 32px 34px 38px; }
  .gsee-category-map { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 46px; }
}
@media (max-width: 860px) {
  .gsee-category-page { padding-top: 70px; }
  .gsee-top-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsee-category-map { grid-template-columns: 1fr; }
  .gsee-category-third-pop {
    position: static;
    width: 100%;
    max-height: none;
    margin: 6px 0 10px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .gsee-category-second-item:hover > .gsee-category-third-pop { display: block; }
}
@media (max-width: 560px) {
  .gsee-category-page { padding: 62px 0 56px; }
  .gsee-category-container { width: calc(100vw - 24px); }
  .gsee-bread { font-size: 12px; margin-bottom: 18px; }
  .gsee-top-category-grid { grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
  .gsee-top-category-img { height: 205px; }
  .gsee-top-category-title { font-size: 16px; }
  .gsee-top-category-body p { font-size: 13px; margin-top: 14px; }
  .gsee-category-accordion-head { min-height: 64px; }
  .gsee-category-accordion-body { padding: 24px 20px 30px; }
  .gsee-category-group-title { font-size: 16px; }
  .gsee-category-second-link { font-size: 13px; }
}
