/* متجر منتجات نور — يمتد على ثيم الفراعنة (أسود + دهبي فاتح)، من غير توهج حاد */
.page-shop, .page-shop-product, .page-shop-cart, .page-shop-checkout, .page-shop-thanks { color: #f5f7fc; }

.shop-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto 64px; padding-top: 18px; }
@media (max-width: 720px) {
  .shop-wrap { width: calc(100% - 20px); margin-bottom: 88px; padding-top: 12px; }
}

.shop-hero { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end; justify-content: space-between; margin: 8px 0 22px; }
.shop-hero h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.25; color: #7f8cfa; }
.shop-hero .lead { margin: 0; max-width: 38rem; color: #cfd6e2; font-size: 1.02rem; }
.shop-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shop-trust span { background: #14284b; border: 1px solid rgba(71,88,247,.32); color: #f5f7fc; border-radius: 999px; padding: 6px 12px; font-size: .86rem; display: inline-flex; align-items: center; gap: 6px; }
.shop-trust i { color: #7f8cfa; }

.shop-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.shop-bar form { flex: 1; min-width: min(100%, 240px); display: flex; gap: 8px; }
.shop-bar input[type=search] { flex: 1; min-width: 0; height: 46px; border-radius: 12px; padding: 0 14px; }
.shop-bar .btn { height: 46px; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; }
.shop-cart-link { position: relative; white-space: nowrap; }
.shop-cart-link .bag-n {
  position: absolute; top: -6px; inset-inline-start: -6px; background: #7f8cfa; color: #0b172b;
  font-size: .7rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

.shop-empty { text-align: center; padding: 64px 20px; background: #14284b; border: 1px solid rgba(71,88,247,.28); border-radius: 20px; }
.shop-empty .ico { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: #162c53; border: 1px solid rgba(71,88,247,.35); display: flex; align-items: center; justify-content: center; color: #7f8cfa; font-size: 1.8rem; }
.shop-empty h2 { margin: 0 0 8px; color: #7f8cfa; }
.shop-empty p { margin: 0 auto; max-width: 32rem; color: #cfd6e2; }

.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1020px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.p-card { background: #14284b; border: 1px solid rgba(71,88,247,.26); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.p-card:hover { border-color: rgba(127,140,250,.55); color: inherit; transform: translateY(-2px); }
.p-card .pic { aspect-ratio: 1; background: #0f1e39; overflow: hidden; }
.p-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-card .body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card h3 { margin: 0; font-size: .98rem; font-weight: 700; color: #f5f7fc; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.p-card .price { margin-top: auto; color: #7f8cfa; font-weight: 800; font-size: 1.05rem; }
.p-card .meta { color: #cfd6e2; font-size: .8rem; }

.shop-pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.shop-pager a, .shop-pager span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #14284b; border: 1px solid rgba(71,88,247,.28); color: #f5f7fc; text-decoration: none; }
.shop-pager a:hover, .shop-pager .on { border-color: rgba(127,140,250,.55); color: #7f8cfa; }

/* Product page */
.prod { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .prod { grid-template-columns: 1fr; gap: 18px; } }
.prod-gal .main { background: #0f1e39; border: 1px solid rgba(71,88,247,.26); border-radius: 18px; overflow: hidden; aspect-ratio: 1; }
.prod-gal .main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.prod-thumbs button { width: 68px; height: 68px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #0f1e39; cursor: pointer; }
.prod-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-thumbs button.on, .prod-thumbs button:focus-visible { border-color: #7f8cfa; }

.prod-info h1 { margin: 0 0 10px; font-size: clamp(1.3rem, 2.4vw, 1.85rem); color: #7f8cfa; line-height: 1.35; }
.prod-price { font-size: 1.55rem; font-weight: 800; color: #7f8cfa; margin: 0 0 14px; }
.prod-desc { color: #cfd6e2; line-height: 1.8; }
.prod-desc:empty { display: none; }
.prod-desc p, .prod-desc div { margin: 0 0 .7em; }
.prod-desc p:last-child, .prod-desc div:last-child { margin-bottom: 0; }
.prod-desc strong, .prod-desc b { color: #f5f7fc; font-weight: 700; }
.prod-desc h2, .prod-desc h3, .prod-desc h4 { color: #7f8cfa; font-size: 1.05rem; margin: 1em 0 .45em; font-weight: 700; }
.prod-desc ul, .prod-desc ol { margin: .4em 0 .8em 1.2em; padding: 0; }
.prod-desc li { margin: 0 0 .35em; }

.prop-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.prop-list label { position: relative; }
.prop-list input { position: absolute; opacity: 0; pointer-events: none; }
.prop-list span { display: block; padding: 10px 14px; border-radius: 12px; background: #162c53; border: 1px solid rgba(71,88,247,.3); color: #f5f7fc; cursor: pointer; font-size: .92rem; }
.prop-list input:checked + span, .prop-list input:focus-visible + span { border-color: #7f8cfa; color: #7f8cfa; box-shadow: inset 0 0 0 1px #7f8cfa; }

.qty-row { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.qty-row label { color: #cfd6e2; }
.qty-ctl { display: inline-flex; align-items: center; border: 1px solid rgba(71,88,247,.35); border-radius: 12px; overflow: hidden; background: #162c53; }
.qty-ctl button { width: 44px; height: 44px; border: 0; background: transparent; color: #7f8cfa; font-size: 1.2rem; cursor: pointer; }
.qty-ctl input { width: 56px; height: 44px; border: 0; background: transparent; color: #f5f7fc; text-align: center; font-weight: 700; padding: 0; }

.prod-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prod-actions .btn { min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 700; }
.shop-sticky-atc {
  display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  background: rgba(15,30,57,.94); border-top: 1px solid rgba(71,88,247,.35);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  align-items: center; justify-content: space-between; gap: 10px;
}
.shop-sticky-atc b { color: #7f8cfa; }
.shop-sticky-atc .btn { min-height: 46px; padding: 0 18px; }
@media (max-width: 860px) { .shop-sticky-atc { display: flex; } .prod-actions .js-atc { display: none; } }

.prod-faqs { margin-top: 28px; }
.prod-faqs h2 { color: #7f8cfa; font-size: 1.15rem; margin: 0 0 10px; }
.prod-faqs details { background: #14284b; border: 1px solid rgba(71,88,247,.26); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.prod-faqs summary { cursor: pointer; color: #7f8cfa; font-weight: 700; }
.prod-faqs p { margin: 8px 0 0; color: #cfd6e2; }

/* Cart + checkout */
.cart-layout, .check-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .cart-layout, .check-layout { grid-template-columns: 1fr; } }

.cart-line { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; background: #14284b; border: 1px solid rgba(71,88,247,.26); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
@media (max-width: 600px) { .cart-line { grid-template-columns: 76px minmax(0, 1fr); } .cart-line .line-side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; } }
.cart-line img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; background: #0f1e39; }
@media (max-width: 600px) { .cart-line img { width: 76px; height: 76px; } }
.cart-line h3 { margin: 0 0 4px; font-size: 1rem; color: #f5f7fc; }
.cart-line .var { color: #cfd6e2; font-size: .86rem; }
.cart-line .line-price { color: #7f8cfa; font-weight: 800; }
.cart-line .remove { color: #cfd6e2; background: none; border: 0; cursor: pointer; text-decoration: underline; font-size: .86rem; }

.summary { background: #14284b; border: 1px solid rgba(71,88,247,.28); border-radius: 16px; padding: 18px; position: sticky; top: 86px; }
.summary h2 { margin: 0 0 12px; font-size: 1.1rem; color: #7f8cfa; }
.summary .row { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0; color: #cfd6e2; }
.summary .row.total { color: #f5f7fc; font-weight: 800; font-size: 1.15rem; border-top: 1px solid rgba(71,88,247,.25); padding-top: 10px; margin-top: 10px; }
.summary .row.total b { color: #7f8cfa; }
.summary .btn { width: 100%; min-height: 48px; margin-top: 12px; justify-content: center; }
.summary .hint { color: #cfd6e2; font-size: .86rem; margin: 8px 0 0; }

.check-form { background: #14284b; border: 1px solid rgba(71,88,247,.28); border-radius: 16px; padding: 18px; }
.check-form h2 { margin: 0 0 14px; color: #7f8cfa; font-size: 1.15rem; }
.check-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .check-form .grid-2 { grid-template-columns: 1fr; } }
.check-form label { display: block; margin-bottom: 12px; color: #cfd6e2; font-size: .92rem; }
.check-form input, .check-form select, .check-form textarea { width: 100%; margin-top: 6px; min-height: 46px; border-radius: 12px; }
.check-form textarea { min-height: 96px; padding-top: 10px; }
.check-form .req { color: #7f8cfa; }
.cod-note { display: flex; gap: 10px; align-items: flex-start; background: #162c53; border: 1px solid rgba(71,88,247,.3); border-radius: 12px; padding: 12px; margin: 4px 0 16px; color: #f5f7fc; }
.cod-note i { color: #7f8cfa; margin-top: 3px; }

.thanks-box { max-width: 640px; margin: 20px auto; text-align: center; background: #14284b; border: 1px solid rgba(71,88,247,.28); border-radius: 20px; padding: 36px 22px; }
.thanks-box .ico { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; background: #162c53; border: 1px solid rgba(71,88,247,.4); display: flex; align-items: center; justify-content: center; color: #7f8cfa; font-size: 2rem; }
.thanks-box h1 { color: #7f8cfa; margin: 0 0 8px; }
.thanks-box .ref { font-size: 1.2rem; color: #7f8cfa; font-weight: 800; margin: 10px 0; }
.thanks-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.thanks-actions .btn { min-height: 46px; }

.shop-crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: #cfd6e2; font-size: .88rem; margin-bottom: 14px; }
.shop-crumbs a { color: #cfd6e2; }
.shop-crumbs a:hover { color: #7f8cfa; }

.adm-shop-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 900px) { .adm-shop-stats { grid-template-columns: repeat(2, 1fr); } }
.adm-shop-stats .statc { background: #14284b; border: 1px solid rgba(71,88,247,.28); border-radius: 14px; padding: 14px; }
.adm-shop-stats b { display: block; color: #7f8cfa; font-size: 1.4rem; }
.badge-st { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 700; }
.badge-st.ok { background: rgba(70,160,90,.18); color: #8ee0a4; }
.badge-st.bad { background: rgba(180,60,60,.2); color: #ffb3b3; }
.badge-st.warn { background: rgba(95,98,241,.2); color: #7f8cfa; }
.badge-st.hold { background: rgba(80,120,180,.2); color: #9ec4ff; }
.badge-st.pending { background: rgba(71,88,247,.12); color: #7f8cfa; }

.shop-cats { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.shop-cats a { display:inline-flex; align-items:center; min-height:42px; padding:0 16px; border-radius:999px; border:1px solid rgba(71,88,247,.35); color:#cfd6e2; background:#14284b; text-decoration:none; font-weight:700; }
.shop-cats a:hover, .shop-cats a.on { background:#162c53; border-color:#7f8cfa; color:#7f8cfa; }

.ship-rates { margin:28px 0 8px; background:#14284b; border:1px solid rgba(71,88,247,.28); border-radius:16px; padding:14px 16px; }
.ship-rates summary { cursor:pointer; color:#7f8cfa; font-weight:700; font-size:1.05rem; }
.ship-rates summary i { margin-inline-end:8px; }
.ship-rates .muted { margin:8px 0 12px; color:#cfd6e2; }
.ship-rates-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:8px; }
.ship-rate { display:flex; justify-content:space-between; gap:10px; background:#162c53; border:1px solid rgba(71,88,247,.22); border-radius:10px; padding:8px 12px; color:#cfd6e2; }
.ship-rate b { color:#7f8cfa; }
