
:root{
  --orange:#ff5b00;
  --blue:#0788ee;
  --green:#21a366;
  --text:#333;
  --muted:#888;
  --bg:#f7f7f7;
  --card:#fff;
  --border:#e8e8e8;
}
*{box-sizing:border-box}
html{direction:rtl}
body{
  margin:0;
  background:#fafafa;
  color:var(--text);
  font-family:Tahoma, Arial, sans-serif;
  font-size:13px;
}
a{text-decoration:none;color:inherit}
button,input{font-family:inherit}
.container-shop{width:100%;max-width:1200px;margin:auto;padding:0 12px}

/* Header */
.shop-header{background:#fff;position:sticky;top:0;z-index:1000;border-bottom:1px solid #eee}
.header-top{height:66px;display:flex;align-items:center;gap:12px}
.brand{
  width:48px;height:48px;border-radius:14px;background:var(--orange);
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:24px;font-weight:bold;box-shadow:0 4px 12px #ff5b0030
}
.search-box{flex:1;position:relative}
.search-box input{
  width:100%;height:42px;border:0;border-radius:25px;background:#f1f1f1;
  padding:0 18px 0 42px;outline:none;color:#555
}
.search-box button{
  position:absolute;left:8px;top:5px;width:32px;height:32px;border:0;
  background:transparent;color:#777;font-size:18px
}
.header-actions{display:flex;gap:8px}
.icon-btn{
  width:42px;height:42px;border:1px solid #eee;background:#fff;border-radius:12px;
  display:flex;align-items:center;justify-content:center;font-size:18px;position:relative
}
.badge-cart{
  position:absolute;top:-4px;right:-4px;background:#f22;color:#fff;
  width:17px;height:17px;border-radius:50%;font-size:10px;display:flex;
  align-items:center;justify-content:center
}
.nav-row{border-top:1px solid #f2f2f2}
.nav-row .nav-inner{display:flex;gap:24px;height:42px;align-items:center;overflow:auto;white-space:nowrap}
.nav-row a{color:#666;font-size:12px}
.nav-row a:hover{color:var(--orange)}

/* Hero */
.hero{
  margin:15px 0;border-radius:16px;min-height:175px;
  background:linear-gradient(135deg,#fff0e8,#ffe0c9);
  display:flex;align-items:center;overflow:hidden;padding:28px 45px;
  position:relative
}
.hero h1{font-size:27px;margin:0 0 10px;font-weight:800}
.hero p{color:#666;margin-bottom:18px}
.hero .hero-shape{
  position:absolute;left:-50px;bottom:-90px;width:310px;height:310px;
  border-radius:50%;background:#ff7b2d30
}
.btn-shop{background:var(--orange);border:0;color:#fff;border-radius:9px;padding:10px 22px}
.btn-shop:hover{background:#e94f00;color:#fff}

/* Section */
.section{margin:18px 0 26px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.section-title{font-size:17px;font-weight:800;margin:0}
.section-link{color:var(--orange);font-size:12px}

/* Product horizontal rail */
.product-rail{
  display:flex;gap:10px;overflow-x:auto;padding:2px 1px 8px;
  scrollbar-width:none
}
.product-rail::-webkit-scrollbar{display:none}
.product-card{
  flex:0 0 145px;background:#fff;border:1px solid var(--border);
  border-radius:10px;padding:8px;position:relative;min-height:198px;
  box-shadow:0 2px 8px #00000006
}
.product-img{
  height:120px;border-radius:8px;background:#f7f7f7;display:flex;
  align-items:center;justify-content:center;overflow:hidden
}
.product-img img{width:100%;height:100%;object-fit:contain}
.product-name{font-size:11px;line-height:1.8;margin-top:6px;height:40px;overflow:hidden}
.product-price{font-size:12px;font-weight:bold;margin-top:4px}
.product-price del{display:block;color:#aaa;font-size:10px;font-weight:normal}
.add-mini{
  position:absolute;left:6px;bottom:6px;width:21px;height:21px;border:1px solid #ff1b1b;
  color:#f11;background:#fff;border-radius:3px;line-height:17px;padding:0
}
.discount-tag{
  position:absolute;top:8px;right:8px;background:#e53935;color:#fff;
  border-radius:5px;padding:3px 5px;font-size:9px
}

/* Categories */
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.category-card{
  background:#fff;border:1px solid var(--border);border-radius:9px;
  min-height:145px;padding:14px;text-align:center;display:flex;
  flex-direction:column;align-items:center;justify-content:center;
  transition:.2s
}
.category-card:hover{transform:translateY(-2px);box-shadow:0 5px 16px #00000010}
.category-icon{font-size:46px;color:#999;margin-bottom:10px}
.category-card span{font-weight:bold;font-size:11px}

/* Colored rails like screenshot */
.colored-section{padding:0;margin:18px -12px 25px}
.colored-head{
  height:40px;color:#fff;display:flex;align-items:center;justify-content:space-between;
  padding:0 18px;font-weight:bold
}
.orange .colored-head{background:var(--orange)}
.blue .colored-head{background:var(--blue)}
.colored-body{padding:10px 12px;background:linear-gradient(#fff,#fff8f3)}
.blue .colored-body{background:linear-gradient(#fff,#eef8ff)}
.colored-head .arrows{font-size:20px;letter-spacing:4px}

/* Product listing */
.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}
.filter-btn{border:1px solid #ddd;background:#fff;border-radius:8px;padding:8px 14px}
.filter-btn.active{background:var(--orange);color:#fff;border-color:var(--orange)}
.products-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.products-grid .product-card{width:auto;min-height:285px}
.products-grid .product-img{height:185px}
.products-grid .product-name{height:auto;min-height:42px}
.product-detail-price{font-size:16px;font-weight:bold;margin-top:12px}

/* Cart */
.cart-layout{display:grid;grid-template-columns:1fr 330px;gap:15px}
.cart-item{
  background:#fff;border:1px solid #e7e7e7;border-radius:12px;padding:12px;
  display:flex;gap:14px;align-items:center;margin-bottom:10px
}
.cart-item-img{width:90px;height:90px;background:#f6f6f6;border-radius:8px}
.cart-item-img img{width:100%;height:100%;object-fit:contain}
.qty{display:flex;align-items:center;gap:8px;margin-top:8px}
.qty button{width:28px;height:28px;border:1px solid #ddd;background:#fff;border-radius:6px}
.summary{background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:18px;height:max-content;position:sticky;top:90px}
.summary-row{display:flex;justify-content:space-between;padding:9px 0;color:#666}
.summary-total{border-top:1px solid #eee;margin-top:8px;padding-top:13px;font-weight:bold;font-size:15px}

/* Footer */
.footer{background:#202020;color:#ddd;margin-top:35px;padding:30px 0 75px}
.footer h5{color:#fff;font-size:14px}
.footer p,.footer a{color:#aaa;font-size:11px;line-height:2}
.bottom-nav{
  position:fixed;bottom:0;right:0;left:0;height:58px;background:#fff;border-top:1px solid #ddd;
  display:flex;justify-content:center;gap:55px;z-index:1100
}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#777;font-size:10px;min-width:50px}
.bottom-nav a.active{color:var(--orange)}
.bottom-nav i{font-size:19px;margin-bottom:3px}

/* Responsive */
@media(max-width:992px){
  .category-grid{grid-template-columns:repeat(4,1fr)}
  .products-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:768px){
  body{font-size:12px}
  .header-top{height:60px}
  .brand{width:42px;height:42px}
  .header-actions .icon-btn:nth-child(2){display:none}
  .hero{min-height:155px;padding:22px}
  .hero h1{font-size:21px}
  .category-grid{grid-template-columns:repeat(3,1fr)}
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .cart-layout{grid-template-columns:1fr}
  .summary{position:static}
  .bottom-nav{gap:18px}
}
@media(max-width:480px){
  .container-shop{padding:0 8px}
  .nav-row .nav-inner{gap:16px}
  .category-grid{grid-template-columns:repeat(2,1fr);gap:7px}
  .category-card{min-height:120px}
  .products-grid{gap:7px}
  .product-card{flex-basis:132px}
  .product-rail{gap:7px}
}
