/* SmartKarigar store, Daraz-style: orange search band, offer banner, round category pictures,
   "Just for you" cards with discount badges, product page with Add to cart + Buy now */
:root{--shop-orange:#f26a1b;--shop-orange-dark:#d9560c;--shop-orange-soft:#fff1e8;--shop-bg:#f2f3f7;--shop-line:#eceef3;--shop-ink:#1a1a2e;--shop-muted:#7a8193}
.shop-section{background:var(--shop-bg);padding:0 0 56px;min-height:60vh}

/* Orange band with search and cart */
.shop-band{background:var(--shop-orange);padding:14px 0}
.shop-band .container{display:flex;align-items:center;gap:14px}
.shop-brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:600;font-size:20px;white-space:nowrap}
.shop-brand i{font-size:22px}
.shop-brand small{display:block;font-size:11px;font-weight:500;opacity:.85;letter-spacing:.3px}
.shop-band-search{flex:1;display:flex;background:#fff;border-radius:10px;overflow:hidden;min-width:0;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.shop-band-search input{flex:1;min-width:0;border:0;padding:12px 16px;font:inherit;font-size:15px;color:var(--shop-ink);outline:none}
.shop-band-search button{background:var(--secondary);color:#fff;padding:0 20px;font-size:16px}
.shop-band-cart{position:relative;color:#fff;font-size:24px;width:46px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0}
.shop-band-cart:hover{background:rgba(255,255,255,.15);color:#fff}
.shop-band-cart .shop-cart-count{position:absolute;top:2px;right:0;min-width:20px;height:20px;border-radius:10px;background:var(--secondary);color:#fff;font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center;padding:0 5px;border:2px solid var(--shop-orange)}
.shop-band-cart .shop-cart-count:empty,.shop-band-cart .shop-cart-count[data-n="0"]{display:none}
.shop-crumbs{padding:14px 0 4px;font-size:13px;color:var(--shop-muted)}
.shop-crumbs a{color:var(--shop-muted)}
.shop-crumbs a:hover{color:var(--shop-orange)}
.shop-page-title{font-size:22px;font-weight:600;color:var(--shop-ink);margin:10px 0 14px}

/* Offer banner */
.shop-banner{margin-top:18px;border-radius:16px;background:var(--secondary);color:#fff;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;position:relative}
.shop-banner::after{content:"";position:absolute;right:-60px;top:-60px;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.07)}
.shop-banner::before{content:"";position:absolute;right:120px;bottom:-90px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.05)}
.shop-banner-tag{display:inline-block;background:var(--primary);color:var(--secondary);font-size:12px;font-weight:600;border-radius:6px;padding:4px 10px;letter-spacing:.5px}
.shop-banner h1,.shop-banner h2{font-size:26px;font-weight:600;margin:10px 0 4px;line-height:1.25}
/* core.css sizes every h1 with !important; the store's headings keep their own size */
.shop-banner h1{font-size:26px!important;line-height:1.25!important}
.shop-section-head h1{font-size:19px!important}
.shop-banner p{font-size:14px;opacity:.8}
.shop-banner-btn{display:inline-block;margin-top:14px;background:var(--shop-orange);color:#fff;border-radius:8px;padding:10px 22px;font-weight:600;font-size:14px}
.shop-banner-btn:hover{background:var(--shop-orange-dark);color:#fff}
.shop-banner-art{position:relative;z-index:1;display:flex;gap:14px;font-size:54px;color:var(--primary);opacity:.95}
.shop-banner > div{position:relative;z-index:1}

/* Round category pictures */
.shop-cats{margin-top:18px;background:#fff;border-radius:16px;padding:16px 14px}
.shop-cats-row{display:flex;gap:18px;overflow-x:auto;scrollbar-width:none;padding:2px}
.shop-cats-row::-webkit-scrollbar{display:none}
.shop-cat{display:flex;flex-direction:column;align-items:center;gap:7px;width:76px;flex-shrink:0;text-align:center}
.shop-cat-img{width:64px;height:64px;border-radius:50%;background:var(--shop-orange-soft);display:flex;align-items:center;justify-content:center;overflow:hidden;border:2px solid transparent;font-size:24px;color:var(--shop-orange)}
.shop-cat-img img{width:100%;height:100%;object-fit:cover}
.shop-cat span{font-size:12.5px;color:var(--shop-ink);line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shop-cat.active .shop-cat-img{border-color:var(--shop-orange);box-shadow:0 0 0 3px var(--shop-orange-soft)}
.shop-cat.active span{color:var(--shop-orange);font-weight:600}

.shop-section-head{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}
.shop-section-head h1,.shop-section-head h2{font-size:19px;font-weight:600;color:var(--shop-ink);margin:0}
.shop-section-head span{font-size:13px;color:var(--shop-muted)}

/* Product cards */
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.shop-card{background:#fff;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s;position:relative}
.shop-card:hover{box-shadow:0 6px 18px rgba(15,23,42,.1);transform:translateY(-2px)}
.shop-card-img{display:block;aspect-ratio:1/1;background:#f6f7f9;position:relative}
.shop-card-img img{width:100%;height:100%;object-fit:cover}
.shop-noimg{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#cbd5e1;font-size:40px}
.shop-off{position:absolute;left:0;top:10px;background:var(--shop-orange);color:#fff;font-size:12px;font-weight:600;border-radius:0 6px 6px 0;padding:3px 9px}
.shop-soldout{position:absolute;inset:0;background:rgba(255,255,255,.55);display:flex;align-items:center;justify-content:center}
.shop-soldout span{background:rgba(15,23,42,.85);color:#fff;font-size:12px;font-weight:600;border-radius:20px;padding:5px 12px}
.shop-card-body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:3px;flex:1}
.shop-card-name{font-size:14px;color:var(--shop-ink);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:39px}
.shop-card-name:hover{color:var(--shop-orange)}
.shop-price{font-size:17px;font-weight:600;color:var(--shop-orange)}
.shop-old{font-size:12.5px;color:var(--shop-muted);text-decoration:line-through;margin-right:6px}
.shop-pct{font-size:12.5px;color:var(--shop-ink)}
.shop-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:6px}
.shop-sold{font-size:12px;color:var(--shop-muted)}
.shop-plus{width:36px;height:36px;border-radius:50%;background:var(--shop-orange);color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 8px rgba(242,106,27,.35)}
.shop-plus:hover{background:var(--shop-orange-dark)}
.shop-plus:disabled{background:#e2e8f0;box-shadow:none;cursor:not-allowed}
.shop-card form{margin:0}
.shop-empty{background:#fff;border-radius:16px;padding:56px 20px;text-align:center;color:var(--shop-muted);margin-top:18px}
.shop-empty i{font-size:44px;color:#cbd5e1;margin-bottom:12px}
.shop-empty h2{font-size:19px;color:var(--shop-ink);font-weight:600;margin-bottom:4px}
.shop-pagination{margin-top:24px;display:flex;justify-content:center;gap:10px;align-items:center}
.shop-chip{flex-shrink:0;border:1px solid #e2e8f0;background:#fff;border-radius:20px;padding:7px 16px;font-size:14px;color:var(--shop-ink);white-space:nowrap}

.shop-alert{border-radius:10px;padding:12px 14px;font-size:14px;margin:14px 0 0;display:flex;gap:10px;align-items:flex-start}
.shop-alert.ok{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.shop-alert.err{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.shop-alert ul{margin:0;padding:0}

/* Product page */
.shop-product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:28px;background:#fff;border-radius:16px;padding:20px}
.shop-product-img{aspect-ratio:1/1;background:#f6f7f9;border-radius:12px;overflow:hidden;position:relative}
.shop-product-img img{width:100%;height:100%;object-fit:cover}
.shop-product h1{font-size:22px;font-weight:600;color:var(--shop-ink);line-height:1.35}
.shop-meta{display:flex;gap:14px;font-size:13px;color:var(--shop-muted);margin-top:6px;flex-wrap:wrap}
.shop-meta .in{color:#047857;font-weight:500}
.shop-meta .low{color:#b45309;font-weight:500}
.shop-meta .out{color:#b91c1c;font-weight:500}
.shop-price-box{margin-top:14px;padding:14px 0;border-top:1px solid var(--shop-line);border-bottom:1px solid var(--shop-line)}
.shop-price-box .shop-price{font-size:30px}
.shop-price-box .shop-old{font-size:14px}
.shop-price-box .shop-pct{font-size:14px;font-weight:600}
.shop-qty-row{display:flex;gap:10px;align-items:center;margin-top:18px;flex-wrap:wrap}
.shop-qty-label{font-size:14px;color:var(--shop-muted);margin-right:4px}
.shop-qty{display:inline-flex;align-items:center;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;background:#fff}
.shop-qty button{width:38px;height:40px;background:#f6f7f9;color:var(--shop-ink);font-size:18px}
.shop-qty input{width:48px;height:40px;border:0;text-align:center;font:inherit;font-size:16px;-moz-appearance:textfield}
.shop-qty input::-webkit-outer-spin-button,.shop-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.shop-qty span{min-width:34px;text-align:center;font-size:15px}
.shop-buy-row{display:flex;gap:12px;margin-top:18px}
.shop-buy-row button{flex:1;height:50px;border-radius:8px;font:inherit;font-weight:600;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px}
.shop-btn-cart{background:var(--primary);color:var(--secondary)}
.shop-btn-cart:hover{background:var(--primary-dark)}
.shop-btn-buy{background:var(--shop-orange);color:#fff}
.shop-btn-buy:hover{background:var(--shop-orange-dark)}
.shop-btn-off{background:#e2e8f0;color:#64748b;cursor:not-allowed}
.shop-delivery{margin-top:18px;background:#fafbfc;border:1px solid var(--shop-line);border-radius:12px;padding:6px 14px}
.shop-delivery div{display:flex;align-items:center;gap:12px;padding:10px 0;font-size:14px;color:#334155}
.shop-delivery div+div{border-top:1px solid var(--shop-line)}
.shop-delivery i{width:20px;color:var(--shop-orange);text-align:center}
.shop-delivery b{margin-left:auto;color:var(--shop-ink);font-weight:600}
.shop-desc-box{background:#fff;border-radius:16px;padding:20px;margin-top:14px}
.shop-desc-box h2{font-size:17px;font-weight:600;color:var(--shop-ink);margin-bottom:10px}
.shop-desc{font-size:15px;color:#334155;line-height:1.75;white-space:pre-line}
.shop-incart{font-size:13px;color:var(--shop-muted);margin-top:10px}
.shop-incart a{color:var(--shop-orange);font-weight:600}

/* Cart, checkout, order */
.shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.shop-box{background:#fff;border-radius:16px}
.shop-box-head{padding:14px 18px;border-bottom:1px solid var(--shop-line);font-weight:600;color:var(--shop-ink);font-size:16px}
.shop-line{display:flex;gap:14px;padding:14px 18px;border-bottom:1px solid var(--shop-line);align-items:center}
.shop-line:last-child{border-bottom:0}
.shop-line-img{width:72px;height:72px;border-radius:10px;background:#f6f7f9;overflow:hidden;flex-shrink:0}
.shop-line-img img{width:100%;height:100%;object-fit:cover}
.shop-line-img .shop-noimg{font-size:22px}
.shop-line-info{flex:1;min-width:0}
.shop-line-name{font-size:15px;color:var(--shop-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.shop-line-meta{font-size:13px;color:var(--shop-muted);margin-top:2px}
.shop-line-total{font-weight:600;color:var(--shop-orange);white-space:nowrap}
.shop-line form{display:inline}
.shop-line .shop-qty button{width:34px;height:34px;font-size:16px}
.shop-remove{background:none;color:var(--shop-muted);font:inherit;font-size:13px;padding:4px 0}
.shop-remove:hover{color:#b91c1c}
.shop-summary{padding:16px 18px;display:flex;flex-direction:column;gap:10px;font-size:15px}
.shop-summary-row{display:flex;justify-content:space-between;color:#334155}
.shop-summary-row.total{font-size:17px;font-weight:600;color:var(--shop-ink);border-top:1px solid var(--shop-line);padding-top:12px}
.shop-summary-row.total span:last-child{color:var(--shop-orange);font-size:20px}
.shop-big-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;background:var(--shop-orange);color:#fff;border-radius:8px;padding:14px;font:inherit;font-weight:600;font-size:16px}
.shop-big-btn:hover{background:var(--shop-orange-dark);color:#fff}
.shop-big-btn:disabled{opacity:.7}
.shop-link-btn{display:block;text-align:center;font-size:14px;color:var(--shop-orange);padding:6px}
.shop-form{padding:18px;display:flex;flex-direction:column;gap:14px}
.shop-field label{display:block;font-size:14px;font-weight:500;color:var(--shop-ink);margin-bottom:6px}
.shop-field input,.shop-field textarea{width:100%;border:1px solid #e2e8f0;border-radius:8px;padding:11px 14px;font:inherit;font-size:15px;background:#fff}
.shop-field input:focus,.shop-field textarea:focus{outline:none;border-color:var(--shop-orange);box-shadow:0 0 0 3px var(--shop-orange-soft)}
.shop-field .err{color:#b91c1c;font-size:13px;margin-top:4px}
.shop-field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.shop-pay{display:flex;gap:12px;align-items:center;border:2px solid var(--shop-orange);border-radius:10px;padding:12px 14px;background:var(--shop-orange-soft)}
.shop-pay i{font-size:22px;color:var(--shop-orange)}
.shop-pay b{display:block;font-size:15px;color:var(--shop-ink);font-weight:600}
.shop-pay span{font-size:13px;color:var(--shop-muted)}
.shop-status{display:inline-block;font-size:13px;font-weight:600;border-radius:20px;padding:4px 12px}
.shop-status.pending{background:#fef3c7;color:#b45309}
.shop-status.confirmed{background:#e0e7ff;color:#3730a3}
.shop-status.shipped{background:#dbeafe;color:#1d4ed8}
.shop-status.delivered{background:#d1fae5;color:#047857}
.shop-status.cancelled{background:#fee2e2;color:#b91c1c}
.shop-done{text-align:center;padding:28px 18px 10px}
.shop-done i{font-size:52px;color:#10b981}
.shop-done h1{font-size:23px;font-weight:600;color:var(--shop-ink);margin-top:10px}
.shop-done p{color:var(--shop-muted);font-size:15px;margin-top:4px}
.shop-steps{display:flex;justify-content:space-between;padding:18px;gap:6px}
.shop-step{flex:1;text-align:center;font-size:12px;color:#94a3b8}
.shop-step .dot{width:30px;height:30px;border-radius:50%;background:#e2e8f0;color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 6px;font-size:13px}
.shop-step.on{color:var(--shop-ink);font-weight:500}
.shop-step.on .dot{background:#10b981}
.shop-info{padding:14px 18px;font-size:14px;color:#334155;line-height:1.7}
.shop-info b{color:var(--shop-ink);font-weight:600}
.shop-cancel-btn{background:#fff;border:1px solid #fecaca;color:#b91c1c;border-radius:8px;padding:10px 16px;font:inherit;font-size:14px;width:100%}
.shop-orders-table{width:100%;border-collapse:collapse}
.shop-orders-table th,.shop-orders-table td{padding:12px 16px;text-align:left;border-bottom:1px solid #f1f5f9;font-size:14px}
.shop-orders-table th{font-size:12px;color:var(--text-muted);font-weight:500;text-transform:uppercase}

.shop-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);background:var(--shop-ink);color:#fff;border-radius:12px;padding:12px 18px;font-size:14px;opacity:0;transition:all .25s;z-index:9999;display:flex;gap:12px;align-items:center;max-width:calc(100% - 32px);pointer-events:none}
.shop-toast.show{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto}
.shop-toast a{color:var(--primary);font-weight:600;white-space:nowrap}

@media (max-width:900px){
    .shop-layout{grid-template-columns:1fr}
    .shop-product{grid-template-columns:1fr;gap:16px;padding:14px}
    .shop-banner-art{display:none}
}
@media (max-width:600px){
    .shop-band{padding:10px 0}
    .shop-band .container{gap:8px}
    .shop-brand span{display:none}
    .shop-band-search input{padding:10px 12px;font-size:14px}
    .shop-band-search button{padding:0 14px}
    .shop-banner{padding:20px;margin-top:12px}
    .shop-banner h1,.shop-banner h2{font-size:20px!important}
    .shop-cats{margin-top:12px;padding:12px 8px}
    .shop-cats-row{gap:10px}
    .shop-cat{width:68px}
    .shop-cat-img{width:56px;height:56px}
    .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .shop-card-body{padding:8px 10px 10px}
    .shop-card-name{font-size:13.5px}
    .shop-price{font-size:16px}
    .shop-plus{width:32px;height:32px}
    .shop-field-row{grid-template-columns:1fr}
    .shop-line{padding:12px;gap:10px;flex-wrap:wrap}
    .shop-line-img{width:60px;height:60px}
    .shop-buy-row{position:fixed;left:0;right:0;bottom:0;margin:0;padding:10px 12px;background:#fff;box-shadow:0 -4px 14px rgba(0,0,0,.08);z-index:50;gap:8px}
    .shop-product-page{padding-bottom:70px}
    .shop-orders-table thead{display:none}
    .shop-orders-table tr{display:block;border-bottom:1px solid #f1f5f9;padding:8px 0}
    .shop-orders-table td{display:flex;justify-content:space-between;border:0;padding:4px 16px}
    .shop-orders-table td::before{content:attr(data-label);color:var(--text-muted);font-size:12px}
}
