/* Yoxla.az /new — mobile polish for inner pages. Loaded last; only applies on phones/tablets. */
@media(max-width:820px){
  :root{--r:14px}
  .page{padding-top:10px;padding-bottom:8px}

  /* breadcrumbs: single scrolling line */
  .crumbs,.page .crumbs{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none;font-size:12px;gap:5px;margin:0 -14px 10px;padding:10px 14px 0}
  .crumbs::-webkit-scrollbar{display:none}
  .crumbs span+span::before,.crumbs a+span::before,.crumbs a+a::before,.crumbs span+a::before{margin-right:5px}

  /* headings */
  .page-head{margin-bottom:14px;gap:8px}
  .page-head h1,.plist__bar h1{font-size:20px;font-weight:700;letter-spacing:-.015em}
  .page-head p{font-size:13px}
  .article h1.title{font-size:21px;font-weight:700;margin-bottom:10px}
  .card h2{font-size:17px;font-weight:700;margin-bottom:10px}.card h3{font-size:15px;font-weight:700;margin-bottom:10px}
  .card{padding:16px;border-radius:14px}
  .alert{font-size:13px;padding:10px 12px;border-radius:10px;margin-bottom:12px}

  /* buttons + forms */
  .btn{padding:10px 20px;font-size:13.5px;font-weight:600;border-radius:999px}
  .btn--block{height:46px}.btn--sm{padding:8px 14px;font-size:13px}
  .btn--primary{box-shadow:none}
  .field{margin-bottom:12px;gap:5px}.field label{font-size:12.5px}
  .input,.select,.textarea{font-size:16px;padding:10px 13px;border-width:1px;border-radius:10px}
  .input:focus,.select:focus,.textarea:focus{box-shadow:none}
  .textarea{min-height:96px}.row2{gap:10px}

  /* listing: sub categories as scrolling chips, flat toolbar */
  .subcats{flex-wrap:nowrap;overflow-x:auto;gap:8px;margin:0 -14px 12px;padding:0 14px 2px;scrollbar-width:none}
  .subcats::-webkit-scrollbar{display:none}
  .subcats a{flex:none;padding:4px 12px 4px 5px;font-size:12.5px;font-weight:500;gap:7px;border-radius:999px}
  .subcats img{width:24px;height:24px}
  .toolbar{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 10px;margin-bottom:12px;gap:8px}
  .toolbar__count{font-size:12.5px;width:100%}
  .toolbar__sel{gap:8px;width:100%}
  .toolbar select{padding:7px 28px 7px 12px;font-size:13px;border-width:1px;flex:1;min-width:0}
  .filter-toggle,.plist__toggle{padding:8px 14px;font-size:13px;border-width:1px;margin-bottom:10px}
  .side{gap:10px;margin-bottom:12px}.side .card{padding:14px}
  .side h4{font-size:11.5px;letter-spacing:.08em;color:var(--mut)}
  .checks label{font-size:13.5px}.price-range{gap:6px}
  .pager{gap:4px;margin-top:20px}.pager a,.pager span{min-width:34px;height:34px;padding:0 8px;border-radius:9px;font-size:13px}
  .filters{border-radius:14px}

  /* product detail */
  .pd{gap:16px}
  .gallery__main{padding:14px;border-radius:14px;border-color:var(--line)}
  .thumbs{gap:8px;margin-top:8px}.thumbs button{width:56px;height:56px;border-width:1.5px;border-radius:10px;padding:4px}
  .pd__badges{margin-bottom:8px}
  .pd h1{font-size:18px;font-weight:700;line-height:1.3;margin-bottom:10px}
  .pd__meta{font-size:12.5px;gap:10px;margin-bottom:12px}
  .stock{font-size:11.5px;padding:3px 10px;font-weight:600}
  .pd__price{background:none;border:0;border-radius:0;padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid var(--line)}
  .pd__price strong{font-size:24px;font-weight:700}.pd__price s{font-size:14px;margin-left:8px}.pd__price small{font-size:12px}
  .prices{gap:8px}.prices div{padding:8px 10px;font-size:12px;border-radius:9px}.prices b{font-size:15px}
  .pd__overview{font-size:14px;margin-bottom:14px}
  .colors{font-size:13px;margin-bottom:14px}.colors i{width:22px;height:22px}
  .pd .buy{position:fixed;left:0;right:0;bottom:calc(56px + env(safe-area-inset-bottom));z-index:75;margin:0;padding:8px 14px;gap:8px;background:rgba(255,255,255,.97);border-top:1px solid var(--line);flex-wrap:nowrap}
  .pd .buy .btn{height:44px;flex:1;justify-content:center}
  .pd .qty{height:44px}.qty button{width:34px}.qty input{width:30px;font-size:15px}
  .wish-btn{width:44px;height:44px;border-width:1px;font-size:16px;flex:none}
  .pd{padding-bottom:70px}
  .pd__extra{font-size:13px;padding-top:12px;gap:8px}
  .share a{width:32px;height:32px}
  .oneclick{margin-top:10px}.oneclick .input{border-radius:999px}
  .pd-tabs{margin-top:26px}
  .prose{font-size:14px;line-height:1.65}.prose h1,.prose h2,.prose h3,.prose h4{font-size:16px;font-weight:700}
  .prose td,.prose th{padding:7px 9px;font-size:13px}
  .files div{padding:10px 12px;border-radius:10px;font-size:13px}

  /* cart + checkout */
  .cart{gap:14px}.cart-list{gap:8px}
  .citem{grid-template-columns:64px 1fr auto;padding:10px 12px;gap:6px 12px;border-radius:12px}
  .citem__img{width:64px;height:64px}
  .citem__name{font-size:13px;font-weight:500}.citem__name small{font-size:11.5px;margin-top:2px}
  .citem__sum{font-size:14px;font-weight:700;min-width:0}
  .icon-btn{width:32px;height:32px;font-size:13px}
  .qty--sm{height:32px}.qty--sm button{width:28px}.qty--sm input{width:28px;font-size:13px}
  .summary__row{font-size:14px;padding:6px 0}.summary__row--total{font-size:16px;padding-top:12px}
  .pay label{padding:10px 12px;font-size:13.5px;border-width:1px;border-radius:10px}
  .olist div{font-size:13px}
  .empty-state{padding:36px 16px;border-radius:14px}.empty-state i{font-size:34px;margin-bottom:10px}
  .empty-state h2{font-size:17px;font-weight:700}.empty-state p{font-size:13.5px;margin-bottom:16px}

  /* auth + account */
  .auth{gap:14px}.auth .card{padding:18px}.auth p.muted{font-size:13px;margin:-4px 0 14px}
  .acc{gap:12px}
  .acc-menu{flex-direction:row;overflow-x:auto;gap:6px;padding:6px;scrollbar-width:none;border-radius:999px}
  .acc-menu::-webkit-scrollbar{display:none}
  .acc-menu a{flex:none;padding:8px 14px;font-size:13px;font-weight:500;border-radius:999px;white-space:nowrap;gap:8px}
  .acc-menu a i{font-size:12px;width:auto}
  .acc-user{display:none}
  .avatar--lg{width:56px;height:56px;font-size:20px}
  .order{border-radius:12px;margin-bottom:8px}
  .order summary{padding:12px 14px}.order summary b{font-size:14px}.order summary small{font-size:12px}
  .status{font-size:11px;padding:3px 9px;font-weight:600}
  .order__items{padding:4px 14px 10px}.order__items div{font-size:13px}.order__items img{width:40px;height:40px}

  /* content pages */
  .article__cover{border-radius:14px;max-height:220px;margin-bottom:14px}
  .article__meta{font-size:12.5px;gap:12px;margin-bottom:10px}
  .article__body{padding:0;border:0;background:none}
  .mini img{width:56px;height:46px}.mini b{font-size:13px}
  .tags a{font-size:12px;padding:5px 10px;font-weight:500}
  .contact{gap:12px}.cinfo{gap:8px}
  .cinfo div{padding:12px;gap:12px;border-radius:12px}.cinfo i{width:36px;height:36px;font-size:15px;border-radius:10px}
  .map{margin-top:14px;border-radius:14px}.map iframe{height:240px}
  .brand-grid{grid-template-columns:repeat(3,1fr);gap:8px}
  .brand-grid a{padding:12px 6px;border-radius:12px;gap:6px}.brand-grid img{height:38px}.brand-grid span{font-size:12px;font-weight:500;text-align:center}
  .svc-grid{gap:12px}
}

/* Header account button (all screens) */
.head__icons .acc .acc__btn{display:inline-flex;align-items:center;gap:8px;width:auto;height:42px;padding:0 12px 0 4px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:14px;font-weight:600;white-space:nowrap}
.head__icons .acc .acc__btn:hover{border-color:#cfd3dc;background:#fff}
.head__icons .acc .acc__btn .avatar{width:32px;height:32px;min-width:32px;border-radius:50%;background:var(--brand);color:#fff;font-size:14px;font-weight:700}
.head__icons .acc .acc__btn i{font-size:10px;color:var(--mut)}
.head__icons .acc{display:block;grid-template-columns:none;gap:0;position:relative}

/* Perks strip: tidy 2x2 grid on phones */
@media(max-width:820px){
  .perks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 14px 0;padding:0;border:0;border-radius:0;overflow:visible}
  .perks>div{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:10px;row-gap:0;align-items:center;text-align:left;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:none;min-width:0}
  .perks>div+div{border-left:1px solid var(--line)}
  .perks i{grid-row:1 / span 2;grid-column:1;width:34px;height:34px;border-radius:10px;background:rgba(224,17,43,.08);display:grid;place-items:center;font-size:15px;color:var(--brand)}
  .perks b{grid-column:2;align-self:end;font-size:12px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .perks span{display:block;grid-column:2;align-self:start;font-size:10.5px;line-height:1.25;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* Product tabs (Seçilmişlər / Yeni gələnlər / Endirimdə / Ən çox baxılan): compact, all fit in one row */
@media(max-width:820px){
  .tabs{display:flex;width:100%;gap:0;justify-content:space-between;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line)}
  .tabs::-webkit-scrollbar{display:none}
  .tabs button{flex:1 1 auto;padding:9px 6px;font-size:11.5px;font-weight:600;letter-spacing:0;white-space:nowrap;text-align:center}
}
@media(max-width:430px){.tabs button{font-size:11px;padding:9px 3px}}
@media(max-width:360px){.tabs button{font-size:10.5px;padding:9px 3px}}

/* Product gallery thumbnails: keep the picture inside its frame */
.thumbs button{display:flex;align-items:center;justify-content:center;overflow:hidden;padding:6px;box-sizing:border-box}
.thumbs button img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;border-radius:8px}
.gallery__main{overflow:hidden}
.gallery__main img{max-width:100%;max-height:100%;object-fit:contain}

/* ================= Kabinet (account) ================= */
.acc-out{display:none}
.acc-tabs{display:contents}
@media(max-width:820px){
  .page-head:has(+ .acc){display:none}
  .page .crumbs{margin-bottom:6px}
  .acc{display:flex;flex-direction:column;gap:12px}

  /* profile header card */
  .acc-menu{display:flex;flex-direction:column;position:relative;padding:0;border:0;border-radius:0;background:none;overflow:visible}
  .acc-user{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:14px;background:linear-gradient(135deg,#0f172a,#1e293b);border:0;border-radius:16px;color:#fff}
  .acc-user .avatar{width:48px;height:48px;font-size:18px;background:var(--brand);color:#fff;flex:none}
  .acc-user>div{min-width:0;flex:1;line-height:1.3}
  .acc-user b{display:block;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .acc-user br{display:none}
  .acc-user small{display:block;color:#94a3b8;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .acc-user .acc-out{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:14px;flex:none}

  /* section tabs (underline style); wishlist / logout links are hidden here */
  .acc-menu>a{display:none}
  .acc-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);margin:0 -14px 4px;padding:0 14px}
  .acc-tabs a{border-radius:0;flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 4px;font-size:12.5px;font-weight:600;color:var(--mut);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;background:none}
  .acc-tabs a i{font-size:12px;width:auto;color:inherit}
  .acc-tabs a.is-on{color:var(--ink);border-bottom-color:var(--brand);background:none}

  /* content titles */
  .acc h2{font-size:16px!important;font-weight:700!important;margin-bottom:10px!important}

  /* orders */
  .order{border-radius:14px;margin-bottom:10px}
  .order summary{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 10px;padding:12px 14px}
  .order summary>div:first-child b{font-size:14px;font-weight:700}
  .order summary small{font-size:11.5px;margin-top:2px}
  .order__right{flex-direction:column;align-items:flex-end;gap:5px}
  .order__right>b{font-size:14.5px;font-weight:700}
  .order__right i{display:none}
  .status{font-size:10.5px;padding:3px 9px}
  .order[open] summary{border-bottom:1px solid var(--line)}
  .order__items{border:0;padding:4px 14px 8px}
  .order__items div{gap:10px;padding:9px 0;border-bottom:1px dashed var(--line);align-items:center}
  .order__items div:last-child{border-bottom:0}
  .order__items img{width:44px;height:44px;border-radius:8px;border:1px solid var(--line)}
  .order__items span{font-size:12.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .order__items b{font-size:12px;font-weight:600;white-space:nowrap;color:var(--mut)}

  /* forms: flat, full width */
  .acc>form.card{padding:0;border:0;background:none;max-width:none!important}
  .acc>form.card .avatar--lg{width:64px;height:64px;font-size:22px;background:var(--brand);color:#fff}
  .acc>form.card>div:first-of-type{gap:14px!important;margin-bottom:14px!important;padding:14px;background:var(--bg);border-radius:14px}
  .acc>form.card .btn--primary{width:100%;height:46px;justify-content:center;margin-top:4px}
  .row2{grid-template-columns:1fr!important}
}

/* ===== Kabinet: native-app feel (phones) ===== */
.acc-stats,.acc-list{display:none}
@media(max-width:820px){
  .acc-menu{display:contents}
  .acc>*{order:4}
  .acc-user{order:0}
  .acc-stats{order:1}
  .acc-tabs{order:2}
  .acc-list{order:9}

  .acc{gap:14px;align-items:stretch}
  .acc>*{min-width:0}
  .acc-user{margin:0;width:100%;max-width:none;align-self:stretch;box-shadow:0 8px 24px rgba(15,23,42,.18)}
  .acc-tabs a{min-width:0;padding:8px 2px;font-size:11.5px;overflow:hidden;text-overflow:ellipsis}

  /* quick tiles */
  .acc-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  .acc-stats a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 6px 10px;background:#fff;border:1px solid var(--line);border-radius:14px;text-align:center}
  .acc-stats a:active{background:var(--bg)}
  .acc-stats i{font-size:17px;color:var(--brand);margin-bottom:4px}
  .acc-stats b{font-size:15px;font-weight:700;line-height:1.1}
  .acc-stats small{font-size:10.5px;color:var(--mut)}

  /* segmented control */
  .acc-tabs{margin:0;padding:3px;background:var(--bg);border:0;border-radius:12px;gap:2px}
  .acc-tabs a{padding:8px 4px;border:0;margin:0;border-radius:9px;font-size:12px;font-weight:600}
  .acc-tabs a i{display:none}
  .acc-tabs a.is-on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(15,23,42,.12)}

  /* grouped list rows (iOS/Android settings style) */
  .acc-list{display:block;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-top:2px}
  .acc-list a{display:flex;align-items:center;gap:12px;padding:13px 14px;font-size:14px;font-weight:500;color:var(--ink);border-radius:0;border-bottom:1px solid var(--line);width:auto;background:none}
  .acc-list a:last-child{border-bottom:0}
  .acc-list a:active{background:var(--bg)}
  .acc-list a i:first-child{width:30px;height:30px;border-radius:9px;background:var(--bg);display:grid;place-items:center;font-size:13px;color:var(--ink);flex:none}
  .acc-list a span{flex:1}
  .acc-list a i:last-child{font-size:11px;color:#b6bac6}
  .acc-list a.is-out,.acc-list a.is-out i:first-child{color:var(--brand)}
  .acc-list a.is-out i:first-child{background:rgba(224,17,43,.08)}

  /* sticky action button above the tab bar on forms */
  .acc>form.card .btn--primary{position:sticky;bottom:calc(66px + env(safe-area-inset-bottom));z-index:5;box-shadow:0 8px 20px rgba(224,17,43,.28)}

  /* order cards: status accent + calmer type */
  .order{border-left:3px solid var(--line)}
  .order:has(.status--0){border-left-color:#eab308}.order:has(.status--1){border-left-color:#0ea5e9}
  .order:has(.status--2){border-left-color:#f97316}.order:has(.status--3){border-left-color:#22c55e}.order:has(.status--4){border-left-color:#ef4444}
}
