/* Saeedi Gold Custom Checkout — Tiffany Blue Theme */
body.sgc-body{background:#F5F8F9;margin:0;padding:0;font-family:'Vazirmatn','IRANSans','Tahoma',system-ui,sans-serif;color:var(--sgc-text)}
:root{
  --sgc-accent:#0ABAB5;
  --sgc-dark:#0E7C7A;
  --sgc-bg:#FFFFFF;
  --sgc-text:#0E2A33;
  --sgc-radius:14px;
  --sgc-shadow:0 10px 30px rgba(14,124,122,.12);
  --sgc-shadow-strong:0 20px 60px rgba(14,124,122,.18);
  --sgc-muted:#6B7C82;
  --sgc-border:rgba(14,124,122,.12);
}

*{box-sizing:border-box}
html,body{font-family: 'Vazirmatn','IRANSans','Tahoma',system-ui,sans-serif;color:var(--sgc-text);background:#F5F8F9;margin:0}
.sgc-page{min-height:100vh;padding:32px 0 120px;background:
  radial-gradient(1200px 600px at 80% -10%, rgba(10,186,181,.10), transparent 60%),
  radial-gradient(1000px 500px at -10% 110%, rgba(10,186,181,.08), transparent 60%),
  #F5F8F9;
}
.sgc-container{max-width:1180px;margin:0 auto;padding:0 20px}
.sgc-head{display:flex;align-items:center;justify-content:center;margin-bottom:28px;gap:16px;flex-wrap:wrap;position:relative}
.sgc-head .sgc-steps{position:absolute;left:0;top:50%;transform:translateY(-50%)}
.sgc-logo{font-weight:900;font-size:22px;color:var(--sgc-dark);text-decoration:none;letter-spacing:1.2px;text-align:center;text-transform:uppercase;font-family:'Times New Roman',Georgia,serif}
.sgc-steps{display:flex;gap:8px;background:#fff;padding:6px;border-radius:999px;box-shadow:var(--sgc-shadow)}
.sgc-step{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;color:var(--sgc-muted);font-size:14px}
.sgc-step span{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;border-radius:50%;background:#E8F4F4;color:var(--sgc-dark);font-size:12px;font-weight:700}
.sgc-step.is-active{background:linear-gradient(135deg,var(--sgc-accent),var(--sgc-dark));color:#fff}
.sgc-step.is-active span{background:rgba(255,255,255,.25);color:#fff}
.sgc-step.is-done{color:var(--sgc-dark)}
.sgc-step.is-done span{background:var(--sgc-accent);color:#fff}

.sgc-grid{display:grid;grid-template-columns:1fr 380px;gap:24px}
@media (max-width: 900px){ .sgc-grid{grid-template-columns:1fr} }

.sgc-card{background:var(--sgc-bg);border-radius:var(--sgc-radius);box-shadow:var(--sgc-shadow);padding:28px;position:relative;overflow:hidden}
.sgc-card::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,var(--sgc-accent),var(--sgc-dark));opacity:.85}
.sgc-title{font-size:24px;margin:0 0 6px;color:var(--sgc-dark);font-weight:800}
.sgc-sub{color:var(--sgc-muted);margin:0 0 22px;font-size:14px}

.sgc-cart-list{display:flex;flex-direction:column;gap:14px;margin-top:14px}
.sgc-cart-item{display:grid;grid-template-columns:84px 1fr auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--sgc-border);border-radius:12px;background:#FAFCFC}
.sgc-cart-item__img{width:84px;height:84px;border-radius:10px;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center}
.sgc-cart-item__img img{width:100%;height:100%;object-fit:cover}
.sgc-cart-item__title{font-weight:700;color:var(--sgc-text);text-decoration:none;display:block;margin-bottom:4px}
.sgc-cart-item__title:hover{color:var(--sgc-dark)}
.sgc-cart-item__price{color:var(--sgc-muted);font-size:13px}
.sgc-cart-item__qty{display:flex;align-items:center;gap:6px;margin-top:8px;flex-wrap:wrap}
.sgc-qty{width:34px !important;height:34px !important;min-width:34px;border:1.5px solid var(--sgc-border);background:#fff;border-radius:10px;cursor:pointer;color:var(--sgc-dark);font-size:20px !important;line-height:1 !important;display:inline-flex;align-items:center;justify-content:center;padding:0 !important;margin:0 !important;font-family:inherit}
.sgc-qty:hover{background:#E8F4F4}
.sgc-qty-input{width:60px !important;height:34px !important;min-width:60px;text-align:center;border:1.5px solid var(--sgc-border);border-radius:10px;background:#fff !important;color:var(--sgc-text) !important;font-size:16px !important;font-weight:700;padding:0 6px !important;margin:0 !important;box-shadow:none !important;-moz-appearance:textfield;appearance:textfield;font-family:inherit}
.sgc-qty-input::-webkit-outer-spin-button,.sgc-qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.sgc-cart-item__remove{margin-right:auto;background:none;border:0;color:#C0392B;font-size:13px;cursor:pointer;text-decoration:none;padding:6px 8px;border-radius:8px;font-family:inherit}
.sgc-cart-item__remove:hover{background:#FDECEE}
.sgc-cart-item__total{font-weight:800;color:var(--sgc-dark)}
.sgc-cart-actions{margin-top:18px;display:flex;justify-content:space-between;gap:10px}

.sgc-summary{position:sticky;top:20px;height:fit-content}
.sgc-summary__title{font-size:18px;margin:0 0 14px;color:var(--sgc-dark);font-weight:800}
.sgc-summary__items{display:flex;flex-direction:column;gap:10px;max-height:280px;overflow:auto;padding-bottom:14px;border-bottom:1px dashed var(--sgc-border);margin-bottom:14px}
.sgc-summary__item{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center}
.sgc-summary__thumb{width:48px;height:48px;border-radius:8px;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center;border:1px solid var(--sgc-border)}
.sgc-summary__thumb img{width:100%;height:100%;object-fit:cover}
.sgc-summary__name{font-size:14px;font-weight:600;color:var(--sgc-text);line-height:1.4}
.sgc-summary__meta{font-size:12px;color:var(--sgc-muted)}
.sgc-summary__price{font-size:13px;font-weight:700;color:var(--sgc-dark)}
.sgc-summary__list{list-style:none;margin:0;padding:0}
.sgc-summary__list li{display:flex;justify-content:space-between;padding:8px 0;color:var(--sgc-muted);font-size:14px}
.sgc-summary__total{display:flex;justify-content:space-between;font-weight:800;color:var(--sgc-dark);font-size:18px;padding:14px 0;border-top:1px solid var(--sgc-border);margin-top:6px}

.sgc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:12px;font-weight:700;font-size:15px;cursor:pointer;border:0;text-decoration:none;transition:transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;line-height:1}
.sgc-btn--primary{background:linear-gradient(135deg,var(--sgc-accent),var(--sgc-dark));color:#fff;box-shadow:0 8px 20px rgba(10,186,181,.30)}
.sgc-btn--primary:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(10,186,181,.38)}
.sgc-btn--ghost{background:#fff;color:var(--sgc-dark);border:1px solid var(--sgc-border)}
.sgc-btn--ghost:hover{background:#E8F4F4}
.sgc-btn--block{width:100%}
.sgc-btn--xl{padding:16px 22px;font-size:17px;border-radius:14px;margin-top:18px}

.sgc-form{display:grid;gap:14px;margin-top:10px}
.sgc-field{display:flex;flex-direction:column;gap:6px}
.sgc-field label{font-size:14px;color:var(--sgc-text);font-weight:600}
.sgc-req{color:#D7263D;margin-right:2px}
.sgc-field input,.sgc-field textarea{
  width:100%;padding:13px 14px;border:1.5px solid var(--sgc-border);border-radius:12px;
  font-family:inherit;font-size:15px;color:var(--sgc-text);background:#fff;transition:border-color .15s ease, box-shadow .15s ease;
  outline:0;
}
.sgc-field input:focus,.sgc-field textarea:focus{border-color:var(--sgc-accent);box-shadow:0 0 0 4px rgba(10,186,181,.15)}
.sgc-field--textarea textarea{min-height:90px;resize:vertical}
.sgc-field input::placeholder,.sgc-field textarea::placeholder{color:#9AB1B6}

.sgc-notice{padding:12px 14px;border-radius:12px;font-size:14px;line-height:1.7}
.sgc-notice--info{background:#E8F8F8;border:1px solid #B8E5E4;color:var(--sgc-dark)}
.sgc-notice--error{background:#FDECEE;border:1px solid #F4B5BB;color:#9B1B30}

.sgc-empty{background:#fff;border-radius:var(--sgc-radius);box-shadow:var(--sgc-shadow);padding:60px 24px;text-align:center}
.sgc-empty__icon{font-size:64px;margin-bottom:12px}
.sgc-empty h2{color:var(--sgc-dark);margin:0 0 8px}
.sgc-empty p{color:var(--sgc-muted);margin:0 0 18px}

.sgc-thanks{background:#fff;border-radius:var(--sgc-radius);box-shadow:var(--sgc-shadow-strong);padding:60px 24px;text-align:center;color:var(--sgc-dark)}
.sgc-thanks__icon{color:var(--sgc-accent);margin-bottom:14px}
.sgc-thanks h1{margin:0 0 8px;font-size:26px}
.sgc-thanks p{color:var(--sgc-muted);margin:6px 0}
.sgc-thanks .sgc-btn{margin-top:18px}

/* Sticky bar — JS-controlled, never touched by WooCommerce fragment refresh. */
.sgc-sticky{position:fixed;left:16px;right:16px;bottom:16px;z-index:9990;pointer-events:none;opacity:0;transform:translateY(20px);transition:opacity .25s ease, transform .25s ease}
.sgc-sticky[data-sgc-active="1"]{opacity:1;transform:translateY(0);pointer-events:auto}
.sgc-sticky__inner{max-width:680px;margin:0 auto;background:linear-gradient(135deg,#fff,#FBFEFF);border:1px solid var(--sgc-border);box-shadow:var(--sgc-shadow-strong);border-radius:18px;padding:10px 12px 10px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.sgc-sticky__left{display:flex;align-items:center;gap:12px;min-width:0}
.sgc-sticky__icon{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--sgc-accent),var(--sgc-dark));color:#fff;flex:0 0 auto}
.sgc-sticky__meta{min-width:0}
.sgc-sticky__title{font-weight:700;color:var(--sgc-text);font-size:14px;line-height:1.2}
.sgc-sticky__sum{color:var(--sgc-dark);font-weight:800;font-size:13px}
.sgc-sticky__btn{background:linear-gradient(135deg,var(--sgc-accent),var(--sgc-dark));color:#fff;text-decoration:none;padding:10px 16px;border-radius:12px;font-weight:800;font-size:14px;box-shadow:0 6px 16px rgba(10,186,181,.30);white-space:nowrap}
.sgc-sticky__btn:hover{transform:translateY(-1px)}

@media (max-width: 600px){
  .sgc-sticky__inner{padding:8px 10px 8px 12px;border-radius:14px}
  .sgc-sticky__title{font-size:13px}
  .sgc-sticky__sum{font-size:12px}
  .sgc-sticky__btn{padding:8px 12px;font-size:13px}
  .sgc-sticky__icon{width:38px;height:38px}
  .sgc-cart-item{grid-template-columns:64px 1fr;grid-template-areas:"img body" "total total";row-gap:8px}
  .sgc-cart-item__img{width:64px;height:64px;grid-area:img}
  .sgc-cart-item__body{grid-area:body;min-width:0}
  .sgc-cart-item__total{grid-area:total;text-align:left;padding-top:6px;border-top:1px dashed var(--sgc-border)}
  .sgc-cart-item__qty{gap:4px}
  .sgc-qty{width:32px !important;height:32px !important;min-width:32px;font-size:18px !important}
  .sgc-qty-input{width:50px !important;height:32px !important;min-width:50px;font-size:15px !important}
}
@media (prefers-reduced-motion: reduce){
  *{transition:none !important;animation:none !important}
}
