/* Shared styles for vendors.html and vendor.html */
:root {
  --bark: #1c1a15; --mud: #2b2519; --khaki: #b89a5a; --rust: #c4431a;
  --sage: #4a5c3e; --ash: #8a8070; --bone: #d8cdb8; --white: #f0ead8;
  --stencil: 'Bebas Neue', sans-serif; --mono: 'Share Tech Mono', monospace; --body: 'Oswald', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bark); color: var(--bone); font-family: var(--body); font-weight: 300; line-height: 1.6; overflow-x: hidden; }
a { color: var(--khaki); }
img { display: block; max-width: 100%; }

/* Arabic */
html[lang="ar"] body, html[lang="ar"] body *:not(.nav-logo):not(.nav-logo *):not(.ltr) { font-family: 'Cairo', sans-serif; letter-spacing: 0 !important; }
[data-lang="ar"] { display: none; }
html[lang="ar"] [data-lang="ar"] { display: revert; }
html[lang="ar"] [data-lang="en"] { display: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.skip-link { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
             background: var(--khaki); color: var(--bark); padding: 10px 16px; z-index: 1000; }
.skip-link:focus { width: auto; height: auto; clip-path: none; top: 16px; left: 16px; }

/* Nav */
nav { position: fixed; top: 0; width: 100%; z-index: 100; display: flex; justify-content: space-between; align-items: center;
      padding: 0 40px; height: 64px; background: rgba(28,26,21,0.94); border-bottom: 1px solid rgba(184,154,90,0.25); backdrop-filter: blur(8px); }
.nav-logo { font-family: var(--stencil); font-size: 26px; letter-spacing: 4px; color: var(--khaki); text-decoration: none; }
.nav-logo span { color: var(--rust); }
.nav-right { display: flex; gap: 18px; align-items: center; }
.nav-link { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--ash); text-decoration: none; text-transform: uppercase; }
.nav-link:hover, .nav-link.active { color: var(--khaki); }
.lang-btn { font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 700; color: var(--bark); background: var(--khaki); border: none; padding: 7px 14px; cursor: pointer; }
.lang-btn:hover { background: var(--rust); color: var(--white); }

/* Page header */
.head { padding: 130px 80px 46px; background: linear-gradient(160deg, var(--mud), var(--bark) 70%); border-bottom: 1px solid rgba(184,154,90,0.2); }
.crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--ash); }
.crumbs a { color: var(--ash); text-decoration: none; }
.crumbs a:hover { color: var(--khaki); }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 3px; color: var(--rust); margin-top: 16px; }
.h1 { font-family: var(--stencil); font-weight: 400; font-size: clamp(48px, 8vw, 104px); line-height: 0.92; color: var(--white); letter-spacing: 2px; margin-top: 10px; }
.h1 em { color: var(--khaki); font-style: normal; }
html[lang="ar"] .h1 { font-weight: 800; font-size: clamp(38px, 6vw, 72px); line-height: 1.2; }
.lead { font-size: 18px; max-width: 720px; margin-top: 18px; }

section.wrap { padding: 50px 80px 80px; }

/* Filters */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ash); background: transparent;
        border: 1px solid rgba(184,154,90,0.3); padding: 9px 15px; cursor: pointer; }
html[lang="ar"] .chip { font-size: 13px; text-transform: none; }
.chip:hover { color: var(--khaki); border-color: var(--khaki); }
.chip.active { color: var(--bark); background: var(--khaki); border-color: var(--khaki); }
.search { margin-inline-start: auto; min-width: 240px; background: var(--bark); color: var(--white); border: 1px solid rgba(184,154,90,0.3);
          font-family: var(--body); font-size: 15px; padding: 10px 14px; outline: none; }
.search:focus { border-color: var(--khaki); }
.count { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--ash); margin-bottom: 16px; }

/* Vendor cards */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.vcard { background: var(--mud); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.2s; position: relative; }
.vcard:hover { transform: translateY(-3px); }
.vcard:focus-visible { outline: 2px solid var(--khaki); outline-offset: 2px; }
.vcover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #3a3122, var(--bark)); position: relative; overflow: hidden; }
.vcover img { width: 100%; height: 100%; object-fit: cover; }
.vlogo { position: absolute; bottom: -26px; inset-inline-start: 20px; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--mud);
         background: var(--bark); display: flex; align-items: center; justify-content: center; font-family: var(--stencil); font-size: 26px; color: var(--khaki); overflow: hidden; }
.vlogo img { width: 100%; height: 100%; object-fit: cover; }
.vbody { padding: 36px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.vname { font-family: var(--stencil); font-size: 28px; letter-spacing: 1px; color: var(--white); line-height: 1; }
html[lang="ar"] .vname { font-weight: 700; font-size: 22px; line-height: 1.3; }
.vsub { font-size: 13px; color: var(--ash); margin-top: 6px; }
.vtag { font-size: 15px; margin-top: 10px; flex: 1; }
.vmeta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pill { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid rgba(184,154,90,0.35); padding: 3px 8px; color: var(--bone); }
html[lang="ar"] .pill { font-size: 12px; text-transform: none; }
.pill.feat { background: var(--rust); border-color: var(--rust); color: var(--white); }

.empty { border: 1px dashed rgba(184,154,90,0.4); padding: 46px 30px; text-align: center; }
.empty h2 { font-family: var(--stencil); font-weight: 400; font-size: 40px; color: var(--white); letter-spacing: 1px; }
html[lang="ar"] .empty h2 { font-weight: 800; font-size: 28px; }
.empty p { max-width: 560px; margin: 10px auto 22px; }
.btn { display: inline-block; background: var(--rust); color: var(--white); text-decoration: none; font-family: var(--stencil); font-size: 20px;
       letter-spacing: 2px; padding: 12px 26px; border: none; cursor: pointer; }
html[lang="ar"] .btn { font-size: 16px; font-weight: 700; }
.btn:hover { background: var(--khaki); color: var(--bark); }
.btn.ghost { background: transparent; border: 1px solid var(--khaki); color: var(--khaki); }
.btn.ghost:hover { background: var(--khaki); color: var(--bark); }

/* Profile */
.pcover { height: 300px; margin-top: 64px; background: linear-gradient(135deg, #3a3122, var(--bark)); position: relative; overflow: hidden; border-bottom: 1px solid rgba(184,154,90,0.25); }
.pcover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.phead { padding: 0 80px; display: flex; gap: 26px; align-items: flex-end; margin-top: -60px; position: relative; flex-wrap: wrap; }
.plogo { width: 132px; height: 132px; border-radius: 50%; border: 4px solid var(--bark); background: var(--mud); overflow: hidden; flex-shrink: 0;
         display: flex; align-items: center; justify-content: center; font-family: var(--stencil); font-size: 54px; color: var(--khaki); }
.plogo img { width: 100%; height: 100%; object-fit: cover; }
.pid { flex: 1; min-width: 260px; padding-bottom: 6px; }
.pid .h1 { margin-top: 0; font-size: clamp(40px, 6vw, 72px); }
html[lang="ar"] .pid .h1 { font-size: clamp(32px, 5vw, 54px); }
.pid .alt { font-size: 18px; color: var(--khaki); margin-top: 4px; }
.pactions { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 10px; }
.pbody { padding: 40px 80px 20px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; }
.story h2, .facts h2, .prods h2 { font-family: var(--mono); font-size: 12px; letter-spacing: 3px; color: var(--rust); font-weight: 400; margin-bottom: 12px; }
html[lang="ar"] .story h2, html[lang="ar"] .facts h2, html[lang="ar"] .prods h2 { font-size: 15px; font-weight: 700; }
.story p { font-size: 17px; margin-bottom: 12px; white-space: pre-line; }
.facts { background: var(--mud); padding: 22px 24px; border-top: 2px solid var(--khaki); align-self: start; }
.fact { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(184,154,90,0.15); font-size: 15px; }
.fact:last-child { border-bottom: none; }
.fact .k { color: var(--ash); }
.fact .v { text-align: end; }
.prods { padding: 30px 80px 30px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.pcard { background: var(--mud); display: flex; flex-direction: column; }
.pimg { aspect-ratio: 1; background: var(--bark); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 54px; cursor: zoom-in; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pby { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--sage); text-transform: uppercase; }
html[lang="ar"] .pby { font-size: 12px; text-transform: none; }
.pname { font-size: 17px; color: var(--white); font-weight: 400; margin: 4px 0 6px; line-height: 1.3; }
.pdesc { font-size: 14px; color: var(--bone); flex: 1; }
.pprice { font-family: var(--mono); font-size: 18px; color: var(--khaki); margin: 10px 0; }
.pprice s { color: var(--ash); font-size: 14px; margin-inline-end: 8px; }
.order { display: block; text-align: center; background: #1f7a43; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px; letter-spacing: 0.5px; }
.order:hover { background: #26934f; }
.order.web { background: var(--rust); }
.order.web:hover { background: var(--khaki); color: var(--bark); }
.order.mail { background: var(--sage); }
.notice { margin: 10px 80px 60px; padding: 16px 20px; border: 1px solid rgba(184,154,90,0.25); font-size: 14px; color: var(--ash); }
.notice b { color: var(--bone); }
.wa { background: #1f7a43; }
.wa:hover { background: #26934f; color: #fff; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,0.88); display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px; }
.lb.open { display: flex; }
.lb img { max-height: 90vh; max-width: 92vw; object-fit: contain; }
.lb button { position: absolute; top: 16px; inset-inline-end: 20px; background: var(--khaki); border: none; font-size: 20px; width: 40px; height: 40px; cursor: pointer; }

footer { padding: 30px 80px; border-top: 1px solid rgba(184,154,90,0.2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
         font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--ash); }
footer a { color: var(--ash); text-decoration: none; }
footer a:hover { color: var(--khaki); }

@media (max-width: 1024px) {
  .head, section.wrap, .phead, .pbody, .prods { padding-left: 40px; padding-right: 40px; }
  .notice { margin-left: 40px; margin-right: 40px; }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  nav { padding: 0 16px; height: 56px; }
  .nav-logo { font-size: 19px; letter-spacing: 2px; }
  .nav-link.hide-sm { display: none; }
  .head { padding: 96px 20px 36px; }
  section.wrap { padding: 30px 20px 60px; }
  .search { margin-inline-start: 0; width: 100%; min-width: 0; }
  .vgrid { grid-template-columns: 1fr; }
  .pcover { height: 190px; margin-top: 56px; }
  .phead { padding: 0 20px; margin-top: -48px; gap: 16px; }
  .plogo { width: 96px; height: 96px; font-size: 40px; }
  .pbody { grid-template-columns: 1fr; padding: 28px 20px 10px; gap: 28px; }
  .prods { padding: 20px 20px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .notice { margin: 10px 20px 40px; }
  footer { padding: 26px 20px; }
}
@media (max-width: 420px) { .pgrid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
