
.chinar-cart-shell{
  --chinar-green:#58782f;
  --chinar-green-dark:#334c20;
  --chinar-olive:#7d963b;
  --chinar-text:#232323;
  --chinar-muted:#6b6b64;
  --chinar-border:#e4e3dc;
  --chinar-soft:#f7f7f1;
  --chinar-soft-2:#fbfbf6;
  --chinar-danger:#b85c5c;
}

.chinar-cart-page .entry-title,
.chinar-cart-page .page-title{
  display:none !important;
}

.chinar-cart-page .woocommerce{
  overflow:visible;
}

.chinar-cart-shell{
  max-width:1280px;
  margin:30px auto 34px;
  padding:0 22px;
  color:var(--chinar-text);
  box-sizing:border-box;
}

.chinar-cart-shell *{
  box-sizing:border-box;
}

.chinar-cart-heading{
  margin:0 0 22px;
}

.chinar-cart-heading h1{
  margin:0 0 3px;
  color:var(--chinar-green-dark);
  font-size:34px;
  line-height:1.18;
  font-weight:600;
}

.chinar-cart-heading p{
  margin:0;
  color:var(--chinar-green-dark);
  font-size:15px;
}

.chinar-cart-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 345px;
  gap:40px;
  align-items:start;
}

.chinar-cart-card,
.chinar-order-summary,
.chinar-service-strip{
  border:1px solid var(--chinar-border);
  border-radius:10px;
  background:#fff;
}

.chinar-cart-card{
  padding:0 20px 0;
  box-shadow:0 4px 18px rgba(38,48,28,.035);
}

.chinar-cart-table-head{
  display:grid;
  grid-template-columns:minmax(0,2.4fr) .82fr .92fr .72fr;
  gap:18px;
  padding:18px 6px 15px;
  border-bottom:1px solid var(--chinar-border);
  font-size:13px;
  font-weight:600;
}

.chinar-cart-table-head span:nth-child(2),
.chinar-cart-table-head span:nth-child(3),
.chinar-cart-table-head span:nth-child(4){
  text-align:center;
}

.chinar-cart-row{
  display:grid;
  grid-template-columns:minmax(0,2.4fr) .82fr .92fr .72fr;
  gap:18px;
  align-items:center;
  min-height:178px;
  padding:20px 6px;
  border-bottom:1px solid var(--chinar-border);
}

.chinar-product-cell{
  display:flex;
  align-items:center;
  gap:20px;
  min-width:0;
}

.chinar-product-image{
  flex:0 0 150px;
}

.chinar-product-image img{
  width:150px !important;
  height:150px !important;
  border-radius:8px;
  object-fit:cover;
  display:block;
}

.chinar-product-copy{
  min-width:0;
}

.chinar-product-copy h3{
  margin:0 0 4px;
  font-size:17px;
  line-height:1.35;
  font-weight:600;
}

.chinar-product-copy h3 a{
  color:var(--chinar-text);
  text-decoration:none;
}

.chinar-product-subtitle{
  color:#57743b;
  font-size:14px;
  margin-bottom:7px;
}

.chinar-product-mobile-price{
  display:none;
  color:var(--chinar-green);
  font-weight:600;
}

.chinar-price-cell,
.chinar-total-cell{
  text-align:center;
  font-size:15px;
}

.chinar-qty-cell{
  display:flex;
  justify-content:center;
}

.chinar-qty-wrap{
  display:flex;
  align-items:stretch;
  height:48px;
  border:1px solid #d8d9d3;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}

.chinar-qty-btn{
  width:42px;
  min-width:42px;
  border:0;
  background:#fff;
  color:#30352b;
  font-size:21px;
  cursor:pointer;
  padding:0;
  line-height:1;
}

.chinar-qty-btn:hover{
  background:var(--chinar-soft);
}

.chinar-qty-wrap .quantity{
  margin:0 !important;
  width:58px;
}

.chinar-qty-wrap .qty{
  width:58px !important;
  height:46px !important;
  min-height:46px !important;
  padding:0 5px !important;
  text-align:center;
  border:0 !important;
  border-left:1px solid #e1e1dc !important;
  border-right:1px solid #e1e1dc !important;
  border-radius:0 !important;
  box-shadow:none !important;
  -moz-appearance:textfield;
}

.chinar-qty-wrap .qty::-webkit-outer-spin-button,
.chinar-qty-wrap .qty::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.chinar-sold-individually{
  display:flex;
  align-items:center;
  justify-content:center;
  width:58px;
  border-left:1px solid #e1e1dc;
}

.chinar-line-total{
  margin-bottom:16px;
}

.chinar-remove{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--chinar-danger) !important;
  text-decoration:none !important;
  font-size:13px;
}

.chinar-remove img{
  width:18px;
  height:18px;
  object-fit:contain;
}

.chinar-cart-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 6px;
}

.chinar-coupon-area{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
}

.chinar-coupon-area > img{
  width:34px;
  height:34px;
  object-fit:contain;
}

.chinar-coupon-area label{
  white-space:nowrap;
  font-size:13px;
}

.chinar-coupon-control{
  display:flex;
  min-width:310px;
}

.chinar-coupon-control input{
  height:44px !important;
  min-height:44px !important;
  width:205px !important;
  margin:0 !important;
  padding:0 14px !important;
  border:1px solid #d8d9d3 !important;
  border-radius:7px 0 0 7px !important;
  box-shadow:none !important;
  font-size:13px !important;
}

.chinar-apply-coupon{
  height:44px !important;
  min-height:44px !important;
  padding:0 18px !important;
  border:1px solid var(--chinar-green) !important;
  border-radius:0 7px 7px 0 !important;
  background:#fff !important;
  color:var(--chinar-green-dark) !important;
  font-size:13px !important;
  font-weight:500 !important;
}

.chinar-continue-shopping{
  color:var(--chinar-green-dark) !important;
  font-size:14px;
  white-space:nowrap;
  text-decoration:none !important;
}

.chinar-benefits{
  margin-top:18px;
  min-height:62px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:linear-gradient(90deg,#fafaf6 0%,#f6f6ef 100%);
  border-radius:9px;
  overflow:hidden;
}

.chinar-benefit{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:10px 16px;
  font-size:13px;
  line-height:1.35;
}

.chinar-benefit:not(:last-child)::after{
  content:"";
  position:absolute;
  right:0;
  top:16px;
  bottom:16px;
  width:1px;
  background:#c9c9bd;
}

.chinar-benefit img{
  width:45px;
  height:45px;
  object-fit:contain;
}

.chinar-service-strip{
  margin-top:18px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  overflow:hidden;
  background:#fff;
}

.chinar-service-item{
  min-height:92px;
  padding:15px 20px;
  display:flex;
  align-items:center;
  gap:14px;
}

.chinar-service-item:not(:last-child){
  border-right:1px solid var(--chinar-border);
}

.chinar-service-item img{
  width:56px;
  height:56px;
  flex:0 0 56px;
  object-fit:contain;
}

.chinar-service-item strong,
.chinar-service-item span{
  display:block;
}

.chinar-service-item strong{
  margin-bottom:4px;
  font-size:13px;
  font-weight:600;
  color:var(--chinar-text);
}

.chinar-service-item:nth-child(2) strong{
  color:var(--chinar-green);
}

.chinar-service-item span{
  color:#4f4f49;
  font-size:12px;
  line-height:1.4;
}

.chinar-service-item a{
  color:inherit;
  text-decoration:none;
}

.chinar-order-summary{
  padding:24px 24px 18px;
  background:linear-gradient(145deg,#fbfbf6 0%,#f2f2e8 100%);
  position:sticky;
  top:24px;
}

.chinar-summary-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding-bottom:14px;
  border-bottom:1px solid #a9ae94;
  margin-bottom:14px;
}

.chinar-summary-title h2{
  margin:0;
  color:#2f3c1f;
  font-size:26px;
  line-height:1.2;
  font-weight:500;
}

.chinar-summary-title img{
  width:34px;
  height:34px;
  object-fit:contain;
}

.chinar-summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:7px 0;
  font-size:14px;
}

.chinar-summary-row strong{
  font-weight:500;
  text-align:right;
}

.chinar-shipping-text{
  color:#6f706a;
  font-size:12px;
}

.chinar-summary-divider{
  border-top:1px dashed #b9baae;
  margin:12px 0 8px;
}

.chinar-summary-total{
  padding-top:7px;
  font-size:19px;
  color:#3d5223;
}

.chinar-summary-total strong{
  font-size:24px;
  color:var(--chinar-green);
}

.chinar-summary-total .includes_tax,
.chinar-summary-total small{
  display:none;
}

.chinar-tax-note{
  margin:4px 0 22px;
  font-size:12px;
  color:#72736c;
}

.chinar-checkout-btn{
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:15px;
  width:100%;
  min-height:50px;
  margin:0 !important;
  border:0 !important;
  border-radius:6px !important;
  background:linear-gradient(90deg,#5b7e29 0%,#78963b 100%) !important;
  color:#fff !important;
  font-size:17px !important;
  font-weight:500 !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

.chinar-checkout-btn:hover{
  filter:brightness(.96);
}

.chinar-summary-features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:22px;
}

.chinar-summary-features > div{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  color:#3e4038;
  font-size:11px;
  line-height:1.25;
}

.chinar-summary-features img{
  width:42px;
  height:42px;
  object-fit:contain;
}

.chinar-cart-form .woocommerce-cart-form__contents,
.chinar-cart-form button[name="update_cart"],
.chinar-cart-form .actions > button[name="update_cart"]{
  display:none !important;
}

/* WooCommerce notices remain full width above the custom layout. */
.chinar-cart-page .woocommerce-notices-wrapper{
  max-width:1280px;
  margin-left:auto;
  margin-right:auto;
}

/* Tablet */
@media (max-width:1100px){
  .chinar-cart-grid{
    grid-template-columns:minmax(0,1fr) 315px;
    gap:24px;
  }

  .chinar-cart-row,
  .chinar-cart-table-head{
    grid-template-columns:minmax(0,2.1fr) .7fr .9fr .7fr;
    gap:10px;
  }

  .chinar-product-image{
    flex-basis:120px;
  }

  .chinar-product-image img{
    width:120px !important;
    height:120px !important;
  }

  .chinar-coupon-area{
    flex-wrap:wrap;
  }

  .chinar-coupon-control{
    min-width:260px;
  }
}

/* Mobile */
@media (max-width:900px){
  .chinar-cart-shell{
    padding:0 16px;
    margin-top:20px;
  }

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

  .chinar-order-summary{
    position:static;
  }

  .chinar-cart-table-head{
    display:none;
  }

  .chinar-cart-row{
    grid-template-columns:1fr;
    gap:15px;
    padding:18px 0;
  }

  .chinar-product-cell{
    align-items:flex-start;
  }

  .chinar-price-cell{
    display:none;
  }

  .chinar-product-mobile-price{
    display:block;
  }

  .chinar-qty-cell{
    justify-content:flex-start;
    margin-left:140px;
    margin-top:-54px;
  }

  .chinar-total-cell{
    text-align:right;
    margin-top:-55px;
  }

  .chinar-cart-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .chinar-coupon-area{
    display:grid;
    grid-template-columns:34px 1fr;
  }

  .chinar-coupon-control{
    grid-column:1 / -1;
    width:100%;
    min-width:0;
  }

  .chinar-coupon-control input{
    width:100% !important;
  }

  .chinar-continue-shopping{
    text-align:right;
  }

  .chinar-benefits,
  .chinar-service-strip{
    grid-template-columns:1fr 1fr;
  }

  .chinar-benefit:nth-child(2)::after{
    display:none;
  }

  .chinar-benefit{
    border-bottom:1px solid rgba(201,201,189,.45);
  }

  .chinar-service-item{
    border-right:0 !important;
    border-bottom:1px solid var(--chinar-border);
  }

  .chinar-service-item:last-child{
    grid-column:1 / -1;
    border-bottom:0;
  }
}

@media (max-width:560px){
  .chinar-cart-heading h1{
    font-size:29px;
  }

  .chinar-product-image{
    flex:0 0 105px;
  }

  .chinar-product-image img{
    width:105px !important;
    height:105px !important;
  }

  .chinar-product-copy h3{
    font-size:15px;
  }

  .chinar-qty-cell{
    margin-left:125px;
    margin-top:-45px;
  }

  .chinar-total-cell{
    margin-top:2px;
    text-align:left;
    margin-left:125px;
  }

  .chinar-line-total{
    margin-bottom:8px;
  }

  .chinar-benefits{
    grid-template-columns:1fr;
  }

  .chinar-benefit{
    justify-content:flex-start;
    padding-left:22px;
  }

  .chinar-benefit::after{
    display:none !important;
  }

  .chinar-service-strip{
    grid-template-columns:1fr;
  }

  .chinar-service-item:last-child{
    grid-column:auto;
  }

  .chinar-summary-features{
    gap:5px;
  }
}


/* v1.1 empty-cart state */
.chinar-empty-card{
  max-width:760px;
  min-height:300px;
  margin:0 auto;
  padding:52px 28px;
  border:1px solid var(--chinar-border);
  border-radius:10px;
  background:linear-gradient(145deg,#fff 0%,#f8f8f1 100%);
  text-align:center;
  box-shadow:0 4px 18px rgba(38,48,28,.035);
}
.chinar-empty-icon{
  width:70px;
  height:70px;
  margin:0 auto 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#f0f2e6;
  font-size:30px;
}
.chinar-empty-card h2{
  margin:0 0 9px;
  color:var(--chinar-green-dark);
  font-size:27px;
  font-weight:500;
}
.chinar-empty-card p{
  margin:0 auto 22px;
  max-width:520px;
  color:var(--chinar-muted);
  font-size:14px;
}
.chinar-empty-shop-btn{
  max-width:260px;
  margin:0 auto !important;
}
.chinar-empty-cart-shell > .chinar-benefits{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}


/* v1.2 icon reliability fixes */
.chinar-cart-shell img[src$=".svg"]{
  display:block;
  max-width:100%;
}
.chinar-benefit img,
.chinar-service-item img,
.chinar-summary-features img,
.chinar-summary-title img,
.chinar-coupon-area > img,
.chinar-remove img{
  background:transparent !important;
  filter:none !important;
}
.chinar-empty-icon img{
  width:42px;
  height:42px;
  object-fit:contain;
}



/* v1.4 strict scope: no font-family rules; loads only with [chinar_cart]. */
