/* GoldyStore — ستايل خفيف بنمط goldysoft (ذهبي/أبيض، RTL/LTR) · خط Cairo عالمي */
@import url('/assets/fonts/cairo.css');
:root {
  --gold: #c9a227;
  --gold-dark: #a5851c;
  --gold-soft: #f7edd0;
  --ink: #1f2430;
  --muted: #6b7280;
  --bg: #f8f9fb;
  --card: #ffffff;
  --line: #e5e7eb;
  --green: #15803d;
  --red: #b91c1c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Cairo', "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.site-header {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--gold-dark); display: inline-flex; align-items: center; }
.logo-img { max-height: 46px; max-width: 210px; width: auto; display: block; }
.lang-switch {
  border: 1px solid var(--gold); color: var(--gold-dark);
  padding: 6px 14px; border-radius: 20px; font-size: .9rem;
}
.lang-switch:hover { background: var(--gold); color: #fff; }

/* شريط تنقل الأقسام */
.cat-nav { background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); }
.cat-nav .wrap { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav-i { display: inline-block; padding: 11px 13px; color: #e5e9f2; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.nav-i:hover { color: var(--gold); }
.nav-drop { position: relative; }
.nav-drop .nav-sub {
  position: absolute; top: 100%; inset-inline-start: 0; background: #fff; min-width: 200px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18); border-radius: 0 0 10px 10px; padding: 6px; z-index: 30;
  display: none; flex-direction: column;
}
.nav-drop:hover .nav-sub { display: flex; }
.nav-sub a { padding: 8px 14px; color: var(--ink); font-size: .88rem; border-radius: 6px; }
.nav-sub a:hover { background: var(--gold-soft); color: var(--gold-dark); }
@media (max-width: 720px) { .cat-nav .wrap { overflow-x: auto; flex-wrap: nowrap; } .nav-drop .nav-sub { position: static; box-shadow: none; display: none; } }

main.wrap { padding: 24px 16px 48px; min-height: 60vh; }

/* البنر المتحرك (slider) */
.slider { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 8px; }
.slides { position: relative; height: 300px; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide-in { max-width: 640px; padding: 24px; }
.slide-in h2 { font-size: 2.1rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -.5px; }
.slide-in p { font-size: 1.1rem; opacity: .94; margin-bottom: 18px; }
.slide-btn { display: inline-block; background: var(--gold); color: #16130a; font-weight: 800; padding: 12px 30px; border-radius: 12px; transition: transform .12s; }
.slide-btn:hover { transform: translateY(-2px); }
.slide-dots { position: absolute; bottom: 14px; inset-inline: 0; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.slide-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.slide-dots button.on { background: var(--gold); width: 26px; border-radius: 6px; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.2); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 3; }
.slide-nav:hover { background: rgba(255,255,255,.35); }
.slide-nav.prev { inset-inline-start: 12px; }
.slide-nav.next { inset-inline-end: 12px; }
@media (max-width: 640px) { .slides { height: 220px; } .slide-in h2 { font-size: 1.5rem; } .slide-nav { display: none; } }

/* شريط المزايا المتحرك */
.marquee { background: var(--gold-soft); border-block: 1px solid #ecd9a0; overflow: hidden; }
.mq-track { display: inline-flex; gap: 40px; white-space: nowrap; padding: 8px 0; animation: mq 28s linear infinite; }
[dir="ltr"] .mq-track { animation-direction: reverse; }
.mq-i { color: var(--gold-dark); font-weight: 700; font-size: .85rem; }
.mq-i a { color: inherit; text-decoration: none; }
.mq-i a:hover { text-decoration: underline; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* الشريط السفلي المتحرك (المزايا: شحن/دعم/إرجاع) — داخل الفوتر فوق حقوق النشر */
.marquee-bottom { margin-top: 14px; border-radius: 10px; }
.marquee-top { border-block: 1px solid #ecd9a0; }

/* شريط تعديل المدير (يظهر للوحة المسجّلة فقط) */
.admin-editbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #0e1526; color: #fff;
  padding: 7px 16px; font-size: .8rem; }
.admin-editbar .ae-tag { background: var(--gold); color: #0e1526; font-weight: 800; padding: 2px 10px; border-radius: 99px; font-size: .72rem; }
.admin-editbar a { color: #dbe3f4; text-decoration: none; padding: 3px 9px; border-radius: 7px; transition: background .15s; }
.admin-editbar a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-editbar .ae-dash { margin-inline-start: auto; color: var(--gold); font-weight: 700; }

/* hero الرئيسية (احتياطي) */
.hero {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff; border-radius: 16px; padding: 44px 28px; text-align: center; margin-bottom: 8px;
}
.hero h1 { font-size: 2rem; margin-bottom: 8px; letter-spacing: -.5px; }
.hero p { opacity: .93; font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* مسار التنقل */
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 14px 0 4px; }
.breadcrumb a { color: var(--gold-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 7px; }
.breadcrumb span:last-child { color: var(--ink); }
.sec-title, .page-title {
  font-size: 1.4rem; margin: 24px 0 16px; font-weight: 800;
  border-inline-start: 4px solid var(--gold); padding-inline-start: 10px;
}
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.grid.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .grid.grid-cols-2, .grid.grid-cols-3, .grid.grid-cols-4 { grid-template-columns: repeat(2, 1fr); } }
/* شريط أدوات القائمة: العدد + الترتيب + العرض */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 4px 0 16px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.lt-count { font-weight: 700; color: var(--muted); font-size: .88rem; }
.lt-controls { display: flex; gap: 14px; flex-wrap: wrap; }
.lt-sel { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.lt-sel select { border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 11px; font: inherit; font-size: .85rem; background: #fff; color: var(--ink); cursor: pointer; }
.lt-sel select:focus { outline: 0; border-color: var(--gold); }

/* شريط الأقسام المتحرك */
.cat-carousel { position: relative; display: flex; align-items: center; gap: 6px; }
.cc-track { display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; padding: 6px 2px 12px; flex: 1; scrollbar-width: none; }
.cc-track::-webkit-scrollbar { display: none; }
.cc-item { flex: 0 0 auto; width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; text-align: center; transition: box-shadow .15s, transform .15s; }
.cc-item:hover { box-shadow: 0 8px 22px rgba(0,0,0,.1); transform: translateY(-3px); border-color: var(--gold); }
.cc-img { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.cc-img img { max-height: 90px; max-width: 100%; object-fit: contain; }
.cc-item h3 { font-size: .92rem; font-weight: 700; }
.cc-count { color: var(--muted); font-size: .78rem; }
.cc-nav { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.3rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cc-nav:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
@media (max-width: 640px) { .cc-nav { display: none; } .cc-item { width: 130px; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.card-img { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.no-img { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #f1f3f5, #f1f3f5 10px, #e9ecef 10px, #e9ecef 20px); }
.no-img.big { aspect-ratio: 1; border-radius: 12px; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: .98rem; font-weight: 700; line-height: 1.45; }
.card-body h3 a:hover { color: var(--gold-dark); }
.price { color: var(--ink); font-weight: 800; font-size: 1.05rem; margin-top: auto; }

/* بطاقة goldysoft: ماركة + وصف + أزرار + شارة جديد */
.pcard { position: relative; display: flex; flex-direction: column; height: 100%; }
/* صورة بارتفاع ثابت قصير — بطاقات مدمجة ومتناسقة (لا طول غريب) */
.pcard .card-img { background: #f6f8fc; height: 150px; aspect-ratio: auto; overflow: hidden; flex-shrink: 0; }
.pcard .card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pcard .card-body { padding: 12px 14px; gap: 5px; }
.pcard .card-desc { -webkit-line-clamp: 2; min-height: 0; }
@media (max-width: 640px) { .pcard .card-img { height: 130px; } }
.badge-new { position: absolute; top: 10px; inset-inline-start: 12px; color: var(--gold); font-size: 1.1rem; z-index: 2; }
/* شارات البطاقة (خصم/جديد/الأكثر مبيعاً) */
.card-badges { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.pb { font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; color: #fff; line-height: 1.2; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.pb-disc { background: var(--red); }
.pb-new { background: var(--green); }
.pb-best { background: linear-gradient(135deg, #f97316, #ea580c); }
.wl-form { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3; }
.wl-btn { border: 0; background: rgba(255,255,255,.9); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 1rem; box-shadow: 0 2px 6px rgba(0,0,0,.12); transition: transform .12s; }
.wl-btn:hover { transform: scale(1.12); }
.wl-inline { display: inline-block; margin-top: 8px; }
.wl-lg { border: 1.5px solid var(--line); cursor: pointer; font: inherit; }
.wl-lg.on { border-color: var(--red); color: var(--red); }
.card-brand { color: var(--gold-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.card-desc { color: var(--muted); font-size: .8rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.card-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-detail, .btn-order {
  flex: 1; text-align: center; padding: 9px 6px; border-radius: 10px; font-size: .85rem; font-weight: 700;
  transition: all .13s;
}
.btn-detail { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-detail:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-order { background: var(--gold); color: #fff; }
.btn-order:hover { background: var(--gold-dark); transform: translateY(-1px); }
.big-price { font-size: 1.5rem; margin: 12px 0; }
.old-price { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: .85em; margin-inline-start: 6px; }

.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
@media (max-width: 760px) { .product-page { grid-template-columns: 1fr; } }
.product-gallery .main-img { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.product-gallery .thumb-img { width: 80px; display: inline-block; margin: 8px 4px 0 0; border: 1px solid var(--line); border-radius: 8px; }
.product-info h1 { font-size: 1.6rem; margin-bottom: 8px; }
.sku { color: var(--muted); font-size: .85rem; }
.stock { font-weight: 700; margin-bottom: 12px; }
.stock.in { color: var(--green); }
.stock.out { color: var(--red); }
.short-desc, .rich-text { color: #374151; }
.full-desc { margin-top: 32px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.empty { color: var(--muted); padding: 32px 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pg { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; font-size: .88rem; }
.pg:hover { border-color: var(--gold); color: var(--gold-dark); }
.pg.on { background: var(--gold); color: #fff; border-color: var(--gold); }

.site-footer { background: var(--ink); color: #d1d5db; margin-top: 48px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding: 32px 16px 8px; }
.foot-col h4 { color: var(--gold); margin-bottom: 10px; font-size: 1rem; }
.foot-links { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.foot-links a:hover { color: var(--gold); }
.foot-desc { color: #aab3cd; font-size: .85rem; line-height: 1.7; margin-bottom: 10px; max-width: 320px; }
.foot-copy { padding: 16px; text-align: center; font-size: .85rem; border-top: 1px solid #2c3242; margin-top: 16px; }
.foot-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 18px 16px 4px; }
.badge-chip { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #e5e9f2; border-radius: 20px; padding: 5px 16px; font-size: .82rem; font-weight: 700; }
.foot-social { display: flex; gap: 8px; margin-top: 12px; }
.soc { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #e5e9f2; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, transform .12s; }
.soc:hover { background: var(--gold); color: #16130a; transform: translateY(-2px); }
.soc.wa:hover { background: #25d366; color: #fff; }

/* التقييمات */
.reviews-sec { margin-top: 36px; }
.avg-rate { color: var(--gold-dark); font-size: .9rem; font-weight: 800; }
.review-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stars { color: var(--gold); letter-spacing: 2px; }
.review-date { color: var(--muted); font-size: .78rem; margin-inline-start: auto; }
.review-title { font-weight: 700; margin-top: 4px; }
.review-item p { color: #444b5a; font-size: .9rem; margin-top: 4px; }
.review-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin-top: 14px; }
.review-form h3 { font-size: 1rem; }
.review-form input, .review-form textarea, .review-form select { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; }
.review-form input:focus, .review-form textarea:focus { outline: 0; border-color: var(--gold); }
.review-row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; }
.review-form .btn-buy { border: 0; cursor: pointer; }
/* الرأس: بحث + سلة */
.head-search { flex: 1; max-width: 380px; display: flex; margin: 0 18px; position: relative; }
/* اقتراحات البحث الفوري */
.search-sug { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; inset-inline-end: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(14,21,38,.16); z-index: 60; overflow: hidden; max-height: 70vh; overflow-y: auto; }
.sug-h { font-size: .72rem; font-weight: 800; color: var(--muted); padding: 8px 14px 4px; text-transform: uppercase; letter-spacing: .3px; }
.sug-item, .sug-cat { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--ink); transition: background .12s; }
.sug-cat { font-weight: 700; font-size: .86rem; }
.sug-item:hover, .sug-cat:hover { background: var(--gold-soft); }
.sug-item img, .sug-noimg { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.sug-noimg { display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.sug-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sug-name { font-size: .86rem; font-weight: 600; line-height: 1.3; }
.sug-price { font-size: .82rem; font-weight: 800; color: var(--gold-dark); }
.sug-price s { color: var(--muted); font-weight: 400; font-size: .76rem; }
.sug-empty { padding: 16px; text-align: center; color: var(--muted); font-size: .85rem; }
.head-search input { flex: 1; border: 1.5px solid var(--line); border-radius: 20px 0 0 20px; padding: 7px 14px; font: inherit; font-size: .88rem; }
[dir="rtl"] .head-search input { border-radius: 0 20px 20px 0; }
.head-search input:focus { outline: 0; border-color: var(--gold); }
.head-search button { border: 1.5px solid var(--gold); background: var(--gold); color: #fff; border-radius: 0 20px 20px 0; padding: 0 14px; cursor: pointer; }
[dir="rtl"] .head-search button { border-radius: 20px 0 0 20px; }
.top-nav { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; font-size: 1.25rem; }
.cart-count { position: absolute; top: -7px; inset-inline-end: -10px; background: var(--red); color: #fff; font-size: .65rem; font-weight: 800; border-radius: 50%; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; }
.acct-lnk { font-size: 1.2rem; }

/* حسابات العملاء */
.auth-box { max-width: 400px; margin: 30px auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.auth-box h1 { text-align: center; margin-bottom: 16px; font-size: 1.3rem; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input { border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; font: inherit; }
.auth-form input:focus { outline: 0; border-color: var(--gold); }
.auth-form .btn-buy { border: 0; cursor: pointer; margin-top: 4px; }
.auth-alt { text-align: center; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.auth-alt a { color: var(--gold-dark); font-weight: 700; }
.acct-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.acct-head .btn-detail { border: 1.5px solid var(--line); }
.acct-info { background: #fbf7ea; border: 1px solid #eee3c0; border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }

/* اختيار الخصائص + أسعار الكميات + نموذج الشراء */
.attr-select { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.attr-field { display: flex; flex-direction: column; gap: 5px; }
.attr-name { font-weight: 700; font-size: .88rem; color: var(--muted); }
.attr-name .req { color: var(--red); }
.attr-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.attr-opt { border: 1.5px solid var(--line); border-radius: 20px; padding: 5px 14px; cursor: pointer; font-size: .87rem; display: inline-flex; align-items: center; gap: 5px; background: #fff; }
.attr-opt:has(input:checked) { border-color: var(--gold); background: #fdf6e3; font-weight: 700; }
.attr-opt input { accent-color: var(--gold-dark); }
.attr-select select { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; background: #fff; max-width: 280px; }
.tier-box { background: #f0f7ff; border: 1px solid #cfe3fa; border-radius: 10px; padding: 9px 13px; font-size: .85rem; font-weight: 700; color: #1e4f8f; margin-top: 10px; }
.tier-chip { background: #fff; border-radius: 12px; padding: 2px 10px; margin-inline-end: 4px; }
.buy-row { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.buy-row .c-qty { width: 76px; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 10px; font: inherit; text-align: center; }
.buy-row .btn-buy { margin-top: 0; border: 0; cursor: pointer; }
.buy-row .btn-detail { padding: 13px 22px; }

/* السلة */
.cart-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 14px; }
.cart-tbl { width: 100%; border-collapse: collapse; }
.cart-tbl th { text-align: start; color: var(--muted); font-size: .8rem; padding: 8px; border-bottom: 1px solid var(--line); }
.cart-tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-tbl.small td { padding: 6px 4px; font-size: .88rem; }
.c-img img { width: 54px; height: 54px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #f6f8fc; }
.c-attrs { color: var(--muted); font-size: .78rem; }
.c-qty { width: 64px; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px; text-align: center; font: inherit; }
.c-rm { border: 0; background: #fef2f2; color: var(--red); border-radius: 8px; width: 28px; height: 28px; cursor: pointer; font-weight: 800; }
.c-total td { font-weight: 800; font-size: 1.05rem; border-bottom: 0; }
.cart-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.cart-actions .btn-detail { border: 1.5px solid var(--line); cursor: pointer; font: inherit; }
.co-summary h2 { font-size: 1.05rem; margin-bottom: 10px; }

/* شريط المزايا + الفيديو */
.benefits { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; padding: 14px; background: #fbf7ea; border: 1px solid #eee3c0; border-radius: 12px; }
.benefits li { font-size: .85rem; font-weight: 700; color: #6b5b1e; }
.product-video { margin-top: 28px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16/9; }
.product-video iframe, .product-video video { width: 100%; height: 100%; border: 0; display: block; }

.specs-tbl { width: 100%; max-width: 600px; border-collapse: collapse; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs-tbl th { text-align: start; background: #fafbfd; padding: 9px 14px; font-size: .87rem; color: var(--muted); width: 40%; border-bottom: 1px solid var(--line); }
.specs-tbl td { padding: 9px 14px; font-size: .9rem; border-bottom: 1px solid var(--line); }
.specs-tbl tr:last-child th, .specs-tbl tr:last-child td { border-bottom: 0; }
.brand-line { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.brand-line a { color: var(--gold-dark); font-weight: 700; }
.topic-body { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; margin-top: 12px; font-size: .95rem; line-height: 1.9; color: #3a3f47; max-width: 900px; }
.topic-body h2 { font-size: 1.45rem; color: var(--gold-dark); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--line); font-weight: 800; }
.topic-body h3 { font-size: 1.08rem; color: #1f2530; margin: 26px 0 8px; font-weight: 700; }
.topic-body p { margin: 0 0 12px; }
.topic-body ul, .topic-body ol { margin: 8px 0 14px; padding-inline-start: 26px; }
.topic-body li { margin-bottom: 7px; }
.topic-body strong { color: #1f2530; font-weight: 700; }
@media (max-width: 720px) { .topic-body { padding: 20px 18px; font-size: .92rem; } .topic-body h2 { font-size: 1.25rem; } .topic-body h3 { font-size: 1.02rem; } }
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 16px; }
.sm-col { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.sm-col h3 { color: var(--gold-dark); margin-bottom: 10px; font-size: 1rem; }
.sm-col ul { list-style: none; }
.sm-col ul ul { padding-inline-start: 16px; margin: 4px 0; }
.sm-col li { padding: 3px 0; }
.sm-col a { font-size: .9rem; }
.sm-col a:hover { color: var(--gold-dark); }
.sm-wide { grid-column: 1 / -1; }
.sm-products { columns: 3; column-gap: 24px; }
@media (max-width: 720px) { .sm-products { columns: 1; } }

/* المدونة */
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.blog-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; gap: 8px; }
.blog-item:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); transform: translateY(-2px); }
.blog-item h2 { font-size: 1.05rem; color: var(--ink); }
.blog-item p { color: var(--muted); font-size: .88rem; }
.blog-date { color: var(--muted); font-size: .8rem; }
/* الاستطلاع */
.poll-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 32px; max-width: 480px; }
.poll-box h3 { margin-bottom: 12px; font-size: 1.05rem; }
.poll-opt { display: flex; align-items: center; gap: 8px; padding: 7px 0; cursor: pointer; }
.poll-opt input { accent-color: var(--gold-dark); }
.poll-box .btn-buy { border: 0; cursor: pointer; margin-top: 10px; }
.poll-res { margin: 8px 0; font-size: .88rem; }
.poll-bar { background: var(--line); border-radius: 6px; height: 8px; margin-top: 4px; overflow: hidden; }
.poll-bar div { background: linear-gradient(90deg, var(--gold), var(--gold-dark)); height: 100%; }

.blog-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { color: var(--gold-dark); font-size: .85rem; font-weight: 700; background: #fbf6e6; border: 1px solid #efe3bf; border-radius: 99px; padding: 4px 12px; }

/* صورة غلاف المقال + تنسيق النص التحريري */
.blog-hero { margin: 0 0 22px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 26px rgba(14,21,38,.14); }
.blog-hero img { width: 100%; height: auto; display: block; }
.topic-body .rich-text { font-size: .95rem; line-height: 1.95; color: #3a3f47; }
.topic-body .rich-text h2 { font-size: 1.35rem; color: var(--gold-dark); font-weight: 800; margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.topic-body .rich-text h3 { font-size: 1.08rem; color: #1f2530; font-weight: 700; margin: 22px 0 8px; }
.topic-body .rich-text p { margin: 0 0 13px; }
.topic-body .rich-text ul, .topic-body .rich-text ol { margin: 10px 0 16px; padding-inline-start: 26px; }
.topic-body .rich-text li { margin-bottom: 9px; }
.topic-body .rich-text strong { color: #1f2530; font-weight: 700; }
.topic-body .rich-text blockquote { margin: 18px 0; padding: 16px 20px; background: #fbf6e6; border-inline-start: 4px solid var(--gold); border-radius: 10px; color: #4a4326; font-size: 1.02rem; font-style: italic; }
.topic-body .page-title { margin-bottom: 6px; }

/* الشراء السريع */
.btn-buy {
  display: inline-block; background: var(--gold); color: #fff; font-weight: 800;
  padding: 14px 34px; border-radius: 12px; font-size: 1.05rem; border: 0; cursor: pointer;
  margin-top: 10px; transition: background .15s, transform .1s;
}
.btn-buy:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-buy.wide { width: 100%; text-align: center; }
.qb-page { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; margin-top: 24px; max-width: 900px; }
@media (max-width: 720px) { .qb-page { grid-template-columns: 1fr; } }
.qb-product { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; height: fit-content; }
.qb-product img { max-width: 240px; margin: 0 auto 12px; border-radius: 10px; }
.qb-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.qb-form label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.qb-form input, .qb-form textarea {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit;
}
.qb-form input:focus, .qb-form textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.qb-form select { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; background: #fff; }
.qb-form select:focus { outline: 0; border-color: var(--gold); }
.qb-form .opt { font-weight: 400; font-size: .8em; }
.qb-form .hp { position: absolute; left: -9999px; top: -9999px; }
.qb-err { color: var(--red); font-size: .85rem; background: #fef2f2; border-radius: 8px; padding: 8px 12px; }
.qb-success { text-align: center; padding: 48px 16px; max-width: 480px; margin: 0 auto; }
.qb-success .big-check {
  width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff;
  font-size: 2.6rem; line-height: 84px; margin: 0 auto 18px;
}
.qb-success h1 { margin-bottom: 10px; }
.qb-success .order-no { font-size: 1.2rem; margin-bottom: 6px; }

/* ===== إتمام الطلب بنمط احترافي (Amazon-style) ===== */
.co-form { margin-top: 18px; }
.co-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .co-grid { grid-template-columns: 1fr; } }
.co-main { display: flex; flex-direction: column; gap: 18px; }
.co-sec { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.co-sec-t { font-size: 1.02rem; font-weight: 800; color: var(--ink); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .co-fields { grid-template-columns: 1fr; } }
.co-fields label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.co-fields label.co-wide { grid-column: 1 / -1; }
.co-fields input, .co-fields textarea, .co-fields select {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; background: #fff; color: var(--ink);
}
.co-fields input:focus, .co-fields textarea:focus, .co-fields select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.co-fields .opt { font-weight: 400; font-size: .8em; color: #9aa2b8; }
/* بطاقات خيارات الشحن/الدفع */
.co-opts { display: flex; flex-direction: column; gap: 10px; }
.co-opts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
@media (max-width: 520px) { .co-opts-grid { grid-template-columns: 1fr; } }
.co-opt { display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.co-opt:hover { border-color: #e6d9b8; background: #fcfcfa; }
.co-opt input { accent-color: var(--gold-dark); width: 18px; height: 18px; flex-shrink: 0; }
.co-opt:has(input:checked) { border-color: var(--gold); background: #fdfaf0; box-shadow: 0 0 0 3px rgba(201,162,39,.12); }
.co-opt-b { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.co-opt-n { font-weight: 700; color: var(--ink); font-size: .9rem; }
.co-opt-d { font-size: .78rem; color: var(--muted); }
.co-opt-f { font-weight: 800; color: var(--gold-dark); font-size: .9rem; white-space: nowrap; }
/* شحن مدمج: الاسم+المدة في عمود، السعر على الطرف */
.co-ship { align-items: center; }
.co-ship .co-opt-f { margin-inline-start: auto; }
/* الدفع: اسم فوق وصف */
.co-opt:not(.co-ship) .co-opt-b { gap: 3px; }
.free-lbl { color: var(--green); }
/* بطاقة الملخص اللاصقة */
.co-aside { position: sticky; top: 16px; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 6px 20px rgba(14,21,38,.06); }
.co-card-t { font-size: 1.02rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.co-items { font-size: .74rem; font-weight: 700; color: var(--muted); background: #f1f3f8; border-radius: 99px; padding: 3px 10px; }
.co-lines { display: flex; flex-direction: column; gap: 14px; max-height: 340px; overflow-y: auto; padding-bottom: 4px; }
.co-line { display: flex; align-items: center; gap: 12px; }
.co-thumb { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.co-thumb img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.co-noimg { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 10px; background: #f1f3f8; font-size: 1.7rem; }
.co-qty { position: absolute; top: -7px; inset-inline-end: -7px; background: var(--gold-dark); color: #fff; font-size: .7rem; font-weight: 800; font-style: normal; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; padding: 0 5px; }
.co-info { flex: 1; min-width: 0; }
.co-pn { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.co-attrs { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.co-lp { font-weight: 700; font-size: .86rem; color: var(--ink); white-space: nowrap; }
.co-coupon { display: flex; gap: 8px; margin: 16px 0 4px; }
.co-coupon input { flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
.co-coupon input:focus { outline: 0; border-color: var(--gold); }
.co-apply { border: 1.5px solid var(--gold); background: #fff; color: var(--gold-dark); font-weight: 700; border-radius: 10px; padding: 0 16px; cursor: pointer; white-space: nowrap; }
.co-apply:hover { background: var(--gold); color: #fff; }
.co-applied { color: var(--green); font-size: .82rem; font-weight: 700; margin-bottom: 6px; }
.co-applied.auto { color: var(--gold-dark); }
.co-points { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; font-size: .84rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.co-points input { width: 17px; height: 17px; accent-color: var(--gold-dark); }
.co-points b { color: var(--gold-dark); font-weight: 800; }
.co-inv { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.inv-row { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.inv-row span:last-child { font-weight: 700; color: var(--ink); }
.inv-row.disc span { color: var(--green); }
.inv-row.vat { font-size: .84rem; }
.inv-total { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 12px; font-size: 1.05rem; }
.inv-total span { color: var(--ink) !important; font-weight: 800 !important; }
.inv-total span:last-child { color: var(--gold-dark) !important; font-size: 1.15rem; }
.co-confirm { margin-top: 16px; }
.co-secure { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 10px; }
