/* public.css — الواجهة العامة (Home / Marketplace / المنتج) — حسب ملف الهوية: أسود + ذهبي متدرّج
   الصفحات دي ثابتة على الوضع الداكن (هوية العلامة) ومبتتأثرش بزر الثيم. */
body.pub { background: #0a0a0a; color: #ece7d8; font-family: var(--font); min-height: 100vh; }
.pub a { color: inherit; }
.pub-container { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* ---- Header ---- */
.pub-header { position: sticky; top: 0; z-index: 40; background: rgba(10,10,10,0.82); backdrop-filter: blur(14px); border-bottom: 1px solid #2a2418; }
.pub-header .pub-container { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; }
.pub-nav { display: flex; gap: 6px; }
.pub-nav a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #cfc8b4; transition: color .15s, background .15s; }
.pub-nav a:hover { color: #F3E08F; background: rgba(201,169,97,0.08); }
.pub-actions { display: flex; gap: 8px; align-items: center; }
.pub-burger { display: none; background: none; border: 1px solid #3a3223; color: #F3E08F; width: 38px; height: 38px; border-radius: 8px; font-size: 18px; cursor: pointer; }
.pub .btn-outline { background: transparent; color: #F3E08F; border-color: #4a3f27; box-shadow: none; }
.pub .btn-outline:hover { background: rgba(201,169,97,0.1); }
.pub .btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 10px; }

/* ---- Hero ---- */
.pub-hero { position: relative; overflow: hidden; padding: 90px 0 70px; text-align: center;
    background: radial-gradient(900px 420px at 50% -5%, rgba(201,169,97,0.22), transparent 70%),
        linear-gradient(rgba(201,169,97,0.05) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(201,169,97,0.05) 1px, transparent 1px) 0 0 / 56px 56px, #0a0a0a; }
.pub-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, #0a0a0a); }
.pub-hero .inner { position: relative; z-index: 2; }
.pub-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid #4a3f27; border-radius: 99px; color: #E2C575; font-size: 12.5px; letter-spacing: .06em; margin-bottom: 28px; background: rgba(201,169,97,0.07); }
.pub-hero h1 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: -0.02em; font-size: clamp(56px, 11vw, 132px); margin: 0; direction: ltr; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.pub-hero h1 span { display: block; }
.pub-hero .lead { font-size: clamp(17px, 2.2vw, 22px); color: #ece7d8; margin: 30px auto 8px; max-width: 760px; line-height: 1.7; }
.pub-hero .sub { color: #a79f88; font-size: 15px; margin-bottom: 36px; }
.pub-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; }
.pub-stat { border: 1px solid #2f2819; background: rgba(20,17,10,0.7); border-radius: 14px; padding: 22px 12px; }
.pub-stat b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 34px; direction: ltr; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.pub-stat span { color: #a79f88; font-size: 13px; }

/* ---- Sections ---- */
.pub-section { padding: 84px 0; border-top: 1px solid #1d1910; }
.pub-section.alt { background: #0e0d0a; }
.pub-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.pub-sec-head .num { font-size: 13px; letter-spacing: .3em; color: #C9A961; display: block; margin-bottom: 10px; direction: ltr; text-align: right; }
.pub-sec-head h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; margin: 0; color: #F3E08F; }
.pub-sec-head p { color: #a79f88; max-width: 480px; margin: 10px 0 0; line-height: 1.7; }
[lang="ar"] .pub-sec-head h2 { font-style: normal; font-weight: 800; letter-spacing: 0; }

/* ---- Marketplace ---- */
.pub-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.pub-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; background: #14110a; border: 1px solid #3a3223; border-radius: 12px; padding: 0 14px; height: 46px; }
.pub-search:focus-within { border-color: #C9A961; box-shadow: 0 0 0 3px rgba(201,169,97,.2); }
.pub-search input { flex: 1; background: transparent !important; border: none !important; box-shadow: none !important; color: #ece7d8; padding: 0; font-size: 15px; }
.pub-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pub-chip { padding: 9px 16px; border-radius: 99px; border: 1px solid #3a3223; background: #14110a; color: #cfc8b4; font-size: 13.5px; cursor: pointer; font-family: inherit; transition: all .15s; }
.pub-chip:hover { border-color: #C9A961; color: #F3E08F; }
.pub-chip.active { background: var(--btn-grad); color: #0a0a0a; border-color: transparent; font-weight: 700; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pcard { display: flex; flex-direction: column; background: #12100a; border: 1px solid #2a2418; border-radius: 16px; overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; text-decoration: none; }
.pcard:hover { transform: translateY(-4px); border-color: #C9A961; box-shadow: 0 14px 40px -14px rgba(201,169,97,.35); }
.pcard .img { aspect-ratio: 4 / 3; background: #1a160d; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .img img { transform: scale(1.05); }
.pcard .cat { position: absolute; top: 12px; right: 12px; padding: 4px 12px; border-radius: 99px; background: rgba(10,10,10,.78); border: 1px solid #4a3f27; color: #E2C575; font-size: 12px; backdrop-filter: blur(6px); }
.pcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard h3 { margin: 0; font-size: 16px; font-weight: 700; color: #f4efe0; line-height: 1.4; }
.pcard p { margin: 0; color: #a79f88; font-size: 13.5px; line-height: 1.6; flex: 1; }
.pcard .price { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 20px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; margin-top: 6px; }
.pub-empty { grid-column: 1 / -1; text-align: center; color: #a79f88; padding: 50px 0; border: 1px dashed #3a3223; border-radius: 14px; }

/* ---- Features / Steps ---- */
.pub-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pfeat { border: 1px solid #2a2418; background: #12100a; border-radius: 16px; padding: 26px; transition: border-color .18s; }
.pfeat:hover { border-color: #8F6F36; }
.pfeat .ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(201,169,97,.1); border: 1px solid #4a3f27; color: #F3E08F; margin-bottom: 18px; }
.pfeat .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pfeat h3 { margin: 0 0 8px; font-size: 17px; color: #f4efe0; }
.pfeat p { margin: 0; color: #a79f88; line-height: 1.75; font-size: 14.5px; }
.pub-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; counter-reset: s; }
.pstep { position: relative; border: 1px solid #2a2418; border-radius: 16px; padding: 30px 26px; background: linear-gradient(160deg, #15120a, #0e0d0a); }
.pstep::before { counter-increment: s; content: '0' counter(s); display: block; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 54px; line-height: 1; direction: ltr; text-align: right; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; margin-bottom: 14px; }
.pstep h3 { margin: 0 0 8px; color: #f4efe0; font-size: 18px; }
.pstep p { margin: 0; color: #a79f88; line-height: 1.75; font-size: 14.5px; }

/* ---- Vendor band + FAQ ---- */
.pub-band { border-radius: 22px; padding: 50px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; background: var(--gold-grad); color: #0a0a0a; }
.pub-band h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 4vw, 40px); margin: 0 0 8px; line-height: 1.1; }
[lang="ar"] .pub-band h2 { font-style: normal; }
.pub-band p { margin: 0; max-width: 560px; line-height: 1.7; font-weight: 500; }
.pub-band .btn { background: #0a0a0a; color: #F3E08F; border-color: #0a0a0a; }
.pub-band .btn-outline { background: transparent; color: #0a0a0a; border-color: #0a0a0a; }
.pub-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.pub-faq details { border: 1px solid #2a2418; border-radius: 14px; background: #12100a; }
.pub-faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; color: #f4efe0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pub-faq summary::-webkit-details-marker { display: none; }
.pub-faq summary::after { content: '+'; color: #C9A961; font-size: 22px; line-height: 1; }
.pub-faq details[open] summary::after { content: '−'; }
.pub-faq details[open] { border-color: #8F6F36; }
.pub-faq details p { margin: 0; padding: 0 22px 20px; color: #a79f88; line-height: 1.8; }

/* ---- Footer ---- */
.pub-footer { border-top: 1px solid #2a2418; padding: 54px 0 30px; background: #070707; }
.pub-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.pub-footer h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: #C9A961; font-weight: 600; }
.pub-footer a { display: block; padding: 5px 0; color: #a79f88; font-size: 14px; }
.pub-footer a:hover { color: #F3E08F; }
.pub-footer .about { color: #8b846f; font-size: 14px; line-height: 1.8; margin-top: 14px; max-width: 320px; }
.pub-footer .copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1d1910; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #6f6957; font-size: 12.5px; letter-spacing: .12em; }

/* ---- Product page ---- */
.pdp { display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; padding: 44px 0 70px; align-items: start; }
.pdp .gallery img.main { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; border: 1px solid #2a2418; }
.pdp .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pdp .thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; border: 1px solid #2a2418; cursor: pointer; opacity: .8; }
.pdp .thumbs img:hover { opacity: 1; border-color: #C9A961; }
.pdp h1 { margin: 6px 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: #f4efe0; }
.pdp .price { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 40px; direction: ltr; text-align: right; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.pdp .desc { color: #b8b09a; line-height: 1.9; margin: 14px 0 22px; }
.pdp .box { border: 1px solid #2a2418; border-radius: 14px; padding: 18px 20px; background: #12100a; margin-bottom: 14px; }
.pdp .box b { color: #E2C575; }

@media (max-width: 900px) {
    .pub-nav { display: none; position: absolute; top: 68px; right: 0; left: 0; flex-direction: column; background: #0a0a0a; padding: 10px 20px 16px; border-bottom: 1px solid #2a2418; }
    .pub-nav.open { display: flex; }
    .pub-burger { display: inline-flex; align-items: center; justify-content: center; }
    .pub-actions .hide-sm { display: none; }
    .pub-stats { grid-template-columns: repeat(2, 1fr); }
    .pub-footer .cols { grid-template-columns: 1fr 1fr; }
    .pdp { grid-template-columns: 1fr; }
    .pub-band { padding: 34px 24px; }
    .pub-hero { padding: 60px 0 50px; }
    .pub-section { padding: 56px 0; }
}
