* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #222;
}

/* Navbar */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
height: 120px;   /* 28px o‘rniga kattaroq qildik */
  width: auto; 
}

@media (min-width: 1024px) {
  .logo img {
    height: 150px;  /* logoni kattaroq qilamiz */
  }
}


.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: #222;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links {
  display: none;
}



.nav-links a:hover {
  color: #666;
}

.nav-icons {
  display: flex;
  gap: 30px;
}
.nav-icons img {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* Responsive: telefon */
@media (min-width: 1024px) {
  .nav-icons img {
    width: 40px;   /* biroz kattaroq */
    height: 40px;
  }

  .nav-icons {
    gap: 28px;     /* ikonalar orasidagi masofani kengaytirdik */
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 24px;
  }
}

:root{
  --ann-h: 45px;
  --ann-max: 1200px;
  --ann-btn-col: 36px;   /* default (mobil/planshet) – katta hit-area */
}/* ann-max = markaziy kenglik */

/* Bar — tugmalar matn oynasiga yaqin bo‘lsin */

.ann-bar{
  position: sticky; top:0; z-index:1100;
  height: var(--ann-h);
  background: #0f0f10; color:#fff; border-bottom:1px solid #111;
  display: flex; justify-content: center; align-items: center;
}

.ann-inner{
  width: min(var(--ann-max), 100%);
  padding: 0 12px;
  display: grid;
  grid-template-columns: var(--ann-btn-col) 1fr var(--ann-btn-col);
  align-items: center;
  gap: 8px;
}

/* markaziy oyna va trek */
.ann-viewport{ overflow: hidden; }
.ann-track{
  display: flex; align-items: center; gap: 0;
  transition: transform .35s ease; will-change: transform;
}
.ann-item{
  min-width: 100%; text-align: center; white-space: nowrap;
  font-size: 14px; letter-spacing: .02em; line-height: 1;
}

/* tugmalar — o‘z ustunida markazda */
.ann-btn{
  justify-self: center;
  display: inline-grid; place-items: center;
  width: var(--ann-btn-col);
  height: var(--ann-btn-col);
  background: transparent; border: 0; color: #bbb; cursor: pointer;
  font-size: 18px; line-height: 1;
  
}
.ann-btn:hover{ color:#fefefe; }

/* yopish tugmasi */


/* Mobil ixcham */
@media (max-width: 768px){
  :root{ --ann-h: 44px; --ann-btn-col: 32px; } /* mobil uchun 32px hit-area */
  .ann-inner{ padding: 0 8px; }
  .ann-item{ font-size: 13px; }
}

@media (min-width: 1024px){
  :root{ --ann-btn-col: 24px; }   /* kerak bo'lsa 24px qilib ham ko‘rish mumkin */
}

/* Navbar bar ostidan boshlansin */
.navbar{ position: sticky; top: var(--ann-h); z-index: 1000; }

/* ==== Layout ==== */
.container{width:min(1100px,92%);margin:0 auto}
.chk-title{font-size:24px;margin:18px 0}
.chk-grid{display:grid;grid-template-columns:1fr 420px;gap:24px}
.card{background:#fff;border:1px solid #e9e6df;border-radius:14px;padding:18px}
.blk-title{font-size:18px;margin-bottom:10px}

/* Form */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.input,.select,.textarea{
  width:100%;border:1px solid #cfcfcf;border-radius:12px;background:#fff;
  padding:12px 12px; font:inherit
}
.textarea{min-height:96px;resize:vertical}

/* Summary */
.sum-row{display:flex;gap:12px;align-items:center}
.sum-img{width:84px;height:84px;border-radius:12px;object-fit:cover;border:1px solid #eee;background:#fff}
.sum-meta{flex:1}
.muted{color:#6b6b6b}
.line{height:1px;background:#e9e6df;margin:12px 0}
.row{display:flex;justify-content:space-between;margin:8px 0}
.tot{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:18px}

/* Buttons (sening style’ingga mos) */
.btn-solid{background:#111;color:#fff;border:0;border-radius:12px;padding:14px 16px;font-weight:700;cursor:pointer}
.btn-solid.full{width:100%;margin-top:10px}
.btn-ghost{display:inline-block;text-align:center;border:1.6px solid #111;border-radius:12px;padding:12px 16px;font-weight:600}
.btn-ghost.full{width:100%;margin-top:10px}
.btn-solid:hover{filter:brightness(1.05)}
.btn-ghost:hover{background:#111;color:#fff}

/* Responsive */
@media (max-width: 980px){
  .chk-grid{grid-template-columns:1fr}
}

/* karta blokini yashirish uchun */
.card-fields.hidden { display: none; }

/* ikki ustunli qator (MM/YY + CVC kabi) */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ixtiyoriy: inputlar bir xil bo‘lsin */
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font: inherit;
}
.field span { display:block; margin-bottom:6px; color:#444; font-weight:600; }


@media (max-width: 768px){
  .chk-grid{
    display: flex;            /* grid o‘rniga ustun qilib teramiz */
    flex-direction: column;
    gap: 16px;
  }
  .chk-right{ order: 1; }     /* Buyurtma xulosasi */
  .chk-left { order: 2; }     /* Yetkazib berish ma’lumotlari */
}
/* Qty control */
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid #ddd; border-radius: 10px; overflow: hidden;
  height: 36px; background: #fff;
}
.qty-btn {
  width: 36px; height: 36px; border: 0; background: #f6f6f6;
  font-size: 18px; cursor: pointer; line-height: 1;
}
.qty-num {
  width: 54px; text-align: center; border: 0; background: #fff;
  font-weight: 700;
}
.qty-btn:disabled { opacity: .4; cursor: default; }

.hidden{ display:none !important; }





.app-pay{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(110px,1fr));
  gap: 10px;
  margin-top: 10px;
}
.app-tile{
  display:grid; place-items:center;
  height: 56px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background:#fff;
  transition: border-color .2s, box-shadow .2s, transform .06s;
}
.app-tile:hover{ border-color:#111; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.app-tile:active{ transform: scale(.98); }
.app-tile img{ width: 72px; height: 24px; object-fit:contain; display:block; }
.order-card{border:1px solid #eee;border-radius:14px;padding:16px 16px 18px;background:#fff}
.order-title{font-size:18px;font-weight:800;margin:0 0 12px}
.order-item{display:flex;gap:12px;align-items:flex-start}
.order-thumb{width:84px;height:84px;border-radius:10px;object-fit:cover;border:1px solid #eee}
.order-info{flex:1;min-width:0}
.order-name{font-weight:800}
.order-attrs{color:#666;font-size:14px;margin:2px 0 8px}
.order-row{display:flex;align-items:center;gap:10px}
.qty{display:inline-flex;align-items:center;border:1px solid #ddd;border-radius:10px;overflow:hidden}
.qty-btn{width:34px;height:34px;border:0;background:#f7f7f7;cursor:pointer;font-size:18px}
.qty-input{width:44px;text-align:center;border:0;height:34px;outline:none}
.order-price{margin-left:auto;font-weight:800;white-space:nowrap}
.item-remove{border:0;background:#fff;width:34px;height:34px;line-height:34px;border-radius:10px;cursor:pointer}
.item-remove:hover{background:#f5f5f5}
.order-sep{border:0;border-top:1px solid #eee;margin:14px 0}
.order-totals .row{display:flex;justify-content:space-between;margin:6px 0}
.order-totals .total dt,.order-totals .total dd{font-weight:800}
.order-edit{display:block;text-align:center;margin-top:12px;padding:12px;border:1px solid #ddd;border-radius:12px;text-decoration:none;font-weight:700}
.order-edit:hover{border-color:#111}
@media (max-width:480px){
  .order-thumb{width:72px;height:72px}
  .order-price{font-size:15px}
}
/* Xulosa ichida mahsulot kartalari konteyneri */
.sum-items{
  display: grid;
  grid-auto-flow: column;           /* mobil: yonma-yon */
  grid-auto-columns: minmax(200px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
}

.sum-items > .order-item{
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px;
  min-width: 200px;                 /* yonma-yon kartaning eni */
  scroll-snap-align: start;
}

.order-item .sum-img{
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
}

.order-item .price-col{
  text-align: right;
  display: grid; gap: 6px; align-content: center;
}

.order-item .qty{ display:flex; align-items:center; gap:6px; }
.order-item .qty-btn{ width:28px; height:28px; border:1px solid #ddd; border-radius:6px; background:#fafafa; }

.item-remove{ background:none; border:none; cursor:pointer; font-size:18px; line-height:1; }

/* Katta ekranlarda kartalarni ustma-ust joylash */
@media (min-width: 992px){
  .sum-items{
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .sum-items > .order-item{ min-width: 0; }
}
.sum-row{
  display: grid;
  grid-auto-flow: column;          /* mobil: yonma-yon */
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
}
.sum-row .order-item{
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  min-width: 220px;
  scroll-snap-align: start;
}
.sum-row .sum-img{ width:64px; height:64px; object-fit:cover; border-radius:8px; }
.sum-row .qty{ display:flex; align-items:center; gap:6px; }
.sum-row .qty-btn{ width:28px; height:28px; border:1px solid #ddd; border-radius:6px; background:#fafafa; }
.sum-row .price-col{ text-align:right; display:grid; gap:6px; align-content:center; }
.sum-row .item-remove{ background:none; border:none; cursor:pointer; font-size:18px; line-height:1; }

@media (min-width: 992px){
  .sum-row{
    grid-auto-flow: row;           /* desktop: ustma-ust */
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .sum-row .order-item{ min-width: 0; }
}
@media (max-width: 680px){
  .sum-row{
    display: grid;
    grid-auto-flow: row;          /* yonma-yon emas */
    grid-auto-columns: unset;
    grid-template-columns: 1fr;   /* bitta ustun */
    gap: 12px;
    overflow: visible;            /* balandlik to'silmasin */
  }
  .sum-row .order-item{
    min-width: 0;                 /* konteynerga sig'sin */
  }
}

/* Har doim, har ehtimolga qarshi, xulosa blokida 'tiqilib qolish'ni oldini olamiz */
.chk-right .sum-row{
  overflow-x: auto;   /* katta ekranda 2-3 dona bo'lsa ham skroll bor */
  overflow-y: visible;
}

/* Agar qayta ta'riflangan eski .sum-row = flex qoidasi bo'lsa, shu pastdagisi ustun turadi */
.sum-row{ display: grid; }
/* “Boshqa mahsulotlarni ko‘rish” – chiroyli CTA */
#editLink{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding:14px 18px;
  border:2px solid #111;
  border-radius:14px;
  background:#fff;
  color:#111;
  font-weight:800;
  text-decoration:none;
  transition:background .2s,color .2s,box-shadow .2s,transform .06s;
}

/* o‘ngga uchadigan strelka */
#editLink::after{
  content:"→";
  font-weight:700;
  translate: 0 0;
  transition: translate .2s;
}

/* hover/focus holati */
#editLink:hover,
#editLink:focus-visible{
  background:#111;
  color:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
}
#editLink:hover::after,
#editLink:focus-visible::after{
  translate: 4px 0; /* strelka biroz o‘ngga siljiydi */
}

/* bosilganda kichik press-effekt */
#editLink:active{ transform:scale(.98); }

/* juda kichik ekranlarda biroz kattaroq klik zonasi */
@media (max-width:380px){
  #editLink{ padding:16px 18px; border-radius:16px; }
}
