/* v1.9.8 - Phase 8 premium purchase experience */
.sm-featured-products{
  padding-block:70px;
  background:linear-gradient(180deg,#fff,#fbf7f1);
}

.sm-featured-products .sm-section-heading{
  margin-bottom:26px;
}

.sm-featured-products .woocommerce ul.products{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
}

.woocommerce ul.products li.product{
  border-radius:14px!important;
  padding:10px 10px 14px!important;
  box-shadow:0 12px 34px rgba(31,25,19,.045);
}

.woocommerce ul.products li.product:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 18px 44px rgba(31,25,19,.075)!important;
}

.woocommerce ul.products li.product a img{
  aspect-ratio:4/3!important;
  border-radius:11px!important;
  margin-bottom:12px!important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title{
  min-height:2.65em;
  font-size:.9rem!important;
  line-height:1.34!important;
}

.woocommerce ul.products li.product .price{
  min-height:1.4em;
  font-size:.88rem!important;
  margin:4px 0 6px!important;
}

.sm-product-packaging-note,
.sm-product-delivery-note{
  font-size:.64rem!important;
  line-height:1.35;
}

.sm-product-delivery-note{
  display:block;
  margin:-8px 0 10px;
  color:#7f7568;
}

.sm-product-badge{
  top:16px!important;
  left:16px!important;
  padding:5px 8px!important;
  font-size:.55rem!important;
}

.sm-wishlist-button{
  top:12px!important;
  right:12px!important;
  min-width:44px!important;
  height:40px!important;
}

.woocommerce ul.products li.product .button,
.sm-add-to-box-link{
  min-height:42px!important;
  border-radius:8px!important;
  font-size:.7rem!important;
}

.sm-add-to-box-link{
  margin-top:7px!important;
  background:#fff!important;
}

.sm-quick-view-button{
  bottom:112px!important;
  min-height:40px;
  font-size:.72rem;
}

.sm-cart-drawer{
  width:min(480px,100%);
  background:linear-gradient(180deg,#fff,#fbf8f3);
}

.sm-cart-drawer-header{
  padding:24px 26px 18px;
}

.sm-cart-drawer-header h2{
  font-size:32px;
}

.sm-cart-drawer-close{
  min-width:44px;
  min-height:44px;
}

.sm-cart-drawer-body{
  padding:8px 22px 18px;
}

.sm-cart-drawer-items{
  display:grid;
  gap:12px;
}

.sm-cart-drawer-item{
  grid-template-columns:88px minmax(0,1fr)!important;
  gap:14px!important;
  padding:14px!important;
  border:1px solid #eadfce!important;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 30px rgba(28,22,14,.045);
}

.sm-cart-drawer-item.is-removing{
  transform:translateX(10px);
  opacity:.35;
}

.sm-cart-drawer-thumb img{
  width:88px!important;
  height:96px!important;
  border-radius:12px!important;
}

.sm-cart-drawer-name{
  display:block;
  font-family:var(--sm-sans)!important;
  font-size:.94rem!important;
  line-height:1.35;
  font-weight:900;
}

.sm-cart-drawer-copy .variation{
  margin:8px 0;
  color:#6e6357;
  font-size:.68rem;
}

.sm-cart-drawer-row-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:8px 0 10px;
  color:#766b5e;
  font-size:.72rem;
}

.sm-cart-drawer-row-meta strong{
  color:#9b762e;
  font-size:.88rem;
}

.sm-cart-drawer-copy{
  min-width:0;
}

.sm-cart-drawer-copy .sm-quantity-control{
  min-height:42px;
}

.sm-cart-drawer-remove,
.sm-text-button[data-sm-account-wishlist-remove],
.sm-text-button[data-sm-guest-wishlist-remove],
.sm-box-remove,
[data-sm-delete-saved-box]{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:0 13px!important;
  border:1px solid #c93849!important;
  border-radius:999px!important;
  background:#fff5f6!important;
  color:#9b1f31!important;
  text-decoration:none!important;
  font-size:.7rem!important;
  font-weight:900!important;
  cursor:pointer;
}

.sm-cart-drawer-remove{
  margin-top:10px;
}

.sm-cart-drawer-remove span{
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#9b1f31;
  color:#fff;
  line-height:1;
}

.sm-cart-drawer-remove:hover,
.sm-text-button[data-sm-account-wishlist-remove]:hover,
.sm-text-button[data-sm-guest-wishlist-remove]:hover,
.sm-box-remove:hover,
[data-sm-delete-saved-box]:hover{
  background:#9b1f31!important;
  color:#fff!important;
}

.sm-cart-drawer-remove:hover span{
  background:#fff;
  color:#9b1f31;
}

.sm-cart-drawer-remove[disabled],
.sm-cart-drawer-remove.is-loading{
  opacity:.65;
  cursor:wait;
}

.sm-cart-drawer-footer{
  padding:18px 24px calc(22px + var(--sm-safe-bottom,0px));
  background:#fff;
  box-shadow:0 -12px 30px rgba(31,25,19,.06);
}

.sm-cart-drawer-subtotal{
  margin-bottom:10px;
  font-size:1rem;
}

.sm-cart-drawer-trust{
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:8px!important;
}

.sm-cart-drawer-trust span{
  padding:8px;
  border:1px solid #eee2d2;
  border-radius:10px;
  background:#fbf7f1;
  text-align:center;
}

.sm-cart-drawer-checkout{
  min-height:52px;
  margin-top:12px;
}

.woocommerce-cart .shopmattey-shop-main{
  background:linear-gradient(180deg,#fff 0,#fbf7f1 240px,#fff 100%);
}

.woocommerce-cart .woocommerce-cart-form{
  border-radius:18px!important;
  box-shadow:0 18px 54px rgba(31,25,19,.065)!important;
}

.woocommerce-cart table.cart th{
  background:#17140f!important;
  color:#fff;
}

.woocommerce-cart table.cart td{
  vertical-align:middle!important;
}

.woocommerce-cart table.cart .product-remove a.remove{
  display:inline-grid!important;
  place-items:center;
  min-width:42px;
  min-height:42px;
  border:1px solid #c93849;
  border-radius:50%;
  background:#fff5f6;
  color:#9b1f31!important;
  font-size:0!important;
}

.woocommerce-cart table.cart .product-remove a.remove:before{
  content:"x";
  font-size:18px;
  font-weight:900;
}

.woocommerce-cart table.cart .product-remove a.remove:hover{
  background:#9b1f31!important;
  color:#fff!important;
}

.woocommerce-cart table.cart .product-name a{
  font-family:var(--sm-sans)!important;
  font-size:1rem!important;
  font-weight:900!important;
}

.woocommerce-cart .cart_totals{
  border-radius:18px!important;
  box-shadow:0 18px 54px rgba(31,25,19,.07);
}

.woocommerce-cart .cart_totals h2{
  font-family:var(--sm-serif);
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  min-height:56px!important;
  font-size:.88rem!important;
}

.sm-cart-confidence{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:16px 0 0;
}

.sm-cart-confidence span{
  display:grid;
  gap:3px;
  padding:13px;
  border:1px solid #eadfce;
  border-radius:12px;
  background:#fffaf2;
}

.sm-cart-confidence strong{
  font-size:.72rem;
}

.sm-cart-confidence small{
  color:#6f6559;
  font-size:.64rem;
  line-height:1.45;
}

.sm-empty-cart,
.sm-public-wishlist .sm-account-empty,
.sm-account-empty{
  box-shadow:0 18px 52px rgba(31,25,19,.055);
}

.sm-footer{
  padding:50px 0 calc(34px + var(--sm-safe-bottom,0px))!important;
}

.sm-footer-cta{
  padding-block:0 34px;
}

.sm-footer-grid{
  gap:34px!important;
  align-items:start;
}

.sm-footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-top:28px!important;
  padding-top:18px!important;
}

@media(max-width:1023px){
  .sm-featured-products .woocommerce ul.products{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  .sm-cart-confidence{
    grid-template-columns:1fr;
  }
}

@media(max-width:767px){
  .sm-featured-products{
    padding-block:52px;
  }

  .sm-featured-products .woocommerce ul.products,
  .woocommerce ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:11px!important;
  }

  .woocommerce ul.products li.product{
    padding:8px 8px 12px!important;
    border-radius:12px!important;
  }

  .woocommerce ul.products li.product a img{
    aspect-ratio:1/1!important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-size:.76rem!important;
    min-height:2.75em;
  }

  .woocommerce ul.products li.product .button,
  .sm-add-to-box-link{
    min-height:40px!important;
    font-size:.62rem!important;
    padding-inline:6px!important;
  }

  .sm-wishlist-button{
    min-width:42px!important;
    height:42px!important;
    padding:0 9px!important;
  }

  .sm-wishlist-button span{
    display:none!important;
  }

  .sm-cart-drawer{
    width:100%;
  }

  .sm-cart-drawer-header{
    padding:20px 18px 14px;
  }

  .sm-cart-drawer-body{
    padding:8px 14px 16px;
  }

  .sm-cart-drawer-item{
    grid-template-columns:78px minmax(0,1fr)!important;
    padding:12px!important;
    gap:12px!important;
  }

  .sm-cart-drawer-thumb img{
    width:78px!important;
    height:88px!important;
  }

  .sm-cart-drawer-trust{
    grid-template-columns:1fr!important;
  }

  .woocommerce-cart table.cart,
  .woocommerce-cart table.cart tbody,
  .woocommerce-cart table.cart tr,
  .woocommerce-cart table.cart td{
    display:block;
    width:100%!important;
  }

  .woocommerce-cart table.cart thead{
    display:none;
  }

  .woocommerce-cart table.cart tr.cart_item{
    position:relative;
    margin:0 0 12px;
    padding:14px;
    border:1px solid #eadfce;
    border-radius:16px;
    background:#fff;
  }

  .woocommerce-cart table.cart .product-remove{
    position:absolute;
    top:10px;
    right:10px;
    width:auto!important;
  }

  .woocommerce-cart table.cart .product-thumbnail{
    padding-right:54px!important;
  }

  .woocommerce-cart table.cart td{
    border:0!important;
    padding:7px 0!important;
  }

  .sm-footer{
    padding-bottom:calc(92px + var(--sm-safe-bottom,0px))!important;
  }

  .sm-footer-bottom{
    display:grid;
  }
}

@media(max-width:360px){
  .woocommerce ul.products li.product .button,
  .sm-add-to-box-link{
    font-size:.58rem!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .woocommerce ul.products li.product,
  .sm-cart-drawer-item,
  .sm-cart-drawer,
  .sm-cart-drawer-backdrop{
    transition:none!important;
  }
}
