/* Dawn-like mobile cart layout */
.woocommerce-cart .site-content .col-full{
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.gb-cart{
  margin-top: 8px;
}

.gb-cart__title{
  font-size: 24px;
  line-height: 1.05;
  margin: 10px 0 10px 0;
  font-weight: 700;
  color: rgb(18,18,18);
}

@media screen and (min-width: 950px) {
  .gb-cart__title {
    margin-top: 30px !important;
  }
}

.gb-cart__wrap{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Items */
.gb-cart__items{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gb-cart__item{
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(18,18,18,.08);
  border-radius: 18px;
  background: #fff;
}

.gb-cart__thumb img{
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.gb-cart__topline{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gb-cart__name a,
.gb-cart__name span{
  color: #121212bf;
  font-weight: 400;
  text-decoration: none !important;
  line-height: 1.2;
}

.gb-cart__remove{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(18,18,18,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(18,18,18,.55);
  background: #fff;
  text-decoration: none;
  flex: 0 0 auto;
}
.gb-cart__remove svg{ width: 16px; height: 16px; }

.gb-cart__price{
  margin-top: 6px;
  color: rgb(18,18,18);
  font-weight: 700;
}

.gb-cart__meta{
  margin-top: 6px;
  color: rgba(18,18,18,.75);
  font-weight: 400;
  font-size: 13px;
}
.gb-cart__meta dt{ font-weight: 400; }
.gb-cart__meta dd{ margin: 0 0 6px 0; }

.gb-cart__qtyrow{
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Qty stepper */
.gb-cart__qty{
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(18,18,18,.18);
  border-radius: 14px;
  overflow: hidden;
  height: 44px;
  background: #fff;
}

.gb-cart__qty .quantity{
  margin: 0 !important;
}

.gb-cart__qty input.qty{
  width: 54px !important;
  height: 44px !important;
  border: 0 !important;
  text-align: center !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 600;
}

.gb-qtybtn{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: rgba(18,18,18,.75);
  font-size: 20px;
  line-height: 1;
}

.gb-cart__subtotal{
  color: #121212bf;
  font-weight: 600;
  white-space: nowrap;
  display: none !important;
}

/* Summary */
.gb-cart__summary{
  padding: 14px;
  border: 1px solid rgba(18,18,18,.08);
  border-radius: 18px;
  background: #fff;
}

.gb-cart__summaryrow{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.gb-cart__summarylabel{
  font-weight: 700;
  color: rgb(18,18,18);
}
.gb-cart__summaryvalue{
  font-weight: 700;
  color: rgb(18,18,18);
}

/* Checkout button from Woo hook */
.woocommerce-cart .wc-proceed-to-checkout{
  padding: 0;
  margin: 10px 0 0 0;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  width: 100%;
  border-radius: 999px !important;
  padding: 16px 18px !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Coupon as collapsible */
.gb-cart__coupon{
  margin-top: 12px;
}
.gb-cart__coupon summary{
  cursor: pointer;
  color: #121212bf;
  font-weight: 600;
}
.gb-cart__couponinner{
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.gb-cart__couponinner input{
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(18,18,18,.18);
}
.gb-cart__couponinner button{
  height: 44px;
  border-radius: 999px;
  font-weight: 700;
}

/* Hide default table/cart totals blocks that Storefront/Woo might output */
.woocommerce-cart table.shop_table,
.woocommerce-cart .cart-collaterals{
  display: none !important;
}

/* Update cart button hidden (we auto-submit via JS) */
.gb-cart__update{
  display: none !important;
}

/* Remove number input arrows (Chrome, Edge, Safari) */
.gb-cart input.qty::-webkit-outer-spin-button,
.gb-cart input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove number input arrows (Firefox) */
.gb-cart input.qty {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Empty cart spacing */
.gb-emptycart { text-align: center; padding: 36px 8px 10px; }
.gb-emptycart__title { margin: 0 0 18px; font-size: 34px; line-height: 1.15; font-weight: 700; }

.gb-emptycart__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  height: 56px;
  border-radius: 999px;
  background: #1cbcff;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.gb-emptycart__rec { padding-top: 26px; }
.gb-emptycart__recTitle { margin: 0 0 14px; font-size: 22px; font-weight: 700; }

/* Desktop: force 4-per-row using the same idea as homepage, without relying on Woo floats */
@media (min-width: 992px){
  .gb-cart--empty ul.products.columns-4{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .gb-cart--empty ul.products.columns-4 > li.product{
    width: calc((100% - 66px) / 4) !important; /* 3 gaps x 22px */
    margin: 0 !important;
    float: none !important;
  }
}

.gb-cart__undersummary {
    font-weight: normal !important;
}

.gb-cart__variant{
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(17,24,39,.55);
}

.gb-cart__topline{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.gb-cart__titleblock{
  flex: 1;
  min-width: 0;
}

.gb-cart__variant{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(17,24,39,.55);
  margin-left: 0 !important;
  width: 100%;
}

.gb-cart__couponline{
  font-size:13px;
  display:inline-flex;
  gap:6px;
  align-items:center;
}

.gb-cart__couponremove{
  text-decoration:underline;
  color: black;
  font-weight:500;
}

.gb-cart__couponline .woocommerce-Price-amount,
.gb-cart__couponline .woocommerce-Price-amount bdi,
.gb-cart__couponline .woocommerce-Price-currencySymbol {
  color: #000 !important;
}
.gb-checkout-btn{
  width: 100% !important;
  height: 52px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  margin-top: 8px !important;
      letter-spacing: .08rem !important;
      align-items: center;
    justify-content: center;
    display: flex;
}