/*
Theme Name: SWELL Child - Custom Overrides
Description: Place your custom CSS here. These styles override parent and child theme defaults.
*/

/* Category List */
.p-catList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.p-catList__item {
  border: 1px solid #e5e5e5;
  border-radius: 0px;
  padding: 1.5rem;
  background:#fff;
  text-align:center;
  transition: box-shadow .2s ease;
  overflow: hidden;
}
.p-catList__item:hover {
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.p-catList__name {
  font-size:1.2rem;
  margin:1rem 0 0;
  font-weight: 600;
}
.p-catList__name a {
  color:inherit;
  text-decoration:none;
}
.p-catList__name a:hover {
  color: var(--color_main);
}

/* p-termHead adjustments for category list */
.p-catList .p-termHead {
  margin-bottom: 0;
}
.p-catList .p-termHead__thumbWrap {
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
}
.p-catList .p-termHead__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Category Box Layout (flex) */
.p-catList__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.p-catBox {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.p-catBox__thumbWrap {
  flex: 0 0 340px;
}
.p-catBox__thumbImg {
  width: 100%;
  height: auto;
  display: block;
}
.p-catBox__content {
  flex: 1;
  text-align: left;
}
.p-catBox__name {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.p-catBox__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
}

.c-pageHeader,.c-pageTitle {
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .p-catList {
    gap: 0.5rem;
  }
  .p-catList__item {
    padding: 1rem;
  }
  .p-catBox {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .p-catBox__thumbWrap {
    flex: none;
    width: 100%;
  }
  .p-catBox__content {
    text-align: left;
  }
  .p-catBox__name {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .p-catList__item {
    padding: 0.8rem;
  }
  .p-catBox {
    gap: 0.8rem;
  }
  .p-catBox__name {
    font-size: 1.3rem;
  }
  .p-catBox__desc {
    font-size: 0.85rem;
  }
}
