/* Habiba's Roots frontend shop card styling - v1.3.59 */
.catalogue-section {
  background: #fbfaf8;
  padding: 46px 18px 72px;
}

.catalogue-section .container {
  width: min(1240px, calc(100vw - 36px));
}

.catalogue-section h1 {
  text-align: center;
  color: #3b2b22;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1;
  margin: 0 0 28px;
}

.catalogue-toolbar {
  background: #fff;
  border: 1px solid #eadfd6;
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(76,55,42,.07);
  padding: 16px 18px;
  margin-bottom: 34px;
}

.catalogue-toolbar p {
  color: #776b62;
  font-weight: 700;
}

.catalogue-toolbar select {
  min-height: 44px;
  border: 1px solid #ddd4cc !important;
  border-radius: 14px !important;
  background: #f4f4f4 !important;
  color: #3b2b22 !important;
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800;
  padding: 10px 38px 10px 14px !important;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  column-gap: 24px;
  row-gap: 30px;
}

.shop-product-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eadfd6;
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(76,55,42,.08);
  padding: 12px 12px 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.shop-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 66px rgba(76,55,42,.12);
  border-color: #e2cfc0;
}

.shop-product-card.is-out-of-stock {
  background: #f7f5f3;
}

.shop-product-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #f2efec;
  margin-bottom: 14px;
}

.shop-product-card .shop-product-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  margin: 0;
  transition: transform .25s ease;
}

.shop-product-card:hover .shop-product-image img {
  transform: scale(1.035);
}

.shop-card-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 11px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(58,43,35,.12);
}

.sale-badge {
  background: #fff1e6;
  color: #9b5d2e;
  border: 1px solid #f1d2ba;
}

.stock-badge {
  background: #eeeeee;
  color: #6b625c;
  border: 1px solid #d8d8d8;
}

.sale-badge + .stock-badge {
  top: 46px;
}

.shop-product-body {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 0 6px;
}

.shop-product-category {
  margin: 0 0 7px;
  color: #a29186;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.shop-product-card h2 {
  min-height: 44px;
  max-width: 100%;
  margin: 0 0 10px;
  color: #3b2b22;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.shop-card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-height: 25px;
  margin: 0 0 12px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  color: #7b5b47;
}

.shop-card-price .old-price {
  color: #aa9f98;
  font-size: 13px;
  text-decoration: line-through;
}

.shop-card-price .sale-price {
  color: #a0643a;
  font-weight: 900;
}

.shop-stock-note {
  width: 100%;
  margin: -2px 0 12px;
  border: 1px solid #dfdcd8;
  border-radius: 13px;
  background: #eeeeee;
  color: #6f6760;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.shop-card-button {
  width: 100%;
  min-height: 43px;
  border: 0;
  border-radius: 999px;
  background: #d7a77b;
  color: #fff !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(151,98,55,.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.shop-card-button:hover {
  transform: translateY(-1px);
  background: #c89568;
  box-shadow: 0 14px 30px rgba(151,98,55,.22);
}

.shop-product-card.is-out-of-stock .shop-card-button {
  background: #aaa29b;
  box-shadow: none;
}

@media (max-width: 720px) {
  .catalogue-toolbar {
    display: grid;
    gap: 12px;
  }

  .catalogue-toolbar form,
  .catalogue-toolbar select {
    width: 100%;
  }
}


/* v1.3.109 hard restore for shop/category card design */
.catalogue-section .product-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(205px,1fr))!important;gap:30px 24px!important;align-items:stretch!important;}
.catalogue-section .shop-product-card{display:grid!important;grid-template-rows:auto 1fr!important;background:#fff!important;border:1px solid #eadfd6!important;border-radius:24px!important;box-shadow:0 20px 54px rgba(76,55,42,.08)!important;padding:12px 12px 16px!important;overflow:hidden!important;text-align:center!important;}
.catalogue-section .shop-product-card:hover{transform:translateY(-3px)!important;box-shadow:0 24px 66px rgba(76,55,42,.12)!important;}
.catalogue-section .shop-product-image{position:relative!important;display:block!important;overflow:hidden!important;border-radius:20px!important;background:#f2efec!important;margin:0 0 14px!important;}
.catalogue-section .shop-product-image img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:20px!important;margin:0!important;max-width:none!important;}
.catalogue-section .shop-product-body{display:grid!important;justify-items:center!important;text-align:center!important;padding:0 6px!important;}
.catalogue-section .shop-card-button{width:100%!important;min-height:43px!important;border-radius:999px!important;background:#d7a77b!important;color:#fff!important;border:0!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-weight:900!important;}
.catalogue-section .shop-product-card.is-out-of-stock .shop-card-button{background:#aaa29b!important;}


/* v1.0.14 force actual shop/category product grid to 2 columns on mobile */
@media (max-width: 860px){
  .catalogue-section .container{
    width:calc(100% - 24px) !important;
  }

  .catalogue-section .product-grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
    align-items:stretch !important;
  }

  .catalogue-section .shop-product-card{
    min-width:0 !important;
    width:100% !important;
    padding:8px 8px 12px !important;
    border-radius:18px !important;
    box-shadow:0 12px 28px rgba(76,55,42,.08) !important;
  }

  .catalogue-section .shop-product-image{
    border-radius:14px !important;
    margin-bottom:10px !important;
  }

  .catalogue-section .shop-product-card .shop-product-image img{
    border-radius:14px !important;
  }

  .catalogue-section .shop-product-body{
    padding:0 2px !important;
  }

  .catalogue-section .shop-product-category{
    font-size:9px !important;
    letter-spacing:.08em !important;
    margin-bottom:5px !important;
  }

  .catalogue-section .shop-product-card h2{
    min-height:38px !important;
    font-size:12px !important;
    line-height:1.25 !important;
    margin-bottom:7px !important;
  }

  .catalogue-section .shop-card-price{
    min-height:auto !important;
    font-size:12px !important;
    gap:5px !important;
    margin-bottom:8px !important;
  }

  .catalogue-section .shop-card-price .old-price{
    font-size:10px !important;
  }

  .catalogue-section .shop-card-button{
    min-height:36px !important;
    font-size:10px !important;
    padding:0 8px !important;
  }

  .catalogue-section .shop-card-badge{
    top:7px !important;
    left:7px !important;
    min-height:22px !important;
    padding:4px 7px !important;
    font-size:8px !important;
  }

  .catalogue-section .sale-badge + .stock-badge{
    top:34px !important;
  }
}

@media (max-width: 360px){
  .catalogue-section .product-grid{
    gap:9px !important;
  }

  .catalogue-section .shop-product-card{
    padding:7px 7px 10px !important;
  }

  .catalogue-section .shop-product-card h2{
    font-size:11px !important;
  }
}


/* v1.0.31 working shop search */
.shop-search-toolbar{
  display:grid !important;
  gap:14px !important;
}

.shop-search-form{
  display:grid !important;
  grid-template-columns:minmax(220px,1fr) minmax(210px,auto) auto auto !important;
  gap:10px !important;
  align-items:end !important;
}

.shop-search-field,
.shop-sort-field{
  display:grid !important;
  gap:6px !important;
  margin:0 !important;
}

.shop-search-field span,
.shop-sort-field span{
  color:#7b6b62 !important;
  font-size:11px !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}

.shop-search-field input{
  min-height:44px !important;
  border:1px solid #ddd4cc !important;
  border-radius:14px !important;
  background:#fff !important;
  color:#3b2b22 !important;
  font-family:"Montserrat", Arial, sans-serif !important;
  font-size:14px !important;
  font-weight:700 !important;
  padding:10px 14px !important;
}

.shop-search-submit,
.shop-search-clear{
  min-height:44px !important;
  border:1px solid #dfc2ad !important;
  border-radius:999px !important;
  background:#f7e6d8 !important;
  color:#6d442d !important;
  padding:0 18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-decoration:none !important;
  font-weight:900 !important;
  cursor:pointer !important;
}

.shop-search-clear{
  background:#fff !important;
}

.shop-no-results{
  margin-bottom:18px !important;
}

@media (max-width: 860px){
  .shop-search-form{
    grid-template-columns:1fr !important;
  }

  .shop-search-submit,
  .shop-search-clear{
    width:100% !important;
  }
}


/* v1.0.32 search form below products */
.shop-search-toolbar{
  margin-top:28px !important;
  padding-top:22px !important;
  border-top:1px solid #eadfd6 !important;
}
