/* Cart — OyunEtkinlik custom design (scoped to cart/checkout only) */

/* NOTE: cart is now rendered inside store shell; do not hide global chrome here. */

.oe-cart-page{
  --oe-cart-primary: #08aeb8;
  --oe-cart-primary-dark: #078b94;
  --oe-cart-orange: #ff8a1f;
  --oe-cart-bg: #f4fbfd;
  --oe-cart-card: #ffffff;
  --oe-cart-text: #10294a;
  --oe-cart-muted: #66788f;
  --oe-cart-border: #dcecf2;
  --oe-cart-soft-border: #e8f3f7;
  --oe-cart-green: #18a957;
  --oe-cart-red: #ff4d3d;
  --oe-cart-shadow: 0 18px 45px rgba(13, 45, 70, 0.08);
  --oe-cart-radius-xl: 26px;
  --oe-cart-radius-lg: 18px;
  --oe-cart-radius-md: 14px;
}

/* Sayfa */
body.woocommerce-cart .oe-cart-page,
body.woocommerce-checkout .oe-cart-page{
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(8, 174, 184, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fdff 0%, var(--oe-cart-bg) 100%);
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--oe-cart-text);
}

.oe-cart-page *{ box-sizing: border-box; }

.oe-cart-container{
  width: 100%;
  margin: 0;
}

/* Cart inside store content zone: use full available width */
body.woocommerce-cart .oe-store-content--cart,
body.woocommerce-cart .oe-cart-page,
body.woocommerce-cart .oe-cart-container,
body.woocommerce-cart .oe-cart-layout,
body.woocommerce-cart .oe-cart-items-card{
  min-width: 0;
}

body.woocommerce-cart .oe-cart-items-card{
  width: 100%;
  overflow: visible;
}

/* Başlık */
.oe-cart-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:34px;
}

.oe-cart-header h1{
  margin:0 0 12px;
  font-size: clamp(36px, 3.5vw, 44px);
  line-height:1.05;
  letter-spacing:-0.055em;
  color: var(--oe-cart-text);
}

.oe-cart-header p{
  margin:0;
  color: var(--oe-cart-muted);
  font-size:14px;
  line-height:1.6;
}

.oe-cart-back{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:0 22px;
  border:1px solid #cde7ee;
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  color: var(--oe-cart-text);
  text-decoration:none;
  font-weight:800;
  white-space:nowrap;
  box-shadow:0 8px 24px rgba(13,45,70,.04);
}

.oe-cart-back span{ color: var(--oe-cart-primary-dark); font-size:18px; }

/* Layout */
.oe-cart-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap:24px;
  align-items:start;
}

body.woocommerce-cart .oe-cart-summary{
  width: 300px;
  max-width: 300px;
  justify-self: end;
  align-self: start;
  position: sticky;
  top: 24px;
}

/* Sol Sepet Kartı */
.oe-cart-items-card{
  background: var(--oe-cart-card);
  border: 1px solid var(--oe-cart-border);
  border-radius: var(--oe-cart-radius-xl);
  box-shadow: var(--oe-cart-shadow);
  overflow:hidden;
}

/* Tablo Başlığı */
.oe-cart-table-head{
  display:grid;
  grid-template-columns: minmax(260px, 1fr) 86px 104px 100px 40px;
  gap:14px;
  padding:22px 26px 16px;
  border-bottom:1px solid var(--oe-cart-soft-border);
  color: var(--oe-cart-text);
  font-size:13px;
  font-weight:900;
}

/* Ürün Satırı */
.oe-cart-item{
  display:grid;
  grid-template-columns: minmax(260px, 1fr) 86px 104px 100px 40px;
  gap:14px;
  align-items:center;
  padding:22px 26px;
  border-bottom:1px solid var(--oe-cart-soft-border);
}

.oe-cart-product{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}

.oe-cart-product__image{
  flex: 0 0 82px;
  width:82px;
  height:82px;
  border-radius: 14px;
  background:#f7fbfc;
  border:1px solid var(--oe-cart-soft-border);
  display:grid;
  place-items:center;
  overflow:hidden;
  text-decoration:none;
}

.oe-cart-product__image img{ width:100%; height:100%; object-fit:cover; }
.oe-cart-product__info{ min-width:0; }

.oe-cart-product__title{
  display:inline-block;
  margin-bottom:6px;
  color: var(--oe-cart-text);
  text-decoration:none;
  font-size:14px;
  font-weight:900;
  line-height:1.25;
}

.oe-cart-product__category{
  display:block;
  margin-bottom:6px;
  color: var(--oe-cart-muted);
  font-size:11px;
  line-height:1.4;
}

.oe-cart-product__stock{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color: var(--oe-cart-green);
  font-size:11px;
  font-weight:800;
}

.oe-cart-product__stock::before{
  content:"✓";
  width:18px;
  height:18px;
  border:2px solid var(--oe-cart-green);
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  font-size:11px;
  line-height:1;
}

/* Fiyatlar */
.oe-cart-price,
.oe-cart-subtotal{
  color: var(--oe-cart-text);
  font-size:13px;
  font-weight:800;
}

/* Adet */
.oe-cart-qty{
  display:grid;
  grid-template-columns: 30px 38px 30px;
  height:34px;
  border:1px solid #d8eef4;
  border-radius:999px;
  overflow:hidden;
  background:#fff;
  align-items:center;
}

.oe-cart-qty__btn{
  border:0;
  background:transparent;
  color: var(--oe-cart-primary);
  cursor:pointer;
  font-size:14px;
  font-weight:900;
  height:100%;
}

.oe-cart-qty__btn:hover{ background:#edfbfc; }

.oe-cart-qty .quantity{
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
}

.oe-cart-qty input.qty{
  width: 42px;
  height: 100%;
  border:0;
  background:transparent;
  text-align:center;
  font-size:14px;
  font-weight:800;
  outline:none;
}

/* Sil */
.oe-cart-remove{
  width:32px;
  height:32px;
  border:1px solid #ffe2df;
  background:#fff4f2;
  color: var(--oe-cart-red);
  border-radius:50%;
  cursor:pointer;
  font-size:14px;
  display:grid;
  place-items:center;
  text-decoration:none;
}

.oe-cart-remove:hover{ background:#ffe9e6; }

/* Kupon Alanı */
.oe-cart-bottom{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  padding:20px 26px 24px;
  background: linear-gradient(180deg, #f6fcfe, #eff9fc);
}

.oe-cart-coupon{ flex:1; max-width:520px; }

.oe-cart-coupon label{
  display:block;
  margin-bottom:12px;
  color: var(--oe-cart-text);
  font-size:13px;
  font-weight:800;
}

.oe-cart-coupon__form{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap:14px;
}

.oe-cart-coupon__form input{
  height:46px;
  border:1px solid var(--oe-cart-border);
  border-radius:18px;
  background:#fff;
  padding:0 18px;
  color: var(--oe-cart-text);
  font-size:13px;
  outline:none;
}

.oe-cart-coupon__form input:focus{
  border-color: var(--oe-cart-primary);
  box-shadow: 0 0 0 4px rgba(8, 174, 184, 0.11);
}

.oe-cart-coupon__form button,
.oe-cart-update{
  height:46px;
  border-radius:14px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.oe-cart-coupon__form button{
  border:2px solid var(--oe-cart-primary);
  background:#fff;
  color: var(--oe-cart-primary-dark);
}

.oe-cart-update{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:170px;
  border:2px solid var(--oe-cart-primary);
  background:#fff;
  color: var(--oe-cart-primary-dark);
}

.oe-cart-update span{ font-size:21px; }

/* Sipariş Özeti */
.oe-cart-summary{
  position:sticky;
  top:32px;
  background: var(--oe-cart-card);
  border: 1px solid var(--oe-cart-border);
  border-radius: var(--oe-cart-radius-xl);
  box-shadow: var(--oe-cart-shadow);
  padding:24px;
}

.oe-cart-summary__head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:28px;
}

.oe-cart-summary__head span{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  color: var(--oe-cart-orange);
  border:2px solid #ffd3af;
  border-radius:10px;
  font-weight:900;
}

.oe-cart-summary h2{
  margin:0;
  color: var(--oe-cart-text);
  font-size:20px;
  letter-spacing:-0.02em;
}

.oe-cart-summary__rows{ display:grid; gap:0; }

.oe-cart-summary__row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
  border-bottom:1px solid var(--oe-cart-soft-border);
}

.oe-cart-summary__row span{ color: var(--oe-cart-text); font-size:14px; }
.oe-cart-summary__row strong{ color: var(--oe-cart-text); font-size:14px; font-weight:800; }
.oe-cart-summary__row .is-free{ color: var(--oe-cart-green); }
.oe-cart-summary__row .is-discount{ color: var(--oe-cart-red); }

/* Toplam */
.oe-cart-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 0;
}

.oe-cart-total span{
  display:block;
  color: var(--oe-cart-text);
  font-size:15px;
  font-weight:900;
  margin-bottom:8px;
}

.oe-cart-total small{ color: var(--oe-cart-muted); font-size:14px; }

.oe-cart-total strong{
  color: var(--oe-cart-primary);
  font-size:26px;
  font-weight:950;
  letter-spacing:-0.035em;
}

/* Özet Butonları */
.oe-cart-summary__actions{ display:grid; gap:16px; }

.oe-cart-checkout,
.oe-cart-continue{
  min-height:50px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  font-size:14px;
  font-weight:900;
}

.oe-cart-checkout{
  background: linear-gradient(135deg, var(--oe-cart-primary), #12c7d2);
  color:#fff;
  box-shadow: 0 18px 34px rgba(8, 174, 184, 0.25);
}

.oe-cart-checkout:hover{
  background: linear-gradient(135deg, var(--oe-cart-primary-dark), var(--oe-cart-primary));
}

.oe-cart-continue{
  border:2px solid var(--oe-cart-primary);
  background:#fff;
  color: var(--oe-cart-primary-dark);
}

/* Notices */
body.woocommerce-cart .woocommerce-notices-wrapper{
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 18px;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error{
  border-radius: 14px;
  font-size: 13px;
  padding: 12px 16px;
}

/* Responsive */
@media (max-width: 1100px){
  .oe-cart-layout{ grid-template-columns:1fr; }
  .oe-cart-summary{ position:static; }
  .oe-cart-table-head,
  .oe-cart-item{ grid-template-columns: minmax(280px, 1fr) 110px 130px 120px 56px; }
  .oe-cart-product__image{ flex-basis:112px; width:112px; height:112px; }
}

@media (max-width: 820px){
  body.woocommerce-cart .oe-cart-page{ padding: 28px 0 52px; }
  .oe-cart-container{ width: min(100% - 28px, 100%); }
  .oe-cart-header{ flex-direction:column; align-items:flex-start; }
  .oe-cart-header h1{ font-size:42px; }
  .oe-cart-table-head{ display:none; }
  .oe-cart-item{ grid-template-columns:1fr; gap:16px; padding:22px 18px; }
  .oe-cart-product{ align-items:flex-start; }
  .oe-cart-price::before{ content:"Fiyat: "; color: var(--oe-cart-muted); font-weight:700; }
  .oe-cart-subtotal::before{ content:"Ara Toplam: "; color: var(--oe-cart-muted); font-weight:700; }
  .oe-cart-remove{ justify-self:start; }
  .oe-cart-bottom{ flex-direction:column; align-items:stretch; padding:18px 18px; }
  .oe-cart-coupon{ max-width:none; }
  .oe-cart-update{ width:100%; }
}

@media (max-width: 520px){
  .oe-cart-product{ flex-direction:column; }
  .oe-cart-product__image{ width:100%; height:190px; flex-basis:auto; }
  .oe-cart-coupon__form{ grid-template-columns:1fr; }
  .oe-cart-total{ align-items:flex-start; flex-direction:column; }
}

