/* ==========================================================
   Theme: Amazon-like RTL Store UI (Clean + Modern)
   Path: public/assets/css/theme.css
   Encoding: UTF-8 (NO BOM)
========================================================== */

/* -----------------------------
   Design Tokens
----------------------------- */
:root{
  --brand:#0d6efd;
  --brand-rgb:13,110,253;

  --amz-orange:#febd69;
  --amz-orange2:#f3a847;
  --amz-dark:#131921;
  --amz-dark2:#232f3e;

  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;

  --radius:16px;
  --radius-sm:12px;

  --shadow-sm:0 2px 10px rgba(15,23,42,.06);
  --shadow:0 12px 30px rgba(15,23,42,.12);

  --t:.18s cubic-bezier(.4,.0,.2,1);

  --container:1200px;
  --gap:1.1rem;
}

/* -----------------------------
   Base
----------------------------- */
html,body{
  background:var(--bg);
  color:var(--text);
  font-family:'Cairo','Tajawal', system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  line-height:1.55;
}

a{
  color:inherit;
  text-decoration:none;
}
a:hover{
  text-decoration:none;
}

:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(var(--brand-rgb),.22);
  border-radius:12px;
}

.container{
  max-width:var(--container);
}

/* Scrollbar */
::-webkit-scrollbar{
  width:10px;
}
::-webkit-scrollbar-track{
  background:var(--bg);
}
::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:10px;
}

/* -----------------------------
   Helpers
----------------------------- */
.cardx{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}

.btn-soft{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:.55rem .9rem;
  font-weight:800;
  transition:var(--t);
}
.btn-soft:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-sm);
}

.badge-pill{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.25rem .55rem;
  border-radius:999px;
  font-size:.72rem;
  font-weight:900;
}

/* ==========================================================
   Amazon-like Header
========================================================== */
.amz-header{
  position:sticky;
  top:0;
  z-index:1200;
}

/* Top strip */
.amz-topstrip{
  background:#0b1220;
  color:#cbd5e1;
  font-size:.82rem;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.amz-topstrip-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.35rem 0;
}
.amz-topstrip a{
  color:#cbd5e1;
}
.amz-topstrip a:hover{
  color:#fff;
}
.amz-topstrip .sep{
  opacity:.5;
  margin:0 .45rem;
}
.amz-topstrip-left,
.amz-topstrip-right{
  display:flex;
  align-items:center;
  gap:.35rem;
}

/* Main bar */
.amz-mainbar{
  background:var(--amz-dark);
  color:#fff;
  padding:.55rem 0 .45rem;
}
.amz-mainbar-row{
  display:flex;
  align-items:center;
  gap:.8rem;
}
.amz-iconbtn{
  width:44px;
  height:44px;
  border:none;
  border-radius:12px;
  background:rgba(255,255,255,.10);
  color:#fff;
  display:grid;
  place-items:center;
  transition:var(--t);
}
.amz-iconbtn:hover{
  background:rgba(255,255,255,.16);
  transform:translateY(-1px);
}
.amz-iconbtn i{
  font-size:1.55rem;
}

.amz-logo{
  display:flex;
  align-items:center;
  gap:.18rem;
  font-weight:900;
  white-space:nowrap;
  text-decoration:none;
  font-family: "Cairo", "Tajawal", sans-serif;
}

/* Logo */

.amz-logo{
  display:flex;
  align-items:center;
  gap:.18rem;
  font-weight:900;
  white-space:nowrap;
  text-decoration:none;
  font-family: "Cairo", "Tajawal", sans-serif;
}

/* كلمة هدايا */
.amz-logo .brand{
  font-size:1.35rem;
  letter-spacing:.6px;
  background: linear-gradient(135deg, #ffffff, #dcdcdc);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow: 0 0 6px rgba(255,255,255,.25);
}

/* النقطة */
.amz-logo .dot{
  font-size:1.4rem;
  color:#ff9f1a;
  margin-bottom:.15rem;
  text-shadow:0 0 10px rgba(255,159,26,.6);
}

/* كلمة ريم */
/* كلمة ريم */
.amz-logo .tld{
  font-size:1.45rem;   /* أكبر قليلاً */
  font-weight:900;
  color:#ffffff;      /* أبيض */
  text-shadow:
    0 0 6px rgba(255,255,255,.6),
    0 0 14px rgba(255,255,255,.35),
    0 0 24px rgba(255,255,255,.15);
}
/* Logo */
/* Search */
.amz-search{
  flex:1;
}
.amz-search-wrap{
  display:flex;
  align-items:stretch;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.20);
}
.amz-search-input{
  height:44px;
  border:none !important;
  border-radius:0 !important;
  font-weight:700;
}
.amz-search-input::placeholder{
  color:#94a3b8;
}
.amz-search-input:focus{
  box-shadow:none !important;
}
.amz-search-btn{
  background:var(--amz-orange);
  border:none;
  border-radius:0;
  width:52px;
  font-weight:900;
}
.amz-search-btn:hover{
  background:var(--amz-orange2);
}

/* Mobile search row */
.amz-search-mobile{
  display:flex;
  gap:0;
  margin-top:.55rem;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.20);
}
.amz-search-mobile .amz-search-input{
  height:44px;
}
.amz-search-mobile .amz-search-btn{
  height:44px;
}

/* Actions */
.amz-actions{
  display:flex;
  align-items:center;
  gap:.35rem;
}
.amz-action{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.55rem .7rem;
  border-radius:12px;
  color:#fff;
  border:1px solid transparent;
  transition:var(--t);
}
.amz-action:hover{
  border-color:rgba(255,255,255,.20);
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}
.amz-action i{
  font-size:1.35rem;
  color:#fff;
}
.amz-action .lbl{
  font-weight:900;
  font-size:.92rem;
}

.amz-badge{
  position:absolute;
  top:-6px;
  inset-inline-start:10px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  border:2px solid var(--amz-dark);
}

/* Nav bar */
.amz-navbar{
  background:var(--amz-dark2);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.amz-navrow{
  display:flex;
  align-items:center;
  gap:.8rem;
  padding:.5rem 0;
}
.amz-allbtn{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  border:none;
  border-radius:12px;
  padding:.45rem .7rem;
  font-weight:900;
  background:rgba(255,255,255,.10);
  color:#fff;
  transition:var(--t);
}
.amz-allbtn:hover{
  background:rgba(255,255,255,.16);
  transform:translateY(-1px);
}

.amz-navlinks{
  display:flex;
  align-items:center;
  gap:.25rem;
  flex:1;
  overflow:auto;
  scrollbar-width:none;
}
.amz-navlinks::-webkit-scrollbar{
  display:none;
}
.amz-navlinks a{
  color:#fff;
  font-weight:900;
  font-size:.90rem;
  white-space:nowrap;
  padding:.38rem .65rem;
  border-radius:999px;
  transition:var(--t);
}
.amz-navlinks a:hover{
  background:rgba(255,255,255,.12);
}

.amz-dealpill{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.4rem .75rem;
  border-radius:999px;
  background:rgba(254,189,105,.15);
  border:1px solid rgba(254,189,105,.30);
  color:#fff;
  font-weight:900;
}
.amz-dealpill i{
  color:var(--amz-orange);
}

/* Offcanvas */
.amz-offcanvas{
  background:#fff;
}
.amz-offcanvas .offcanvas-title{
  font-weight:900;
}
.amz-off-sub{
  color:var(--muted);
  font-size:.85rem;
  margin-top:.15rem;
}
.amz-hr{
  border-color:var(--border);
  opacity:1;
}
.amz-off-section{
  display:flex;
  flex-direction:column;
  gap:.55rem;
}
.amz-off-link{
  display:block;
  padding:.8rem .85rem;
  border:1px solid var(--border);
  border-radius:14px;
  font-weight:900;
  color:var(--text);
  transition:var(--t);
}
.amz-off-link:hover{
  background:rgba(var(--brand-rgb),.06);
  transform:translateY(-1px);
}
.amz-off-title{
  font-weight:900;
  color:var(--muted);
  font-size:.9rem;
  margin:.15rem 0 .35rem;
}
.amz-off-chip{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  width:max-content;
  padding:.45rem .7rem;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  color:var(--text);
}

/* Mobile tweaks */
@media (max-width:575.98px){
  .amz-mainbar-row{
    flex-wrap:wrap;
  }
  .amz-actions{
    margin-inline-start:auto;
  }
  .amz-logo{
    order:1;
  }
  .amz-actions{
    order:2;
  }
  .amz-iconbtn{
    order:3;
  }
}

/* ==========================================================
   Home (Hero + Sections)
========================================================== */
.home-hero{
  margin-top:1rem;
  border-radius:22px;
  overflow:hidden;
  background:
    radial-gradient(1200px 420px at 80% 20%, rgba(13,110,253,.18), transparent 60%),
    radial-gradient(900px 360px at 10% 10%, rgba(254,189,105,.24), transparent 55%),
    #ffffff;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
}
.hero-inner{
  padding:1.15rem 1.2rem;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:1rem;
  align-items:center;
}
@media (max-width:991.98px){
  .hero-inner{
    grid-template-columns:1fr;
  }
}

.hero-title{
  font-weight:950;
  font-size:clamp(1.3rem, 2.6vw + .7rem, 2.3rem);
  margin:0 0 .35rem;
}
.hero-sub{
  color:var(--muted);
  font-weight:700;
  margin:0 0 .8rem;
}
.hero-actions{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
}
.hero-actions .btn{
  border-radius:999px;
  font-weight:900;
  padding:.55rem 1rem;
}
.hero-actions .btn-primary{
  background:var(--brand);
  border-color:var(--brand);
}

.hero-card{
  background:rgba(255,255,255,.85);
  border:1px solid rgba(226,232,240,.9);
  border-radius:18px;
  padding:1rem;
  box-shadow:0 10px 30px rgba(15,23,42,.10);
}
.hero-card .hc-title{
  font-weight:950;
  margin:0 0 .45rem;
}
.hero-card .hc-row{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
}
.hc-pill{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.38rem .65rem;
  border-radius:999px;
  background:rgba(var(--brand-rgb),.08);
  color:var(--text);
  font-weight:900;
  font-size:.78rem;
}

/* Section heading (لو استخدمتها لاحقًا) */
.sec-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin:1.2rem 0 .75rem;
}
.sec-title{
  display:flex;
  align-items:center;
  gap:.55rem;
  font-weight:950;
  margin:0;
}
.sec-title i{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(var(--brand-rgb),.10);
  color:var(--brand);
}
.sec-more{
  color:var(--muted);
  font-weight:900;
  padding:.35rem .6rem;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
}
.sec-more:hover{
  background:rgba(var(--brand-rgb),.06);
}

/* ==========================================================
   Products Grid + Card
========================================================== */
.products-wrap{
  margin-top:.8rem;
}
.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:var(--gap);
}
@media (max-width:575.98px){
  .products-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

.product-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  transition:var(--t);
  display:flex;
  flex-direction:column;
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
}

.product-thumb{
  position:relative;
  width:100%;
  padding-top:78%;
  background:#f1f5f9;
}
.product-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}
.product-card:hover .product-thumb img{
  transform:scale(1.03);
}

/* Badges (لو استخدمت .badge-featured / .badge-view من PHP) */
.badge-featured,
.badge-view{
  position:absolute;
  top:10px;
  inset-inline-start:10px;
  padding:.25rem .6rem;
  border-radius:999px;
  font-size:.72rem;
  font-weight:900;
  color:#111827;
  background:linear-gradient(90deg,#f59e0b,#ffd37a);
  box-shadow:0 6px 16px rgba(0,0,0,.15);
}
.badge-view{
  inset-inline-start:auto;
  inset-inline-end:10px;
  background:linear-gradient(90deg,#ef4444,#fb7185);
  color:#fff;
}

.product-body{
  padding:.85rem .9rem 1rem;
  display:flex;
  flex-direction:column;
  gap:.35rem;
  flex:1;
}
.product-title{
  font-weight:950;
  font-size:.95rem;
  line-height:1.35;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-cat{
  color:var(--muted);
  font-weight:800;
  font-size:.76rem;
}
.price-row{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
}
.product-price{
  font-weight:950;
  color:var(--brand);
  font-size:1.05rem;
}
.add-btn{
  width:44px;
  height:44px;
  border:none;
  border-radius:14px;
  background:#16a34a;
  color:#fff;
  display:grid;
  place-items:center;
  box-shadow:0 12px 24px rgba(22,163,74,.18);
  transition:var(--t);
}
.add-btn:hover{
  filter:brightness(.96);
  transform:translateY(-2px);
}
.add-btn:active{
  transform:translateY(0);
}
.add-btn i{
  font-size:1.2rem;
}

/* ==========================================================
   Forms / Inputs
========================================================== */
.form-control,
.form-select{
  border-radius:14px;
  border-color:var(--border);
  font-weight:700;
}
.form-control:focus,
.form-select:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(var(--brand-rgb),.18);
}

/* Pagination */
.pagination .page-link{
  border-radius:999px !important;
  padding:.5rem .85rem;
  font-weight:900;
}
.pagination .page-item.active .page-link{
  background:var(--brand);
  border-color:var(--brand);
}

/* ==========================================================
   Footer
========================================================== */
.site-footer{
  margin-top:2.2rem;
  background:linear-gradient(180deg, #0b1220 0%, #070b14 100%);
  color:#cbd5e1;
  border-top:1px solid rgba(255,255,255,.06);
}
.site-footer .footer-top{
  padding:46px 0 26px;
}
.site-footer .footer-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.2rem;
}
@media (max-width:991.98px){
  .site-footer .footer-grid{
    grid-template-columns:repeat(2,1fr);
  }
}
@media (max-width:575.98px){
  .site-footer .footer-grid{
    grid-template-columns:1fr;
  }
}

.site-footer h6{
  color:#fff;
  font-weight:950;
  margin:0 0 .8rem;
}
.site-footer a{
  color:#cbd5e1;
}
.site-footer a:hover{
  color:#fff;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:.5rem;
}
.footer-brand{
  display:flex;
  flex-direction:column;
  gap:.55rem;
}
.footer-brand .name{
  font-weight:950;
  color:#fff;
  font-size:1.2rem;
}
.footer-brand .desc{
  color:#94a3b8;
  margin:0;
}

.footer-news{
  display:flex;
  gap:.55rem;
  margin-top:.55rem;
}
.footer-news .form-control{
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:#fff;
}
.footer-news .form-control::placeholder{
  color:#94a3b8;
}
.footer-news .btn{
  border-radius:999px;
  font-weight:950;
  background:var(--amz-orange);
  border:none;
  color:#111827;
}
.footer-news .btn:hover{
  background:var(--amz-orange2);
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.06);
  padding:14px 0;
  color:#94a3b8;
  font-weight:800;
  font-size:.9rem;
}
.footer-bottom-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}

/* ==========================================================
   Sidebar: Most Viewed
========================================================== */
.sidebar-col .most-viewed-list{
  display:flex;
  flex-direction:column;
  gap:.65rem;
}
.sidebar-col .mv-item{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.65rem .7rem;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.85);
  box-shadow:var(--shadow-sm);
  transition:var(--t);
  text-decoration:none;
  color:var(--text);
}
.sidebar-col .mv-item:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
.sidebar-col .mv-item img{
  width:72px;
  height:56px;
  flex:0 0 72px;
  object-fit:cover;
  border-radius:12px;
  background:#eef2f7;
  border:1px solid rgba(0,0,0,.04);
}

/* ==========================================================
   Page Background
========================================================== */
.site-body{
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(13,110,253,.10), transparent 60%),
    radial-gradient(700px 360px at 15% 0%, rgba(13,110,253,.06), transparent 55%),
    linear-gradient(180deg, #e6f2ff 0%, #dbeafe 100%);
  min-height:100vh;
}
.container,
.page-grid{
  position:relative;
}

/* ==========================================================
   Product Page
========================================================== */
.product-page{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr);
  gap:1.6rem;
  align-items:flex-start;
}
@media (max-width:991.98px){
  .product-page{
    grid-template-columns:1fr;
  }
}
.product-media-col,
.product-info-col{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-sm);
  padding:1.1rem 1.2rem;
}

/* Main image */
.product-main-image-wrapper{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  background:#f1f5f9;
  border:1px solid rgba(148,163,184,.3);
}
.product-main-image{
  width:100%;
  display:block;
  object-fit:contain;
}

/* Thumbs */
.product-thumbs-row{
  margin-top:.9rem;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.product-thumb-image{
  width:70px;
  height:70px;
  border-radius:12px;
  border:1px solid var(--border);
  object-fit:cover;
  cursor:pointer;
  transition:var(--t);
  background:#e5e7eb;
}
.product-thumb-image:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(15,23,42,.16);
}
.product-thumb-video{
  width:120px;
  height:74px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#000;
  object-fit:cover;
}

/* Info side */
.product-title-page{
  font-weight:950;
  font-size:1.4rem;
  margin:0 0 .4rem;
}
.product-meta-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.35rem;
  color:var(--muted);
  font-weight:800;
  font-size:.88rem;
  margin-bottom:.9rem;
}
.pm-item{
  white-space:nowrap;
}
.pm-sep{
  opacity:.6;
}

/* Price card */
.product-price-card{
  margin-bottom:1.1rem;
  padding:.95rem 1rem;
  border-radius:18px;
  border:1px solid var(--border);
  background:linear-gradient(135deg,#f9fafb,#e5edff);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.product-price-lg{
  font-weight:950;
  font-size:1.4rem;
  color:var(--brand);
}
.product-stock-small{
  margin-top:.15rem;
  color:var(--muted);
  font-weight:800;
  font-size:.85rem;
}

.product-add-form{
  display:flex;
  align-items:flex-end;
  gap:.7rem;
  flex-wrap:wrap;
  margin:0;
}
.product-qty-field{
  min-width:120px;
}
.product-add-btn{
  min-width:140px;
  font-weight:900;
  box-shadow:0 12px 26px rgba(22,163,74,.22);
}

/* Description */
.product-desc-card{
  margin-top:.8rem;
  padding:.9rem 1rem;
  border-radius:18px;
  border:1px solid var(--border);
  background:#f9fafb;
}

/* Actions row */
.product-actions-row{
  margin-top:1.1rem;
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}

/* Mobile buy bar */
.mobile-buy-bar{
  position:fixed;
  inset-inline:0;
  bottom:0;
  z-index:1040;
  background:#ffffff;
  border-top:1px solid var(--border);
  box-shadow:0 -8px 20px rgba(15,23,42,.18);
  padding:.5rem .9rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
}
.price-mobile{
  font-weight:950;
  color:var(--brand);
}
@media (min-width:768px){
  .mobile-buy-bar{
    display:none;
  }
}

/* ==========================================================
   Cart Page
========================================================== */
.cart-hero{
  margin-bottom:1rem;
  padding:1rem 1.1rem;
  border-radius:20px;
  background:linear-gradient(120deg, rgba(var(--brand-rgb),.12), rgba(254,189,105,.16));
  border:1px solid rgba(148,163,184,.4);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.cart-title{
  font-weight:950;
  font-size:1.3rem;
  margin:0 0 .2rem;
}
.cart-sub{
  margin:0;
  color:var(--muted);
  font-weight:800;
  font-size:.9rem;
}
.cart-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
}

/* Layout */
.cart-layout{
  display:grid;
  grid-template-columns:minmax(0,2.5fr) minmax(0,1.2fr);
  gap:1rem;
  margin-top:1.2rem;
}
@media (max-width:991.98px){
  .cart-layout{
    grid-template-columns:1fr;
  }
}

/* Main table card */
.cart-main{
  background:#fff;
  border-radius:20px;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  padding:1rem;
}
.cart-table-wrap{
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#f9fafb;
}

/* Summary card */
.cart-summary{
  align-self:flex-start;
}
.cart-summary-card{
  background:#fff;
  border-radius:20px;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  padding:1rem 1.1rem;
}
.cart-summary-title{
  font-weight:900;
  margin:0 0 .8rem;
}
.cart-summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  margin-bottom:.45rem;
}
.cart-summary-total span:last-child{
  font-weight:950;
  color:var(--brand);
}

/* ==========================================================
   Checkout Page
========================================================== */
.checkout-page{
  max-width:1100px;
}

/* شريط علوي */
.checkout-hero{
  margin-bottom:1rem;
  padding:1rem 1.1rem;
  border-radius:20px;
  background:linear-gradient(120deg, rgba(var(--brand-rgb),.12), rgba(22,163,74,.16));
  border:1px solid rgba(148,163,184,.4);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.checkout-title{
  font-weight:950;
  font-size:1.3rem;
  margin:0 0 .2rem;
}
.checkout-sub{
  margin:0;
  color:var(--muted);
  font-weight:800;
  font-size:.9rem;
}
.checkout-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
}

/* Layout */
.checkout-layout{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,1.1fr);
  gap:1rem;
  margin-top:1.2rem;
}
@media (max-width:991.98px){
  .checkout-layout{
    grid-template-columns:1fr;
  }
}

/* Payment boxes */
.pay-box{
  display:none;
  margin-top:.6rem;
  padding:.7rem .8rem;
  border-radius:14px;
  border:1px solid var(--border);
  background:#f9fafb;
}
.pay-box.active{
  display:block;
}

/* ملخص السلة في checkout */
.checkout-summary{
  align-self:flex-start;
}