/* COZZYPAWS BOUTIQUE LAYOUT V2 */
/* Only active after the real shop DOM was matched by JS */

body.woocommerce-shop.cp-boutique-v2 {
  --cp-v2-brown:#5A2E1F;
  --cp-v2-cream:#F9F2EC;
  --cp-v2-accent:#C66D50;
  --cp-v2-line:#EDE1D9;
}

/* Wider shop content */
body.cp-boutique-v2 #primary .container {
  max-width:1480px;
}

/* Compact hero with real existing pet photography */
body.cp-boutique-v2 #cp-boutique-hero {
  background:
    linear-gradient(90deg,
      rgba(249,242,236,.99) 0%,
      rgba(249,242,236,.91) 43%,
      rgba(249,242,236,.03) 76%
    ),
    url('/wp-content/uploads/2026/08/cozzypaws-shop-banner-optimized.webp')
    right center/cover no-repeat !important;
  min-height:215px !important;
  height:auto !important;
  padding:28px 38px !important;
  border-radius:20px !important;
  overflow:hidden !important;
  margin:12px auto 0 !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
}

body.cp-boutique-v2 #cp-boutique-hero .cp-title {
  font-family:Manrope,Arial,sans-serif !important;
  font-size:clamp(30px,3.1vw,46px) !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  letter-spacing:-.035em !important;
  color:#5A2E1F !important;
  margin:12px 0 8px !important;
}

body.cp-boutique-v2 .cp-v2-subtitle {
  max-width:520px;
  font-size:15px;
  line-height:1.7;
  color:#75584A;
  margin:0;
}

/* Small animal category pills instead of oversized hero cards */
body.cp-boutique-v2 .cp-v2-animals {
  display:flex !important;
  justify-content:flex-start !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:9px !important;
  max-width:1480px;
  margin:14px auto 26px !important;
  padding:0 20px !important;
}

body.cp-boutique-v2 .cp-v2-animals .cp-animal {
  display:inline-flex !important;
  width:auto !important;
  min-width:0 !important;
  height:auto !important;
  min-height:44px !important;
  padding:8px 16px !important;
  gap:8px !important;
  flex:0 0 auto !important;
  border-radius:99px !important;
  background:#FFF !important;
  border:1px solid #E8D8CF !important;
  box-shadow:none !important;
  align-items:center !important;
  justify-content:center !important;
}

body.cp-boutique-v2 .cp-v2-animals .cp-animal-icon {
  width:auto !important;
  height:auto !important;
  font-size:17px !important;
}

body.cp-boutique-v2 .cp-v2-animals .cp-animal-label {
  font-size:13px !important;
  font-weight:700 !important;
  margin:0 !important;
}

/* Full width compact brand section */
body.cp-boutique-v2 .cp-v2-brands {
  margin:0 0 32px !important;
  padding:0 4px !important;
}

body.cp-boutique-v2 .cp-v2-brands .cpba-title {
  color:#5A2E1F !important;
  font-family:Manrope,Arial,sans-serif !important;
  font-size:27px !important;
  font-weight:800 !important;
  margin:0 0 3px !important;
}

body.cp-boutique-v2 .cp-v2-brand-caption {
  color:#8C766D;
  font-size:13px;
  margin:0 0 16px;
}

body.cp-boutique-v2 .cp-v2-brands .cpba-list {
  display:grid !important;
  grid-template-columns:repeat(9,minmax(0,1fr)) !important;
  gap:9px !important;
}

body.cp-boutique-v2 .cp-v2-brands .cpba-card {
  width:100% !important;
  min-width:0 !important;
  height:66px !important;
  min-height:0 !important;
  padding:8px !important;
  border:1px solid #EDE1D9 !important;
  border-radius:13px !important;
  background:#FFF !important;
  box-shadow:0 2px 8px rgba(90,46,31,.035) !important;
}

body.cp-boutique-v2 .cp-v2-brands .cpba-card img {
  max-height:45px !important;
  max-width:90% !important;
  object-fit:contain !important;
}

body.cp-boutique-v2 .cp-v2-brands .cpba-card.is-active {
  background:#FFF6F0 !important;
  border-color:#C66D50 !important;
}

body.cp-boutique-v2
.cp-v2-brands-collapsed:not(.cp-v2-brands-expanded)
.cpba-list > :nth-child(n+19) {
  display:none !important;
}

body.cp-boutique-v2 .cp-v2-brand-more {
  display:block;
  margin:14px auto 0;
  background:transparent;
  border:1px solid #C66D50;
  color:#5A2E1F;
  border-radius:99px;
  padding:9px 20px;
  font-weight:700;
  cursor:pointer;
}

/* Actual Petio sidebar + main product column */
@media(min-width:1100px) {
  body.cp-boutique-v2 .cp-v2-catalog-layout {
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:24px !important;
    align-items:flex-start !important;
  }

  body.cp-boutique-v2 .cp-v2-sidebar {
    display:block !important;
    position:relative !important;
    flex:0 0 240px !important;
    width:240px !important;
    max-width:240px !important;
    padding:20px !important;
    background:#FFF;
    border:1px solid #EDE1D9;
    border-radius:16px;
    box-sizing:border-box;
  }

  body.cp-boutique-v2 .cp-v2-main-products {
    flex:1 1 0 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    padding:0 !important;
  }
}

/* Real filters */
body.cp-boutique-v2 .cp-v2-sidebar h3 {
  color:#5A2E1F;
  font-family:Manrope,Arial,sans-serif;
  font-size:15px;
  font-weight:800;
}

body.cp-boutique-v2 .cp-v2-products-heading {
  display:flex;
  align-items:center;
  gap:13px;
  margin:0 0 12px;
}

body.cp-boutique-v2 .cp-v2-products-heading h2 {
  font-family:Manrope,Arial,sans-serif !important;
  font-size:25px !important;
  font-weight:800 !important;
  color:#5A2E1F !important;
  margin:0 !important;
}

body.cp-boutique-v2 .cp-v2-product-count {
  border-radius:99px;
  background:#F9F2EC;
  padding:5px 10px;
  font-size:11px;
  color:#795C4E;
}

/* Previously hidden native Petio toolbar */
body.cp-boutique-v2 .cp-v2-main-products
.bwp-top-bar.top {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:12px !important;
  background:transparent !important;
  margin-bottom:18px !important;
  padding:0 !important;
}

body.cp-boutique-v2 .cp-v2-main-products
#cozzypaws-live-search-v1 {
  flex:1 1 290px;
  min-width:190px;
  margin:0 !important;
}

body.cp-boutique-v2 .cp-v2-main-products
#cozzypaws-live-search-v1 input[type=search] {
  border:1px solid #E6D9D0 !important;
  background:#FFF !important;
  border-radius:12px !important;
  min-height:44px;
}

body.cp-boutique-v2 .cp-v2-main-products
.woocommerce-ordering {
  margin:0 !important;
  background:#FFF;
  border:1px solid #E6D9D0;
  border-radius:11px;
  padding:9px 12px;
}

/* Desktop four-column product catalog, not a carousel */
@media(min-width:1100px) {
  body.cp-boutique-v2 .cp-v2-main-products
  .content-products-list > ul.products {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:15px !important;
    margin:0 !important;
  }

  body.cp-boutique-v2 .cp-v2-main-products
  .content-products-list > ul.products > li {
    width:100% !important;
    max-width:100% !important;
    flex:none !important;
    margin:0 !important;
    padding:0 !important;
    min-width:0 !important;
  }
}

/* Compact real-product cards */
body.cp-boutique-v2 .cp-v2-main-products
.products-entry {
  background:#FFF;
  border:1px solid #EEE4DE;
  border-radius:15px;
  overflow:hidden;
  box-shadow:0 3px 13px rgba(90,46,31,.04);
}

body.cp-boutique-v2 .cp-v2-main-products
.products-entry .products-content {
  padding:12px 12px 16px !important;
}

body.cp-boutique-v2 .cp-v2-main-products
.products-entry .product-title {
  font-size:13px !important;
  line-height:1.45 !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  white-space:normal !important;
  -webkit-line-clamp:unset !important;
}

body.cp-boutique-v2 .cp-v2-main-products
.products-entry .price {
  font-size:16px !important;
  font-weight:800 !important;
  color:#5A2E1F !important;
}

body.cp-boutique-v2 .cp-v2-main-products
.products-entry .rating.none {
  display:none !important;
}

/* Tablet/mobile: don't force desktop filters or four columns */
body.cp-boutique-v2 .cp-v2-mobile-filter,
body.cp-boutique-v2 .cp-v2-filter-close {
  display:none;
}

@media(max-width:1099px) {
  body.cp-boutique-v2 .cp-v2-brands .cpba-list {
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  }

  body.cp-boutique-v2 .cp-v2-sidebar {
    display:none !important;
  }

  body.cp-boutique-v2.cp-v2-filters-open .cp-v2-sidebar {
    display:block !important;
    position:fixed !important;
    z-index:99999 !important;
    left:0;
    top:0;
    bottom:0;
    width:min(340px,90vw) !important;
    max-width:90vw !important;
    overflow-y:auto;
    padding:24px;
    background:#FFF;
    box-shadow:0 0 0 100vmax rgba(30,20,16,.5);
  }

  body.cp-boutique-v2 .cp-v2-mobile-filter,
  body.cp-boutique-v2 .cp-v2-filter-close {
    display:inline-flex !important;
    padding:9px 15px;
    background:#5A2E1F;
    color:#FFF;
    border:0;
    border-radius:10px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
  }

  body.cp-boutique-v2 .cp-v2-filter-close {
    margin-bottom:20px;
  }

  body.cp-boutique-v2 .cp-v2-main-products {
    flex:0 0 100% !important;
    width:100% !important;
    max-width:100% !important;
  }
}

@media(max-width:767px) {
  body.cp-boutique-v2 #cp-boutique-hero {
    min-height:160px !important;
    padding:22px 20px !important;
    background-position:70% center !important;
  }

  body.cp-boutique-v2 .cp-v2-subtitle {
    font-size:12px;
    max-width:270px;
  }

  body.cp-boutique-v2 .cp-v2-animals {
    padding:0 10px !important;
    margin-bottom:20px !important;
  }

  body.cp-boutique-v2 .cp-v2-animals .cp-animal {
    padding:7px 10px !important;
    min-height:38px !important;
  }

  body.cp-boutique-v2 .cp-v2-brands .cpba-list {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  body.cp-boutique-v2 .cp-v2-products-heading h2 {
    font-size:21px !important;
  }

  body.cp-boutique-v2 .cp-v2-main-products
  .content-products-list > ul.products {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  body.cp-boutique-v2 .cp-v2-main-products
  .content-products-list > ul.products > li {
    width:100% !important;
    max-width:100% !important;
    flex:none !important;
    padding:0 !important;
    margin:0 !important;
  }
}
