/* ── Rofouf brand styles — full redesign ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy:    #0D1B2A;
  --yellow:  #F6C33B;
  --yellow2: #e5b22a;
  --teal:    #22C1A1;
  --coral:   #FF6B6B;
  --offwhite:#F5F6F8;
  --white:   #FFFFFF;
  --muted:   #6B7280;
  --border:  #E5E7EB;
  --radius:  12px;
  --shadow:  0 2px 12px rgba(13,27,42,.07);
  --shadow-md:0 6px 24px rgba(13,27,42,.12);
}
*,*::before,*::after{box-sizing:border-box;}
body{margin:0;font-family:'Cairo',sans-serif;background:var(--offwhite);color:var(--navy);direction:rtl;line-height:1.6;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
h1,h2,h3,h4,p,ul,ol{margin:0;padding:0;}
ul{list-style:none;}
.container{max-width:1200px;margin:0 auto;padding:0 20px;}

/* ── Buttons ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 22px;border-radius:50px;font-weight:700;font-family:inherit;font-size:14px;border:2px solid transparent;cursor:pointer;line-height:1;transition:all .15s;white-space:nowrap;}
.btn:hover{transform:translateY(-1px);}
.btn-primary{background:var(--yellow);color:var(--navy);border-color:var(--yellow);}
.btn-primary:hover{background:var(--yellow2);border-color:var(--yellow2);}
.btn-secondary{background:var(--navy);color:var(--white);border-color:var(--navy);}
.btn-teal{background:var(--teal);color:var(--white);}
.btn-coral{background:var(--coral);color:var(--white);}
.btn-outline{background:transparent;color:var(--navy);border-color:var(--border);}
.btn-outline:hover{background:var(--offwhite);}
.btn-outline-white{background:transparent;color:var(--white);border-color:rgba(255,255,255,.5);}
.btn-sm{padding:7px 16px;font-size:13px;}
.btn-block{width:100%;}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none;}

/* ══════════════════════════════════════════════════════
   HEADER — top bar + nav bar
══════════════════════════════════════════════════════ */
.site-header{background:var(--white);color:var(--navy);position:sticky;top:0;z-index:200;box-shadow:0 1px 8px rgba(0,0,0,.08);}

/* top bar */
.header-top{border-bottom:1px solid var(--border);}
.header-top .container{display:flex;align-items:center;gap:16px;padding-top:12px;padding-bottom:12px;}
.logo{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.logo img{height:42px;}
.search-form{flex:1;max-width:480px;display:flex;background:var(--offwhite);border:1.5px solid var(--border);border-radius:50px;overflow:hidden;transition:border-color .15s;}
.search-form:focus-within{border-color:var(--teal);}
.search-form input{flex:1;background:transparent;border:none;outline:none;padding:10px 18px;font-family:inherit;font-size:14px;color:var(--navy);}
.search-form input::placeholder{color:var(--muted);}
.search-form button{background:transparent;border:none;padding:0 16px;cursor:pointer;font-size:17px;color:var(--muted);}
.header-icons{display:flex;align-items:center;gap:8px;margin-right:auto;}
.hicon{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:600;color:var(--muted);padding:4px 8px;border-radius:8px;cursor:pointer;position:relative;transition:color .15s;}
.hicon:hover{color:var(--navy);}
.hicon svg,.hicon .ico{font-size:24px;line-height:1;}
.hicon .badge{position:absolute;top:0;right:2px;background:var(--yellow);color:var(--navy);border-radius:50%;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;padding:0 3px;}

/* nav bar */
.header-nav{background:var(--white);}
.header-nav .container{display:flex;align-items:center;gap:0;padding-top:0;padding-bottom:0;}
.all-cats-btn{display:flex;align-items:center;gap:8px;background:var(--navy);color:var(--white);padding:13px 20px;font-weight:700;font-size:14px;white-space:nowrap;cursor:pointer;border:none;font-family:inherit;}
.all-cats-btn:hover{background:#16263c;}
.nav-cats{display:flex;align-items:center;gap:0;overflow-x:auto;scrollbar-width:none;}
.nav-cats::-webkit-scrollbar{display:none;}
.nav-cat{display:flex;align-items:center;gap:6px;padding:13px 16px;font-weight:600;font-size:14px;color:var(--muted);white-space:nowrap;border-bottom:2px solid transparent;transition:all .15s;cursor:pointer;}
.nav-cat:hover,.nav-cat.active{color:var(--navy);border-bottom-color:var(--yellow);}
.nav-cat .ico{font-size:16px;}

/* ══════════════════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════════════════ */
.hero-slider{position:relative;overflow:hidden;background:var(--white);}
.hero-slide{
  display:none;
  padding:36px 0 28px;
  animation:slideIn .45s ease;
}
.hero-slide.active{display:block;}
@keyframes slideIn{from{opacity:0;transform:translateX(30px);}to{opacity:1;transform:translateX(0);}}
.hero-text{flex:1;min-width:280px;}
.hero-tag{display:inline-block;color:var(--white);padding:5px 16px;border-radius:50px;font-size:13px;font-weight:700;margin-bottom:16px;}
.hero-text h1{font-size:clamp(26px,4vw,44px);font-weight:900;line-height:1.2;margin-bottom:14px;color:var(--navy);}
.hero-text h1 span{color:var(--yellow);}
.hero-text p{font-size:14px;color:var(--muted);margin-bottom:24px;line-height:1.7;max-width:380px;}
.hero-img{flex:1;min-width:240px;display:flex;align-items:center;justify-content:center;}
.slider-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  background:var(--white);border:1.5px solid var(--border);border-radius:50%;
  width:42px;height:42px;display:flex;align-items:center;justify-content:center;
  cursor:pointer;font-size:22px;font-weight:700;box-shadow:var(--shadow);z-index:10;
  transition:all .15s;color:var(--navy);line-height:1;
}
.slider-arrow:hover{background:var(--yellow);border-color:var(--yellow);}
.slider-arrow.prev{right:20px;}
.slider-arrow.next{left:20px;}
.slider-dots{display:flex;justify-content:center;gap:8px;padding:12px 0 20px;background:transparent;}
.dot{width:8px;height:8px;border-radius:50%;background:var(--border);cursor:pointer;transition:all .25s;}
.dot.active{background:var(--yellow);width:28px;border-radius:4px;}

/* ══════════════════════════════════════════════════════
   CATEGORY ROW
══════════════════════════════════════════════════════ */
.cat-row{background:var(--white);padding:20px 0;border-top:1px solid var(--border);}
.cat-row .inner{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;padding:0 20px;}
.cat-row .inner::-webkit-scrollbar{display:none;}
.cat-pill{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:100px;background:var(--offwhite);border-radius:var(--radius);padding:16px 12px;font-size:13px;font-weight:700;cursor:pointer;border:2px solid transparent;transition:all .2s;flex-shrink:0;}
.cat-pill:hover,.cat-pill.active{border-color:var(--yellow);background:var(--white);box-shadow:var(--shadow);}
.cat-pill .cico{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;}

/* ══════════════════════════════════════════════════════
   MAIN CONTENT — 3 columns
══════════════════════════════════════════════════════ */
.main-section{padding:28px 0 48px;}
.main-grid{display:grid;grid-template-columns:220px 1fr 220px;gap:20px;align-items:start;}

/* ── Deals card (left) ── */
.deals-card{background:var(--navy);color:var(--white);border-radius:var(--radius);padding:20px;overflow:hidden;}
.deals-card h3{font-size:16px;font-weight:800;margin-bottom:4px;display:flex;align-items:center;gap:6px;}
.countdown{display:flex;gap:4px;margin:14px 0;align-items:center;}
.countdown .seg{text-align:center;}
.countdown .num{background:var(--white);color:var(--navy);border-radius:6px;font-size:20px;font-weight:900;padding:6px 10px;min-width:36px;display:block;}
.countdown .lbl{font-size:10px;color:rgba(255,255,255,.6);display:block;margin-top:2px;}
.countdown .sep{font-size:20px;font-weight:700;color:var(--yellow);align-self:flex-start;padding-top:4px;}
.deal-product{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.07);border-radius:8px;padding:10px;margin:10px 0;}
.deal-product img{width:56px;height:56px;object-fit:contain;background:var(--white);border-radius:6px;padding:4px;}
.deal-product .info .name{font-size:13px;font-weight:700;}
.deal-product .info .disc{background:var(--coral);color:white;font-size:11px;font-weight:800;padding:2px 7px;border-radius:50px;display:inline-block;margin-top:2px;}
.deal-product .info .price{font-size:15px;font-weight:900;color:var(--yellow);margin-top:2px;}
.deal-product .info .old-price{font-size:12px;text-decoration:line-through;color:rgba(255,255,255,.5);}

/* ── Products grid (center) ── */
.products-col h2{font-size:17px;font-weight:800;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;}
.products-col h2 a{font-size:13px;font-weight:600;color:var(--teal);}
.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px;}

/* ── Best sellers (right) ── */
.bestsellers-col h2{font-size:17px;font-weight:800;margin-bottom:16px;display:flex;align-items:center;gap:6px;}
.bs-list{display:flex;flex-direction:column;gap:10px;}
.bs-item{display:flex;align-items:center;gap:10px;background:var(--white);border-radius:var(--radius);padding:10px;box-shadow:var(--shadow);}
.bs-item img{width:52px;height:52px;object-fit:contain;background:var(--offwhite);border-radius:8px;padding:4px;flex-shrink:0;}
.bs-item .info{flex:1;min-width:0;}
.bs-item .info .name{font-size:13px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.bs-item .info .price{font-size:14px;font-weight:900;color:var(--navy);margin-top:2px;}

/* ══════════════════════════════════════════════════════
   PRODUCT CARD
══════════════════════════════════════════════════════ */
.product-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;border:1.5px solid var(--border);transition:all .2s;position:relative;}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--yellow);}
.product-card .img-wrap{aspect-ratio:1/1;background:var(--offwhite);overflow:hidden;display:flex;align-items:center;justify-content:center;position:relative;}
.product-card .img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .3s;}
.product-card:hover .img-wrap img{transform:scale(1.05);}
.disc-badge{position:absolute;top:10px;right:10px;background:var(--coral);color:#fff;font-size:11px;font-weight:800;padding:3px 9px;border-radius:50px;}
.product-card .body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1;}
.product-card .cat-label{font-size:11px;color:var(--muted);font-weight:600;}
.product-card h3{font-size:14px;font-weight:700;line-height:1.4;}
.stars{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--yellow);}
.stars .count{color:var(--muted);font-size:11px;}
.price-row{display:flex;align-items:center;gap:8px;margin-top:4px;}
.price{font-weight:900;color:var(--navy);font-size:16px;}
.compare-price{text-decoration:line-through;color:var(--muted);font-size:13px;}
.stock-low{color:var(--coral);font-size:12px;font-weight:700;}
.stock-out{color:var(--muted);font-size:12px;font-weight:700;}
.add-to-cart-btn{margin-top:8px;width:100%;display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 12px;background:var(--yellow);color:var(--navy);border:none;border-radius:50px;font-weight:700;font-family:inherit;font-size:13px;cursor:pointer;transition:all .15s;}
.add-to-cart-btn:hover{background:var(--yellow2);}
.qty-row{display:flex;align-items:center;gap:6px;margin-top:8px;}
.qty-row input[type=number]{width:52px;padding:7px 6px;border-radius:8px;border:1.5px solid var(--border);font-family:inherit;font-size:13px;text-align:center;}

/* ══════════════════════════════════════════════════════
   TRUST STRIP (bottom)
══════════════════════════════════════════════════════ */
.trust-strip{background:var(--white);border-top:1px solid var(--border);padding:24px 0;}
.trust-strip .container{display:flex;justify-content:center;align-items:center;gap:48px;flex-wrap:wrap;}
.trust-item{display:flex;align-items:center;gap:12px;}
.trust-icon{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;}
.trust-text strong{display:block;font-size:14px;font-weight:700;}
.trust-text span{font-size:12px;color:var(--muted);}

/* ══════════════════════════════════════════════════════
   UTILITY / SHARED
══════════════════════════════════════════════════════ */
.card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;}
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;}
.section-header h2{font-size:20px;font-weight:800;}
.section-header a{font-size:13px;font-weight:700;color:var(--teal);}
.flex{display:flex;}
.flex-between{display:flex;justify-content:space-between;align-items:center;}
.gap-8{gap:8px;}.gap-12{gap:12px;}.gap-16{gap:16px;}
.mt-16{margin-top:16px;}.mb-16{margin-bottom:16px;}
.mt-24{margin-top:24px;}.mb-24{margin-bottom:24px;}
.text-muted{color:var(--muted);}
.text-center{text-align:center;}
.badge{position:absolute;top:10px;right:10px;background:var(--coral);color:#fff;font-size:11px;font-weight:800;padding:3px 9px;border-radius:50px;}

/* ── Messages ── */
.messages{list-style:none;margin:12px 0;}
.messages li{padding:12px 16px;border-radius:8px;margin-bottom:8px;font-weight:600;font-size:14px;}
.messages .success{background:#e3f9f3;color:#0e7a5f;border:1px solid var(--teal);}
.messages .error{background:#ffeceb;color:#c43e36;border:1px solid var(--coral);}
.messages .warning{background:#fff8e6;color:#8a6515;border:1px solid var(--yellow);}
.messages .info{background:#eef6ff;color:#2563a6;}

/* ── Tables ── */
table{width:100%;border-collapse:collapse;background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);}
table th,table td{padding:12px 14px;text-align:right;border-bottom:1px solid var(--border);font-size:14px;}
table th{background:var(--offwhite);font-weight:700;}
table tr:last-child td{border-bottom:none;}

/* ── Status badges ── */
.status-badge{display:inline-block;padding:4px 12px;border-radius:50px;font-size:12px;font-weight:700;}
.status-pending{background:#fff8e6;color:#8a6515;}
.status-confirmed{background:#eef6ff;color:#2563a6;}
.status-preparing{background:#f0e9ff;color:#6d28d9;}
.status-shipped{background:#fdeedd;color:#b9560a;}
.status-delivered{background:#e3f9f3;color:#0e7a5f;}
.status-cancelled{background:#ffeceb;color:#c43e36;}

/* ── Forms ── */
.form-group{margin-bottom:16px;}
.form-group label{display:block;font-weight:700;margin-bottom:6px;font-size:14px;}
.form-group input[type=text],.form-group input[type=password],.form-group input[type=tel],
.form-group input[type=number],.form-group input[type=email],
.form-group select,.form-group textarea{width:100%;padding:10px 14px;border:1.5px solid var(--border);border-radius:8px;font-family:inherit;font-size:14px;transition:border-color .15s;}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--teal);}
.form-group textarea{resize:vertical;}
.form-group .help-text{font-size:12px;color:var(--muted);margin-top:4px;}
.form-group .errorlist{color:var(--coral);font-size:13px;list-style:none;margin:4px 0 0;}
.radio-group label{display:flex;align-items:center;gap:8px;font-weight:600;margin-bottom:8px;cursor:pointer;}
.radio-group input[type=radio]{width:auto;}

/* ── Dashboard ── */
.dashboard-layout{display:flex;min-height:100vh;}
.dashboard-sidebar{width:230px;background:var(--navy);color:var(--white);flex-shrink:0;}
.dashboard-sidebar .brand{padding:18px 20px;display:flex;align-items:center;gap:8px;font-weight:800;font-size:15px;border-bottom:1px solid rgba(255,255,255,.08);}
.dashboard-sidebar .brand img{height:32px;}
.dashboard-sidebar nav{padding:10px 0;}
.dashboard-sidebar nav a{display:block;padding:11px 20px;font-weight:600;font-size:14px;color:rgba(255,255,255,.8);border-right:3px solid transparent;transition:all .15s;}
.dashboard-sidebar nav a:hover,.dashboard-sidebar nav a.active{color:var(--yellow);background:rgba(255,255,255,.06);border-right-color:var(--yellow);}
.dashboard-main{flex:1;padding:28px;background:var(--offwhite);overflow-x:auto;}
.dashboard-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;}
.dashboard-topbar h1{font-size:22px;font-weight:800;}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:16px;margin-bottom:28px;}
.stat-card{background:var(--white);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);}
.stat-card .label{font-size:13px;color:var(--muted);font-weight:600;}
.stat-card .value{font-size:26px;font-weight:900;margin-top:6px;}
.stat-card.accent-yellow{border-right:4px solid var(--yellow);}
.stat-card.accent-teal{border-right:4px solid var(--teal);}
.stat-card.accent-coral{border-right:4px solid var(--coral);}
.stat-card.accent-navy{border-right:4px solid var(--navy);}
.filters-bar{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap;align-items:center;}
.filters-bar select,.filters-bar input{padding:8px 12px;border-radius:8px;border:1.5px solid var(--border);font-family:inherit;}
.empty-state{text-align:center;padding:50px 20px;color:var(--muted);}

/* ── Footer ── */
.site-footer{background:var(--navy);color:rgba(255,255,255,.7);padding:40px 0 24px;margin-top:0;font-size:14px;}
.footer-inner{display:flex;justify-content:space-between;flex-wrap:wrap;gap:24px;margin-bottom:28px;}
.footer-brand strong{display:block;font-size:20px;font-weight:900;color:var(--white);margin-bottom:8px;}
.footer-brand strong span{color:var(--yellow);}
.footer-col h4{color:var(--white);font-weight:700;margin-bottom:12px;}
.footer-col a{display:block;margin-bottom:7px;opacity:.7;}
.footer-col a:hover{opacity:1;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:16px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;}

/* ── Responsive ── */
@media(max-width:1024px){.main-grid{grid-template-columns:180px 1fr;}.bestsellers-col{display:none;}}
@media(max-width:768px){
  .main-grid{grid-template-columns:1fr;}
  .deals-card{display:none;}
  .header-top .container{flex-wrap:wrap;}
  .search-form{order:3;flex:1 0 100%;}
  .nav-cats{display:none;}
  .prod-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));}
  .dashboard-layout{flex-direction:column;}
  .dashboard-sidebar{width:100%;}
}
