:root {
  --ink: #17314f;
  --muted: #5b6c81;
  --peach: #ef6e43;
  --peach-deep: #d9542d;
  --peach-soft: #fff0e6;
  --teal: #1e9897;
  --teal-soft: #e4f8f7;
  --gold-soft: #fff4d8;
  --mint-soft: #eaf7ed;
  --line: rgba(23, 49, 79, 0.12);
  --card: rgba(255, 255, 255, 0.86);
  --card-strong: rgba(255, 253, 249, 0.96);
  --shadow: 0 24px 70px rgba(113, 77, 17, 0.14);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 192, 92, 0.22), transparent 28%),
    radial-gradient(circle at right center, rgba(50, 171, 170, 0.16), transparent 26%),
    linear-gradient(180deg, #fff7ea, #fff2de 58%, #fff8ef);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-body {
  min-height: 100vh;
}

.site-shell {
  width: 100%;
  padding: 0 10px 24px;
}

.site-footer {
  padding: 0 10px 14px;
}

.footer-inner {
  display: grid;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 246, 235, 0.94)),
    radial-gradient(circle at top right, rgba(239, 110, 67, 0.1), transparent 28%);
  border: 1px solid rgba(215, 188, 145, 0.5);
  box-shadow: var(--shadow);
  text-align: center;
  justify-items: center;
}

.footer-branding strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.footer-branding p,
.footer-note {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.footer-nav,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.footer-nav a,
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 49, 79, 0.08);
  box-shadow: 0 10px 24px rgba(23, 49, 79, 0.05);
  transition: transform 140ms ease, box-shadow 140ms ease;
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(23, 49, 79, 0.08);
}

.footer-social-link {
  background: rgba(30, 152, 151, 0.08);
  border-color: rgba(30, 152, 151, 0.16);
  color: var(--teal);
}

.footer-social-link-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.22);
  color: #168a45;
}

.cookie-banner {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 120;
  width: min(420px, calc(100vw - 28px));
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.98);
  border: 1px solid rgba(215, 188, 145, 0.52);
  box-shadow: 0 24px 64px rgba(23, 49, 79, 0.18);
}

.cookie-banner-copy {
  display: grid;
  gap: 8px;
}

.cookie-banner-copy strong {
  font-size: 1rem;
}

.cookie-banner-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner-copy a {
  color: var(--teal);
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.legal-page-stack {
  padding-top: 4px;
}

.legal-card {
  grid-template-columns: 1fr;
}

.legal-copy {
  padding-bottom: 0;
}

.legal-grid,
.legal-sections {
  display: grid;
  gap: 12px;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-note-box {
  margin-top: 0;
}

.cgv-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.cgv-copy {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 760px;
}

.cgv-copy p {
  margin: 0;
  color: #364a63;
  line-height: 1.62;
}

.cgv-sections {
  margin-top: 8px;
}

.cgv-sections .legal-note-box {
  padding: 18px 20px;
}

.cgv-sections .legal-note-box > span {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.35;
}

.cgv-sections .legal-note-box p + p {
  margin-top: 10px;
}

.cgv-hero,
.cgv-article-list {
  width: min(980px, 100%);
  margin: 0 auto;
}

.cgv-hero {
  padding: 30px 34px 18px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.97), rgba(255, 246, 237, 0.94)),
    radial-gradient(circle at top right, rgba(239, 110, 67, 0.08), transparent 28%);
  border: 1px solid rgba(215, 188, 145, 0.48);
  box-shadow: var(--shadow);
}

.cgv-hero-copy {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.cgv-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.cgv-hero-copy p {
  margin: 0;
  color: #364a63;
  line-height: 1.64;
}

.cgv-article-list {
  display: grid;
  gap: 14px;
}

.cgv-article-list .legal-note-box {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 49, 79, 0.08);
  box-shadow: 0 14px 34px rgba(23, 49, 79, 0.05);
}

.cgv-article-list .legal-note-box > span {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.35;
}

.cgv-article-list .legal-note-box p {
  margin: 0;
  color: #364a63;
  line-height: 1.68;
}

.cgv-article-list .legal-note-box p + p {
  margin-top: 10px;
}

.shell {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.topbar,
.quote-card,
.guide-panel,
.auth-card,
.admin-list,
.admin-detail {
  backdrop-filter: blur(16px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 24px 10px;
  background: rgba(255, 250, 244, 0.985);
  border-color: rgba(215, 188, 145, 0.56);
  box-shadow: 0 18px 32px rgba(121, 84, 20, 0.1);
}

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

.brand > span:last-child {
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 0.92rem;
  line-height: 0.92;
}

.brand em {
  display: block;
  color: var(--teal);
  font-style: normal;
  font-weight: 800;
  font-size: 1.28rem;
  line-height: 0.92;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: transparent;
  font-size: 0;
  background: url("../img/logo.webp") center center / contain no-repeat;
  box-shadow: none;
  flex: 0 0 auto;
}

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

.topbar-burger {
  display: none;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-left: auto;
  padding: 0;
  background: url("../img/icon/burger-menu-svgrepo-com.svg") center / contain no-repeat;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.admin-link:hover,
.primary-button:hover,
.submit-cta:hover,
.quote-row:hover,
.file-card:hover,
.photo-placeholder:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(23, 49, 79, 0.1);
}

.admin-toggle {
  min-height: 40px;
}

.page-stack {
  display: grid;
  gap: 22px;
  margin-top: 0;
}

.about-stage {
  padding-top: 4px;
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.about-copy,
.about-portrait-card {
  border-radius: 24px;
}

.about-copy {
  padding: 6px 4px 6px 6px;
}

.about-copy h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.about-lead {
  margin: 16px 0 0;
  max-width: 38rem;
  color: #42546a;
  font-size: 1.08rem;
  line-height: 1.45;
}

.about-text {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.about-text p {
  margin: 0;
  color: #364a63;
  line-height: 1.62;
}

.about-actions {
  margin-top: 22px;
}

.about-portrait-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(255, 196, 99, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 248, 234, 0.96), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(23, 49, 79, 0.08);
}

.about-portrait,
.about-portrait-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
}

.about-portrait {
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(23, 49, 79, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.about-portrait-placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  border: 2px dashed rgba(30, 152, 151, 0.34);
  background: rgba(228, 248, 247, 0.4);
  color: var(--muted);
}

.about-portrait-placeholder strong {
  color: var(--ink);
}

.about-portrait-placeholder p {
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 49, 79, 0.08);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-stage {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 10px;
  align-items: stretch;
  padding: 18px 22px 72px;
  margin-top: -1px;
  background:url("../img/fond_carte_tresor.webp") center center / cover no-repeat;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.78), rgba(255, 248, 236, 0.28) 42%, rgba(255, 245, 230, 0.12) 100%);
}

.hero-copy,
.hero-scene-card,
.quote-card,
.guide-panel {
  border-radius: 28px;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 12px 12px 16px 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-map {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background:
    radial-gradient(circle at 16% 18%, rgba(30, 152, 151, 0.12), transparent 14%),
    radial-gradient(circle at 86% 75%, rgba(239, 110, 67, 0.1), transparent 16%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(23, 49, 79, 0.022) 34px 36px),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(23, 49, 79, 0.022) 34px 36px);
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: none;
  margin: 8px 0 0;
  font-size: clamp(4.05rem, 5.45vw, 5.55rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.accent {
  color: var(--peach);
}

.hero-copy p {
  max-width: none;
  margin: 16px 0 0;
  color: #42546a;
  font-size: 1.04rem;
  line-height: 1.22;
}

.camera-cta {
  display: grid;
  place-items: center;
  width: 122px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  background: linear-gradient(135deg, #ff8a54, var(--peach));
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.82),
    0 20px 36px rgba(239, 110, 67, 0.24);
}

.hero-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.hero-actions::after {
  content: "";
  width: 52px;
  height: 12px;
  border-top: 2px dashed rgba(76, 81, 93, 0.45);
  border-radius: 999px;
  transform: rotate(-16deg);
}

.hero-aside {
  margin: 0;
  color: #4b4f59;
  font-size: 1.18rem;
  font-style: italic;
  max-width: 8ch;
}

.hero-scene {
  display: grid;
}

.hero-scene-card {
  position: relative;
  min-height: 360px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-drawer {
  position: absolute;
  inset: -121px -261px -123px -16px;
  width: calc(100% + 360px);
  height: calc(100% + 230px);
  object-fit: contain;
  object-position: 66% 54%;
  filter: saturate(140%);
}

.hero-postcard {
  position: absolute;
  right: 10px;
  bottom: -48px;
  display: block;
  width: min(368px, calc(100% - 26px));
  aspect-ratio: 1471 / 1004;
  padding: 36px 56px 36px 56px;
  background: url("../img/fond_avatar.webp") center center / contain no-repeat;
  border: 0;
  transform: rotate(-2deg);
  clip-path: none;
  overflow: hidden;
}

.hero-postcard-note {
  max-width: 146px;
  margin: 18px 0 0 18px;
  color: #5c4530;
  font-family: "Segoe Print", "Bradley Hand", "Brush Script MT", cursive;
  font-size: 1.02rem;
  line-height: 1.4;
}

.hero-avatar {
    position: absolute;
    right: 51px;
    bottom: 57px;
    width: 139px;
}

.depot-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
  position: relative;
  z-index: 2;
  margin-top: -60px;
}

.quote-card {
  display: grid;
  align-content: start;
  height: auto;
  padding: 22px 24px 20px;
  background: var(--card-strong);
  border-radius: 24px;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 1rem;
}

.panel-icon.quote {
  color: var(--teal);
  background: rgba(228, 248, 247, 0.9);
}

.quote-heading h2,
.admin-heading h2,
.detail-heading h3 {
  margin: 0;
  font-size: clamp(1.66rem, 2.05vw, 2.15rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.quote-heading p,
.quote-footnote,
.helper-text,
.note-copy {
  color: var(--muted);
}

.quote-heading p {
  margin: 10px 0 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

.quote-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.inline-fields,
.upload-grid {
  display: grid;
  gap: 14px;
}

.inline-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-fields.duo {
  grid-template-columns: 0.78fr 1.22fr;
}

.upload-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.form-block {
  display: grid;
  gap: 8px;
}

.label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.93rem;
}

.label-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 0.88rem;
}

.form-block input,
.form-block select,
.form-block textarea {
  width: 100%;
  border: 1px solid rgba(23, 49, 79, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
}

.form-block input::placeholder,
.form-block textarea::placeholder {
  color: #8794a8;
}

.form-block textarea {
  min-height: 72px;
  resize: vertical;
}

.form-block input:focus,
.form-block select:focus,
.form-block textarea:focus {
  border-color: rgba(30, 152, 151, 0.58);
  box-shadow: 0 0 0 4px rgba(30, 152, 151, 0.1);
}

.uploader {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 250, 246, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.uploader input {
  display: none;
}

.uploader-head {
  display: grid;
  gap: 4px;
}

.uploader-label {
  font-size: 0.96rem;
}

.uploader-subtitle {
  padding-left: 34px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.uploader-box {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  border: 2px dashed rgba(30, 152, 151, 0.4);
  border-radius: 18px;
  min-height: 112px;
  padding: 16px 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(228, 248, 247, 0.9), rgba(255, 255, 255, 0.84));
}

.uploader-glyph {
  font-size: 1.15rem;
}

.uploader-box strong {
  font-size: 0.82rem;
  line-height: 1.28;
}

.uploader-box small {
  color: var(--muted);
  font-size: 0.76rem;
}

.upload-preview {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 48px;
  max-height: 224px;
  overflow-y: auto;
  padding-right: 4px;
}

.upload-preview-empty {
  color: var(--muted);
  font-size: 0.8rem;
  padding-bottom: 2px;
}

.upload-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.upload-preview-meta button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 49, 79, 0.12);
  background: #fff;
  color: var(--ink);
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.upload-thumb {
  display: grid;
  gap: 6px;
}

.upload-thumb img {
  width: 100%;
  height: 84px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.upload-thumb span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  word-break: break-word;
}

.submit-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 4px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--peach), #ff9156);
  box-shadow: 0 14px 26px rgba(239, 110, 67, 0.22);
}

.primary-button.slim {
  min-height: 44px;
}

.quote-footnote {
  margin: 0;
  font-size: 0.76rem;
}

.contact-inline-card {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 49, 79, 0.08);
}

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-form-inline {
  gap: 14px;
}

.auth-links-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 49, 79, 0.08);
}

.auth-inline-link {
  justify-self: start;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-register-box {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 240, 230, 0.7);
  border: 1px solid rgba(239, 110, 67, 0.12);
}

.auth-register-box span {
  font-size: 0.84rem;
  color: var(--muted);
}

.auth-secondary-link {
  width: 100%;
}

.error-text {
  color: #c75433;
}

.helper-text.strong {
  margin: 0;
  font-weight: 700;
}

.guide-panel {
  display: grid;
  gap: 16px;
  padding: 22px 24px 20px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  position: relative;
  align-self: start;
  height: auto;
}

.guide-panel-grid {
  grid-template-columns: 1fr;
}

.guide-panel-head h3 {
  margin: 0;
  font-size: 1.46rem;
}

.guide-panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.guide-kind {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-row {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 0;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  align-items: stretch;
}

.guide-row-triptych {
  background: linear-gradient(180deg, rgba(252, 250, 246, 0.96), rgba(255, 255, 255, 0.92));
}

.guide-kind {
  justify-content: flex-start;
}

.guide-kind-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.guide-kind-icon.good {
  color: var(--teal);
  background: rgba(30, 152, 151, 0.12);
}

.guide-kind strong {
  font-size: 0.96rem;
  line-height: 1.1;
}

.guide-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
}

.guide-examples-triptych {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-shot {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  margin: 0;
}

.guide-shot-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
}

.guide-shot-good .guide-shot-frame {
  border: 5px dashed rgba(30, 152, 151, 0.34);
  background: rgba(228, 248, 247, 0.42);
}

.guide-shot-bad .guide-shot-frame {
  border: 5px dashed rgba(239, 110, 67, 0.3);
  background: rgba(255, 240, 230, 0.42);
}

.guide-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.guide-shot figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: center;
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
}

.notice.success {
  background: rgba(30, 152, 151, 0.1);
  color: #157778;
}

.notice.error {
  background: rgba(239, 110, 67, 0.1);
  color: #c75433;
}

.admin-body {
  padding: 12px 10px 24px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.customer-layout {
  align-items: start;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
}

.admin-list,
.admin-detail,
.auth-card {
  padding: 22px;
  border-radius: 28px;
  background: var(--card-strong);
}

.admin-detail {
  backdrop-filter: none;
  overflow: visible;
}

.admin-dashboard-shell {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(23, 49, 79, 0.08);
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.admin-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  line-height: 1.05;
}

.admin-stat-warm {
  background: rgba(255, 244, 232, 0.96);
}

.admin-stat-ok {
  background: rgba(236, 248, 242, 0.96);
}

.admin-stat-alert {
  background: rgba(255, 238, 238, 0.96);
}

.admin-dashboard-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-dashboard-panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.admin-mini-list {
  display: grid;
  gap: 10px;
}

.admin-mini-row {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.admin-mini-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(23, 49, 79, 0.08);
}

.admin-status-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 49, 79, 0.08);
}

.panel-head,
.detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-head.compact {
  margin-bottom: 12px;
}

.panel-head p {
  max-width: 34rem;
  margin: 6px 0 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--peach-deep);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quote-list {
  display: grid;
  gap: 10px;
}

.customer-quote-list .quote-row {
  gap: 10px;
}

.quote-row {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  background: rgba(255, 255, 255, 0.8);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.quote-row.active {
  border-color: rgba(239, 110, 67, 0.24);
  background: rgba(255, 240, 230, 0.9);
}

.quote-row strong,
.detail-item strong {
  display: block;
}

.quote-row small,
.detail-item span,
.note-box span,
.empty-state {
  color: var(--muted);
}

.quote-row-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.status-new {
  background: #fff0e6;
  color: #c75735;
}

.status-review {
  background: var(--gold-soft);
  color: #a06d00;
}

.status-followup {
  background: var(--teal-soft);
  color: #157778;
}

.status-done {
  background: var(--mint-soft);
  color: #2a8544;
}

.status-archived {
  background: rgba(23, 49, 79, 0.09);
  color: #435166;
}

.status-archive {
  background: rgba(23, 49, 79, 0.09);
  color: #435166;
}

.status-pre_estimation_envoyee,
.status-choix_client_en_attente {
  background: var(--gold-soft);
  color: #8a6400;
}

.status-paiement_rapport_en_attente {
  background: #fff0e6;
  color: #c75735;
}

.status-rapport_paye,
.status-rapport_envoye {
  background: var(--mint-soft);
  color: #2a8544;
}

.status-rapport_en_cours,
.status-vente_accompagnee_demandee {
  background: var(--teal-soft);
  color: #157778;
}

.status-contrat_envoye,
.status-contrat_signe,
.status-en_attente_expedition,
.status-expedie,
.status-recu {
  background: rgba(30, 152, 151, 0.12);
  color: #157778;
}

.status-refuse {
  background: rgba(199, 84, 51, 0.12);
  color: #a9462b;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.customer-sidebar-note {
  margin: 4px 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 240, 230, 0.55);
  border: 1px solid rgba(239, 110, 67, 0.12);
}

.customer-sidebar-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.customer-detail {
  display: grid;
  gap: 18px;
  align-content: start;
}

.customer-dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  align-items: start;
}

.customer-dashboard-shell.is-simple {
  grid-template-columns: minmax(0, 1fr);
}

.customer-dashboard-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.customer-dashboard-aside {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.customer-aside-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 49, 79, 0.08);
}

.customer-aside-card > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.customer-aside-card > strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.2;
}

.customer-aside-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.customer-aside-card a {
  width: fit-content;
  color: var(--peach-deep);
  font-weight: 800;
}

.customer-aside-card-strong {
  background: linear-gradient(180deg, rgba(255, 240, 230, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(239, 110, 67, 0.18);
}

.customer-aside-money {
  background: rgba(30, 152, 151, 0.09);
  border-color: rgba(30, 152, 151, 0.18);
}

.customer-aside-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-aside-metrics div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(248, 242, 233, 0.76);
}

.customer-aside-metrics small {
  color: var(--muted);
  font-weight: 700;
}

.customer-aside-list {
  display: grid;
  gap: 8px;
}

.customer-hero-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(215, 188, 145, 0.42);
}

.customer-dashboard-hero {
  padding: 24px;
}

.customer-hero-head {
  align-items: center;
}

.customer-section-nav {
  position: sticky;
  top: 10px;
  z-index: 6;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 49, 79, 0.08);
  backdrop-filter: blur(10px);
}

.customer-section-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 242, 233, 0.76);
  border: 1px solid rgba(23, 49, 79, 0.06);
  font-size: 0.88rem;
  font-weight: 800;
}

.customer-section-nav a:hover {
  background: rgba(30, 152, 151, 0.12);
  border-color: rgba(30, 152, 151, 0.18);
}

.customer-deposit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(23, 49, 79, 0.05);
  border: 1px solid rgba(23, 49, 79, 0.08);
}

.customer-deposit-strip article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.customer-deposit-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.customer-deposit-strip strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.customer-deposit-strip .is-money {
  background: rgba(30, 152, 151, 0.09);
  border: 1px solid rgba(30, 152, 151, 0.16);
}

.customer-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.customer-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 49, 79, 0.08);
}

.customer-summary-card span {
  color: var(--muted);
}

.customer-summary-card strong {
  font-size: 1.1rem;
  line-height: 1.25;
}

.customer-inline-button {
  width: fit-content;
  margin-top: 8px;
}

.customer-summary-card.highlight {
  background: rgba(30, 152, 151, 0.08);
  border-color: rgba(30, 152, 151, 0.16);
}

.customer-next-step-box {
  margin-top: 0;
}

.customer-section-card {
  scroll-margin-top: 96px;
}

.customer-dashboard-shell .payment-summary-box,
.customer-dashboard-shell .customer-disclosure {
  border-radius: 22px;
}

.customer-dashboard-shell .customer-disclosure[open] {
  background: rgba(255, 255, 255, 0.9);
}

.customer-empty-section {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 248, 238, 0.84);
  border: 1px dashed rgba(215, 188, 145, 0.62);
}

.customer-empty-section strong {
  color: var(--ink);
}

.customer-empty-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.customer-disclosure-stack {
  display: grid;
  gap: 12px;
}

.customer-disclosure {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 49, 79, 0.08);
  overflow: hidden;
}

.customer-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.customer-disclosure summary::-webkit-details-marker {
  display: none;
}

.customer-disclosure summary::after {
  content: "+";
  color: var(--peach-deep);
  font-size: 1.2rem;
  line-height: 1;
}

.customer-disclosure[open] summary::after {
  content: "-";
}

.customer-disclosure-body {
  padding: 0 18px 18px;
}

.customer-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-mini-grid .detail-item,
.customer-note-box {
  margin-top: 0;
}

.customer-nested-box {
  padding: 0;
  background: transparent;
}

.customer-step-meta {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.customer-sale-inline-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding-top: 8px;
}

.customer-sale-inline-line {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: rgba(23, 49, 79, 0.12);
}

.customer-sale-inline-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  z-index: 1;
}

.customer-sale-inline-step strong {
  font-size: 0.78rem;
  line-height: 1.3;
}

.customer-sale-inline-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 3px solid rgba(23, 49, 79, 0.18);
  background: #fff;
}

.customer-sale-inline-step-done .customer-sale-inline-dot {
  background: #2e8b57;
  border-color: #2e8b57;
}

.customer-sale-inline-step-current .customer-sale-inline-dot {
  background: #ef6e43;
  border-color: #ef6e43;
  box-shadow: 0 0 0 5px rgba(239, 110, 67, 0.14);
}

.customer-sale-inline-step-todo {
  opacity: 0.72;
}

.inline-help {
  position: relative;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

.inline-help summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(23, 49, 79, 0.1);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.inline-help summary::-webkit-details-marker {
  display: none;
}

.inline-help[open] > div {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  width: 220px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff8f1;
  border: 1px solid rgba(23, 49, 79, 0.08);
  box-shadow: 0 14px 30px rgba(23, 49, 79, 0.12);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.45;
}

.table-head-help {
  display: inline-flex;
  align-items: center;
}

.customer-files {
  margin-top: 0;
}

.report-dark-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #12171f, #191f29 52%, #12161d);
  color: #f3efe7;
}

.report-minimal-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 10px;
}

.report-minimal-card {
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
  padding: 32px;
  border-radius: 28px;
  background: rgba(24, 31, 41, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.report-minimal-back,
.report-minimal-ref,
.report-minimal-copy,
.report-minimal-note,
.report-minimal-copy.muted {
  color: rgba(243, 239, 231, 0.78);
}

.report-minimal-back {
  width: fit-content;
}

.report-minimal-ref {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-minimal-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.report-minimal-copy,
.report-minimal-note {
  margin: 0;
  line-height: 1.55;
}

.report-minimal-note {
  font-size: 0.95rem;
}

.report-minimal-action {
  width: 100%;
  min-height: 56px;
}

.report-page {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.report-hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(20, 25, 34, 0.16), rgba(20, 25, 34, 0.34)),
    var(--report-hero-bg) center center / cover no-repeat;
  box-shadow: var(--shadow);
}

.report-hero::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--report-hero-bg) center center / cover no-repeat;
  filter: blur(16px) saturate(0.9);
  transform: scale(1.08);
  opacity: 0.82;
}

.report-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(16, 28, 41, 0.68), rgba(16, 28, 41, 0.26) 58%, rgba(239, 110, 67, 0.2));
}

.report-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 640px;
  padding: 34px 34px 38px;
  color: #fffdf9;
}

.report-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.report-hero-content .eyebrow {
  color: rgba(255, 239, 214, 0.92);
  margin-bottom: 0;
}

.report-hero-content h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.report-hero-content p {
  margin: 0;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 248, 236, 0.94);
}

.report-offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.64fr);
  gap: 18px;
}

.report-offer-card,
.report-side-card {
  padding: 24px;
  border-radius: 28px;
}

.report-price-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 241, 229, 0.92), rgba(255, 250, 245, 0.96));
  border: 1px solid rgba(239, 110, 67, 0.16);
}

.report-price-box span,
.report-feature-item p,
.report-side-note p {
  color: var(--muted);
}

.report-price-box strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.report-price-box p,
.report-feature-item p,
.report-side-note p {
  margin: 0;
  line-height: 1.5;
}

.report-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.report-feature-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 49, 79, 0.08);
}

.report-feature-item strong {
  display: block;
  margin-bottom: 6px;
}

.report-checkout-form {
  margin-top: 18px;
}

.report-pay-button {
  width: 100%;
  min-height: 58px;
  font-size: 1.02rem;
}

.report-side-grid {
  margin-top: 18px;
}

.report-side-note {
  margin-top: 16px;
}

.detail-item,
.note-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 49, 79, 0.08);
}

.note-box {
  margin-top: 14px;
}

.note-box p {
  margin: 8px 0 0;
}

.status-form {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.status-form .field {
  flex: 1 1 auto;
}

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

.admin-payment-panel,
.payment-summary-box {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 49, 79, 0.08);
}

.payment-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payment-link-button {
  width: 100%;
}

.payment-link-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 240, 230, 0.62);
  border: 1px solid rgba(239, 110, 67, 0.12);
}

.payment-link-box span {
  color: var(--ink);
  font-weight: 700;
}

.payment-link-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.payment-choice-form {
  display: flex;
}

.payment-link-box code {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 49, 79, 0.08);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.delivery-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.delivery-choice-card,
.delivery-address-card,
.delivery-tracking-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 49, 79, 0.08);
}

.delivery-choice-card-featured {
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(239, 110, 67, 0.18);
}

.delivery-choice-head {
  display: grid;
  gap: 10px;
}

.delivery-choice-head h4,
.delivery-address-card strong {
  margin: 0;
}

.delivery-choice-card p,
.delivery-address-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.delivery-choice-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 249, 242, 0.9);
  border: 1px solid rgba(239, 110, 67, 0.12);
}

.delivery-choice-note span {
  color: var(--muted);
}

.delivery-choice-note code,
.delivery-address-code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 49, 79, 0.08);
  color: var(--ink);
  font-family: inherit;
}

.delivery-provider-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.delivery-steps {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(228, 248, 247, 0.54);
  border: 1px solid rgba(30, 152, 151, 0.14);
}

.delivery-steps strong {
  color: var(--ink);
}

.delivery-tracking-card {
  background: linear-gradient(180deg, rgba(228, 248, 247, 0.62), rgba(255, 255, 255, 0.94));
  border-color: rgba(30, 152, 151, 0.18);
}

.delivery-tracking-card h4 {
  margin: 0;
}

.delivery-tracking-form {
  margin-top: 0;
}

.payment-meta-grid {
  margin-top: 0;
}

.data-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(23, 49, 79, 0.08);
}

.data-table th {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(248, 242, 233, 0.76);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table-inventory {
  min-width: 980px;
}

.inventory-meta {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.inventory-input {
  width: 100%;
  min-width: 82px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(23, 49, 79, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 0.9rem;
}

.inventory-select {
  margin-top: 10px;
}

.inventory-fee-split {
  margin-top: 8px;
}

.inventory-fee-split summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted);
}

.inventory-fee-split[open] {
  display: grid;
  gap: 8px;
}

.inventory-note-input {
  margin-top: 8px;
  min-width: 120px;
}

.inventory-row-label {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.inventory-bulk-actions {
  margin-top: 14px;
  justify-content: flex-end;
}

.inventory-bulk-form {
  min-width: 0;
}

.inventory-bulk-form .data-table td,
.inventory-bulk-form .data-table th {
  padding: 10px 10px;
}

.inventory-bulk-form details {
  min-width: 0;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 49, 79, 0.12);
}

.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(23, 49, 79, 0.1);
}

.whatsapp-button {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.28);
  color: #168a45;
}

.whatsapp-button:hover {
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.12);
}

.secondary-button.slim {
  min-height: 40px;
  padding: 0 16px;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid rgba(178, 45, 45, 0.22);
  border-radius: 18px;
  background: rgba(178, 45, 45, 0.1);
  color: #9f2525;
  font-weight: 800;
  cursor: pointer;
}

.danger-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(178, 45, 45, 0.12);
}

.danger-button.slim {
  min-height: 40px;
  padding: 0 16px;
}

.settings-link {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-self: start;
  background: url("../img/icon/gear-svgrepo-com.svg") center / contain no-repeat;
  transition: transform 140ms ease, opacity 140ms ease;
}

.settings-link:hover {
  transform: rotate(18deg);
  opacity: 0.82;
}

.admin-filters {
  display: inline-flex;
  gap: 10px;
  margin: 16px;
}

.admin-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 700;
}

.admin-filter.active {
  color: var(--ink);
  background: #fff0e6;
  border-color: rgba(239, 110, 67, 0.22);
}

.admin-files {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.admin-files h3 {
  margin: 0;
  font-size: 1.2rem;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.file-tool-card {
  display: grid;
  gap: 10px;
}

.file-card,
.empty-thumb {
  display: grid;
  grid-template-rows: 132px auto;
  gap: 10px;
  padding: 12px;
  min-height: 196px;
  border-radius: 18px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  background: rgba(255, 255, 255, 0.88);
  align-content: start;
}

.file-card {
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.file-card img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 247, 234, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(23, 49, 79, 0.06);
}

.file-card span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
  word-break: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.empty-thumb {
  grid-template-rows: 1fr;
  place-items: center;
  color: var(--muted);
}

.crop-button {
  min-height: 42px;
  width: 100%;
}

.cropper-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 28, 42, 0.58);
}

.cropper-modal[hidden] {
  display: none !important;
}

.cropper-dialog {
  width: min(1180px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.98);
  box-shadow: 0 28px 70px rgba(23, 49, 79, 0.24);
}

.cropper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cropper-head h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.04;
}

.cropper-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 20px;
  margin-top: 18px;
}

.cropper-stage,
.cropper-panel {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.cropper-canvas {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #f5efe4;
  touch-action: none;
  user-select: none;
}

.cropper-source {
  display: block;
  width: 100%;
  height: auto;
}

.cropper-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cropper-selection {
  position: absolute;
  border: 2px dashed rgba(239, 110, 67, 0.95);
  background: rgba(239, 110, 67, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
  pointer-events: none;
  opacity: 0;
}

.cropper-selection.visible {
  opacity: 1;
}

.cropper-cell {
  position: absolute;
  border: 2px solid rgba(30, 152, 151, 0.9);
  background: rgba(30, 152, 151, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.cropper-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cropper-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cropper-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.cropper-field {
  display: grid;
  gap: 6px;
}

.cropper-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.cropper-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(23, 49, 79, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.cropper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.modal-open {
  overflow: hidden;
}

.auth-shell {
  width: min(560px, calc(100% - 24px));
  margin: 48px auto;
}

.account-settings-card {
  padding: 24px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.settings-section {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 49, 79, 0.08);
}

.settings-section h2 {
  margin: 0;
  font-size: 1.15rem;
}

.helper-text.strong {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.two-factor-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 244, 216, 0.65);
  border: 1px solid rgba(215, 188, 145, 0.48);
}

.two-factor-box p {
  margin: 0;
  line-height: 1.45;
}

.two-factor-secret,
.two-factor-uri {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(23, 49, 79, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.two-factor-secret {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  overflow-wrap: anywhere;
}

.two-factor-uri {
  resize: vertical;
  padding: 12px 14px;
  min-height: 104px;
}

.settings-actions,
.settings-inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 1200px) {
  .hero-stage,
  .depot-grid,
  .about-card,
  .admin-layout,
  .customer-dashboard-shell,
  .report-offer-layout,
  .detail-grid,
  .customer-summary-grid,
  .customer-deposit-strip,
  .customer-mini-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .depot-grid {
    margin-top: 0;
  }

  .guide-panel {
    order: -1;
  }

  .quote-card {
    order: 0;
  }

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

  .customer-dashboard-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    position: sticky;
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .topbar-burger {
    display: block;
  }

  .topbar-actions {
    display: none;
    width: 100%;
    margin-left: 0;
    padding-top: 10px;
  }

  .topbar.menu-open .topbar-actions {
    display: grid;
    gap: 10px;
  }

  .topbar.menu-open .admin-link {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
  }

  .customer-section-nav {
    top: 82px;
    margin-inline: -4px;
    border-radius: 16px;
  }

  .customer-dashboard-aside {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .quote-card,
  .guide-panel,
  .about-card {
    padding: 22px;
  }

  .admin-dashboard-grid,
  .admin-dashboard-columns {
    grid-template-columns: 1fr;
  }

  .customer-sale-inline-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 16px;
  }

  .customer-sale-inline-line {
    display: none;
  }

  .hero-stage {
    padding: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 10.8vw, 2.7rem);
  }

  .hero-line {
    white-space: nowrap;
  }

  .hero-actions::after {
    display: none;
  }

  .inline-fields,
  .inline-fields.duo,
  .upload-grid,
  .guide-row,
  .guide-examples-triptych,
  .payment-offer-grid {
    grid-template-columns: 1fr;
  }

  .guide-examples {
    grid-template-columns: 1fr;
  }

  .cropper-layout,
  .cropper-fields {
    grid-template-columns: 1fr;
  }

  .hero-drawer {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .admin-body {
    padding: 0 6px 18px;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    min-height: 320px;
    padding: 10px;
  }

  .hero-scene {
    grid-area: 1 / 1;
  }

  .hero-scene-card {
    min-height: 300px;
  }

  .hero-copy {
    grid-area: 1 / 1;
    z-index: 2;
    align-self: start;
    max-width: 250px;
    justify-self: end;
    padding: 18px 12px 0 16px;
    pointer-events: none;
  }

  .hero-map,
  .hero-copy p,
  .hero-actions,
  .hero-postcard {
    display: none;
  }

  
  .quote-card,
  .guide-panel,
  .about-card,
  .auth-card,
  .admin-list,
  .admin-detail {
    border-radius: 24px;
  }

  .admin-dashboard-panel {
    padding: 16px;
  }

  .customer-hero-card {
    padding: 18px;
  }

  .report-minimal-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .report-hero {
    min-height: 260px;
    border-radius: 24px;
  }

  .report-hero-content {
    padding: 22px 18px 24px;
  }

  .report-offer-card,
  .report-side-card {
    padding: 18px;
    border-radius: 24px;
  }

  .topbar {
    gap: 12px;
    padding: 14px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand em {
    font-size: 1.22rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 10vw, 2.6rem);
    line-height: 0.9;
    text-align: right;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-drawer {
    position: absolute;
    inset: -58px -150px -72px -96px;
    width: calc(100% + 220px);
    height: calc(100% + 150px);
    object-fit: contain;
    object-position: 68% 60%;
  }

  .panel-head,
  .quote-row-meta,
  .status-form,
  .status-actions,
  .delivery-provider-links,
  .cropper-head,
  .cropper-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .delivery-choice-grid {
    grid-template-columns: 1fr;
  }

  .admin-filters {
    flex-wrap: wrap;
  }

  .about-copy h1 {
    font-size: 2.2rem;
  }

  .about-lead,
  .about-text p {
    font-size: 0.96rem;
  }

  .footer-inner {
    padding: 14px 14px;
    border-radius: 24px;
  }

  .footer-nav,
  .footer-social {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

.admin-section-filters {
  margin-bottom: 12px;
}

.shop-cart-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.shop-cart-link span {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(239, 110, 67, 0.16);
  color: #17314f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.shop-page {
  gap: 18px;
}

.shop-list-panel {
  display: grid;
  gap: 18px;
}

.shop-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.shop-list-head h1 {
  margin: 0;
  color: #17314f;
}

.shop-list-head h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  line-height: 1;
}

.shop-list-summary {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: #5b6c81;
}

.shop-list-summary strong {
  font-size: 1.35rem;
  color: #17314f;
}

.shop-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 680px;
}

.shop-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 560px);
  min-height: 46px;
  overflow: hidden;
  border: 1px solid rgba(23, 49, 79, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.shop-search-bar input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 14px;
  color: #17314f;
  font: inherit;
  outline: none;
}

.shop-search-bar input::placeholder {
  color: rgba(91, 108, 129, 0.72);
}

.shop-search-bar button {
  min-width: 104px;
  border: 0;
  border-left: 1px solid rgba(23, 49, 79, 0.1);
  background: #17314f;
  color: #fff7ea;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.shop-search-clear {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  color: #5b6c81;
  font-weight: 700;
  text-decoration: none;
}

.shop-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.shop-card-item {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(23, 49, 79, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(23, 49, 79, 0.07);
}

.shop-card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.shop-card-link:hover,
.shop-card-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.shop-card-media,
.shop-card-placeholder {
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  background: linear-gradient(180deg, #fff7e9 0%, #f4e3c9 100%);
}

.shop-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: transparent;
}

.shop-card-placeholder {
  display: grid;
  place-items: center;
  color: #6b5b4a;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-card-summary {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  padding: 12px;
}

.shop-card-text {
  display: grid;
  gap: 8px;
  align-content: start;
}

.shop-card-title {
  min-height: 2.45em;
  color: #17314f;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.22;
  text-decoration: none;
}

.shop-card-title:hover,
.shop-card-title:focus-visible {
  color: #ef6e43;
  outline: none;
}

.shop-card-summary strong {
  color: #17314f;
  font-size: 1.12rem;
  line-height: 1;
}

.shop-card-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-card-buy-row form {
  flex: 0 0 auto;
}

.shop-cart-icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #ef6e43;
  color: #fff7ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(239, 110, 67, 0.24);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.shop-cart-icon-button svg {
  display: block;
  width: 22px;
  height: 22px;
}

.shop-cart-icon-button:hover,
.shop-cart-icon-button:focus-visible {
  background: #17314f;
  box-shadow: 0 12px 22px rgba(23, 49, 79, 0.24);
  transform: translateY(-2px);
  outline: none;
}

.shop-cart-icon-button.is-in-cart {
  background: #17314f;
  box-shadow: none;
}

.shop-card-sold {
  display: inline-flex;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 49, 79, 0.08);
  color: #5b6c81;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shop-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #5b6c81;
  font-size: 0.86rem;
}

.shop-card-meta span {
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(23, 49, 79, 0.06);
}

.shop-back-link {
  color: #5b6c81;
  font-weight: 800;
  text-decoration: none;
}

.shop-back-link:hover {
  color: #17314f;
}

.shop-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.shop-product-gallery,
.shop-product-info,
.shop-cart-page {
  border: 1px solid rgba(23, 49, 79, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(23, 49, 79, 0.08);
}

.shop-product-gallery {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.shop-product-carousel {
  position: relative;
  display: grid;
}

.shop-product-main-media {
  display: grid;
  place-items: center;
  min-height: 480px;
  overflow: hidden;
  border-radius: 12px;
  background: #f5ead8;
}

.shop-product-main-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
}

.shop-product-main-media img[hidden] {
  display: none;
}

.shop-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 49, 79, 0.88);
  color: #fff7ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 12px 24px rgba(23, 49, 79, 0.18);
}

.shop-carousel-button:hover,
.shop-carousel-button:focus-visible {
  background: #ef6e43;
  outline: none;
}

.shop-carousel-button span {
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-2px);
}

.shop-carousel-button.is-prev {
  left: 12px;
}

.shop-carousel-button.is-next {
  right: 12px;
}

.shop-carousel-counter {
  justify-self: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(23, 49, 79, 0.08);
  color: #17314f;
  font-size: 0.86rem;
  font-weight: 900;
}

.shop-product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.shop-product-thumbs button {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f5ead8;
  cursor: pointer;
  padding: 0;
}

.shop-product-thumbs button.is-active {
  border-color: #ef6e43;
}

.shop-product-thumbs button:focus-visible {
  border-color: #17314f;
  outline: none;
}

.shop-product-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-product-info {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
}

.shop-product-info h1 {
  margin: 0;
  color: #17314f;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.shop-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(23, 49, 79, 0.08);
  border-bottom: 1px solid rgba(23, 49, 79, 0.08);
}

.shop-product-price-row strong {
  color: #17314f;
  font-size: 1.75rem;
}

.shop-product-lead,
.shop-product-description,
.shop-product-unavailable {
  margin: 0;
  color: #2a4465;
  line-height: 1.6;
}

.shop-product-description {
  padding: 14px;
  border-radius: 12px;
  background: rgba(23, 49, 79, 0.045);
}

.shop-product-actions {
  display: grid;
  gap: 10px;
}

.shop-cart-page {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 3vw, 26px);
}

.shop-cart-total {
  color: #17314f;
  font-size: 1.45rem;
}

.shop-cart-list-page {
  display: grid;
  gap: 10px;
}

.shop-cart-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.shop-cart-line-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #f5ead8;
  color: #6b5b4a;
  font-size: 0.75rem;
  text-decoration: none;
}

.shop-cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-cart-line-copy {
  display: grid;
  gap: 5px;
}

.shop-cart-line-copy a {
  color: #17314f;
  font-weight: 900;
  text-decoration: none;
}

.shop-cart-line-copy span {
  color: #5b6c81;
  font-weight: 800;
}

.shop-cart-summary-box {
  display: grid;
  gap: 10px;
  justify-self: end;
  width: min(100%, 420px);
  padding: 14px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  border-radius: 14px;
  background: rgba(255, 247, 234, 0.72);
}

.shop-cart-summary-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #5b6c81;
}

.shop-cart-summary-box strong {
  color: #17314f;
}

.shop-cart-summary-box p {
  margin: 0;
  color: #5b6c81;
  font-size: 0.88rem;
  line-height: 1.4;
}

.shop-cart-summary-box .shop-cart-summary-total {
  padding-top: 10px;
  border-top: 1px solid rgba(23, 49, 79, 0.1);
  color: #17314f;
  font-weight: 900;
}

.shop-cart-summary-total strong {
  font-size: 1.25rem;
}

.shop-cart-checkout {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.shop-admin-create {
  margin-bottom: 12px;
}

.shop-admin-panel {
  margin-top: 18px;
  align-content: start;
}

.shop-admin-panel .panel-head {
  align-items: center;
}

.shop-admin-panel h4 {
  margin: 0;
  color: #17314f;
}

.shop-admin-form {
  gap: 18px;
  margin-top: 8px;
}

.shop-admin-form .inline-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.shop-admin-form > .field {
  max-width: none;
}

.shop-admin-form .field {
  min-width: 0;
}

.shop-admin-form .field span {
  min-height: 1.3em;
}

.shop-admin-form textarea {
  resize: vertical;
}

.shop-admin-form .status-actions {
  justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px solid rgba(23, 49, 79, 0.08);
}

.shop-admin-media-block {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.field-checkbox {
  display: grid;
  align-content: start;
  gap: 8px;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 49, 79, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.field-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
}

.shop-admin-preview {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f8ecda;
  border: 1px solid rgba(23, 49, 79, 0.1);
}

.shop-admin-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.shop-admin-gallery-item {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(23, 49, 79, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.shop-admin-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
  background: #f8ecda;
}

.shop-admin-gallery-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shop-admin-gallery-actions form,
.shop-admin-gallery-actions button {
  width: 100%;
}

.shop-order-status-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.shop-order-status-form select {
  min-width: 180px;
  min-height: 38px;
}

.shop-admin-panel .data-table td,
.shop-admin-panel .data-table th {
  vertical-align: middle;
}

.shop-admin-panel .data-table td:last-child {
  min-width: 290px;
}

@media (max-width: 900px) {
  .shop-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-product-detail {
    grid-template-columns: 1fr;
  }

  .shop-product-main-media {
    min-height: auto;
    aspect-ratio: 1 / 1;
  }

  .shop-carousel-button {
    width: 38px;
    height: 38px;
  }

  .shop-carousel-button.is-prev {
    left: 8px;
  }

  .shop-carousel-button.is-next {
    right: 8px;
  }

  .shop-admin-form .inline-fields,
  .shop-admin-gallery-actions,
  .shop-order-status-form {
    grid-template-columns: 1fr;
  }

  .shop-admin-form .status-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .shop-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .shop-search-form,
  .shop-list-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-search-form {
    width: 100%;
  }

  .shop-search-bar,
  .shop-product-actions .primary-button {
    width: 100%;
  }

  .shop-card-summary {
    gap: 10px;
    padding: 10px;
  }

  .shop-card-summary strong {
    font-size: 1rem;
  }

  .shop-card-title {
    min-height: 2.35em;
    font-size: 0.88rem;
  }

  .shop-cart-icon-button {
    width: 38px;
    height: 38px;
  }

  .shop-cart-icon-button svg {
    width: 20px;
    height: 20px;
  }

  .shop-product-info {
    padding: 18px;
  }

  .shop-product-price-row,
  .shop-cart-checkout {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-cart-line {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .shop-cart-line form {
    grid-column: 1 / -1;
  }

  .shop-cart-line form .secondary-button,
  .shop-cart-checkout form,
  .shop-cart-checkout button,
  .shop-cart-summary-box {
    width: 100%;
  }

  .shop-search-bar {
    grid-template-columns: 1fr;
  }

  .shop-search-bar button {
    min-height: 42px;
    border-left: 0;
    border-top: 1px solid rgba(23, 49, 79, 0.1);
  }
}
