/* Flouka-style catalog layout — Kwanzou EG branding */

body.catalog-store {
  background: #fff;
}

body.catalog-store main {
  padding-top: 0;
}

.catalog-main {
  padding-bottom: 48px;
}

.catalog-banner {
  text-align: center;
  padding: 28px 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: var(--ivory);
}

.catalog-banner h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.catalog-banner p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.catalog-section {
  padding: 24px 0;
}

/* WooCommerce-like product grid */
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wc-product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  transition: none;
}

.wc-product__image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #fafafa;
  overflow: hidden;
}

.wc-product__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.wc-product__badges {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 2;
}

.wc-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 2px;
  line-height: 1.2;
}

.wc-badge--featured { background: var(--text-primary); color: #fff; }
.wc-badge--new { background: #111; color: #fff; }
.wc-badge--sale { background: #c0392b; color: #fff; }
.wc-badge--limited { background: #8e44ad; color: #fff; }
.wc-badge--discount { background: var(--champagne-dark); color: #fff; }

.wc-product__body {
  padding: 10px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.wc-product__title {
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
  min-height: 2.8em;
}

.wc-product__title a {
  color: var(--text-primary);
}

.wc-product__title a:hover {
  color: var(--champagne-dark);
}

.wc-product__sku {
  font-size: 0.74rem;
  color: var(--champagne-dark);
}

.wc-product__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 2px;
  border-top: 0;
  flex-wrap: wrap;
}

.wc-product__price {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.wc-product__price del {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.78rem;
  margin-inline-end: 6px;
}

.pd-price del {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
  margin-inline-end: 8px;
}

.wc-product__cart {
  padding: 0;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  background: transparent;
  color: var(--text-primary);
  border: none;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wc-product__cart:hover {
  color: var(--champagne-dark);
}

.btn-wishlist {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #b0a090;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-wishlist:hover,
.btn-wishlist.active {
  color: #E85D00;
  transform: scale(1.05);
}

.pd-actions .btn-wishlist.active {
  border-color: #E85D00;
  color: #E85D00;
}

/* Category cloud — Flouka h3 grid */
.category-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 20px;
  padding: 32px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.category-cloud__item {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
  padding: 8px 0;
}

.category-cloud__item a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.category-cloud__item a:hover {
  color: var(--champagne-dark);
}

/* Shop page catalog mode */
.shop-page.catalog-mode {
  padding-top: 16px;
}

.shop-page.catalog-mode .shop-header {
  text-align: center;
  margin-bottom: 16px;
}

.shop-page.catalog-mode .shop-toolbar {
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 12px 0;
  margin-bottom: 20px;
}

.shop-page.catalog-mode .breadcrumb {
  display: none;
}

/* Compact header for catalog stores */
body.catalog-store .site-header {
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

body.catalog-store .logo-img {
  height: 50px;
  max-width: min(240px, 38vw);
}

body.catalog-store .announcement-bar {
  display: none !important;
  font-size: 0.78rem;
  padding: 0;
}

@media (max-width: 992px) {
  ul.products { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .category-cloud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .category-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wc-product__footer { gap: 6px; }
}

@media (max-width: 480px) {
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
