:root {
  --c-primary: #1d3557;      /* كركديه */
  --c-primary-d: #14253d;
  --c-accent: #ff7a59;       /* مانجو */
  --c-dark: #16202e;
  --c-cream: #f7f9fc;
  --c-soft: #eaf1f8;
  --c-muted: #64748b;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(20, 40, 70, .08);
  --shadow-lg: 0 20px 50px rgba(20, 40, 70, .14);
}

* { -webkit-tap-highlight-color: transparent; }
body { font-family: 'Cairo', sans-serif; background: var(--c-cream); color: var(--c-dark); }
h1, h2, h3, .display-title, .brand { font-family: 'Reem Kufi', 'Cairo', sans-serif; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-d); }
img { max-width: 100%; }

/* ===== Top bar & nav ===== */
.topbar { background: var(--c-dark); color: #dfe8f3; font-size: .85rem; padding: 6px 0; }
.topbar a { color: #dfe8f3; }
.main-nav { background: rgba(255, 248, 239, .9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(29, 53, 87, .08); padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; color: var(--c-primary); }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), #2f6690); color: #fff; font-size: 1.3rem; box-shadow: 0 6px 16px rgba(29, 53, 87, .3); }
.main-nav .nav-link { font-weight: 600; color: var(--c-dark); padding: 8px 14px !important; border-radius: 50px; transition: .2s; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { background: var(--c-soft); color: var(--c-primary); }
.btn-cart { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 1.2rem; color: var(--c-primary); }
.btn-cart:hover { background: var(--c-primary); color: #fff; }
.cart-badge { position: absolute; top: -4px; left: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--c-accent); color: var(--c-dark); font-size: .75rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.cart-badge.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }

/* ===== Buttons ===== */
.btn-main { background: linear-gradient(135deg, var(--c-primary), #2a5885); color: #fff; border: 0; border-radius: 50px; padding: .65rem 1.6rem; font-weight: 700; box-shadow: 0 8px 20px rgba(29, 53, 87, .25); transition: .2s; }
.btn-main:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(29, 53, 87, .35); }
.btn-ghost { background: #fff; color: var(--c-primary); border: 2px solid rgba(29, 53, 87, .15); border-radius: 50px; padding: .55rem 1.4rem; font-weight: 700; }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); background: #fff; }
.btn-add { width: 44px; height: 44px; border-radius: 14px; background: var(--c-soft); color: var(--c-primary); font-size: 1.2rem; border: 0; transition: .2s; }
.btn-add:hover:not(:disabled) { background: var(--c-primary); color: #fff; transform: rotate(-8deg); }
.btn-add:disabled { opacity: .4; }

/* ===== Hero ===== */
.hero { padding: 60px 0 80px; position: relative; overflow: hidden; background: radial-gradient(circle at 15% 20%, rgba(242, 162, 12, .15), transparent 40%), radial-gradient(circle at 90% 80%, rgba(29, 53, 87, .12), transparent 45%); }
.eyebrow { display: inline-block; background: #fff; color: var(--c-primary); padding: 6px 16px; border-radius: 50px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); margin-bottom: 18px; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.3; font-weight: 700; color: var(--c-dark); }
.hero-text { font-size: 1.15rem; color: var(--c-muted); max-width: 540px; margin-top: 16px; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.hero-stats strong { display: block; font-size: 1.8rem; color: var(--c-primary); font-family: 'Reem Kufi'; }
.hero-stats span { color: var(--c-muted); font-size: .9rem; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.blob { position: absolute; width: 85%; aspect-ratio: 1; background: linear-gradient(135deg, var(--c-accent), #ff4d6d 50%, var(--c-primary)); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: morph 10s ease-in-out infinite; opacity: .9; }
@keyframes morph { 50% { border-radius: 58% 42% 35% 65% / 55% 60% 40% 45%; transform: rotate(8deg); } }
.hero-img { position: relative; width: 78%; border-radius: 32px; box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.float-card { position: absolute; background: #fff; padding: 10px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.float-card i { color: var(--c-primary); font-size: 1.2rem; }
.fc-1 { top: 12%; right: 0; animation: float 4s ease-in-out infinite; }
.fc-2 { bottom: 10%; left: 0; animation: float 4.5s ease-in-out infinite reverse; }

/* ===== Features ===== */
.features { margin-top: -30px; position: relative; z-index: 2; }
.feature { background: #fff; border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); height: 100%; }
.feature i { font-size: 1.8rem; color: var(--c-primary); background: var(--c-soft); width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; }
.feature h6 { font-weight: 800; margin: 0 0 2px; }
.feature p { margin: 0; color: var(--c-muted); font-size: .85rem; }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.bg-soft { background: var(--c-soft); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 2.1rem; font-weight: 700; }
.section-head p { color: var(--c-muted); margin: 0; }
.display-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
.lead-text { color: var(--c-muted); font-size: 1.1rem; line-height: 2; }

.cat-card { display: block; background: #fff; border-radius: var(--radius); padding: 28px 16px; text-align: center; box-shadow: var(--shadow); transition: .25s; color: var(--c-dark); border: 2px solid transparent; }
.cat-card i { font-size: 2.2rem; color: var(--c-primary); }
.cat-card h5 { margin: 12px 0 4px; font-weight: 800; }
.cat-card span { color: var(--c-muted); font-size: .9rem; }
.cat-card:hover { transform: translateY(-6px); border-color: var(--c-primary); color: var(--c-dark); }

/* ===== Product card ===== */
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--c-soft); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.tag { position: absolute; top: 12px; right: 12px; padding: 4px 12px; border-radius: 50px; font-size: .78rem; font-weight: 800; }
.tag-sale { background: var(--c-accent); color: var(--c-dark); }
.tag-out { background: var(--c-dark); color: #fff; right: auto; left: 12px; }
.product-name { font-size: 1.1rem; font-weight: 700; margin: 0; font-family: 'Cairo'; }
.product-name a { color: var(--c-dark); }
.size-pill { font-size: .75rem; background: var(--c-soft); color: var(--c-primary); padding: 2px 10px; border-radius: 50px; white-space: nowrap; font-weight: 700; }
.price { color: var(--c-primary); font-weight: 800; font-size: 1.15rem; }
.old-price { color: #aaa; font-size: .85rem; margin-right: 6px; }

/* ===== About ===== */
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-box { border-radius: var(--radius); padding: 28px 20px; color: #fff; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.about-box i { font-size: 2rem; opacity: .9; }
.about-box strong { font-size: 2rem; font-family: 'Reem Kufi'; }
.b1 { background: linear-gradient(135deg, #1d3557, #2f6690); }
.b2 { background: linear-gradient(135deg, #ff7a59, #ff4d6d); transform: translateY(24px); }
.b3 { background: linear-gradient(135deg, #6b3a1e, #a0623a); }
.b4 { background: linear-gradient(135deg, #5f9a2d, #7bbf3a); transform: translateY(24px); }
.check-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.check-list i { color: var(--c-primary); margin-left: 6px; }

.cta { background: linear-gradient(120deg, var(--c-primary), #2f6690 60%, var(--c-accent)); color: #fff; border-radius: 28px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta h3 { font-weight: 700; }

/* ===== Page head & filters ===== */
.page-head { padding: 50px 0 40px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(242, 162, 12, .18), transparent 60%); }
.page-head h1 { font-weight: 700; font-size: 2.4rem; }
.page-head p { color: var(--c-muted); margin: 0; }
.small-head { padding: 36px 0 20px; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 18px; border-radius: 50px; background: var(--c-soft); color: var(--c-dark); font-weight: 600; font-size: .9rem; }
.chip.active, .chip:hover { background: var(--c-primary); color: #fff; }
.search-box { position: relative; }
.search-box i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--c-muted); }
.search-box input { padding-right: 38px; border-radius: 50px; }
.form-control, .form-select { border-radius: 14px; border-color: #dbe3ee; padding: .6rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--c-primary); box-shadow: 0 0 0 .2rem rgba(29, 53, 87, .12); }
.form-label { font-weight: 600; font-size: .92rem; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 4rem; color: var(--c-primary); opacity: .4; }

/* ===== Product detail ===== */
.detail-img { background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.detail-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.info-pill { background: #fff; padding: 6px 14px; border-radius: 50px; font-weight: 600; box-shadow: var(--shadow); display: inline-flex; gap: 6px; align-items: center; }
.info-pill.ok { color: #198754; } .info-pill.no { color: #dc3545; }
.buy-box { display: flex; gap: 12px; }
.qty-control { display: flex; align-items: center; background: #fff; border-radius: 50px; box-shadow: var(--shadow); padding: 4px; }
.qty-control input { width: 56px; border: 0; text-align: center; font-weight: 800; font-size: 1.1rem; background: transparent; -moz-appearance: textfield; }
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-control input:focus { outline: none; }
.qty-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c-soft); color: var(--c-primary); font-size: 1.3rem; font-weight: 800; line-height: 1; }
.qty-btn:hover { background: var(--c-primary); color: #fff; }
.qty-control.sm .qty-btn { width: 32px; height: 32px; font-size: 1.1rem; }
.qty-control.sm input { width: 42px; font-size: 1rem; }
.desc-box { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); line-height: 1.9; }
.mini-perks { list-style: none; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: var(--c-muted); }
.mini-perks i { color: var(--c-primary); margin-left: 4px; }

/* ===== Cart / checkout ===== */
.card-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.cart-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #e8eef5; transition: .3s; }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.cart-row.removing { opacity: 0; transform: translateX(-30px); }
.line-total { font-weight: 800; color: var(--c-primary); min-width: 90px; text-align: left; }
.sum-line { display: flex; justify-content: space-between; margin-bottom: 8px; }
.sum-line.total { font-size: 1.25rem; font-weight: 800; color: var(--c-primary); }
.mini-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mini-item img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.pay-option { display: flex; gap: 14px; align-items: center; border: 2px solid var(--c-primary); background: var(--c-soft); border-radius: 16px; padding: 14px 18px; cursor: pointer; }
.pay-option i { font-size: 1.8rem; color: var(--c-primary); }
.pay-option input { accent-color: var(--c-primary); }

.success-box { max-width: 620px; margin: 0 auto; text-align: center; background: #fff; border-radius: 28px; padding: 50px 30px; box-shadow: var(--shadow-lg); }
.success-icon { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(135deg, #2fb36b, #198754); color: #fff; font-size: 3rem; display: grid; place-items: center; animation: pop .5s; }
@keyframes pop { 0% { transform: scale(0); } 80% { transform: scale(1.15); } }
.order-code { display: inline-block; background: var(--c-soft); padding: 10px 24px; border-radius: 14px; font-size: 1.2rem; margin: 16px 0; letter-spacing: 1px; }

.tracker { display: flex; justify-content: space-between; position: relative; }
.tracker::before { content: ''; position: absolute; top: 24px; right: 10%; left: 10%; height: 4px; background: #e2e9f2; }
.t-step { position: relative; z-index: 1; text-align: center; flex: 1; color: var(--c-muted); font-weight: 600; font-size: .9rem; }
.t-dot { width: 50px; height: 50px; border-radius: 50%; background: #e2e9f2; margin: 0 auto 8px; display: grid; place-items: center; font-size: 1.3rem; }
.t-step.done { color: var(--c-primary); }
.t-step.done .t-dot { background: var(--c-primary); color: #fff; box-shadow: 0 6px 16px rgba(29, 53, 87, .3); }

.contact-info { display: grid; gap: 14px; }
.ci { display: flex; gap: 16px; background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.ci i { font-size: 1.5rem; color: #fff; background: var(--c-primary); width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; }
.ci h6 { font-weight: 800; margin-bottom: 2px; }
.ci p { margin: 0; color: var(--c-muted); }

/* ===== Footer ===== */
.site-footer { background: var(--c-dark); color: #dfe8f3; padding: 60px 0 24px; margin-top: 40px; }
.site-footer h6 { color: #fff; font-weight: 800; margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #dfe8f3; opacity: .8; }
.site-footer a:hover { opacity: 1; color: var(--c-accent); }
.social { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: 1.1rem; }
.social:hover { background: var(--c-accent); color: var(--c-dark) !important; }
.wa-float { position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 24px rgba(37, 211, 102, .4); z-index: 1000; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.breadcrumb { font-size: .9rem; }
.breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: .5rem; padding-right: 0; }

@media (max-width: 991px) {
  .hero { padding-top: 30px; }
  .hero-visual { min-height: 320px; }
  .main-nav .navbar-collapse { background: #fff; border-radius: 16px; padding: 10px; margin-top: 10px; box-shadow: var(--shadow); }
}
@media (max-width: 575px) {
  .hero-stats { gap: 18px; }
  .hero-stats strong { font-size: 1.4rem; }
  .feature { flex-direction: column; text-align: center; }
  .product-card .p-3 { padding: .8rem !important; }
  .product-name { font-size: .95rem; }
  .cart-row { flex-wrap: wrap; }
  .cart-row .flex-grow-1 { flex-basis: calc(100% - 90px); }
  .check-list { grid-template-columns: 1fr; }
  .buy-box { flex-direction: column; }
  .qty-control { justify-content: center; }
  .t-step span { font-size: .75rem; }
  .cta { padding: 28px; }
}

.bi-sock::before { content: "" !important; display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 1.5h8.5v3H7zM7 6h8.5v5.2l4.3 4.3a4 4 0 0 1-5.66 5.66l-6-6A4 4 0 0 1 7 12.3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 1.5h8.5v3H7zM7 6h8.5v5.2l4.3 4.3a4 4 0 0 1-5.66 5.66l-6-6A4 4 0 0 1 7 12.3z'/%3E%3C/svg%3E") center / contain no-repeat; }

.from-label { display: block; font-size: .72rem; color: var(--c-muted); line-height: 1; }
.place-center { place-items: center; }
.variant-box { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.variant-title { font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--c-dark); }
.variant-title i { color: var(--c-primary); }
.variant-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.vp-card { cursor: pointer; display: block; margin: 0; }
.vp-card input { position: absolute; opacity: 0; pointer-events: none; }
.vp-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 22px 10px 14px; border: 2px solid #dbe3ee; border-radius: 16px; background: #f9fbfd; transition: .2s; height: 100%; }
.vp-card:hover .vp-inner { border-color: #9fb4cc; transform: translateY(-2px); }
.vp-name { font-weight: 800; font-size: 1.05rem; color: var(--c-dark); }
.vp-price { font-weight: 800; font-size: 1.3rem; color: var(--c-primary); line-height: 1.4; }
.vp-old { color: #9aa5b4; font-size: .8rem; }
.vp-unit { font-size: .78rem; color: var(--c-muted); background: #eef3f8; border-radius: 50px; padding: 2px 10px; margin-top: 4px; }
.vp-save { font-size: .75rem; font-weight: 800; color: #0f9d58; margin-top: 4px; }
.vp-ribbon { position: absolute; top: -11px; right: 50%; transform: translateX(50%); background: var(--c-accent); color: #fff; font-size: .72rem; font-weight: 800; padding: 2px 12px; border-radius: 50px; white-space: nowrap; box-shadow: 0 4px 10px rgba(255, 122, 89, .35); }
.vp-ribbon.alt { background: #0f9d58; box-shadow: 0 4px 10px rgba(15, 157, 88, .3); }
.vp-check { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9d4e2; display: grid; place-items: center; font-size: .8rem; color: transparent; transition: .2s; }
.vp-card input:checked + .vp-inner { border-color: var(--c-primary); background: var(--c-soft); box-shadow: 0 8px 20px rgba(29, 53, 87, .15); }
.vp-card input:checked + .vp-inner .vp-check { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.vp-card input:focus-visible + .vp-inner { outline: 3px solid rgba(29, 53, 87, .3); outline-offset: 2px; }
@media (max-width: 575px) { .variant-pick { grid-template-columns: repeat(3, 1fr); gap: 8px; } .vp-inner { padding: 20px 4px 10px; } .vp-price { font-size: 1.05rem; } .vp-name { font-size: .9rem; } .vp-unit { font-size: .68rem; padding: 2px 6px; } }
