:root{
  --cpc-accent:#5b5bf7;
  --cpc-accent2:#14b8a6;
  --cpc-ink:#171827;
  --cpc-muted:#6b6f80;
  --cpc-line:#e5e7f0;
  --cpc-bg:#f7f8fc;
  --cpc-card:#fff;
  --cpc-shadow:0 22px 65px rgba(43,46,86,.09);
}

/* Theme page-width overrides */
body.woocommerce-cart .cp-content-shell,
body.woocommerce-checkout .cp-content-shell{
  padding:50px 0 84px!important;
}
body.woocommerce-cart .cp-content-shell .cp-entry,
body.woocommerce-checkout .cp-content-shell .cp-entry{
  max-width:none!important;
  width:100%!important;
}
body.woocommerce-cart .cp-content-shell .cp-entry>h1,
body.woocommerce-checkout .cp-content-shell .cp-entry>h1{
  font-size:clamp(44px,5.4vw,68px)!important;
  letter-spacing:-.055em!important;
  margin:0 0 38px!important;
  color:var(--cpc-ink)!important;
}

/* =========================
   CART
   ========================= */
body.woocommerce-cart .woocommerce{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(330px,.55fr);
  gap:42px;
  align-items:start;
}

body.woocommerce-cart .woocommerce-notices-wrapper{
  grid-column:1/-1;
}

body.woocommerce-cart form.woocommerce-cart-form{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
}

body.woocommerce-cart table.shop_table.cart{
  margin:0!important;
  border:1px solid var(--cpc-line)!important;
  border-radius:24px!important;
  background:#fff;
  overflow:hidden;
  box-shadow:0 12px 38px rgba(43,46,86,.045);
}

body.woocommerce-cart table.shop_table.cart thead th{
  padding:16px 18px!important;
  background:#fafbfe;
  color:#7a7d8f;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.07em;
}

body.woocommerce-cart table.shop_table.cart td{
  padding:20px 18px!important;
  vertical-align:top!important;
  border-top:1px solid #eceef4!important;
}

body.woocommerce-cart table.cart img{
  width:96px!important;
  height:72px!important;
  object-fit:cover!important;
  border-radius:14px!important;
  background:#f2f4fa;
}

body.woocommerce-cart td.product-name a{
  color:var(--cpc-ink)!important;
  font-weight:820!important;
  font-size:15px!important;
}
body.woocommerce-cart td.product-name>p{
  color:var(--cpc-muted)!important;
  font-size:12px!important;
}

body.woocommerce-cart dl.variation{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  margin:10px 0 0!important;
}
body.woocommerce-cart dl.variation dt,
body.woocommerce-cart dl.variation dd{
  float:none!important;
  clear:none!important;
  margin:0!important;
  padding:5px 8px!important;
  background:#f2f3fa!important;
  border-radius:999px!important;
  color:#64687a!important;
  font-size:10px!important;
  line-height:1.2!important;
}
body.woocommerce-cart dl.variation dt{font-weight:800!important}

body.woocommerce-cart .quantity .qty{
  width:78px!important;
  min-height:42px!important;
  border:1px solid #dfe2ec!important;
  border-radius:999px!important;
  background:#fff!important;
}

body.woocommerce-cart .actions{
  background:#fff!important;
}
body.woocommerce-cart .coupon{
  display:flex!important;
  gap:8px!important;
}
body.woocommerce-cart .coupon input{
  min-height:44px!important;
  border-radius:999px!important;
  border:1px solid #dfe2ec!important;
  padding:0 15px!important;
}

body.woocommerce-cart .cart-collaterals{
  width:100%!important;
  margin:0!important;
}
body.woocommerce-cart .cart-collaterals .cart_totals{
  float:none!important;
  width:100%!important;
  position:sticky;
  top:112px;
  background:#fff!important;
  border:1px solid var(--cpc-line)!important;
  border-radius:24px!important;
  padding:26px!important;
  box-shadow:var(--cpc-shadow)!important;
}
body.woocommerce-cart .cart_totals h2{
  margin:0 0 14px!important;
  font-size:20px!important;
  letter-spacing:-.025em!important;
}
body.woocommerce-cart .cart_totals table{
  margin:0!important;
}
body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td{
  padding:13px 0!important;
  border-color:#eceef4!important;
  font-size:13px!important;
}
body.woocommerce-cart .cart_totals td{text-align:right!important}
body.woocommerce-cart .order-total th,
body.woocommerce-cart .order-total td{
  font-size:20px!important;
  color:var(--cpc-ink)!important;
  padding-top:18px!important;
}
body.woocommerce-cart .wc-proceed-to-checkout{
  padding:16px 0 0!important;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  width:100%!important;
  min-height:56px!important;
  margin:0!important;
  border:0!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#5b5bf7,#696af2)!important;
  color:#fff!important;
  font-weight:850!important;
  box-shadow:0 12px 28px rgba(91,91,247,.22)!important;
}

/* =========================
   CHECKOUT
   ========================= */
body.woocommerce-checkout .woocommerce{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

body.woocommerce-checkout form.checkout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 420px!important;
  grid-template-areas:
    "customer heading"
    "customer review"!important;
  grid-template-rows:auto auto!important;
  column-gap:42px!important;
  row-gap:0!important;
  align-items:start!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
}

body.woocommerce-checkout #customer_details{
  grid-area:customer!important;
  width:100%!important;
  min-width:0!important;
}
body.woocommerce-checkout #order_review_heading{
  grid-area:heading!important;
  width:100%!important;
  margin:0!important;
  padding:25px 26px 12px!important;
  background:#fff!important;
  border:1px solid var(--cpc-line)!important;
  border-bottom:0!important;
  border-radius:24px 24px 0 0!important;
  font-size:20px!important;
  letter-spacing:-.025em!important;
}
body.woocommerce-checkout #order_review{
  grid-area:review!important;
  width:100%!important;
  min-width:0!important;
  position:sticky!important;
  top:112px!important;
  margin:0!important;
  padding:0 26px 26px!important;
  background:#fff!important;
  border:1px solid var(--cpc-line)!important;
  border-top:0!important;
  border-radius:0 0 24px 24px!important;
  box-shadow:var(--cpc-shadow)!important;
}

body.woocommerce-checkout .col2-set{
  width:100%!important;
  margin:0!important;
}
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2{
  float:none!important;
  width:100%!important;
}

body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields{
  width:100%!important;
  margin:0 0 18px!important;
  padding:28px!important;
  background:#fff!important;
  border:1px solid var(--cpc-line)!important;
  border-radius:24px!important;
  box-shadow:0 12px 38px rgba(43,46,86,.045)!important;
}

body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3{
  margin:0 0 22px!important;
  font-size:22px!important;
  letter-spacing:-.03em!important;
  color:var(--cpc-ink)!important;
}

body.woocommerce-checkout .form-row{
  margin:0 0 16px!important;
}
body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last{
  width:calc(50% - 7px)!important;
}
body.woocommerce-checkout .form-row-first{float:left!important}
body.woocommerce-checkout .form-row-last{float:right!important}

body.woocommerce-checkout label{
  display:block!important;
  margin-bottom:7px!important;
  color:#424657!important;
  font-size:13px!important;
  font-weight:760!important;
}
body.woocommerce-checkout .required{color:var(--cpc-accent)!important}

body.woocommerce-checkout input.input-text,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select,
body.woocommerce-checkout .select2-container .select2-selection--single{
  width:100%!important;
  min-height:50px!important;
  border:1px solid #dfe2ec!important;
  border-radius:13px!important;
  background:#fafbfe!important;
  color:var(--cpc-ink)!important;
  padding:0 14px!important;
  box-shadow:none!important;
  outline:none!important;
}
body.woocommerce-checkout textarea{
  min-height:110px!important;
  padding:13px 14px!important;
}
body.woocommerce-checkout .select2-container .select2-selection--single{
  display:flex!important;
  align-items:center!important;
}

body.woocommerce-checkout input.input-text:focus,
body.woocommerce-checkout textarea:focus,
body.woocommerce-checkout select:focus{
  background:#fff!important;
  border-color:#b9baff!important;
  box-shadow:0 0 0 4px rgba(91,91,247,.09)!important;
}

.cp-hidden-postcode,
#billing_postcode_field,
#shipping_postcode_field{display:none!important}

.cp-account-note{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin:0 0 18px;
  padding:15px 17px;
  border:1px solid #d9eee8;
  background:#effaf7;
  border-radius:16px;
  color:#2f675d;
}
.cp-account-note-icon{
  width:26px;height:26px;display:grid;place-items:center;flex:0 0 auto;
  border-radius:50%;background:#14b8a6;color:#fff;font-weight:900;
}
.cp-account-note strong{display:block;color:#245d53;font-size:13px}
.cp-account-note small{display:block;margin-top:2px;font-size:11px;line-height:1.45}

body.woocommerce-checkout .woocommerce-checkout-review-order-table{
  margin:0!important;
  border:0!important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td{
  padding:13px 0!important;
  border-color:#eceef4!important;
  font-size:12px!important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name{
  padding-right:16px!important;
  font-weight:800!important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td{
  text-align:right!important;
  font-weight:800!important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td{
  padding-top:18px!important;
  font-size:19px!important;
  color:var(--cpc-ink)!important;
}

body.woocommerce-checkout dl.variation{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  margin:8px 0 0!important;
}
body.woocommerce-checkout dl.variation dt,
body.woocommerce-checkout dl.variation dd{
  float:none!important;
  clear:none!important;
  margin:0!important;
  padding:4px 6px!important;
  background:#f2f3fa!important;
  border-radius:999px!important;
  color:#666a7b!important;
  font-size:9px!important;
  line-height:1.2!important;
}
body.woocommerce-checkout dl.variation dt{font-weight:800!important}

/* Payment */
body.woocommerce-checkout #payment{
  margin-top:18px!important;
  border:1px solid #e1e4ee!important;
  border-radius:18px!important;
  background:#f8f9fd!important;
}
body.woocommerce-checkout #payment ul.payment_methods{
  padding:16px!important;
  border-bottom:1px solid #e5e7ef!important;
}
body.woocommerce-checkout #payment li.wc_payment_method{
  margin:0!important;
  padding:13px 14px!important;
  background:#fff!important;
  border:1px solid #dde0ea!important;
  border-radius:14px!important;
}
body.woocommerce-checkout #payment .payment_box{
  margin:9px 0 0!important;
  padding:11px!important;
  background:#f7f8fc!important;
  border-radius:10px!important;
  color:#66697a!important;
}
body.woocommerce-checkout #payment .payment_box:before{display:none!important}
body.woocommerce-checkout #payment .place-order{padding:16px!important}

body.woocommerce-checkout #place_order{
  width:100%!important;
  min-height:56px!important;
  border:0!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#5b5bf7,#696af2)!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:850!important;
  box-shadow:0 12px 28px rgba(91,91,247,.22)!important;
}

body.woocommerce-checkout .woocommerce-account-fields{display:none!important}

/* Notices */
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info{
  border:1px solid #e3e5ef!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(43,46,86,.04)!important;
}

@media(max-width:980px){
  body.woocommerce-cart .woocommerce{
    grid-template-columns:1fr!important;
  }
  body.woocommerce-cart .cart-collaterals .cart_totals{
    position:relative!important;
    top:auto!important;
  }

  body.woocommerce-checkout form.checkout{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "customer"
      "heading"
      "review"!important;
    row-gap:0!important;
  }
  body.woocommerce-checkout #order_review{
    position:relative!important;
    top:auto!important;
  }
}

@media(max-width:620px){
  body.woocommerce-cart .cp-content-shell,
  body.woocommerce-checkout .cp-content-shell{
    padding-top:32px!important;
  }
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last{
    width:100%!important;
    float:none!important;
  }
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout .woocommerce-additional-fields{
    padding:20px!important;
    border-radius:20px!important;
  }
  body.woocommerce-checkout #order_review_heading{
    padding:22px 20px 10px!important;
  }
  body.woocommerce-checkout #order_review{
    padding:0 20px 20px!important;
  }
  body.woocommerce-cart table.shop_table.cart td,
  body.woocommerce-cart table.shop_table.cart th{
    padding:14px 12px!important;
  }
}


/* PayTR brand in classic WooCommerce checkout */
body.woocommerce-checkout #payment .payment_method_paytr_payment_gateway > label{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  cursor:pointer!important;
}
body.woocommerce-checkout .cp-paytr-brand{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-left:auto!important;
}
body.woocommerce-checkout .cp-paytr-logo{
  display:block!important;
  width:auto!important;
  height:24px!important;
  max-width:96px!important;
  object-fit:contain!important;
}
body.woocommerce-checkout .cp-paytr-secure{
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:#effaf7!important;
  color:#2d6b60!important;
  font-size:10px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
@media(max-width:520px){
  body.woocommerce-checkout .cp-paytr-brand{
    width:100%!important;
    margin:8px 0 0 24px!important;
  }
}


/* Address structure 1.1.2 */
body.woocommerce-checkout .cp-neighborhood-field,
body.woocommerce-checkout .cp-phone-field,
body.woocommerce-checkout .cp-email-field{
  clear:both!important;
}
body.woocommerce-checkout #billing_country_field,
body.woocommerce-checkout #shipping_country_field{
  width:100%!important;
  float:none!important;
}


/* Cascading district + neighborhood selects 1.1.3 */
body.woocommerce-checkout .cp-district-select,
body.woocommerce-checkout .cp-neighborhood-select{
  cursor:pointer!important;
}
body.woocommerce-checkout .cp-district-select:disabled,
body.woocommerce-checkout .cp-neighborhood-select:disabled{
  opacity:.72!important;
  cursor:wait!important;
}
body.woocommerce-checkout .cp-neighborhood-field{
  clear:both!important;
  width:100%!important;
}


/* 1.1.5 phone field: required + tighter spacing */
body.woocommerce-checkout #billing_phone_field{
  margin-bottom:8px!important;
  padding-bottom:0!important;
}
body.woocommerce-checkout #billing_phone_field .optional{
  display:none!important;
}
body.woocommerce-checkout #billing_phone_field + .form-row{
  margin-top:0!important;
}
body.woocommerce-checkout #billing_phone_field label{
  margin-bottom:6px!important;
}
body.woocommerce-checkout #billing_phone_field .required{
  display:inline!important;
  color:#5b5bf7!important;
}

/* Cascading address selectors */
body.woocommerce-checkout .cp-district-select,
body.woocommerce-checkout .cp-neighborhood-select{
  cursor:pointer!important;
}
body.woocommerce-checkout .cp-district-select:disabled,
body.woocommerce-checkout .cp-neighborhood-select:disabled{
  opacity:.72!important;
  cursor:wait!important;
}


/* 1.1.6 - Bina/Daire etiketi görünür, telefon sırası ve boşluğu düzeltildi */
body.woocommerce-checkout #billing_address_2_field label,
body.woocommerce-checkout #shipping_address_2_field label{
  position:static!important;
  width:auto!important;
  height:auto!important;
  margin:0 0 7px!important;
  padding:0!important;
  clip:auto!important;
  clip-path:none!important;
  overflow:visible!important;
  white-space:normal!important;
  display:block!important;
}
body.woocommerce-checkout #billing_phone_field{
  margin-top:0!important;
  margin-bottom:10px!important;
}
