/* =========================================================
   Keraloifes - Cart page
   Premium clean cart layout
========================================================= */

:root{
  --cb-cart-bg:#fcf8f3;
  --cb-cart-card:#ffffff;
  --cb-cart-soft:#f2e8de;
  --cb-cart-soft-2:#fbf5ef;
  --cb-cart-border:#decfc1;
  --cb-cart-border-2:#eadfd4;
  --cb-cart-text:#2f221f;
  --cb-cart-text-soft:#6f5c56;
  --cb-cart-primary:#d57b93;
  --cb-cart-primary-hover:#c86481;
  --cb-cart-danger-bg:#f8efef;
  --cb-cart-danger-text:#9b6b6b;
  --cb-cart-radius-sm:12px;
  --cb-cart-radius-md:20px;
  --cb-cart-radius-lg:28px;
  --cb-cart-shadow-sm:0 8px 24px rgba(72,41,34,.05);
  --cb-cart-shadow-md:0 18px 45px rgba(72,41,34,.08);
}

/* =========================================================
   PAGE AREA
========================================================= */
.wrapper{
  background:var(--cb-cart-bg);
}

.wrapper > .container{  
  padding-bottom:80px;
  min-height:70vh;
}

.wrapper > .container > .woocommerce{
  width:min(100%,1180px);
  margin:0 auto;
  color:var(--cb-cart-text);
}

.woocommerce h1,
.woocommerce-page h1{
  margin:0 0 28px;
  font-size:58px;
  line-height:1.02;
  font-weight:800;
  color:var(--cb-cart-text);
  letter-spacing:-0.02em;
}

/* =========================================================
   CART LAYOUT
========================================================= */
.wrapper > .container > .woocommerce:has(.woocommerce-cart-form){
  display:grid;
  grid-template-columns:minmax(0,1fr) 400px;
  gap:32px;
  align-items:start;
}

.woocommerce-cart-form{
  grid-column:1;
  min-width:0;
  margin:0;
}

.cart-collaterals{
  grid-column:2;
  width:100%;
  min-width:0;
  margin:0;
}

.cart-collaterals .cart_totals{
  position:sticky;
  top:120px;
  margin-top:22px;
}

.cart_totals{
  width:100% !important;
}

/* =========================================================
   NOTICES
========================================================= */
.woocommerce-notices-wrapper{
  grid-column:1 / -1;
  margin-bottom:6px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  margin:0 0 18px;
  padding:16px 55px;
  border-radius:18px;
  border:1px solid var(--cb-cart-border);
  box-shadow:var(--cb-cart-shadow-sm);
  background:#fff;
  color:var(--cb-cart-text);
}

.woocommerce-info::before{color:var(--cb-cart-primary);}

/* =========================================================
   MAIN CART TABLE
========================================================= */
table.shop_table.cart.woocommerce-cart-form__contents{
  width:100%;
  margin:0;
  border:1px solid var(--cb-cart-border);
  border-radius:24px;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  background:var(--cb-cart-card);
  box-shadow:0 18px 40px rgba(72,41,34,.07);
}

table.shop_table.cart.woocommerce-cart-form__contents thead th{
  padding:20px 20px;
  background:var(--cb-cart-soft);
  border-bottom:1px solid var(--cb-cart-border);
  color:var(--cb-cart-text);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

table.shop_table.cart.woocommerce-cart-form__contents thead th.product-name{
  text-align:left;
}

table.shop_table.cart.woocommerce-cart-form__contents tbody td{
  padding:24px 20px;
  border-top:1px solid var(--cb-cart-border-2);
  vertical-align:middle;
  background:#fff;
  color:var(--cb-cart-text);
}

table.shop_table.cart.woocommerce-cart-form__contents tbody tr:first-child td{
  border-top:0;
}

/* =========================================================
   PRODUCT CELLS
========================================================= */
td.product-remove{
  width:64px;
  text-align:center;
}

td.product-thumbnail{
  width:120px;
}

td.product-thumbnail a{
  display:inline-flex;
}

td.product-thumbnail img{
  display:block;
  width:92px;
  height:92px;
  object-fit:cover;
  border-radius:18px;
  border:1px solid var(--cb-cart-border-2);
  background:#fff;
  padding:6px;
}

td.product-name{
  min-width:260px;
}

td.product-name a{
  color:var(--cb-cart-text);
  text-decoration:none;
  font-size:16px;
  font-weight:400;
  line-height:1.45;
  
}

td.product-name a:hover{
  color:var(--cb-cart-primary);
}

td.product-price,
td.product-quantity,
td.product-subtotal{
  white-space:nowrap;
  font-size:20px;
  font-weight:700;
  color:var(--cb-cart-text);
}

/* =========================================================
   REMOVE BUTTON
========================================================= */
td.product-remove a.remove{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:999px;
  background:var(--cb-cart-danger-bg);
  color:var(--cb-cart-danger-text) !important;
  font-size:24px;
  line-height:1;
  text-decoration:none;
  transition:all .25s ease;
}

td.product-remove a.remove:hover{
  background:#f3dede;
  color:#7e3f3f !important;
  transform:scale(1.05);
}

/* =========================================================
   QUANTITY
========================================================= */
.product-quantity .quantity{
  margin:0;
}

.product-quantity .qty{
  width:92px;
  min-height:52px;
  border:1px solid var(--cb-cart-border);
  border-radius:12px;
  background:#fff;
  text-align:center;
  padding:0 10px;
  color:var(--cb-cart-text);
  font-size:16px;
  font-weight:700;
  box-shadow:none;
}

.product-quantity .qty:focus,
td.actions .coupon .input-text:focus,
.shipping-calculator-form input.input-text:focus,
.shipping-calculator-form select:focus{
  outline:none;
  border-color:#d8a8b5;
  box-shadow:0 0 0 4px rgba(213,123,147,.12);
}

/* =========================================================
   ACTIONS ROW
========================================================= */
table.shop_table.cart.woocommerce-cart-form__contents td.actions{
  padding:18px 20px;
  background:var(--cb-cart-soft-2);
  border-top:1px solid var(--cb-cart-border);
}

td.actions .coupon{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

td.actions .coupon .input-text{
  width:240px !important;
  min-height:52px;
  padding:0 18px;
  border:1px solid var(--cb-cart-border);
  border-radius:12px;
  background:#fff;
  color:var(--cb-cart-text);
  margin:0;
  box-shadow:none;
}

td.actions > .button,
td.actions > button,
td.actions .coupon .button{
  min-height:52px;
  padding:14px 24px;
  border:0;
  border-radius:12px;
  background:var(--cb-cart-primary);
  color:#fff;
  font-weight:700;
  box-shadow:0 10px 24px rgba(213,123,147,.18);
  transition:all .25s ease;
}

td.actions > .button:hover,
td.actions > button:hover,
td.actions .coupon .button:hover{
  background:var(--cb-cart-primary-hover);
  color:#fff;
  transform:translateY(-1px);
}

td.actions > button[disabled]{
  opacity:.7;
  cursor:not-allowed;
  filter:grayscale(.1);
}

/* =========================================================
   CART TOTALS CARD
========================================================= */
.cart_totals{
  background:#fff;
  border:1px solid var(--cb-cart-border);
  border-radius:28px;
  padding:28px;
  box-shadow:0 18px 45px rgba(72,41,34,.08);
}

.cart_totals h2{
  margin:0 0 22px;
  font-size:42px;
  line-height:1.05;
  font-weight:800;
  color:var(--cb-cart-text);
  letter-spacing:-0.02em;
}

/* =========================================================
   TOTALS TABLE
========================================================= */
.cart_totals table.shop_table{
  width:100%;
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  border-collapse:collapse;
  background:transparent;
}
.cart_totals table.shop_table th{padding-left:16px !important;}
.cart_totals table.shop_table th,
.cart_totals table.shop_table td{
  padding:16px 16px;
  border-top:1px solid var(--cb-cart-border-2) !important;
  background:transparent;
  vertical-align:top;
}


.cart_totals table.shop_table th{
  color:#000;
  font-weight:700;
  font-size:16px;
  text-align:left;
}

.cart_totals table.shop_table td{
  text-align:right;
  color:var(--cb-cart-text);
  font-weight:800;
  font-size:18px;
}

/* totals last row */
.cart_totals table.shop_table tr.order-total th,
.cart_totals table.shop_table tr.order-total td{
  padding-top:18px;
  font-size:19px;
}

/* =========================================================
   SHIPPING METHODS
========================================================= */
.woocommerce-shipping-methods{
  list-style:none;
  margin:0;
  padding:0;
}

.woocommerce-shipping-methods li{
  margin:0 0 12px;
}

.woocommerce-shipping-methods input.shipping_method{
  accent-color:var(--cb-cart-primary);
}

.woocommerce-shipping-methods label{
  color:var(--cb-cart-text);
  font-weight:500;
  line-height:1.5;
}

.woocommerce-shipping-destination{
  margin:14px 0 0;
  color:var(--cb-cart-text-soft);
  line-height:1.6;
}

.woocommerce-shipping-destination strong{
  color:var(--cb-cart-text);
}

/* =========================================================
   SHIPPING CALCULATOR
========================================================= */
.woocommerce-shipping-calculator{
  margin-top:14px;
}

.shipping-calculator-button{
  color:var(--cb-cart-primary);
  text-decoration:none;
  font-weight:700;
}

.shipping-calculator-button:hover{
  color:var(--cb-cart-primary-hover);
}

.shipping-calculator-form{
  margin-top:14px;
  padding:18px;
  border:1px solid var(--cb-cart-border);
  border-radius:18px;
  background:var(--cb-cart-soft-2);
}

.shipping-calculator-form .form-row{
  margin:0 0 14px;
}

.shipping-calculator-form .form-row:last-child{
  margin-bottom:0;
}

.shipping-calculator-form .input-text,
.shipping-calculator-form select{
  width:100%;
  min-height:50px;
  padding:0 16px;
  border:1px solid var(--cb-cart-border);
  border-radius:14px;
  background:#fff;
  color:var(--cb-cart-text);
  box-shadow:none;
}

.shipping-calculator-form button.button{
  min-height:50px;
  padding:14px 22px;
  border:0;
  border-radius:999px;
  background:var(--cb-cart-primary);
  color:#fff;
  font-weight:700;
}

.shipping-calculator-form button.button:hover{
  background:var(--cb-cart-primary-hover);
}

/* =========================================================
   CHECKOUT CTA
========================================================= */
.wc-proceed-to-checkout{
  margin:18px 0 0;
  padding:0;
}

.wc-proceed-to-checkout .checkout-button{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:58px;
  padding:16px 24px;
  border-radius:12px !important;
  background:var(--cb-cart-primary) !important;
  color:#fff !important;
  text-decoration:none;
  font-weight:800;
  font-size:17px;
  box-shadow:0 12px 28px rgba(213,123,147,.22);
  box-sizing:border-box;
  transition:all .25s ease;
}

.wc-proceed-to-checkout .checkout-button:hover{
  background:var(--cb-cart-primary-hover) !important;
  color:#fff !important;
  transform:translateY(-1px);
}

/* =========================================================
   GENERIC WOO TABLE CLEANUP
========================================================= */
.woocommerce table.shop_table{
  border-color:var(--cb-cart-border);
}

.woocommerce a.remove{
  color:var(--cb-cart-danger-text) !important;
}

/* =========================================================
   TABLET / SMALL DESKTOP
========================================================= */
@media (max-width:1100px){
  .wrapper > .container > .woocommerce:has(.woocommerce-cart-form){
    grid-template-columns:1fr;
  }

  .woocommerce-cart-form,
  .cart-collaterals{
    grid-column:auto;
  }

  .cart-collaterals .cart_totals{
    position:static;
  }

  .woocommerce h1,
  .woocommerce-page h1{
    font-size:48px;
  }
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width:782px){
  .wrapper > .container{
    
    padding-bottom:56px;
  }

  .wrapper > .container > .woocommerce{
    width:100%;
  }

  .woocommerce h1,
  .woocommerce-page h1{
    margin-bottom:22px;
    font-size:40px;
  }

  td.actions .coupon{
    display:grid;
    grid-template-columns:1fr;
  }

  td.actions .coupon .input-text,
  td.actions .coupon .button,
  td.actions > .button,
  td.actions > button{
    width:100%;
  }

  .cart_totals{
    padding:22px;
  }

  .cart_totals h2{
    font-size:34px;
  }
}

/* =========================================================
   MOBILE CART STACK
========================================================= */
@media (max-width:680px){
  table.shop_table.cart.woocommerce-cart-form__contents thead{
    display:none;
  }

  table.shop_table.cart.woocommerce-cart-form__contents,
  table.shop_table.cart.woocommerce-cart-form__contents tbody,
  table.shop_table.cart.woocommerce-cart-form__contents tr,
  table.shop_table.cart.woocommerce-cart-form__contents td{
    display:block;
    width:100%;
  }

  table.shop_table.cart.woocommerce-cart-form__contents{
    border-radius:22px;
  }

  table.shop_table.cart.woocommerce-cart-form__contents tr.cart_item{
    position:relative;
    padding:18px 16px;
    border-top:1px solid var(--cb-cart-border-2);
  }

  table.shop_table.cart.woocommerce-cart-form__contents tr.cart_item:first-child{
    border-top:0;
  }

  table.shop_table.cart.woocommerce-cart-form__contents tr.cart_item td{
    padding:8px 0;
    border:0;
  }

  td.product-remove{
    position:absolute;
    top:14px;
    right:14px;
    width:auto;
    padding:0 !important;
  }

  td.product-thumbnail{
    width:100%;
    margin-bottom:6px;
  }

  td.product-thumbnail img{
    width:78px;
    height:78px;
  }

  td.product-name{
    padding-right:48px !important;
  }

  td.product-name a{
    font-size:18px;
    line-height:1.4;
  }

  td.product-price,
  td.product-quantity,
  td.product-subtotal{
    font-size:16px;
  }

  td.product-price::before,
  td.product-quantity::before,
  td.product-subtotal::before{
    display:block;
    margin-bottom:4px;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--cb-cart-text-soft);
  }

  td.product-price::before{
    content:"Τιμή";
  }

  td.product-quantity::before{
    content:"Ποσότητα";
  }

  td.product-subtotal::before{
    content:"Υποσύνολο";
  }

  .product-quantity .qty{
    width:100%;
    max-width:110px;
  }

  table.shop_table.cart.woocommerce-cart-form__contents td.actions{
    padding:16px;
  }

  .cart_totals h2{
    font-size:30px;
  }

  .cart_totals table.shop_table th{
    font-size:15px;
  }

  .cart_totals table.shop_table td{
    font-size:16px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width:480px){
  .wrapper > .container{
    
    padding-bottom:48px;
  }

  .woocommerce h1,
  .woocommerce-page h1{
    font-size:34px;
  }

  td.product-thumbnail img{
    width:72px;
    height:72px;
  }

  td.product-name a{
    font-size:17px;
  }

  .cart_totals{
    padding:18px;
    border-radius:22px;
  }

  .wc-proceed-to-checkout .checkout-button{
    min-height:54px;
    font-size:16px;
  }
}