/* ============================================================
   OlympicGuru – terms.css
   Shared UI + terms‑page specific styles
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-muted: #5b5b5b;
  --border: #e7e7e7;
  --accent: #ff5a1f;
  --accent-hover: #e64a10;
  --success: #16a34a;
  --whatsapp: #25d366;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 6px 18px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .18);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;
  --header-h: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: .5px;
  margin: 0 0 .5rem;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 .8rem;
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOPBAR ===== */
.topbar {
  background: #0a0a0a;
  color: #fff;
  font-size: .82rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
}

.topbar a {
  color: #fff;
  margin-right: 14px;
  opacity: .9;
}

.topbar a:hover {
  opacity: 1;
  color: var(--accent);
}

.topbar-center {
  color: #fff;
}

@media (max-width: 820px) {

  .topbar-left a:nth-child(2),
  .topbar-right {
    display: none;
  }

  .topbar-inner {
    justify-content: space-between;
  }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}

.logo-img {
  height: 42px;
  width: auto;
}

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 1.5px;
  color: var(--text);
  display: inline-block;
}

.search {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f5f5f5;
  color: var(--text);
  font-size: .95rem;
  transition: border .2s, background .2s, box-shadow .2s;
}

.search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .15);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hdr-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  position: relative;
  color: var(--text);
  font-weight: 500;
  font-size: .92rem;
  transition: background .2s, color .2s, transform .15s;
}

.hdr-action:hover {
  background: #f1f1f1;
  color: var(--accent);
  transform: translateY(-1px);
}

.hdr-action i {
  font-size: 1.1rem;
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Desktop nav */
.nav {
  border-top: 1px solid var(--border);
  background: #fff;
}

.nav-list {
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 12px 20px;
}

.nav-link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0;
  position: relative;
  transition: color .2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width .25s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  width: 82%;
  max-width: 340px;
  background: #fff;
  z-index: 90;
  padding: 18px;
  transition: left .35s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-head button {
  font-size: 1.4rem;
}

.mobile-nav li a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 90, 31, .3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ===== Drawers ===== */
.drawer {
  position: fixed;
  top: 0;
  right: -110%;
  height: 100vh;
  width: 420px;
  max-width: 92vw;
  background: #fff;
  z-index: 95;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right .4s cubic-bezier(.22, .61, .36, 1);
}

.drawer.open {
  right: 0;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-head h3 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.drawer-head h3 i {
  color: var(--accent);
  margin-right: 6px;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4f4f4;
  color: var(--text);
  transition: background .2s, color .2s, transform .15s;
}

.drawer-close:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px;
}

/* Auth pane */
.auth-pane {
  animation: fadeIn .3s ease both;
}

.auth-pane.hidden {
  display: none;
}

.auth-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  margin: 0 0 4px;
}

.auth-sub {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field>span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}

.field input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  background: #fafafa;
  transition: border .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .15);
}

.auth-row {
  display: flex;
  justify-content: flex-end;
}

.link-muted {
  color: var(--text-muted);
  font-size: .85rem;
}

.link-muted:hover {
  color: var(--accent);
}

.link-strong {
  color: var(--accent);
  font-weight: 600;
}

.auth-foot {
  text-align: center;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: .9rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .82rem;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cart drawer */
.cart-body {
  padding-bottom: 10px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: fadeIn .25s ease both;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f4f4f4;
  display: grid;
  place-items: center;
  color: #b8b8b8;
  font-size: 1.6rem;
}

.cart-item-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.cart-item-info .price-now {
  font-size: .95rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
}

.qty button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: #fafafa;
  color: var(--text);
  font-weight: 700;
  transition: background .15s;
}

.qty button:hover {
  background: var(--accent);
  color: #fff;
}

.qty span {
  min-width: 26px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
}

.cart-item-remove {
  align-self: start;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color .2s;
}

.cart-item-remove:hover {
  color: var(--accent);
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fafafa;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: .92rem;
  color: var(--text);
}

.cart-line.total {
  font-weight: 800;
  font-size: 1.1rem;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

.cart-footer .btn {
  margin-top: 4px;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Floating buttons */
.float-stack {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  transition: transform .2s, background .2s;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.back-to-top {
  background: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .2s;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp {
  background: var(--whatsapp);
  animation: waPulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive header */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 12px 14px;
  }

  .hdr-action-label {
    display: none;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .header-inner {
    grid-template-columns: auto auto;
    grid-template-areas: "logo actions" "search search";
    row-gap: 10px;
  }

  .logo {
    grid-area: logo;
  }

  .header-actions {
    grid-area: actions;
  }

  .search {
    grid-area: search;
    max-width: 100%;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #0a0a0a;
  color: #d4d4d4;
  padding: 60px 0 20px;
}

.footer h3,
.footer h4 {
  color: #fff;
}

.footer p,
.footer a,
.footer li {
  color: #b0b0b0;
}

.footer a:hover {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.footer-col ul {
  display: grid;
  gap: 8px;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.footer-contact p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .9rem;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 4px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1c1c1c;
  display: grid;
  place-items: center;
  transition: background .2s, transform .15s;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #1c1c1c;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .85rem;
}

.legal-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 20px 0 8px;
  font-size: .9rem;
  color: var(--text-muted);
}

.breadcrumb ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb .sep {
  color: var(--text-muted);
  margin: 0 2px;
}

.breadcrumb a {
  color: var(--text);
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .current {
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   TERMS HERO
   ============================================================ */
.terms-hero {
  position: relative;
  padding: 40px 0 50px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.terms-hero-inner {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 40px;
  align-items: center;
}

.terms-hero-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-hero-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.terms-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4rem);
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.05;
}

.terms-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0;
}

.terms-hero-meta {
  display: flex;
  gap: 24px;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.terms-hero-meta i {
  color: var(--accent);
  margin-right: 4px;
}

.terms-hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
}

/* ============================================================
   TERMS CONTENT
   ============================================================ */
.section {
  padding: 50px 0 60px;
}

.terms-intro {
  max-width: 800px;
  margin: 0 auto 44px;
  text-align: center;
}

.terms-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.terms-block {
  max-width: 820px;
  margin: 0 auto 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}

.terms-block:hover {
  box-shadow: var(--shadow-sm);
}

.terms-block-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  padding: 18px 24px;
  background: #f8f8f8;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.terms-block-title i {
  color: var(--accent);
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
}

.terms-block-content {
  padding: 20px 24px 24px;
}

.terms-block-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.terms-block-content p:last-child {
  margin-bottom: 0;
}

.terms-block-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.terms-block-content ul li {
  padding: 5px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
}

.terms-block-content ul li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

.terms-block-content ul li strong {
  color: var(--text);
}

.terms-block-content a {
  color: var(--accent);
  font-weight: 500;
}

.terms-block-content a:hover {
  text-decoration: underline;
}

.terms-contact-block .terms-block-content {
  padding-bottom: 24px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.contact-details a,
.contact-details span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: var(--text);
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-details i {
  color: var(--accent);
  width: 20px;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .terms-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .terms-hero-art {
    display: none;
  }

  .terms-hero-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .terms-hero {
    text-align: center;
  }

  .terms-hero-meta {
    justify-content: center;
  }

  .terms-block-title {
    font-size: 1rem;
    padding: 16px 20px;
  }

  .terms-block-content {
    padding: 16px 20px 20px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 30px 0 40px;
  }

  .terms-hero {
    padding: 24px 0 32px;
  }

  .terms-hero-title {
    font-size: 2.2rem;
  }

  .terms-hero-subtitle {
    font-size: .95rem;
  }

  .terms-hero-meta {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  .terms-intro p {
    font-size: .95rem;
  }

  .terms-block-title {
    padding: 14px 16px;
    font-size: .95rem;
  }

  .terms-block-title i {
    font-size: 1rem;
    width: 24px;
  }

  .terms-block-content {
    padding: 14px 16px 18px;
  }

  .terms-block-content ul li {
    font-size: .88rem;
    padding-left: 24px;
  }

  .contact-details a,
  .contact-details span {
    font-size: .88rem;
  }

  .terms-block {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .terms-hero-title {
    font-size: 1.8rem;
  }

  .terms-block-title {
    font-size: .88rem;
    padding: 12px 14px;
  }

  .terms-block-content {
    padding: 12px 14px 16px;
  }

  .terms-block-content ul li {
    font-size: .85rem;
  }
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Desktop Dropdown Shop Navigation ===== */
.nav-list li.has-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  min-width: 240px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  border: 1px solid var(--border);
  margin-top: 4px;
}

.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-col {
  display: flex;
  flex-direction: column;
}

.dd-item {
  position: relative;
}

.dd-link {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.dd-link:hover {
  background: #f8f8f8;
  color: var(--accent);
  padding-left: 24px;
}

.dd-sub {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  padding: 6px 0;
  margin-left: 4px;
}

.dd-sub.open {
  display: block;
}

.dd-sub-link {
  display: block;
  padding: 8px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.dd-sub-link:hover {
  background: #f8f8f8;
  color: var(--accent);
  padding-left: 24px;
}

.has-dropdown>.nav-link::after {
  display: none;
}

/* Mobile submenu */
.mobile-dropdown {
  position: relative;
  list-style: none;
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.mobile-dropdown-toggle a {
  flex-grow: 1;
  border-bottom: none !important;
  text-decoration: none;
  color: var(--text);
}

.submenu-toggle-btn {
  background: transparent;
  border: none;
  padding: 14px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.submenu-toggle-btn:hover {
  color: var(--accent);
}

.mobile-submenu {
  display: none;
  list-style: none;
  padding-left: 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu li a {
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  border-bottom: none !important;
  display: block;
  text-decoration: none;
}

.mobile-subitem>a,
.mobile-category-toggle a {
  padding-left: 18px;
  font-size: 0.98rem;
}

.mobile-nested-submenu {
  padding-left: 18px;
  background: #fff;
}

.mobile-nested-submenu li a {
  padding-left: 18px;
  font-size: 0.9rem;
}

.mobile-submenu li a:hover {
  color: var(--accent);
}

/* Prevent background scrolling when a drawer/menu is open */
body:has(.drawer.open),
body:has(.mobile-menu.open) {
  overflow: hidden;
}