/* Lureca — Layout: topbar, header, nav, footer */

/* ============ TOP BAR ============ */
.topbar {
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: .04em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 38px;
}
.topbar a { color: rgba(255,255,255,.78); transition: color .2s; }
.topbar a:hover { color: var(--gold-2); }
.topbar .tb-center { flex: 1; text-align: center; color: var(--gold-2); font-weight: 500; }
.topbar .tb-side { display: flex; gap: 18px; align-items: center; }

/* ============ HEADER ============ */
.header {
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-main {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
}
.header-logo img { height: 56px; width: auto; object-fit: contain; }
.header-search { position: relative; max-width: 640px; width: 100%; margin: 0 auto; }
.header-search input {
  width: 100%; height: 46px;
  padding: 0 50px 0 18px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.header-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(184,121,85,.08);
}
.header-search input::placeholder { color: var(--ink-4); }
.header-search .search-btn {
  position: absolute;
  inset-inline-start: 6px;
  top: 6px;
  width: 36px; height: 34px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  transition: background .2s, transform .15s;
}
.header-search .search-btn:hover { background: var(--copper); }
.header-search .search-btn:active { transform: scale(.94); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-action {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-2); font-size: 13px;
  position: relative; transition: color .2s;
}
.header-action:hover { color: var(--accent); }
.header-action .ic { width: 26px; height: 26px; display: grid; place-items: center; }
.header-action .label {
  display: flex; flex-direction: column; line-height: 1.2;
  font-size: 11px; color: var(--ink-3);
}
.header-action .label strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.header-action .count {
  position: absolute; top: -4px;
  inset-inline-start: -4px;
  min-width: 18px; height: 18px;
  background: var(--accent); color: #fff;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  padding: 0 4px;
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  border-radius: 50%;
  align-items: center; justify-content: center;
  color: var(--ink);
}

/* ============ NAV BAR ============ */
.nav {
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 49;
}
.nav .container { display: flex; align-items: center; gap: 28px; min-height: 52px; position: relative; }

/* ============ MEGA MENU ============ */
.nav-shop-wrap { position: relative; }
.nav-shop {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px;
  padding: 0 18px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s;
}
.nav-shop:hover, .nav-shop.open { background: var(--accent); }
.nav-shop svg:last-child { transition: transform .25s; }
.nav-shop.open svg:last-child { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: 100%; inset-inline-start: 0;
  width: min(900px, calc(100vw - 48px));
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(40,28,18,.12), 0 4px 8px rgba(40,28,18,.04);
  display: grid;
  grid-template-columns: 280px 1fr;
  z-index: 80;
  animation: megaIn .25s ease;
  overflow: hidden;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.mega[hidden] { display: none; }
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mega-list {
  background: var(--bg-2);
  border-inline-end: 1px solid var(--line);
  padding: 12px 0;
}
.mega-cat {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  font-size: 13.5px; color: var(--ink-2);
  font-weight: 500;
  border-inline-start: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
  text-decoration: none;
}
.mega-cat:hover, .mega-cat.active {
  background: var(--bg);
  color: var(--accent);
  border-inline-start-color: var(--accent);
}
.mega-cat-ico {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mega-cat-name { flex: 1; }
.mega-cat-count {
  font-size: 11px; color: var(--ink-4); font-weight: 600;
}
.mega-cat svg:last-child { color: var(--ink-4); transform: scaleX(-1); transition: transform .2s, color .2s; }
.mega-cat:hover svg:last-child, .mega-cat.active svg:last-child { color: var(--accent); transform: scaleX(-1) translateX(-3px); }

.mega-panel {
  padding: 22px 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
}
.mega-panel[hidden] { display: none; }
.mega-panel-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.mega-panel-head h5 {
  font-family: var(--font-display-ar), var(--font-display);
  font-size: 22px; font-weight: 600;
  color: var(--ink); margin: 0;
}
.mega-panel-head a { font-size: 12px; color: var(--accent); font-weight: 600; }
.mega-subs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}
.mega-subs a {
  display: block;
  padding: 6px 0;
  font-size: 13px; color: var(--ink-2);
  transition: color .15s, padding-inline-start .15s;
}
.mega-subs a:hover { color: var(--accent); padding-inline-start: 6px; }
.mega-cta {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.mega-cta .kicker {
  font-size: 10px; color: var(--ink-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  display: block; margin-bottom: 8px;
}
.mega-brands { display: flex; flex-wrap: wrap; gap: 6px; }
.mega-brands a {
  padding: 5px 10px;
  font-size: 11px; letter-spacing: .04em;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .15s;
}
.mega-brands a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.hot {
  display: inline-block;
  margin-inline-end: 4px;
  padding: 2px 6px;
  font-size: 9px; font-weight: 700;
  letter-spacing: .12em;
  background: var(--sale); color: #fff;
  border-radius: var(--r-pill);
  vertical-align: middle;
}
.nav-list {
  display: flex; gap: 26px; flex: 1;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--ink-2);
  font-weight: 500; letter-spacing: .01em;
  min-height: 52px; position: relative;
  transition: color .2s;
}
.nav-list a:hover { color: var(--accent); }
.nav-list a.current-menu-item, .nav-list a.current-menu-item-ancestor,
.nav-list a:hover::after, .nav-list a.current-menu-item::after {
  color: var(--accent);
}
.nav-list a::after {
  content: ''; position: absolute;
  inset: auto 0 0 0; height: 2px;
  background: var(--accent);
  opacity: 0; transition: opacity .2s;
}
.nav-list a:hover::after, .nav-list a.current-menu-item::after { opacity: 1; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--accent); font-weight: 600;
}

/* ============ MOBILE NAV ============ */
.mobile-drawer {
  position: fixed; inset: 0;
  background: rgba(20,15,12,.55);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer .panel {
  position: absolute; top: 0;
  inset-inline-start: 0;
  width: min(92vw, 380px);
  height: 100%;
  background: var(--bg);
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
body.is-rtl .mobile-drawer .panel { transform: translateX(100%); }
body.is-rtl .mobile-drawer.open .panel,
.mobile-drawer.open .panel { transform: translateX(0); }
.mobile-drawer .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.mobile-drawer .panel-head img { height: 40px; }
.mobile-drawer .panel-close {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: var(--bg-3); border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
}
.mobile-drawer ul {
  list-style: none; margin: 0; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer ul a {
  display: block; padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px; color: var(--ink-2);
}
.mobile-drawer ul a:hover { background: var(--bg-2); color: var(--accent); }
.mobile-drawer .panel-foot {
  padding: 16px 20px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* ============ BREADCRUMB ============ */
.crumb {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
  color: var(--ink-3);
}
.crumb .container { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--ink-4); }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  font-size: 13px;
}
.footer-cta {
  background: linear-gradient(135deg, #2a201a 0%, #1A1410 100%);
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-cta .container {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 24px;
}
.footer-cta h3 {
  font-family: var(--font-display-ar), var(--font-display);
  font-weight: 500;
  font-size: 28px; color: #fff;
  margin: 0 0 6px;
}
.footer-cta p { margin: 0; color: rgba(255,255,255,.6); }
.footer-cta form {
  display: flex; background: #fff;
  border-radius: 999px;
  padding: 4px;
}
.footer-cta input {
  flex: 1; border: 0; background: transparent;
  padding: 0 18px; outline: none;
  color: var(--ink); font-size: 14px;
}
.footer-cta button {
  background: var(--accent); color: #fff;
  border: 0; padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 13px;
  letter-spacing: .04em;
}

.footer-main { padding: 56px 0 40px; }
.footer-main .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h5 {
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  color: #fff; margin: 0 0 18px;
  letter-spacing: .04em;
}
.footer-col ul, .footer-col .menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.72); }
.footer-col a:hover { color: var(--gold-2); }
.footer-brand img { height: 64px; margin-bottom: 14px; filter: brightness(0) invert(1) sepia(.3); opacity: .92; }
.footer-brand p { line-height: 1.8; max-width: 280px; }
.footer-contact { display: grid; gap: 10px; margin-top: 16px; font-size: 13px; }
.footer-contact .row { display: flex; gap: 10px; align-items: center; }
.footer-contact .ic { color: var(--gold); }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border-radius: 50%; color: rgba(255,255,255,.85);
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--accent); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
  font-size: 12px; color: rgba(255,255,255,.5);
}
.footer-pay { display: flex; gap: 8px; align-items: center; }
.footer-pay .pay {
  height: 22px; padding: 4px 10px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  display: inline-flex; align-items: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .footer-main .container { grid-template-columns: 1fr 1fr; }
  .header-main { grid-template-columns: auto 1fr auto; gap: 16px; }
  .header-logo img { height: 44px; }
}

@media (max-width: 768px) {
  .topbar .tb-side.tb-side-end { display: none; }
  .header-main { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 0; }
  .header-logo { display: flex; justify-content: center; align-items: center; }
  .header-logo img { height: 38px; }
  .header-search { display: none; }
  .header-actions { gap: 14px; }
  .header-action .label { display: none; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-cta .container { grid-template-columns: 1fr; }
  .footer-main .container { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-main .container { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

/* lureca-drawer-overflow-fix: the off-canvas mobile drawer panel is absolutely
   positioned and translated off-screen; without clipping it extends the page
   width and causes horizontal overflow on mobile. Clip it to the overlay. */
.mobile-drawer { overflow: hidden; }
