/* Dora Gallery, midnight-silver design (layout "triptych"). Loaded after gallery.css; every colour is a variable from :root. */

body { font-size: 14.5px; }
.btn, .button { border-radius: 10px; }

/* ---------- Live price bar ---------- */
.livebar { background: var(--bar-bg); color: #e8edf3; font-size: 12px; border-bottom: 1px solid var(--line); }
.livebar-row { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; min-height: 38px; padding-block: 6px; }
.livebar-title { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.livebar-item b { color: #fff; font-weight: 700; margin-inline: 3px; }
.livebar-item small { color: var(--muted); }
.livebar-time { margin-inline-start: auto; color: var(--muted); font-size: 12.5px; }
.livebar.is-stale .livebar-time { color: var(--bad); }
.livebar.is-stale .live-dot { background: var(--bad); animation: none; }
.livebar .live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2fb344; animation: live-pulse 2.4s infinite; }
@media (max-width: 700px) { .livebar-row { gap: 4px 14px; font-size: 12px; } .livebar-time { margin-inline-start: 0; } }

/* ---------- Header: one compact row (logo, menu, icons) ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 3vw, 40px); min-height: 84px; }
.brand { grid-column: 1; display: block; }
.dg-logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 5px rgba(177, 204, 241, .2)); transition: filter .6s ease; overflow: visible; }
.dg-logo-head { width: 104px; }
.brand:hover .dg-logo { filter: drop-shadow(0 0 9px rgba(199, 220, 255, .42)); }
html[data-color-mode="light"] .dg-logo { filter: brightness(.52) contrast(1.15) drop-shadow(0 1px 1px rgba(13, 30, 50, .35)); }
html[data-color-mode="light"] .brand:hover .dg-logo { filter: brightness(.45) contrast(1.15) drop-shadow(0 1px 2px rgba(13, 30, 50, .45)); }
.logo-glint { animation: dora-polish 7s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes dora-polish { 0%, 18% { transform: translateX(-200px); } 55%, 100% { transform: translateX(1150px); } }
@media (prefers-reduced-motion: reduce) { .logo-glint { animation: none; opacity: 0; } }
.nav-links { grid-column: 2; justify-self: start; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.nav-links a { padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--gold-soft); }
.nav-links a[aria-current] { color: var(--ink); background: var(--gold-soft); }
.nav-tools { grid-column: 3; display: flex; align-items: center; gap: 9px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; cursor: pointer; transition: border-color .2s; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { border-color: var(--accent); }
.nav-toggle { display: none; }
.cart-btn .dg-cart-count { top: -6px; inset-inline-start: -6px; background: var(--accent); color: var(--accent-ink); }
.header-search { background: var(--panel); border-bottom: 1px solid var(--line); padding-block: 12px; }
.header-search .wrap { display: flex; gap: 10px; }
.header-search input[type=search] { flex: 1; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 16px; font: inherit; }
.header-search input[type=search]:focus { outline: none; border-color: var(--accent); }
@media (max-width: 900px) {
  .header-inner { min-height: 70px; gap: 8px; grid-template-columns: auto 1fr auto; }
  .dg-logo-head { width: 72px; }
  .nav-toggle { display: grid; }
  .nav-links { display: none; grid-column: 1 / -1; grid-row: 2; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { background: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(44px, 6vw, 74px); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.section-caption { font: 600 10px Georgia, serif; letter-spacing: 2px; color: var(--accent); direction: ltr; text-align: right; }
.section-caption.fa { font: 600 12.5px var(--font); letter-spacing: 0; direction: rtl; text-align: start; }
.section-heading { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.6; font-weight: 650; margin: 7px 0 0; }
.section-lead { color: var(--muted); font-size: 13px; margin: 8px 0 0; line-height: 2; }
.text-link { font-size: 12.5px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 7px; white-space: nowrap; }

/* ---------- Collection tiles (triptych) ---------- */
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.category-tile { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: center; min-height: 380px; border-radius: 170px 170px 5px 5px; overflow: hidden; background: #22354b; padding: 24px; text-align: center; }
.category-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #071426 0%, rgba(7, 20, 38, .13) 85%); transition: opacity .25s; }
.category-tile:hover::after { opacity: .84; }
.category-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.category-tile:hover .category-art { transform: scale(1.05); }
.category-copy { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #f5f7fa; padding-bottom: 12px; }
.category-tile small { font: 600 12px var(--font); letter-spacing: 0; color: #d6e3ef; }
.category-name { font-size: 29px; font-weight: 620; margin: 8px 0 2px; color: #fff; line-height: 1.5; }
.category-sub { font-size: 12px; color: #d1dce7; }
.category-action { margin-top: 12px; font-size: 12px; font-weight: 700; color: #f5f7fa; }
.category-tile.is-soon { cursor: default; }
.category-tile.is-soon .category-art { filter: grayscale(.6) brightness(.7); }
.category-tile.is-soon .category-action { display: inline-block; padding: 3px 14px; border-radius: 999px; background: var(--soon-bg); font-weight: 600; }
@media (max-width: 760px) {
  .category-grid { gap: 10px; }
  .category-tile { min-height: 230px; padding: 10px; border-radius: 55px 55px 6px 6px; }
  .category-name { font-size: 15px; }
  .category-sub { display: none; }
  .category-action { font-size: 12px; margin-top: 4px; }
}

/* ---------- Slim band ---------- */
.band { background: var(--band-bg); border-block: 1px solid var(--line); }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 95px; padding-block: 10px; }
.band h2 { margin: 0; font-size: 21px; white-space: nowrap; }
.band h2 em { font-style: normal; color: var(--accent); }
.band-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary { background: var(--bar-bg); border-color: var(--bar-bg); color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-outline { background: transparent; border-color: var(--muted); color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
@media (max-width: 760px) { .band-row { flex-direction: column; text-align: center; padding-block: 18px; gap: 12px; } .band h2 { white-space: normal; font-size: 19px; } .band-buttons { justify-content: center; } }

/* ---------- Product grid ---------- */
.products-section { padding-top: clamp(30px, 4vw, 50px); }
.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin: 0 0 25px; }
.filter-bar button { display: inline-flex; align-items: center; gap: 6px; height: auto; background: var(--surface); border: 1px solid var(--line); padding: 10px 17px; border-radius: 9px; color: var(--muted); font: 550 12.5px/1.3 var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter-bar button span { font-size: 12px; opacity: .75; }
.filter-bar button:hover { border-color: var(--accent); color: var(--ink); }
.filter-bar button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter-bar button[aria-pressed="true"] span { color: var(--accent-ink); }
.search-box { margin-inline-start: auto; height: 43px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 0 13px; color: var(--muted); }
.search-box svg { width: 17px; height: 17px; flex: none; }
.search-box input { width: 168px; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 12.5px; }
.search-box:focus-within { border-color: var(--accent); }
@media (max-width: 760px) { .search-box { width: 100%; order: -1; margin: 0; } .search-box input { width: 100%; } .filter-bar button { padding: 9px 12px; font-size: 12.5px; } }
.filter-grid li[hidden] { display: none !important; }
.filter-empty { text-align: center; color: var(--muted); padding: 35px; }
.filter-more { text-align: center; margin: 26px 0 0; }

ul.products { gap: 17px; }
ul.products li.product, .pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: none; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(0, 0, 0, .3); }
.pcard-media { aspect-ratio: auto; height: 222px; margin: 0; border-radius: 0; background: var(--photo-bg); }
.pcard-media img { padding: 16px; }
.pcard-badge { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .89); color: #4b5563; border: 1px solid #e6e1d6; border-radius: 6px; padding: 4px 8px; font-size: 12px; line-height: 1.4; }
.pcard-media .onsale, .pcard-media .soldout { top: 12px; inset-inline-end: 12px; inset-inline-start: auto; }
.pcard-body { text-align: start; padding: 16px 16px 15px; }
.pcard-brand { margin: 0; color: var(--accent); font: 600 11.5px var(--font); letter-spacing: 0; direction: rtl; text-align: start; }
.pcard-title { margin: 10px 0 6px; min-height: 0; font-size: 14px; font-weight: 650; line-height: 1.8; }
.pcard-spec { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.pcard-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.pcard-body { flex: 1; display: flex; flex-direction: column; }
.pcard-bottom .pcard-price { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.pcard-bottom .pcard-price .woocommerce-Price-currencySymbol { font-size: 12px; }
.pcard-bottom .button { width: auto; min-height: 0; padding: 8px 12px; border: 0; border-radius: 7px; background: var(--gold-soft); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pcard-bottom .button:hover { background: var(--accent); color: var(--accent-ink); border: 0; }
.pcard-bottom a.added_to_cart { display: none; }
@media (max-width: 760px) {
  .pcard-media { height: 170px; }
  .pcard-body { padding: 12px 11px; }
  .pcard-title { font-size: 12.5px; }
  .pcard-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
  .pcard-bottom .button { text-align: center; }
}

/* ---------- Assurance strip ---------- */
.assurance { background: var(--surface); border-block: 1px solid var(--line); margin-top: 20px; }
.assurance-row { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.assurance-item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px 10px; min-height: 80px; }
.assurance-item:not(:last-child) { border-inline-start: 0; border-inline-end: 1px solid var(--line); }
.assurance-item svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.assurance-item strong { display: block; font-size: 13px; font-weight: 650; }
.assurance-item small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
@media (max-width: 760px) { .assurance-row { grid-template-columns: 1fr 1fr; } .assurance-item { padding: 14px 8px; gap: 10px; } .assurance-item:nth-child(2) { border-inline-end: 0; } .assurance-item:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Buying-guide box ---------- */
.editorial { padding-block: clamp(30px, 4vw, 54px) clamp(40px, 6vw, 70px); }
.editorial-box { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 310px; border-radius: 16px; overflow: hidden; background: var(--bar-bg); border: 1px solid var(--line); }
.editorial-copy { padding: clamp(26px, 4vw, 44px) clamp(24px, 5vw, 65px); color: #f1f4f7; align-self: center; }
.editorial-copy .section-caption { color: var(--accent); }
.editorial-copy h2 { margin: 14px 0; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.8; font-weight: 650; color: #fff; }
.editorial-copy p { margin: 0 0 18px; font-size: 13px; line-height: 2.2; color: #c4cfdb; max-width: 44ch; }
.editorial-copy a { font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 6px; color: #fff; }
.editorial-img { min-height: 310px; background: center / cover no-repeat; }
@media (max-width: 760px) { .editorial-box { grid-template-columns: 1fr; } .editorial-img { order: -1; min-height: 215px; height: 215px; } }

/* ---------- Footer: quick links | logo, line and seals in the middle | information, everything centred ---------- */
.site-footer { margin-top: 0; padding-top: clamp(36px, 5vw, 58px); background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: clamp(20px, 4vw, 56px); text-align: center; padding-bottom: 8px; margin-top: 0; align-items: start; }
.footer-grid > div { min-width: 0; }
.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.dg-logo-foot { width: 132px; }
.footer-brand p { margin: 0 auto; max-width: 34ch; font-size: 13px; line-height: 2.1; color: var(--muted); }
.footer-brand .seals { justify-content: center; padding: 0; }
.footer-brand .seal { width: 76px; height: 76px; padding: 8px; }
.site-footer h4 { font-size: 13.5px; margin: 3px 0 18px; }
.site-footer li { margin-bottom: 11px; font-size: 12.5px; }
.copy { display: flex; justify-content: center; text-align: center; gap: 8px 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 24px 0 28px; margin-top: 32px; font-size: 12.5px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; order: -1; } .copy { justify-content: center; text-align: center; } }

/* ---------- Live price notes in the dark theme ---------- */
.live-note { color: var(--muted); }

/* Light palettes: photos of products sit on white, the logo gets a dark edge (see html[data-color-mode]) */
html[data-color-mode="light"] .livebar { background: var(--bar-bg); }

/* The old gallery.css used .editorial for the box itself; here it is the section around the box. */
section.editorial { display: block; background: none; border-radius: 0; overflow: visible; gap: 0; grid-template-columns: none; }

/* "Added to the cart" toast */
.dg-toast { position: fixed; z-index: 9998; inset-inline: 0; bottom: 22px; margin-inline: auto; width: max-content; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; background: var(--bar-bg); color: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13.5px; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .22s, transform .22s; }
.dg-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dg-toast-ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2fb344; color: #fff; font-size: 13px; }
.dg-toast a { color: var(--accent); font-weight: 700; border-bottom: 1px solid currentColor; }

/* ---------- Product page: price breakdown and rules ---------- */
.price-breakdown { margin: 14px 0 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.price-breakdown h3 { margin: 0 0 8px; font-size: 14px; }
.price-breakdown table { width: 100%; border-collapse: collapse; font-size: 13px; }
.price-breakdown td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.price-breakdown td:last-child { text-align: end; white-space: nowrap; font-weight: 600; }
.price-breakdown .is-total td { border-bottom: 0; padding-top: 10px; font-weight: 700; font-size: 14px; }
.price-breakdown p { margin: 8px 0 0; }
.product-rules { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.product-rules li { position: relative; padding-inline-start: 22px; }
.product-rules li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--accent); font-weight: 700; }
.product-rules b { color: var(--ink); }
.product-rules a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---------- FAQ ---------- */
.faq { width: min(100%, 860px); margin-inline: auto; }
.faq-title { font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 18px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 2; }
.single-product .faq { margin-top: 36px; grid-column: 1 / -1; }
.faq-section { padding-block: clamp(24px, 4vw, 44px); }

/* ---------- Pages, notes, thank-you ---------- */
.draft-note { padding: 10px 14px; border: 1px dashed var(--bad); border-radius: var(--radius); color: var(--bad); font-size: 12.5px; }
.footer-contact { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.next-steps { margin-top: 24px; }
.next-steps ol { margin: 0 0 12px; padding-inline-start: 20px; display: grid; gap: 8px; line-height: 1.9; }
@media print {
  .livebar, .site-header, .site-footer, .tr-bar, .dg-toast, .no-print, .steps, .header-search { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .card, .woocommerce-order, .woocommerce-table { border-color: #999 !important; box-shadow: none !important; background: #fff !important; color: #000 !important; }
  a { color: #000 !important; }
}

/* ---------- Collection tile shapes (data-style on .category-grid) ---------- */
.category-tile .category-arrow { display: none; }
/* rounded: soft large corners, text at the start, an arrow button */
.category-grid[data-style="rounded"] .category-tile { border-radius: 24px; min-height: 430px; align-items: flex-end; border: 1px solid rgba(255, 255, 255, .08); }
.category-grid[data-style="rounded"] .category-tile::after { background: linear-gradient(0deg, rgba(7, 20, 38, .92) 0%, rgba(7, 20, 38, .1) 70%); }
.category-grid[data-style="rounded"] .category-copy { align-items: flex-start; text-align: start; padding: 4px 6px 6px; }
.category-grid[data-style="rounded"] .category-name { font-size: 27px; }
.category-grid[data-style="rounded"] .category-action { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-size: 12px; }
/* chamfer: cut corners */
.category-grid[data-style="chamfer"] .category-tile { border-radius: 0; min-height: 440px; clip-path: polygon(48px 0, calc(100% - 48px) 0, 100% 48px, 100% calc(100% - 48px), calc(100% - 48px) 100%, 48px 100%, 0 calc(100% - 48px), 0 48px); }
/* para: three slanted tiles that together make one big parallelogram */
.category-grid[data-style="para"] { --slant: 70px; display: flex; gap: 10px; }
.category-grid[data-style="para"] .category-tile { flex: 1 1 0; min-width: 0; border-radius: 0; min-height: 440px; padding-inline: calc(var(--slant) + 10px); clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.category-grid[data-style="para"] .category-tile + .category-tile { margin-inline-start: calc(var(--slant) * -1); }
.category-grid[data-style="para"] .category-name { font-size: 26px; }
@media (max-width: 760px) {
  .category-grid[data-style="rounded"] .category-tile, .category-grid[data-style="chamfer"] .category-tile { min-height: 230px; padding: 10px; }
  .category-grid[data-style="rounded"] .category-name { font-size: 16px; }
  .category-grid[data-style="rounded"] .category-action { padding: 5px 10px; font-size: 12px; }
  .category-grid[data-style="chamfer"] .category-tile { clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px), 0 24px); }
  .category-grid[data-style="para"] { --slant: 26px; gap: 6px; }
  .category-grid[data-style="para"] .category-tile { min-height: 250px; padding-inline: calc(var(--slant) + 2px); }
  .category-grid[data-style="para"] .category-name { font-size: 14px; }
  .category-grid[data-style="para"] .category-sub { display: none; }
}

.review-hint { margin: 0 0 14px; font-size: 14px; }

/* Order tracking number, numbers and codes kept in reading order inside right-to-left text */
.tracking-box { margin: 0 0 20px; text-align: center; }
.tracking-code { font: 700 30px/1.3 var(--font); letter-spacing: .06em; margin: 6px 0 10px; user-select: all; unicode-bidi: isolate; }
.tracking-line { margin: 0 0 12px; }
bdi, .product-quantity { unicode-bidi: isolate; }

/* «فروشگاه» drop-down */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.mega { position: absolute; inset-inline-start: 0; top: 100%; z-index: 60; width: min(680px, 92vw); padding-top: 12px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.mega-grid, .mega-all { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 22px 24px 8px; border-radius: 18px 18px 0 0; border-bottom: 0; }
.mega-all { display: block; padding: 12px 24px 16px; border-radius: 0 0 18px 18px; border-top: 0; font-size: 13px; color: var(--accent); }
.nav-links .mega a { padding: 0; border-radius: 0; background: none; }
.nav-links .mega a.mega-all { display: block; padding: 12px 24px 16px; border-radius: 0 0 18px 18px; background: var(--surface); }
.nav-drop:hover .mega, .nav-drop:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-title { font-weight: 800; font-size: 14.5px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mega-title a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; color: var(--ink); }
.mega-title em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.mega small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.mega li a:hover, .mega-title a:hover, .mega-all:hover { color: var(--accent); }
@media (max-width: 900px) {
  .nav-links { justify-self: stretch; }
  .nav-drop > a { display: flex; justify-content: space-between; }
  .nav-links .mega a.mega-all { background: none; padding: 6px 12px 10px; border-radius: 0; }
  .mega { position: static; width: auto; opacity: 1; visibility: visible; transform: none; padding: 0 0 6px; }
  .mega-grid, .mega-all { background: none; border: 0; box-shadow: none; padding: 0 12px; }
  .mega-grid { grid-template-columns: 1fr; gap: 6px; }
  .mega-all { padding: 6px 12px 10px; }
  .mega-title { margin: 6px 0 2px; padding-bottom: 4px; font-size: 13.5px; }
  .caret { display: none; }
}
