/* =====================================================================
   Astrozon — Shop (WooCommerce archive) styles
   Scoped under .az-shop so it won't leak into the rest of the theme.
   Colours pulled from the live design; fonts are inherited from the theme.
   ===================================================================== */

.az-shop {
  --az-blue:            #1577c7;
  --az-blue-600:        #1370bd;
  --az-blue-700:        #0f5fa3;
  --az-bright:          #1e93e0;
  --az-card-border:     #bfe2f7;
  --az-card-border-on:  #8fc6ea;
  --az-card-bg:         #f4fafe;
  --az-badge:           #62b9ee;
  --az-ink:             #25303b;
  --az-muted:           #6c7682;
  --az-line:            #e4e8ec;

  color: var(--az-ink);
  box-sizing: border-box;
}
.az-shop *,
.az-shop *::before,
.az-shop *::after { box-sizing: border-box; }

.az-shop__container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 34px 20px 60px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

/* reviews */
/* Shop card rating — stars + (count) ek line mein, centered */
.az-card__rating{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:6px;
	margin:6px 0;
}
.az-card__rating .star-rating{
	float:none;
	margin:0;
	font-size:15px;
}
.az-card__rcount{
	font-size:13px;
	color:#6b7280;
	line-height:1;
}

/*  */
/* ----------------------------- Sidebar ----------------------------- */
.az-shop__cats-title {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--az-ink);
  letter-spacing: .2px;
}

.az-shop__cats {
  border: 1px solid var(--az-line);
  border-radius: 6px;
  padding: 20px 18px;
}

.az-shop__cats-sub {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--az-line);
  color: var(--az-ink);
}

/* the "All Categories" pill */
.az-shop__all-cats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--az-ink);
  margin-bottom: 4px;
}
.az-shop__all-cats.is-active,
.az-shop__all-cats:hover {
  background: var(--az-blue);
  color: #fff;
}

/* WooCommerce product-categories widget list */
.az-shop__cats .product-categories,
.az-shop__cats .product-categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.az-shop__cats .product-categories li { margin: 0; }

.az-shop__cats .product-categories li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--az-ink);
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 5px;
  transition: color .15s ease, background .15s ease;
}
.az-shop__cats .product-categories li > a:hover { color: var(--az-blue); }
.az-shop__cats .product-categories li.current-cat > a,
.az-shop__cats .product-categories li.current-cat-parent > a { color: var(--az-blue); font-weight: 700; }

/* category counts (the small grey number on the right) */
.az-shop__cats .product-categories .count {
  color: var(--az-muted);
  font-size: 13px;
  font-weight: 500;
}

/* nested children get an indent + connecting guide line */
.az-shop__cats .product-categories .children {
  margin-left: 12px;
  padding-left: 10px;
  border-left: 1px solid var(--az-line);
}
.az-shop__cats .product-categories .children li > a { font-size: 13.5px; }
.az-shop__cats .product-categories .children .children li > a { font-size: 13px; color: var(--az-muted); }

/* ------------------------------ Main ------------------------------- */
.az-shop__main { min-width: 0; }

/* breadcrumb */
.az-shop .woocommerce-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f5f7;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--az-muted);
  margin: 0 0 18px;
}
.az-shop .woocommerce-breadcrumb a { color: var(--az-muted); text-decoration: none; }
.az-shop .woocommerce-breadcrumb a:hover { color: var(--az-blue); }

/* page title with the long underline rule */
.az-shop__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.az-shop__title {
  font-size: 34px;
  font-weight: 800;
  color: var(--az-blue);
  margin: 0;
  white-space: nowrap;
}
.az-shop__head::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--az-line);
}

/* toolbar */
.az-shop__toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--az-line);
}
.az-shop__view-toggle { display: inline-flex; gap: 8px; }
.az-shop__view-toggle a {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--az-line);
  border-radius: 5px;
  color: var(--az-muted);
  text-decoration: none;
}
.az-shop__view-toggle a.is-active { background: var(--az-blue); border-color: var(--az-blue); color: #fff; }
.az-shop__view-toggle svg { width: 15px; height: 15px; }

.az-shop .woocommerce-ordering { margin: 0; }
.az-shop .woocommerce-ordering select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7682' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--az-line);
  border-radius: 6px;
  padding: 8px 36px 8px 14px;
  font-size: 14px;
  color: var(--az-ink);
  min-width: 190px;
  cursor: pointer;
}

.az-shop__per-page {
  margin-left: auto;
  font-size: 13px;
  color: var(--az-muted);
  letter-spacing: .4px;
}
.az-shop__per-page b { color: var(--az-ink); font-weight: 700; margin-right: 4px; }
.az-shop__per-page a { color: var(--az-muted); text-decoration: none; padding: 0 4px; }
.az-shop__per-page a.is-active { color: var(--az-blue); font-weight: 700; }
.az-shop__per-page a:hover { color: var(--az-blue); }

/* ---------------------------- Product grid ------------------------- */
.az-shop ul.products.az-shop__products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.az-shop ul.products.az-shop__products::before,
.az-shop ul.products.az-shop__products::after { content: none; } /* kill WC clearfix */

.az-shop ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
}

.az-card__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--az-card-bg);
  border: 1px solid var(--az-card-border);
  border-radius: 8px;
  padding: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.az-card__inner:hover {
  border-color: var(--az-card-border-on);
  box-shadow: 0 10px 24px rgba(21, 119, 199, .12);
  transform: translateY(-3px);
}

.az-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--az-badge);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  line-height: 1.2;
}

.az-card__media {
  display: block;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.az-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
}

.az-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 12px;
  text-align: center;
}

.az-card__cats {
  font-size: 12px;
  font-style: italic;
  color: var(--az-muted);
  margin-bottom: 6px;
  line-height: 1.4;
}
.az-card__cats a { color: var(--az-muted); text-decoration: none; }
.az-card__cats a:hover { color: var(--az-blue); }

.az-card__title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--az-ink);
  min-height: 40px;
}
.az-card__title a { color: inherit; text-decoration: none; }
.az-card__title a:hover { color: var(--az-blue); }

.az-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--az-blue);
  margin: 4px 0 14px;
}
.az-card__price del { color: var(--az-muted); font-weight: 500; font-size: 13px; margin-right: 6px; }
.az-card__price del .amount { color: var(--az-muted); }
.az-card__price ins { text-decoration: none; }

.az-card__cart { margin-top: auto; }

/* add to cart / select options button */
.az-shop .az-card__cart .button,
.az-shop .az-card__cart a.button,
.az-shop .button.az-btn {
  display: inline-block;
  width: 100%;
  background: var(--az-blue);
  color: #fff;
  border: 1px solid var(--az-card-border-on);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.az-shop .az-card__cart .button:hover { background: var(--az-blue-700); }
.az-shop .az-card__cart .added_to_cart {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--az-blue);
}

/* ---------------------------- Load more ---------------------------- */
.az-shop__loadmore-wrap { text-align: center; margin-top: 34px; }
.az-shop__loadmore {
  display: inline-block;
  background: var(--az-blue);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 11px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
}
.az-shop__loadmore:hover { background: var(--az-blue-700); }
.az-shop__loadmore.is-loading { opacity: .7; pointer-events: none; }

.az-shop__noproducts {
  padding: 40px;
  text-align: center;
  color: var(--az-muted);
  border: 1px dashed var(--az-line);
  border-radius: 8px;
}

/* ------------------------------ List view -------------------------- */
.az-shop.is-list ul.products.az-shop__products { grid-template-columns: 1fr; }
.az-shop.is-list .az-card__inner { flex-direction: row; align-items: center; gap: 20px; }
.az-shop.is-list .az-card__media { width: 150px; flex: 0 0 150px; }
.az-shop.is-list .az-card__body { text-align: left; padding-top: 0; }
.az-shop.is-list .az-card__title { min-height: 0; }
.az-shop.is-list .az-card__cart .button { width: auto; padding-left: 26px; padding-right: 26px; }

/* ----------------------------- Responsive -------------------------- */
@media (max-width: 1080px) {
  .az-shop__container { grid-template-columns: 240px minmax(0,1fr); gap: 24px; }
  .az-shop ul.products.az-shop__products { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .az-shop__container { grid-template-columns: 1fr; }
  .az-shop__sidebar { order: -1; }
  .az-shop ul.products.az-shop__products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .az-shop__title { font-size: 28px; }
}
@media (max-width: 520px) {
  .az-shop__toolbar { flex-wrap: wrap; }
  .az-shop__per-page { margin-left: 0; width: 100%; }
  .az-shop ul.products.az-shop__products { grid-template-columns: 1fr 1fr; gap: 14px; }
}
