/*
Theme Name: Artizani-child-terrainartisans
Template: artizani
*/

:root {
  --site-max-width: 1200px;
  --preview-tile-height: 150px;
}

/* ─────────────────────────────────────────────
   🔲 Banner Groups & Previews
───────────────────────────────────────────── */
.collection-banner-group,
.collection-preview-banner {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-bottom: 40px;
}

.collection-preview-banner.image-count-1 > a { flex: 0 0 100%; }
.collection-preview-banner.image-count-2 > a { flex: 0 0 calc(50% - 8px); }
.collection-preview-banner.image-count-3 > a { flex: 0 0 calc((100% - 32px) / 3); }
.collection-preview-banner.image-count-4 > a { flex: 0 0 calc((100% - 48px) / 4); }
.collection-preview-banner.image-count-5 > a { flex: 0 0 calc((100% - 64px) / 5); }
.collection-preview-banner.image-count-6 > a {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
}

.collection-preview-banner > a,
.collection-banner-group .collection-banner-image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 100%;
  max-height: var(--preview-tile-height);
}

/* ─ Image width config for banner image groups ─ */
.collection-banner-group.image-count-1 .collection-banner-image { flex: 0 0 100%; }
.collection-banner-group.image-count-2 .collection-banner-image { flex: 0 0 calc(50% - 8px); }
.collection-banner-group.image-count-3 .collection-banner-image { flex: 0 0 calc((100% - 32px) / 3); }
.collection-banner-group.image-count-4 .collection-banner-image { flex: 0 0 calc((100% - 48px) / 4); }
.collection-banner-group.image-count-5 .collection-banner-image { flex: 0 0 calc((100% - 64px) / 5); }
.collection-banner-group.image-count-6 .collection-banner-image {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
}

.collection-banner-group img,
.collection-preview-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ─────────────────────────────────────────────
   📄 Tag Description & Preview Text
───────────────────────────────────────────── */
.collection-tag-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.collection-preview-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.collection-preview-text { flex: 1; }
.collection-preview-text h2 { margin: 0; }

.collection-preview-description {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: #666;
}

/* ─────────────────────────────────────────────
   🧷 CTA Button
───────────────────────────────────────────── */
.collection-preview-content .button {
  background: #000;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  width: 25% !important;
}

/* ─────────────────────────────────────────────
   📦 Collection Wrapper Block
───────────────────────────────────────────── */
.collection-preview-block {
  position: relative;
}

/* ─────────────────────────────────────────────
   📱 Responsive Layout
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .collection-banner-group,
  .collection-preview-banner {
    gap: 8px;
    margin-bottom: 20px;
  }

  .collection-preview-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .collection-preview-content .button {
    margin-top: 12px;
    position: static;
    width: auto;
  }
}

@media (max-width: 992px) {
  .collection-preview-block {
    flex: 0 0 calc(50% - 28px);
  }
}

@media (max-width: 600px) {
  .collection-preview-block {
    flex: 0 0 100%;
  }
}

/* ─────────────────────────────────────────────
   🔖 Tag Cloud
───────────────────────────────────────────── */
.collection-tag-cloud a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.collection-tag-cloud a.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ─────────────────────────────────────────────
   📚 Pagination
───────────────────────────────────────────── */
.collections-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.collections-pagination ul {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.collections-pagination li {
  display: inline;
}

.collections-pagination a {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  border: 1px solid #ddd;
  color: #333;
  background: #f9f9f9;
  border-radius: 4px;
  transition: all 0.2s;
}
.collections-pagination a:hover {
  background-color: #eee;
  border-color: #ccc;
}
.collections-pagination a.active {
  background-color: #333;
  color: #fff;
  border-color: #333;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   🛒 WooCommerce Sidebar Highlights
───────────────────────────────────────────── */
.widget_product_categories li.current-cat > a,
.widget_product_categories li.current-cat-parent > a,
.widget_product_tag_cloud .tagcloud a.current {
  font-weight: bold;
}

/* ─────────────────────────────────────────────
   📱 Mobile Nav Toggle Area
───────────────────────────────────────────── */
.nav-menu-mobile .menu li .nav-toggle-icon {
  text-align: right;
  width: 200px;
}


/* Common button style */
.woocommerce-pagination .page-numbers li {
  display: inline-block;
  margin-right: 10px;
  list-style: none;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: inline-block;
  min-width: 50px;
  height: 50px;
  line-height: 20px;
  padding: 15px 10px;
  border-radius: 30px;
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  vertical-align: middle;
}

/* Current page */
.woocommerce-pagination .page-numbers.current {
  background-color: #b22402;
  color: #fff;
}

/* Other pages */
.woocommerce-pagination .page-numbers a {
  background-color: #fff;
  color: #606060;
  cursor: pointer;
}

.woocommerce-pagination .page-numbers a:hover {
  background-color: #f7f7f7;
  text-decoration: none;
  color: #000;
}

/* Prevent background flicker behind buttons */
.woocommerce-pagination ul.page-numbers {
  margin: 0;
  padding: 0;
  background: none;
}

.breadcrumbs.breadcrumbs-navxt span {
    color: white !important;
}





/* Force all product cards to equal height */
ul.products li.product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Ensure product wrapper stretches and spaces items properly */
ul.products li.product .products-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}



/* Push the button area to the bottom */
ul.products li.product .woocommerce-title-metas {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* Responsive image container height */
@media (max-width: 768px) {
  ul.products li.product .thumbnail-and-details {
    height: 200px;
  }
}



/* Make WebP headers pretty */
.artizani-breadcrumbs {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}


/* fix category previews on tablet -*/
@media screen and (max-width: 1200px) {
  .mt-addons-hero-slider-holder {
    margin-top: -150px;
  }
}


/* fix category previews on tablet -*/

body.woocommerce-page .woocommerce form .form-row .input-checkbox {
    margin: 0 !important;
}


/* fix category previews on tablet -*/
.woocommerce-account .addresses .title .edit {
    float: none !important;
	text-decoration: underline;
}