:root {
  --font-sans: "Nexa", system-ui, -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
  --text: #191723;
  --bg: #f3f2f8;
  --card: #ffffff;
  --shadow: 0 14px 34px rgba(28, 23, 64, 0.12);
  --sport-main: #ff8f1f;
  --sport-dark: #131117;
  --cos-main: #ffd4e5;
  --cos-dark: #7e3f66;
  --radius: 20px;
  --layout-max-width: 1100px;
  --layout-padding-x: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #fff 0%, #f3f2f8 40%),
    radial-gradient(circle at 100% 0%, #ffe8f2 0%, #f3f2f8 55%);
}

.topbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 14px;
  width: min(100%, var(--layout-max-width));
  max-width: var(--layout-max-width);
  box-sizing: border-box;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px var(--layout-padding-x);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.topbar-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-brand h1 {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35ch;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Titres haut : les deux parties restent sur une ligne (le HTML riche utilise des <div> en bloc ailleurs). */
.topbar-brand h1 span.cms-rich {
  display: inline;
}

.topbar-brand h1 span.cms-rich div {
  display: inline;
  margin: 0;
}

.topbar-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(28, 23, 64, 0.14);
}

.topbar-logo[hidden] {
  display: none !important;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-toggle {
  display: none !important;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: linear-gradient(120deg, #2d263c 0%, #4b3d67 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

/* Pas de !important ici : sinon .open ne peut jamais afficher le menu (perd contre display:none !important). */
.mobile-menu-panel {
  display: none;
}

h1, h2, h3, h4 {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 2rem;
  letter-spacing: 0.4px;
  font-weight: 900;
  white-space: nowrap;
}

.title-3b {
  color: #ff6e1f;
}

.title-universe {
  color: #b97b99;
}

main {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 132px var(--layout-padding-x) 44px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: fadeInUp 0.55s ease;
}

.intro {
  max-width: 760px;
  font-size: 1.06rem;
  color: #4b4962;
}

#home .intro {
  max-width: none;
}

.home-intro-frame {
  max-width: 760px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid #ebe8f7;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(28, 23, 64, 0.08);
}

.home-intro-frame .intro {
  margin: 0;
}

/*
 * Textes saisis en admin (textarea) : afficher les retours à la ligne comme sur l’éditeur.
 * Couvre applyText / setLink dans app.js + fiches produit (nom, tag, description).
 */
#home-title,
#top-title-3b,
#top-title-universe,
#home-tagline,
#home-intro,
#home-sport-card-title,
#home-sport-card-description,
#home-cosmetic-card-title,
#home-cosmetic-card-description,
#about-title,
#about-description,
#sport-hero-eyebrow,
#sport-hero-title,
#sport-hero-description,
#cos-hero-eyebrow,
#cos-hero-title,
#cos-hero-description,
#footer-copyright,
#footer-credits,
#contact-card-title,
#contact-card-description,
#sport-insta-btn,
#cos-insta-btn,
#footer-sport-link,
#footer-cos-link,
.product-card .chip,
.product-card h4,
.product-card .product-description {
  white-space: pre-line;
  margin: 0 0 10px;
}

/* Texte riche (HTML) : listes / paragraphes ; annule pre-line du bloc parent */
.cms-rich {
  white-space: normal !important;
}

.cms-rich p {
  margin: 0.35em 0;
}

.cms-rich p:first-child {
  margin-top: 0;
}

.cms-rich p:last-child {
  margin-bottom: 0;
}

/* Lignes issues de contenteditable (souvent des <div>) */
.cms-rich div {
  display: block;
  margin: 0.2em 0;
}

.cms-rich div:empty {
  min-height: 1em;
}

.cms-rich ul,
.cms-rich ol {
  margin: 0.35em 0;
  padding-left: 1.25em;
}

.cms-rich a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffffc9;
  border: 1px solid #ebe8f7;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #5a5574;
}

/* Texte riche dans la pastille : évite coupures bizarres au bord des <b> / <strong> */
.eyebrow.cms-rich {
  text-transform: none;
  letter-spacing: 0.05em;
  flex-direction: column;
  align-items: flex-start;
}

.logo-grid, .product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-grid.count-1 {
  grid-template-columns: minmax(320px, 50%);
  justify-content: center;
}

.product-grid.count-2 {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.product-grid.count-3,
.product-grid.count-4plus {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.logo-card, .product-card, .people-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #f0edf7;
}

.logo-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.logo-card .action-btn {
  padding: 14px 28px;
  font-size: 1.08rem;
  font-weight: 800;
}

.logo-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(28, 23, 64, 0.18);
}

#home-sport-card-description,
#home-cosmetic-card-description {
  margin: 0 0 14px;
}

#contact-card-description {
  margin: 0 0 14px;
}

.sport-card {
  background: linear-gradient(160deg, #fff 0%, #fff4e3 100%);
}

.cosmetic-card {
  background: linear-gradient(160deg, #fff 0%, #fff0f6 100%);
}

.logo-card-hit {
  display: block;
  margin: 0 auto 14px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  line-height: 0;
  font: inherit;
}

.logo-card-hit:focus-visible {
  outline: 3px solid rgba(255, 110, 31, 0.65);
  outline-offset: 4px;
}

.logo-card-hit .logo-round {
  margin: 0;
}

.logo-round {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 999px;
  margin: 0 auto 14px;
  border: 5px solid #fff;
  box-shadow: 0 14px 24px rgba(16, 11, 37, 0.2);
}

.chip {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f6f4ff;
  border: 1px solid #e8e4fa;
  color: #544f72;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.action-btn, .back-btn, .cart-button, .contact-nav-button, #cart-close {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.action-btn:hover, .back-btn:hover, .cart-button:hover, .contact-nav-button:hover, #cart-close:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.action-btn {
  color: #fff;
  background: #2f2b42;
  font-weight: 700;
}

.sport-btn {
  background: linear-gradient(120deg, #ff9f28 0%, #ff7e1d 100%);
}

.cosmetic-btn {
  background: linear-gradient(120deg, #f6b9d1 0%, #eaa6c2 100%);
  color: #5f3150;
}

.back-btn {
  margin-bottom: 14px;
  background: #ffffffb8;
  border: 1px solid #ebe8f5;
}

.cart-button {
  background: linear-gradient(120deg, #2d263c 0%, #4b3d67 100%);
  color: #fff;
  font-weight: 700;
}

.contact-nav-button {
  border: none;
  background: linear-gradient(120deg, #2d263c 0%, #4b3d67 100%);
  color: #fff;
  font-weight: 700;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #2d263c;
  font-size: 0.85rem;
}

.sport-theme {
  background: linear-gradient(180deg, #fff 0%, #fff7ee 100%);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid #ffe4c4;
}

.sport-theme h2 {
  color: var(--sport-dark);
}

.cosmetic-theme {
  background: linear-gradient(180deg, #fff 0%, #fff2f7 100%);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid #ffd5e7;
}

.cosmetic-theme h2 {
  color: var(--cos-dark);
}

.hero {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  margin-bottom: 20px;
}

.hero-logo {
  width: 100%;
  max-width: 240px;
  border-radius: 999px;
  border: 6px solid #fff;
  justify-self: center;
  box-shadow: 0 16px 30px rgba(20, 12, 32, 0.2);
}

.hero-sport {
  background: linear-gradient(120deg, #fff 0%, #ffe9cd 100%);
  border: 1px solid #ffd6a2;
  border-radius: var(--radius);
  padding: 18px;
}

.hero-cosmetic {
  background: linear-gradient(120deg, #fff 0%, #ffe8f2 100%);
  border: 1px solid #ffc8de;
  border-radius: var(--radius);
  padding: 18px;
}

.brand-tagline {
  font-weight: 600;
  line-height: 1.55;
  color: #3e3a52;
  margin: 0 0 12px;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
}

.product-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto -55px -55px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  z-index: -1;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(28, 23, 64, 0.16);
}

.product-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

a.product-detail-link {
  text-decoration: none;
  box-sizing: border-box;
}

.product-detail-link-sport {
  background: transparent !important;
  color: #ff6e1f !important;
  border: 2px solid rgba(255, 110, 31, 0.55) !important;
  box-shadow: none !important;
}

.product-detail-link-sport:hover {
  background: rgba(255, 110, 31, 0.08) !important;
}

.product-detail-link-cosmetic {
  background: transparent !important;
  color: #7e3f66 !important;
  border: 2px solid rgba(184, 123, 153, 0.65) !important;
  box-shadow: none !important;
}

.product-detail-link-cosmetic:hover {
  background: rgba(233, 173, 201, 0.2) !important;
}

.product-detail-screen .product-detail-inner {
  max-width: 760px;
  margin: 0 auto;
}

.product-detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.product-detail-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e4f0;
  box-shadow: 0 8px 18px rgba(28, 23, 64, 0.08);
}

.product-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-photo-empty {
  display: grid;
  place-items: center;
  color: #9a93b0;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding: 8px;
}

.product-detail-block {
  margin-bottom: 18px;
}

.product-detail-block h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #3a3550;
}

.product-detail-price-line {
  margin: 16px 0 12px;
  font-size: 1.25rem;
}

.product-detail-actions {
  margin-bottom: 28px;
}

.people-card {
  margin-top: 44px;
  background: linear-gradient(140deg, #ffffff 0%, #f7f4ff 100%);
}

.founders-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
}

.founders-photos {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.founder-photo-block {
  text-align: center;
}

.founder-photo-block p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b5475;
}

.founder-photo {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 10px 16px rgba(33, 20, 62, 0.16);
}

.founders-description,
#about-description {
  margin: 0;
  line-height: 1.55;
  color: #47415f;
}

.product-visual {
  height: 170px;
  border-radius: 14px;
  margin: 6px 0 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-visual.with-image {
  padding: 0;
  overflow: hidden;
  display: block;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.sport-visual {
  background: linear-gradient(130deg, #fff3de 0%, #ffd6a3 100%);
  color: #7a4d12;
  border: 1px solid #ffc98a;
}

.cosmetic-visual {
  background: linear-gradient(130deg, #ffedf4 0%, #ffd4e4 100%);
  color: #784568;
  border: 1px solid #ffc2d8;
}

.contact-card {
  margin-top: 24px;
  background: linear-gradient(140deg, #ffffff 0%, #f5f2ff 100%);
  border: 1px solid #e9e4f8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: 700;
  color: #4f4969;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ddd7f1;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  margin: 4px auto 18px;
  max-width: var(--layout-max-width);
  padding: 10px var(--layout-padding-x);
  border-radius: 12px;
  border: 1px solid #f0edf8;
  background: #ffffff8c;
  backdrop-filter: blur(8px);
}

.site-footer p {
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.72rem;
  color: #7e7397;
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  margin: 8px 0 10px;
}

.footer-legal-link {
  font-size: 0.68rem;
  font-weight: 700;
  color: #5b5475;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-link:hover {
  color: #352d49;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-document {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ebe8f7;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-document h2 {
  margin-bottom: 16px;
  font-size: 1.45rem;
  color: #352d49;
}

.legal-prose {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #47415f;
}

.legal-prose h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  color: #3a3550;
}

.legal-prose p {
  margin: 0 0 10px;
}

.legal-prose ul {
  margin: 8px 0 12px;
  padding-left: 1.25em;
}

.legal-prose a {
  color: #7e3f66;
  font-weight: 700;
}

.footer-link {
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
}

.footer-links .footer-link:first-child {
  color: #d6711d;
}

.footer-links .footer-link:last-child {
  color: #b97b99;
}

.copyright {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.66rem;
  color: #7a6f95;
  letter-spacing: 0.02em;
}

.credits {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.67rem;
  color: #8a7ea7;
  font-style: italic;
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: min(360px, 100%);
  height: 100vh;
  max-height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: -8px 0 18px rgba(0, 0, 0, 0.14);
  border-left: 1px solid #ece8fb;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  z-index: 10000;
  isolation: isolate;
  backdrop-filter: blur(8px);
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-panel-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 12px;
  padding: 4px 0 12px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ece8fb;
}

.cart-header h3 {
  margin: 0;
  font-size: 1.05rem;
  flex: 1;
  min-width: 0;
}

#cart-close {
  position: relative;
  z-index: 6;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(120deg, #2d263c 0%, #4b3d67 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

#cart-items li {
  border-bottom: 1px solid #ebebeb;
  padding: 10px 0;
  font-size: 0.95rem;
}

.cart-line {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-line-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-line-name {
  font-weight: 700;
  color: #2a2540;
}

.cart-line-unit {
  font-size: 0.82rem;
  color: #6f6988;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d8d2ea;
  background: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: #352d49;
}

.cart-qty-btn:hover {
  background: #f6f4fb;
}

.cart-qty-val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.cart-remove-btn {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e0c4d4;
  background: #fff5f8;
  color: #8a4568;
  font-size: 0.82rem;
  cursor: pointer;
}

.cart-remove-btn:hover {
  background: #fce8ef;
}

.cart-line-total {
  font-weight: 800;
  color: #352d49;
}

.cart-summary {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e8e4f0;
}

.cart-summary-line {
  margin: 6px 0;
  font-size: 0.9rem;
  color: #5b5475;
}

.cart-total {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 1.02rem;
}

a {
  color: #2e2745;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.insta-btn {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.insta-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.insta-sport {
  background: linear-gradient(120deg, #ff9d2d 0%, #ff7e1d 100%);
  color: #fff;
  border-color: #ff9d2d;
}

.insta-cosmetic {
  background: linear-gradient(120deg, #f6c1d8 0%, #e9adc9 100%);
  color: #5f3150;
  border-color: #efb9d1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .topbar {
    top: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    gap: 10px;
    padding: 16px var(--layout-padding-x);
  }

  .topbar > .topbar-brand {
    grid-column: 1;
    min-width: 0;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    justify-self: end;
    grid-column: 2;
  }

  .topbar-actions {
    display: none;
  }

  .mobile-menu-panel {
    display: none;
    position: fixed;
    top: 72px;
    right: var(--layout-padding-x);
    z-index: 1001;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e7e1f4;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 14px 26px rgba(31, 22, 48, 0.22);
    flex-direction: column;
    gap: 8px;
    min-width: 168px;
  }

  .mobile-menu-panel.open {
    display: flex !important;
  }

  .mobile-menu-panel .contact-nav-button,
  .mobile-menu-panel .cart-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 10px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  main {
    padding-top: 118px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .founders-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .topbar {
    top: 4px;
    padding: 14px var(--layout-padding-x);
  }

  .mobile-menu-panel {
    top: 62px;
    right: var(--layout-padding-x);
  }

  h1 {
    font-size: 1.25rem;
    letter-spacing: 0.2px;
  }

  .badge {
    min-width: 20px;
    height: 20px;
    font-size: 0.75rem;
    margin-left: 4px;
  }

  .logo-round {
    width: 190px;
    height: 190px;
  }

  .logo-grid, .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid.count-1,
  .product-grid.count-2,
  .product-grid.count-3,
  .product-grid.count-4plus {
    grid-template-columns: 1fr;
  }
}

.checkout-customer-fields {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.checkout-customer-fields h4 {
  margin: 4px 0 2px;
  font-size: 0.95rem;
}

.checkout-customer-fields input {
  width: 100%;
  border: 1px solid #ded8ef;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  color: #2a2540;
}

.site-notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 23, 46, 0.38);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.site-notice-overlay.open {
  display: flex;
}

.site-notice-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid #ece7f7;
  border-radius: 18px;
  padding: 20px 18px 16px;
  box-shadow: 0 20px 40px rgba(37, 29, 58, 0.22);
  position: relative;
}

.site-notice-card[data-type="success"] {
  border-color: #e8d9f5;
}

.site-notice-card[data-type="error"] {
  border-color: #f2cbd5;
}

.site-notice-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: #5f5879;
}

.site-notice-title {
  margin: 0 24px 10px 0;
  font-size: 1.35rem;
  color: #271f3e;
}

.site-notice-message {
  margin: 0;
  line-height: 1.55;
  color: #4e4768;
  white-space: pre-line;
}

.site-notice-action {
  margin-top: 14px;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  background: linear-gradient(120deg, #ff9d2d 0%, #e9adc9 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
