:root {
  --bg: #f4efe8;
  --bg-soft: #fbf8f4;
  --text: #1e1a16;
  --text-soft: #6b6259;
  --line: rgba(30, 26, 22, 0.1);
  --card: #f0e8df;
  --white: #ffffff;
  --font-heading-default: "Arial", "Helvetica Neue", Helvetica, sans-serif;
  --font-body-default: "Arial", "Helvetica Neue", Helvetica, sans-serif;
  --font-menu-default: "Arial", "Helvetica Neue", Helvetica, sans-serif;
  --font-button-default: "Arial", "Helvetica Neue", Helvetica, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  --header-sticky-bg: rgba(251, 248, 244, 0.88);
  --header-overlay-text: #1e1a16;
  --header-text: #1e1a16;
  --footer-bg: #171410;
  --footer-text: rgba(255, 255, 255, 0.82);
  --footer-soft-text: rgba(255, 255, 255, 0.64);
  --footer-title-text: rgba(255, 255, 255, 0.46);
  --footer-line: rgba(255, 255, 255, 0.08);
  --footer-link-text: rgba(255,255,255,.88);
  --footer-button-border: rgba(255,255,255,.12);
  --footer-button-bg: rgba(255,255,255,.04);
  --contrast-bg: #1e1a16;
  --contrast-text: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft-2: #fbf8f4;
  --surface-muted: #f3ece4;
  --input-bg: #ffffff;
  --input-border-strong: rgba(30,26,22,.12);
  --footer-brand-text: rgba(255,255,255,.94);
  --footer-social-border: rgba(255,255,255,.12);
  --footer-social-bg: rgba(255,255,255,.05);
  --footer-social-text: rgba(255,255,255,.94);
  --footer-social-hover-bg: rgba(255,255,255,.1);
  --footer-social-hover-border: rgba(255,255,255,.2);
}

body.theme-natural {
  --bg: #f4efe8;
  --bg-soft: #fbf8f4;
  --text: #1e1a16;
  --text-soft: #6b6259;
  --line: rgba(30, 26, 22, 0.10);
  --card: #f0e8df;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  --header-sticky-bg: rgba(251, 248, 244, 0.88);
  --header-overlay-text: #1e1a16;
  --header-text: #1e1a16;
  --footer-bg: #171410;
  --footer-text: rgba(255,255,255,.82);
  --footer-soft-text: rgba(255,255,255,.64);
  --footer-title-text: rgba(255,255,255,.46);
  --footer-line: rgba(255,255,255,.08);
  --footer-link-text: rgba(255,255,255,.88);
  --footer-button-border: rgba(255,255,255,.12);
  --footer-button-bg: rgba(255,255,255,.04);
  --contrast-bg: #1e1a16;
  --contrast-text: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft-2: #fbf8f4;
  --surface-muted: #f3ece4;
  --input-bg: #ffffff;
  --input-border-strong: rgba(30,26,22,.12);
  --footer-brand-text: rgba(255,255,255,.94);
  --footer-social-border: rgba(255,255,255,.12);
  --footer-social-bg: rgba(255,255,255,.05);
  --footer-social-text: rgba(255,255,255,.94);
  --footer-social-hover-bg: rgba(255,255,255,.1);
  --footer-social-hover-border: rgba(255,255,255,.2);
}
body.theme-white {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --text: #1c1c1c;
  --text-soft: #6a6a6a;
  --line: rgba(15, 15, 15, 0.10);
  --card: #f4f4f4;
  --white: #ffffff;
  --shadow: 0 16px 46px rgba(17, 17, 17, 0.05);
  --header-sticky-bg: rgba(255, 255, 255, 0.94);
  --header-overlay-text: #171717;
  --header-text: #171717;
  --footer-bg: #f3f3f3;
  --footer-text: #202020;
  --footer-soft-text: #595959;
  --footer-title-text: #666666;
  --footer-line: rgba(15,15,15,.08);
  --footer-link-text: #202020;
  --footer-button-border: rgba(15,15,15,.10);
  --footer-button-bg: rgba(255,255,255,.7);
  --contrast-bg: #1f1f1f;
  --contrast-text: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft-2: #f6f6f6;
  --surface-muted: #ececec;
  --input-bg: #ffffff;
  --input-border-strong: rgba(15,15,15,.12);
  --footer-brand-text: #1f1f1f;
  --footer-social-border: rgba(15,15,15,.10);
  --footer-social-bg: rgba(255,255,255,.78);
  --footer-social-text: #1f1f1f;
  --footer-social-hover-bg: #ffffff;
  --footer-social-hover-border: rgba(15,15,15,.16);
}
body.theme-dark {
  --bg: #161311;
  --bg-soft: #201b18;
  --text: #f5efe8;
  --text-soft: #c4b5a6;
  --line: rgba(255,255,255,.10);
  --card: #221d19;
  --white: #ffffff;
  --shadow: 0 22px 64px rgba(0,0,0,.28);
  --header-sticky-bg: rgba(22, 19, 17, 0.92);
  --header-overlay-text: #f7f2ec;
  --header-text: #f7f2ec;
  --footer-bg: #0f0d0b;
  --footer-text: rgba(255,255,255,.84);
  --footer-soft-text: rgba(255,255,255,.68);
  --footer-title-text: rgba(255,255,255,.48);
  --footer-line: rgba(255,255,255,.08);
  --footer-link-text: rgba(255,255,255,.9);
  --footer-button-border: rgba(255,255,255,.12);
  --footer-button-bg: rgba(255,255,255,.05);
  --contrast-bg: #d89343;
  --contrast-text: #21150b;
  --surface-raised: #231d19;
  --surface-soft-2: #2a231f;
  --surface-muted: #312924;
  --input-bg: #211c18;
  --input-border-strong: rgba(255,255,255,.12);
  --footer-brand-text: #fff4e7;
  --footer-social-border: rgba(255,255,255,.14);
  --footer-social-bg: rgba(255,255,255,.06);
  --footer-social-text: #fff4e7;
  --footer-social-hover-bg: rgba(216,147,67,.18);
  --footer-social-hover-border: rgba(216,147,67,.34);
}
body.theme-olive {
  --bg: #eef1e8;
  --bg-soft: #f7f9f4;
  --text: #253024;
  --text-soft: #627061;
  --line: rgba(37,48,36,.10);
  --card: #e2e8db;
  --white: #ffffff;
  --shadow: 0 18px 52px rgba(33, 46, 32, 0.08);
  --header-sticky-bg: rgba(247, 249, 244, 0.90);
  --header-overlay-text: #253024;
  --header-text: #253024;
  --footer-bg: #1b241b;
  --footer-text: rgba(255,255,255,.82);
  --footer-soft-text: rgba(255,255,255,.66);
  --footer-title-text: rgba(255,255,255,.48);
  --footer-line: rgba(255,255,255,.08);
  --footer-link-text: rgba(255,255,255,.9);
  --footer-button-border: rgba(255,255,255,.12);
  --footer-button-bg: rgba(255,255,255,.05);
  --contrast-bg: #253024;
  --contrast-text: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft-2: #f4f7ef;
  --surface-muted: #e5ecdd;
  --input-bg: #ffffff;
  --input-border-strong: rgba(37,48,36,.12);
  --footer-brand-text: rgba(255,255,255,.94);
  --footer-social-border: rgba(255,255,255,.12);
  --footer-social-bg: rgba(255,255,255,.05);
  --footer-social-text: rgba(255,255,255,.94);
  --footer-social-hover-bg: rgba(255,255,255,.1);
  --footer-social-hover-border: rgba(255,255,255,.2);
}


body.theme-orange,
body.theme-sunset-orange {
  --bg: #fbf2e7;
  --bg-soft: #fff8f1;
  --text: #3d2614;
  --text-soft: #7a5a43;
  --line: rgba(61,38,20,.11);
  --card: #f3dfca;
  --white: #ffffff;
  --shadow: 0 18px 52px rgba(105, 62, 25, 0.10);
  --header-sticky-bg: rgba(255, 248, 241, 0.92);
  --header-overlay-text: #3d2614;
  --header-text: #3d2614;
  --footer-bg: #452816;
  --footer-text: rgba(255,255,255,.84);
  --footer-soft-text: rgba(255,255,255,.66);
  --footer-title-text: rgba(255,255,255,.48);
  --footer-line: rgba(255,255,255,.08);
  --footer-link-text: rgba(255,255,255,.92);
  --footer-button-border: rgba(255,255,255,.14);
  --footer-button-bg: rgba(255,255,255,.06);
  --contrast-bg: #cc7a29;
  --contrast-text: #fff7ef;
  --surface-raised: #fffdfb;
  --surface-soft-2: #fff4e8;
  --surface-muted: #f6e4d3;
  --input-bg: #fffdfb;
  --input-border-strong: rgba(61,38,20,.12);
  --footer-brand-text: rgba(255,255,255,.95);
  --footer-social-border: rgba(255,255,255,.14);
  --footer-social-bg: rgba(255,255,255,.07);
  --footer-social-text: rgba(255,255,255,.94);
  --footer-social-hover-bg: rgba(255,255,255,.12);
  --footer-social-hover-border: rgba(255,255,255,.24);
}


body.theme-ocean-blue {
  --bg: #eef4fb;
  --bg-soft: #f7fbff;
  --text: #18324a;
  --text-soft: #5f7488;
  --line: rgba(24,50,74,.11);
  --card: #ddeaf7;
  --white: #ffffff;
  --shadow: 0 18px 52px rgba(32, 74, 116, 0.09);
  --header-sticky-bg: rgba(247, 251, 255, 0.93);
  --header-overlay-text: #18324a;
  --header-text: #18324a;
  --footer-bg: #18324a;
  --footer-text: rgba(255,255,255,.84);
  --footer-soft-text: rgba(255,255,255,.66);
  --footer-title-text: rgba(255,255,255,.48);
  --footer-line: rgba(255,255,255,.08);
  --footer-link-text: rgba(255,255,255,.92);
  --footer-button-border: rgba(255,255,255,.14);
  --footer-button-bg: rgba(255,255,255,.06);
  --contrast-bg: #2f6fa5;
  --contrast-text: #f7fbff;
  --surface-raised: #ffffff;
  --surface-soft-2: #f4f9ff;
  --surface-muted: #e2edf8;
  --input-bg: #ffffff;
  --input-border-strong: rgba(24,50,74,.12);
  --footer-brand-text: rgba(255,255,255,.95);
  --footer-social-border: rgba(255,255,255,.14);
  --footer-social-bg: rgba(255,255,255,.07);
  --footer-social-text: rgba(255,255,255,.94);
  --footer-social-hover-bg: rgba(255,255,255,.12);
  --footer-social-hover-border: rgba(255,255,255,.24);
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body, var(--font-body-default));
  color: var(--text);
  background: var(--bg);
}

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

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

.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.media-frame .media-asset,
.media-frame .media-backdrop {
  width: 100%;
  height: 100%;
}

.media-frame .media-backdrop {
  display: none;
}

.media-frame .media-asset {
  position: relative;
  z-index: 1;
}

.media-frame--cover .media-asset {
  object-fit: cover !important;
  object-position: center center !important;
}

.media-frame--cover-top .media-asset {
  object-fit: cover !important;
  object-position: center top !important;
}

.media-frame--contain,
.media-frame--contain-top {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(241,233,224,.96) 0%, rgba(231,222,212,.96) 100%);
}

.media-frame--contain .media-asset,
.media-frame--contain-top .media-asset {
  object-fit: contain !important;
}

.media-frame--contain-top .media-asset {
  object-position: center top !important;
}

.media-frame--soft-backdrop {
  display: grid;
  place-items: center;
  background: rgba(37, 31, 27, 0.16);
}

.media-frame--soft-backdrop .media-backdrop {
  display: block;
  position: absolute;
  inset: -3%;
  object-fit: cover !important;
  filter: blur(26px) saturate(0.92);
  transform: scale(1.08);
  opacity: 0.88;
}

.media-frame--soft-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 100%);
  z-index: 0;
}

.media-frame--soft-backdrop .media-asset {
  object-fit: contain;
}

button {
  font: inherit;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

.site-header-light {
  position: sticky;
  background: var(--header-sticky-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  color: var(--header-overlay-text);
  font-size: 18px;
  letter-spacing: 0.28em;
  font-weight: 700;
  font-family: var(--font-heading, var(--font-heading-default));
}

.dark-text {
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--header-overlay-text);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-family: var(--font-menu, var(--font-menu-default));
}

.main-nav a.active,
.main-nav a:hover {
  opacity: 0.7;
}

.hero-slider {
  --hero-header-offset: 92px;
  --hero-visible-height: clamp(420px, 44vw, 720px);
  position: relative;
  height: min(var(--hero-visible-height), calc(100svh - var(--hero-header-offset)));
  min-height: min(var(--hero-visible-height), calc(100svh - var(--hero-header-offset)));
  overflow: hidden;
}

.hero-slider--standard {
  --hero-visible-height: clamp(420px, 44vw, 720px);
}

.hero-slider--banner {
  --hero-visible-height: clamp(340px, 32vw, 560px);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 16, 13, 0.48) 0%, rgba(19, 16, 13, 0.18) 40%, rgba(19, 16, 13, 0.04) 100%);
  z-index: 1;
}

.slide-media {
  position: absolute;
  inset: 0;
  background: var(--surface-alt);
}

.slide-media--hero {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.10), transparent 42%),
    linear-gradient(180deg, rgba(26, 21, 18, 0.14) 0%, rgba(26, 21, 18, 0.24) 100%);
}

.slide-media--hero .media-asset,
.slide-media--hero .media-backdrop {
  width: 100%;
  height: 100%;
}

.slide-media--hero.media-frame--contain,
.slide-media--hero.media-frame--contain-top {
  display: grid;
  place-items: center;
}

.slide-media--hero.media-frame--contain .media-asset,
.slide-media--hero.media-frame--contain-top .media-asset,
.slide-media--hero.media-frame--soft-backdrop .media-asset {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  box-sizing: border-box;
}

.slide-media--hero.media-frame--soft-backdrop .media-backdrop {
  display: block;
  position: absolute;
  inset: -4%;
  width: calc(100% + 8%);
  height: calc(100% + 8%);
  object-fit: cover !important;
  filter: blur(30px) saturate(0.96);
  transform: scale(1.06);
  opacity: 0.92;
}

.slide-media--hero.media-frame--soft-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  z-index: 0;
}

/* eski class adı için geriye uyum */
.slide-media--hero-safe {
  display: grid;
  place-items: center;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide-content {
  position: relative;
  z-index: 2;
  min-height: var(--hero-visible-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 110px;
  color: var(--white);
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.eyebrow.dark {
  color: var(--text-soft);
}

.slide-content h1,
.slide-content h2,
.page-title h1,
.simple-about h2,
.detail-content h1 {
  margin: 0;
  font-family: var(--font-heading, var(--font-heading-default));
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.slide-content h1,
.slide-content h2 {
  font-size: clamp(42px, 7vw, 94px);
}

.slide-content p,
.simple-about p,
.detail-text {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--footer-link-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 32px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font-family: var(--font-button, var(--font-button-default));
}

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

.btn-light {
  background: var(--surface-raised);
  color: var(--text);
}

.btn-dark {
  background: var(--contrast-bg);
  color: var(--contrast-text);
}

.btn-danger {
  background: #8f3e31;
  color: var(--footer-link-text);
}

.btn-danger:hover {
  background: #7d3327;
}

.slider-arrow,
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  cursor: pointer;
  z-index: 3;
  font-size: 26px;
  backdrop-filter: blur(10px);
}

.slider-arrow.prev,
.gallery-arrow.prev { left: 24px; }
.slider-arrow.next,
.gallery-arrow.next { right: 24px; }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.dot.is-active {
  background: var(--white);
}

.quick-categories {
  background: var(--surface-soft-2);
  border-bottom: 1px solid var(--line);
}

.category-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0;
}

.category-link {
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}

.category-link,
.tab-btn {
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
}

.category-link:hover,
.tab-btn:hover,
.tab-btn.is-active {
  background: var(--contrast-bg);
  color: var(--contrast-text);
}

.simple-about,
.home-products,
.products-page,
.product-detail-page {
  padding: 72px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.simple-about h2,
.page-title h1,
.detail-content h1 {
  font-size: clamp(34px, 4vw, 64px);
}

.simple-about p,
.detail-text {
  color: var(--text-soft);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.text-link {
  font-size: 14px;
  color: var(--text-soft);
}

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

.product-grid-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 10px;
}

.product-card {
  display: block;
}

.product-image {
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.product-image {
  aspect-ratio: 4 / 5;
}

.product-image .media-asset,
.product-image .media-backdrop {
  transition: transform 0.45s ease;
}

.product-image.tall {
  aspect-ratio: 4 / 5.5;
}

.product-card:hover .product-image .media-asset {
  transform: scale(1.03);
}

.product-meta {
  padding: 16px 6px 0;
}

.product-meta h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.product-meta span {
  display: inline-block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 14px;
}

.page-light {
  background: var(--bg-soft);
}

.page-title {
  padding-top: 26px;
  padding-bottom: 24px;
}

.category-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 22px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.detail-gallery {
  position: relative;
}

.detail-stage {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.detail-stage,
.detail-stage .media-asset,
.detail-stage .media-backdrop,
.modal-stage,
.modal-stage .media-asset,
.modal-stage .media-backdrop {
  aspect-ratio: 5 / 6.2;
}

.zoom-hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-size: 13px;
}

.detail-content {
  padding-top: 30px;
}

.detail-list {
  margin: 28px 0 0;
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.9;
}


.site-footer {
  padding: 24px 0;
  background: #15120f;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer.light {
  background: transparent;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .product-grid,
  .product-grid-large,
  .about-grid,
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .product-detail-layout {
    gap: 32px;
  }
}

@media (max-width: 740px) {
  .main-nav {
    gap: 16px;
  }

  .main-nav a,
  .brand {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .slide-content {
    padding-bottom: 112px;
  }

  .slide-content p,
  .simple-about p,
  .detail-text {
    font-size: 16px;
  }

  .product-grid,
  .product-grid-large,
  .about-grid,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-inner,
  .header-inner {
    align-items: flex-start;
  }

  .slider-arrow,
  .gallery-arrow {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .slider-arrow.prev,
  .gallery-arrow.prev { left: 12px; }
  .slider-arrow.next,
  .gallery-arrow.next { right: 12px; }

  .zoom-hint {
    right: 12px;
    bottom: 12px;
    font-size: 12px;
  }

  .modal-arrow,
  .modal-close {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}


.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 16, 14, 0.94);
  z-index: 100;
  padding: 32px;
}

.gallery-modal.is-open {
  display: flex;
}

.modal-open {
  overflow: hidden;
}

.modal-stage {
  width: min(92vw, 760px);
  max-height: 88vh;
  border-radius: 30px;
  overflow: hidden;
  background: #eae2d9;
}

.modal-stage img {
  width: 100%;
  max-height: 88vh;
  display: block;
}

.modal-close,
.modal-arrow {
  position: absolute;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal-close {
  top: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  font-size: 34px;
  line-height: 1;
}

.modal-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 28px;
}

.modal-arrow.prev {
  left: 24px;
}

.modal-arrow.next {
  right: 24px;
}


/* shared status */
.status-wrap { padding-top: 92px; }
.status-alert {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: #efe7dc;
  border: 1px solid var(--line);
  color: var(--text);
}
.nav-pill,
.nav-button {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: inherit;
}
.site-header-light .nav-pill,
.site-header-light .nav-button {
  border-color: var(--line);
}
.nav-button { cursor: pointer; font-family: var(--font-button, var(--font-button-default)); }
.logout-form { margin: 0; }

/* auth / account */
.auth-page,
.account-page {
  min-height: calc(100vh - 160px);
  padding: 140px 0 80px;
}
.auth-shell,
.account-shell { display: flex; justify-content: center; }
.auth-card,
.account-card {
  width: min(760px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.narrow-card { width: min(620px, 100%); }
.auth-card h1,
.account-card h1 {
  margin: 0;
  font-family: var(--font-heading, var(--font-heading-default));
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.auth-text { color: var(--text-soft); line-height: 1.7; margin: 16px 0 0; }
.demo-box {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  line-height: 1.8;
}
.auth-form { margin-top: 28px; }
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 22px;
}
.admin-form-grid.single-column { grid-template-columns: 1fr; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row.wide,
.form-actions.wide { grid-column: 1 / -1; }
.form-row label {
  font-size: 14px;
  color: var(--text-soft);
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: rgba(30,26,22,.24);
  box-shadow: 0 0 0 4px rgba(30,26,22,.05);
}
.form-row small { color: var(--text-soft); font-size: 13px; }
.checkbox-row { justify-content: flex-end; }
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 34px;
  color: var(--text);
}
.validation-summary {
  grid-column: 1 / -1;
  color: #a33636;
  background: #fff3f3;
  border: 1px solid rgba(163,54,54,.16);
  border-radius: 16px;
  padding: 14px 16px;
}
.validation-summary ul { margin: 0; padding-left: 18px; }

.field-hint {
  margin-top: .45rem;
  color: #6b7280;
  font-size: .84rem;
  line-height: 1.45;
}

.field-validation { color: #a33636; font-size: 13px; }
.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.auth-submit { margin-top: 6px; }

/* admin */
.admin-body {
  margin: 0;
  min-height: 100vh;
  background: #f3eee7;
  color: var(--text);
}
.admin-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: #1f1b17;
  color: rgba(255,255,255,.9);
  padding: 28px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-brand {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  letter-spacing: .22em;
  margin-bottom: 28px;
}
.admin-nav { display: grid; gap: 10px; }
.admin-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255,255,255,.84);
}
.admin-nav a:hover { background: rgba(255,255,255,.08); }
.admin-main { padding: 28px 30px 40px; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.admin-overline {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.admin-topbar h1 { margin: 0; font-size: 34px; letter-spacing: -0.04em; }
.admin-userbox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 16px;
}
.admin-status { margin-top: 0; margin-bottom: 20px; }
.admin-content { display: grid; gap: 24px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.stat-card,
.admin-panel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.stat-card span { display: block; color: var(--text-soft); margin-bottom: 8px; }
.stat-card strong { font-size: 40px; letter-spacing: -0.05em; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.admin-panel-card h2 { margin: 0 0 10px; font-size: 24px; }
.admin-panel-card p { margin: 0; color: var(--text-soft); line-height: 1.7; }
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
}
.admin-toolbar.compact { background: transparent; border: 0; padding: 0; }
.admin-toolbar p { margin: 0; color: var(--text-soft); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table th {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--surface-soft-2);
}
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.admin-actions a,
.admin-actions button {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

@media (max-width: 960px) {
  .main-nav { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-stats,
  .admin-grid,
  .admin-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .status-wrap { padding-top: 138px; }
  .auth-card,
  .account-card { padding: 24px; }
  .account-head,
  .admin-toolbar,
  .admin-topbar { flex-direction: column; align-items: flex-start; }
  .admin-main { padding: 22px 16px 30px; }
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table th,
  .admin-table td { display: block; width: 100%; }
  .admin-table thead { display: none; }
  .admin-table tr { border-bottom: 1px solid var(--line); }
  .admin-actions { justify-content: flex-start; padding-top: 0; }
}


/* public header stays clean */
.main-nav { justify-content: flex-end; }

/* image-first hero slider */
.slide::after {
  background: linear-gradient(180deg, rgba(19, 16, 13, 0.08) 0%, rgba(19, 16, 13, 0.14) 48%, rgba(19, 16, 13, 0.28) 100%);
}
.slide-content-image-first {
  max-width: 100%;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 82px;
}
.slide-copy-box {
  max-width: 520px;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.18) 0%, rgba(16, 14, 12, 0.34) 100%);
  backdrop-filter: blur(10px);
}
.slide-copy-box .eyebrow {
  margin-bottom: 10px;
}
.slide-copy-box h1,
.slide-copy-box h2 {
  font-size: clamp(34px, 5vw, 72px);
}
.slide-copy-box p {
  margin-top: 14px;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.7;
}
.slide-cta {
  margin-top: 18px;
}

/* login screen */
.auth-page-login {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f5efe8 0%, #eee6db 100%);
}
.auth-page-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(255,255,255,0.9), transparent 32%),
              radial-gradient(circle at 82% 24%, rgba(255,255,255,0.55), transparent 28%),
              radial-gradient(circle at 50% 84%, rgba(255,255,255,0.42), transparent 26%);
  pointer-events: none;
}
.auth-shell-login {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.auth-visual-panel {
  min-height: 520px;
  padding: 48px;
  border-radius: 32px;
  border: 1px solid rgba(30, 26, 22, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.58) 100%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.auth-visual-panel h1,
.auth-card-login h2 {
  margin: 0;
  font-family: var(--font-heading, var(--font-heading-default));
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.auth-card-login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: 42px;
}
.auth-form-compact {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}
.auth-form-compact .btn {
  margin-top: 6px;
  width: 100%;
}

/* admin slider upload */
.slide-preview-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}
.slide-preview-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}
.table-muted {
  color: var(--text-soft);
  word-break: break-all;
}

@media (max-width: 900px) {
  .auth-shell-login {
    grid-template-columns: 1fr;
  }

  .auth-visual-panel {
    min-height: 220px;
    padding: 28px;
  }

  .auth-card-login {
    min-height: auto;
    padding: 30px 24px;
  }

  .hero-slider {
    --hero-header-offset: 132px;
  }

  .hero-slider--standard {
    --hero-visible-height: min(68svh, 520px);
  }

  .hero-slider--banner {
    --hero-visible-height: min(54svh, 420px);
  }

  .hero-slider,
  .slide-content {
    height: var(--hero-visible-height);
    min-height: var(--hero-visible-height);
  }

  .slide-content-image-first {
    padding-bottom: 94px;
  }

  .slide-copy-box {
    max-width: 100%;
    padding: 18px 18px 20px;
  }

  .slide-media--hero .media-asset {
    padding: 0;
  }
}

/* refined public pages */
.home-section-title {
  margin: 8px 0 0;
  font-family: var(--font-heading, var(--font-heading-default));
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.page-title-spacious {
  padding-top: 42px;
  padding-bottom: 18px;
}

.about-page {
  padding: 0 0 78px;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
}

.about-copy-card,
.about-note-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.about-copy-card p,
.about-note-card p,
.about-note-card li {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 16px;
}

.about-copy-card p + p {
  margin-top: 18px;
}

.about-note-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

/* refined footer */
.site-footer {
  margin-top: 28px;
  padding: 54px 0 22px;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.9fr;
  gap: 28px;
  padding-bottom: 30px;
}

.footer-brand {
  display: inline-block;
  color: var(--footer-brand-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin-bottom: 14px;
  font-family: var(--font-heading, var(--font-heading-default));
}

.footer-brand-block p,
.footer-note-block p {
  margin: 0;
  color: var(--footer-soft-text);
  line-height: 1.8;
  max-width: 420px;
}

.footer-title {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--footer-title-text);
  font-family: var(--font-menu, var(--font-menu-default));
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: var(--footer-link-text);
}

.footer-links a:hover,
.footer-brand:hover {
  opacity: 0.78;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--footer-line);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-title-text);
}

/* simplified login */
.auth-page-login {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f2eb 0%, #efe7dc 100%);
}

.auth-page-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 18%, rgba(255,255,255,0.8), transparent 30%),
              radial-gradient(circle at 78% 24%, rgba(255,255,255,0.45), transparent 26%),
              linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.auth-shell-login-simple {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-card-login-simple {
  width: min(560px, 100%);
  padding: 40px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.auth-card-login-simple h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
}

.auth-card-login-simple .auth-text {
  margin-top: 14px;
}

.auth-card-login-simple .auth-form-compact {
  margin-top: 28px;
}

.auth-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-secondary-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.auth-secondary-link:hover {
  text-decoration: underline;
}


@media (max-width: 980px) {
  .about-page-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .auth-card-login-simple,
  .about-copy-card,
  .about-note-card {
    padding: 24px;
  }

  .auth-inline-actions-stack-mobile {
    align-items: stretch;
  }

  .auth-inline-actions-stack-mobile .btn,
  .auth-inline-actions-stack-mobile .auth-secondary-link {
    width: 100%;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* enhanced footer and content pages */
.footer-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: 28px;
  padding: 40px 0 24px;
}
.footer-brand {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-family: var(--font-heading, var(--font-heading-default));
}
.footer-title {
  display: block;
  margin-bottom: 12px;
  color: var(--footer-title-text);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-menu, var(--font-menu-default));
}
.footer-links,
.footer-note-block {
  display: grid;
  gap: 10px;
}
.footer-links a,
.footer-contact-link {
  color: var(--footer-link-text);
  font-family: var(--font-menu, var(--font-menu-default));
}
.footer-socials,
.social-button-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.footer-socials a,
.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--footer-button-border);
  background: var(--footer-button-bg);
  color: var(--footer-link-text);
  font-family: var(--font-menu, var(--font-menu-default));
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: var(--footer-title-text);
}
.page-subtext {
  max-width: 700px;
  margin-top: 18px;
  color: var(--text-soft);
  line-height: 1.8;
}
.about-page,
.contact-page {
  padding: 72px 0;
}
.about-page-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
}
.about-copy-card,
.about-note-card,
.contact-card,
.admin-section-card {
  padding: 28px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-copy-card p,
.contact-card p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.85;
}
.about-note-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.9;
}
.contact-card h2,
.admin-section-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.contact-card.soft {
  background: var(--surface-muted);
}
.contact-item {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.contact-item span {
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-item a,
.contact-item strong {
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
}
.admin-content-form-stack {
  display: grid;
  gap: 22px;
}
.product-preview-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gallery-preview-item {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.gallery-preview-item img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: var(--surface-soft-2);
}

@media (max-width: 960px) {
  .footer-shell,
  .about-page-grid,
  .contact-grid,
  .gallery-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .footer-bottom {
    flex-direction: column;
  }
}

/* admin media previews, messages and editor */
.table-image-thumb {
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft-2);
}
.table-image-thumb.is-wide {
  width: 132px;
  height: 84px;
}
.table-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rich-copy p,
.rich-copy ul,
.rich-copy ol {
  margin: 0 0 14px;
  line-height: 1.8;
  color: inherit;
}
.rich-copy p:last-child,
.rich-copy ul:last-child,
.rich-copy ol:last-child {
  margin-bottom: 0;
}
.footer-rich {
  color: rgba(255,255,255,.74);
}
.slide-description {
  color: rgba(255,255,255,.9);
}
.contact-grid-expanded {
  grid-template-columns: .9fr 1.1fr;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.contact-form-grid .form-row,
.admin-form-grid .form-row {
  display: grid;
  gap: 8px;
}
.contact-form-grid .form-row.wide,
.admin-form-grid .form-row.wide,
.message-meta-grid .full {
  grid-column: 1 / -1;
}
.contact-form-grid label,
.admin-form-grid label {
  font-size: 13px;
  letter-spacing: .04em;
}
.contact-socials {
  margin-top: 22px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2ebe3;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.status-chip.is-success {
  background: #e5f4ea;
}
.status-chip.is-info {
  background: #e8eef8;
}
.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.message-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.message-meta-grid span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.message-meta-grid strong,
.message-meta-grid a {
  color: var(--text);
  font-size: 15px;
}
.message-body-box {
  padding: 18px;
  border-radius: 20px;
  background: #f7f2ec;
  border: 1px solid var(--line);
  line-height: 1.8;
  white-space: pre-wrap;
}
.rich-editor-source {
  display: none !important;
}
.rich-editor {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f7f2ec;
}
.rich-editor-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, .08);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.rich-editor-surface {
  min-height: 170px;
  padding: 16px;
  outline: none;
  line-height: 1.8;
}
.rich-editor-surface p {
  margin: 0 0 12px;
}
@media (max-width: 960px) {
  .contact-grid-expanded,
  .admin-detail-grid,
  .message-meta-grid,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}


.admin-inline-alert {
  border-radius: 18px;
  padding: 14px 16px;
}

.admin-inline-alert.is-success {
  background: #eaf6ed;
  border: 1px solid rgba(36,96,58,.15);
  color: #215634;
}

.admin-inline-alert.is-error {
  background: #fff2f2;
  border: 1px solid rgba(163,54,54,.16);
  color: #8f3535;
}

.admin-inline-alert.is-warning {
  background: #fff7ea;
  border: 1px solid rgba(171,117,31,.18);
  color: #8a5c18;
}

.admin-inline-alert.is-info {
  background: #edf5ff;
  border: 1px solid rgba(52,106,180,.16);
  color: #2f5f9c;
}

.toast.toast-success {
  border-color: rgba(36,96,58,.12);
  background: rgba(248, 255, 250, .98);
}

.toast.toast-success .toast-icon {
  background: #245f3a;
}

.toast.toast-success .toast-body span {
  color: #456552;
}

.toast.toast-error {
  border-color: rgba(148,50,50,.16);
  background: rgba(255,248,248,.98);
}

.toast.toast-error .toast-icon {
  background: #9a4343;
}

.toast.toast-error .toast-body span {
  color: #7c4f4f;
}

.toast.toast-warning {
  border-color: rgba(171,117,31,.16);
  background: rgba(255,251,245,.98);
}

.toast.toast-warning .toast-icon {
  background: #b06f12;
}

.toast.toast-warning .toast-body span {
  color: #866337;
}

.toast.toast-info {
  border-color: rgba(52,106,180,.16);
  background: rgba(248,251,255,.98);
}

.toast.toast-info .toast-icon {
  background: #3a69b1;
}

.toast.toast-info .toast-body span {
  color: #4a6184;
}

@media (max-width: 720px) {
  .toast-stack,
  .toast-stack-public {
    right: 16px;
    left: 16px;
    width: auto;
    top: 86px;
  }
}


.admin-list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(18,18,18,.06);
  background: var(--surface-soft-2);
}

.admin-search {
  display: flex;
  width: min(360px, 100%);
}

.admin-search input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(18,18,18,.08);
  background: #fff;
  padding: 0 16px;
}

.admin-table tr.is-filter-hidden {
  display: none;
}

.admin-table-empty {
  margin-top: 12px;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(18,18,18,.12);
  background: var(--surface-soft-2);
  color: var(--text-soft);
}

.table-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.table-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0e6da;
  color: #5f5447;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.switch-label span {
  font-weight: 600;
}

.switch-label input[type="checkbox"] {
  order: 2;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: #ddd0c3;
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(18,18,18,.06);
}

.switch-label input[type="checkbox"]::after {
  width: 22px;
  height: 22px;
  border: 0;
  border-bottom: 0;
  border-left: 0;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  margin-top: 0;
  transform: translateX(0) scale(1);
}

.switch-label input[type="checkbox"]:checked {
  background: #1f1b17;
}

.switch-label input[type="checkbox"]:checked::after {
  transform: translateX(22px) scale(1);
}

.switch-label input[type="checkbox"]:hover {
  box-shadow: inset 0 0 0 1px rgba(18,18,18,.06), 0 0 0 4px rgba(31,27,23,.06);
}

.icon-btn,
.admin-actions .icon-btn,
.admin-actions button.icon-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-actions button.icon-btn {
  appearance: none;
}


@media (max-width: 720px) {
  .admin-list-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search {
    width: 100%;
  }
}


/* admin table fixes, chips and compact status controls */
.admin-list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.admin-list-tools-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.filter-chips {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-soft);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 27, 23, .16);
  color: var(--text);
}

.filter-chip.is-active {
  background: #1f1b17;
  border-color: #1f1b17;
  color: #fff;
}

.admin-table td.admin-actions {
  display: table-cell;
  text-align: right;
  white-space: nowrap;
}

.admin-table td.admin-actions > .icon-btn,
.admin-table td.admin-actions > form {
  display: inline-flex;
  vertical-align: middle;
}

.admin-table td.admin-actions > form {
  margin-left: 8px;
}

.status-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-toggle-form {
  margin: 0;
}

.compact-switch {
  gap: 0;
  padding: 0;
}

.compact-switch span:last-child {
  display: none;
}

.validation-summary,
.field-validation {
  color: #8d3535;
}

.validation-summary {
  background: #fff3f1;
  border-color: rgba(141, 53, 53, .16);
}

@media (max-width: 720px) {
  .admin-list-tools-right {
    width: 100%;
    justify-content: space-between;
  }

  .admin-table td.admin-actions {
    display: block;
    text-align: left;
    white-space: normal;
  }

  .admin-table td.admin-actions > form {
    margin-left: 8px;
  }
}


/* contact admin inputs, font panels and public social icons */
.admin-filter-form-enhanced {
  align-items: stretch;
}

.admin-search-shell {
  flex: 1 1 340px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(250,246,241,.98) 100%);
  box-shadow: 0 10px 24px rgba(18,18,18,.04);
}

.admin-search-shell:focus-within {
  border-color: rgba(23,20,16,.18);
  box-shadow: 0 0 0 4px rgba(23,20,16,.06);
}

.admin-search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-soft);
  flex: 0 0 auto;
}

.admin-search-icon svg {
  width: 18px;
  height: 18px;
}

.admin-search-shell input[type="search"] {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.message-detail-grid {
  align-items: start;
}

.message-detail-card,
.message-form-card {
  min-height: 100%;
}

.message-detail-card h2,
.message-form-card h2 {
  margin-bottom: 10px;
}

.message-body-emphasis {
  background: linear-gradient(180deg, #faf6f1 0%, #f5ede3 100%);
  border-color: rgba(30,26,22,.08);
}

.message-reply-form input,
.message-reply-form textarea,
.message-reply-form select,
.message-search-form input[type="search"] {
  border-radius: 18px;
  border: 1px solid var(--input-border-strong);
  background: var(--input-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.reply-meta-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft-2);
}

.reply-meta-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reply-meta-strip strong {
  font-size: 15px;
  color: var(--text);
}

.font-primary-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.font-panel-card {
  min-height: 100%;
}

.font-manager-grid .font-live-preview {
  margin-top: 6px;
}

.social-icon-grid,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--footer-social-border);
  background: var(--footer-social-bg);
  color: var(--footer-social-text);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

.social-icon-btn:hover {
  transform: translateY(-1px);
  background: var(--footer-social-hover-bg);
  border-color: var(--footer-social-hover-border);
}

.social-icon-btn.is-dark {
  border-color: rgba(30,26,22,.12);
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 10px 20px rgba(18,18,18,.05);
}

.social-icon-btn.is-dark:hover {
  background: var(--surface-soft-2);
  border-color: rgba(30,26,22,.18);
}

.footer-socials a,
.social-button {
  min-height: 44px;
  padding: 0;
}

@media (max-width: 960px) {
  .font-primary-panels,
  .reply-meta-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-search-shell {
    flex-basis: 100%;
  }
}


.category-tabs-links .tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.products-toolbar-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
}

.products-result-text,
.products-page-text {
  color: var(--text-soft);
  font-size: 14px;
}

.pager-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 44px;
}

.pager-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text);
  font-family: var(--font-button, var(--font-button-default));
}

.pager-link.is-active {
  background: var(--contrast-bg);
  color: var(--contrast-text);
  border-color: var(--text);
}

.pager-link.is-disabled {
  opacity: .45;
  pointer-events: none;
}

.admin-search-shell-wide {
  flex: 1 1 560px;
  min-width: min(560px, 100%);
}

.message-search-form {
  justify-content: space-between;
}

@media (max-width: 960px) {
  .products-toolbar-line,
  .pager-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-search-shell-wide {
    min-width: 0;
  }
}


.message-search-form .admin-search-shell {
  min-height: 64px;
  padding-inline: 20px;
  border-radius: 20px;
}

.message-search-form input[type="search"] {
  min-height: 62px;
  font-size: 15px;
  line-height: 1.2;
}

.message-search-form .btn {
  min-height: 56px;
}



/* admin theme repair pack */
.admin-hint {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.75;
}

.btn-compact {
  min-height: 44px;
  padding: 12px 20px;
  font-size: 14px;
}

.btn-accent {
  background: #c78532;
  color: #fff;
}

.btn-accent:hover {
  background: #b6731e;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-tabs {
  display: grid;
  gap: 18px;
}

.admin-tabs-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(247,241,235,.96) 100%);
}

.admin-tab-btn {
  appearance: none;
  border: 0;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.admin-tab-btn:hover {
  color: var(--text);
  background: rgba(31,27,23,.06);
}

.admin-tab-btn.is-active {
  background: #1f1b17;
  color: #fff;
  box-shadow: 0 12px 24px rgba(18,18,18,.12);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

.admin-section-headline,
.form-section-header,
.section-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-section-headline h2,
.form-section-header h3,
.section-header-row h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.admin-section-headline p,
.form-section-header p,
.section-header-row p,
.form-meta-note {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.form-section {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-section + .form-section {
  margin-top: 24px;
}

.form-section-grid,
.grouped-form,
.font-assignments {
  display: grid;
  gap: 18px;
}

.compact-grid {
  gap: 14px 16px;
}

.switch-row {
  justify-content: stretch;
}

.switch-field,
.toggle-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 32px;
  width: 100%;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.switch-field input[type="checkbox"],
.toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.switch-slider {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #ddd0c3;
  box-shadow: inset 0 0 0 1px rgba(18,18,18,.08);
  transition: background .18s ease, box-shadow .18s ease;
}

.switch-slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  transition: transform .18s ease;
}

.switch-field input[type="checkbox"]:focus-visible + .switch-slider,
.toggle-label input[type="checkbox"]:focus-visible + .switch-slider {
  box-shadow: inset 0 0 0 1px rgba(18,18,18,.08), 0 0 0 4px rgba(31,27,23,.08);
}

.switch-field input[type="checkbox"]:checked + .switch-slider,
.toggle-label input[type="checkbox"]:checked + .switch-slider {
  background: #1f1b17;
}

.switch-field input[type="checkbox"]:checked + .switch-slider::after,
.toggle-label input[type="checkbox"]:checked + .switch-slider::after {
  transform: translateX(24px);
}

.inline-option {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft-2);
}

.gallery-select-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft-2);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.gallery-preview-item.is-selectable {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.gallery-select-bar input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.admin-mail-test-box {
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fbf7f1 100%);
  display: grid;
  gap: 18px;
}

.admin-mail-test-box h3 {
  margin: 0;
  font-size: 22px;
}

.admin-mail-test-box p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.admin-mail-test-actions {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.test-mail-row {
  flex: 1 1 280px;
}

.content-save-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.toast-stack,
.toast-stack-public,
.toast-stack-inline {
  display: grid;
  gap: 12px;
  z-index: 1100;
}

.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  width: min(380px, calc(100vw - 32px));
}

.toast-stack-public {
  position: fixed;
  top: 92px;
  right: 24px;
  width: min(380px, calc(100vw - 32px));
}

.toast-stack-inline {
  position: relative;
}

.toast {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(18,18,18,.08);
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 44px rgba(18,18,18,.12);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.toast-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.toast-body strong {
  font-size: 15px;
}

.toast-body span {
  color: var(--text-soft);
  line-height: 1.6;
}

.toast-close {
  appearance: none;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(18,18,18,.06);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.toast-close:hover {
  background: rgba(18,18,18,.1);
}

.admin-filter-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(30,26,22,.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.status-badge.active,
.status-badge.is-success,
.status-badge.highlight {
  background: rgba(36,96,58,.12);
  color: #215634;
}

.status-badge.subtle,
.status-badge.is-info {
  background: rgba(58,105,177,.12);
  color: #2f5f9c;
}

.status-badge.danger {
  background: rgba(166,60,60,.12);
  color: #8d3535;
}

.font-library-list,
.font-preset-grid {
  display: grid;
  gap: 16px;
}

.font-library-item,
.font-preset-card,
.font-library-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.font-library-header,
.font-library-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.font-badges,
.font-preset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.font-badge,
.font-inline-code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4ede5;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.font-inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border-radius: 12px;
}

.font-example-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft-2);
}

.font-preview-sample {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px 20px;
}

.font-preview-heading {
  font-size: 34px;
  line-height: 1.05;
}

.font-preview-body,
.font-preview-menu {
  color: var(--text-soft);
  line-height: 1.7;
}

.font-preview-action-row {
  display: flex;
}

.font-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1f1b17;
  color: #fff;
}

.about-page-refined,
.contact-page-refined,
.site-footer-enhanced,
.about-hero-block,
.about-refined-grid,
.about-story-card,
.about-side-card,
.contact-card-info,
.contact-form-card,
.contact-info-stack,
.home-grid,
.footer-links-block,
.admin-account-card,
.account-admin-toolbar {
  /* compatibility aliases */
}

@media (max-width: 960px) {
  .admin-tabs-nav,
  .admin-mail-test-actions,
  .admin-filter-overview,
  .toolbar-actions,
  .section-header-row,
  .admin-section-headline,
  .form-section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .content-save-footer {
    justify-content: stretch;
  }

  .content-save-footer .btn {
    width: 100%;
  }
}

[hidden] {
  display: none !important;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 16, 14, 0.46);
  backdrop-filter: blur(8px);
}

.admin-modal {
  width: min(520px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(18,18,18,.08);
  background: linear-gradient(180deg, #fff 0%, #fbf7f2 100%);
  box-shadow: 0 30px 80px rgba(18,18,18,.18);
  padding: 24px;
}

.admin-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-modal-head h2 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.15;
}

.admin-modal-text {
  margin: 18px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.admin-modal-close {
  appearance: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f4ede5;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-close:hover {
  background: #ebe1d5;
}

button.is-loading,
.btn.is-loading,
.nav-button.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .92;
}

.btn-loading-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  animation: btnSpin .7s linear infinite;
  flex: 0 0 auto;
}

button.is-loading,
.btn.is-loading,
.nav-button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .admin-modal {
    border-radius: 22px;
    padding: 20px;
  }

  .admin-modal-actions {
    flex-direction: column-reverse;
  }

  .admin-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* sortable admin tables */
.table-sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  cursor: pointer;
}

.table-sort-btn::after {
  content: "↕";
  font-size: 12px;
  letter-spacing: 0;
  color: rgba(30, 26, 22, 0.35);
  transform: translateY(-1px);
}

.table-sort-btn.is-active {
  color: var(--text);
}

.table-sort-btn.is-active::after {
  content: "↑";
  color: var(--text);
}

.table-sort-btn.is-active.is-desc::after {
  content: "↓";
}

/* upload cards */
.upload-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 18px;
  padding: 18px;
  border: 1px dashed rgba(30, 26, 22, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,243,238,.96) 100%);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.upload-card:hover,
.upload-card.is-dragover {
  border-color: rgba(30, 26, 22, 0.32);
  box-shadow: 0 18px 36px rgba(18, 18, 18, 0.06);
  transform: translateY(-1px);
}

.upload-card.is-gallery {
  grid-template-columns: 1fr;
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-trigger {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 26, 22, 0.12);
  background: #1f1b17;
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.upload-trigger::before {
  content: "＋";
  font-size: 18px;
  line-height: 1;
}

.upload-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.upload-copy strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.upload-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.upload-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.upload-preview-shell {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  border: 1px solid rgba(30, 26, 22, 0.08);
  background: #f6efe7;
  overflow: hidden;
}

.upload-preview-shell-gallery {
  min-height: 212px;
  padding: 16px;
}

.upload-preview-image {
  width: 100%;
  height: 100%;
}

.upload-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.upload-preview-list {
  position: relative;
  width: 100%;
  height: 100%;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
  height: auto;
  align-content: start;
}

.upload-grid-item {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(30, 26, 22, 0.1);
  background: #fff;
  display: grid;
  grid-template-rows: auto auto;
}

.upload-grid-thumb {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--surface-soft-2);
}

.upload-grid-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.upload-grid-item figcaption {
  padding: 10px 10px 12px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
  word-break: break-word;
}

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

@media (max-width: 900px) {
  .upload-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .table-sort-btn::after {
    font-size: 11px;
  }

  .upload-trigger {
    width: 100%;
    justify-content: center;
  }
}


.admin-hint-list.compact {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.upload-card-compact {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
}

.upload-card-font .upload-preview-shell {
  min-height: 168px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(248,243,238,.98) 0%, rgba(240,231,221,.98) 100%);
}

.upload-preview-shell-file {
  padding: 18px;
}

.upload-preview-file-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.upload-file-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(30, 26, 22, 0.08);
  box-shadow: 0 10px 22px rgba(18,18,18,.04);
}

.upload-file-extension {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 16px;
  background: #1f1b17;
  color: #fff;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}

.upload-file-body {
  display: grid;
  gap: 4px;
}

.upload-file-body strong {
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.upload-file-body span {
  color: var(--text-soft);
  font-size: 13px;
}

.upload-secondary {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(30, 26, 22, 0.12);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.upload-secondary:hover {
  background: #f7f1ea;
}

.upload-tip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-tip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(30, 26, 22, 0.06);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}

.media-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.media-mode-card {
  width: 100%;
  border: 1px solid rgba(30, 26, 22, 0.10);
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.media-mode-card:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 26, 22, 0.22);
  box-shadow: 0 16px 30px rgba(18,18,18,.05);
}

.media-mode-card.is-active {
  border-color: rgba(30, 26, 22, 0.48);
  box-shadow: 0 20px 34px rgba(18,18,18,.08);
  background: linear-gradient(180deg, #fff 0%, #faf5ee 100%);
}

.media-mode-card.is-active::after {
  content: "Seçili";
  justify-self: end;
  margin-top: -6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(30, 26, 22, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

.media-mode-card__preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(30, 26, 22, 0.08);
  background: linear-gradient(180deg, #f5ede3 0%, #eadfd2 100%);
}

.media-mode-card__preview::before,
.media-mode-card__preview::after {
  content: "";
  position: absolute;
  border-radius: 12px;
}

.media-mode-card__preview::before {
  inset: 10% 12%;
  background: linear-gradient(135deg, rgba(107, 83, 63, .85) 0%, rgba(173, 144, 119, .95) 100%);
}

.media-mode-card__preview::after {
  inset: auto 14% 14% auto;
  width: 34%;
  height: 16%;
  background: rgba(255,255,255,.55);
}

.media-mode-card__preview--cover::before {
  inset: 8% 6%;
}

.media-mode-card__preview--cover-top::before {
  inset: 4% 6% 14% 6%;
}

.media-mode-card__preview--contain::before {
  inset: 16% 18%;
}

.media-mode-card__preview--contain-top::before {
  inset: 8% 18% 24% 18%;
}

.media-mode-card__preview--soft-backdrop {
  background: linear-gradient(180deg, #e3d7ca 0%, #d7c7b6 100%);
}

.media-mode-card__preview--soft-backdrop::before {
  inset: 0;
  filter: blur(18px);
  transform: scale(1.06);
  opacity: .65;
}

.media-mode-card__preview--soft-backdrop::after {
  inset: 16% 20%;
  width: auto;
  height: auto;
  background: linear-gradient(135deg, rgba(107, 83, 63, .94) 0%, rgba(173, 144, 119, .98) 100%);
}


.media-mode-card__preview--height-standard,
.media-mode-card__preview--height-banner {
  background: linear-gradient(180deg, rgba(33, 28, 24, 0.12) 0%, rgba(33, 28, 24, 0.03) 100%);
}

.media-mode-card__preview--height-standard::before,
.media-mode-card__preview--height-banner::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(236, 229, 220, 0.96) 0%, rgba(227, 219, 208, 0.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(44, 36, 30, 0.07);
}

.media-mode-card__preview--height-standard::before {
  top: 14%;
  bottom: 14%;
}

.media-mode-card__preview--height-banner::before {
  top: 28%;
  bottom: 28%;
}

.media-mode-card__text {
  display: grid;
  gap: 6px;
}

.media-mode-card__text strong {
  font-size: 15px;
}

.media-mode-card__text span,
.media-mode-card__text em {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.media-mode-card__text em {
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 900px) {
  .upload-card-compact {
    grid-template-columns: 1fr;
  }
}


.admin-tools-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-left: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(30, 26, 22, 0.06);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.font-builder-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(30,26,22,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,243,238,.98) 100%);
}

.font-builder-preview__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.font-builder-preview__head span {
  color: var(--text-soft);
  font-size: 13px;
}

.font-builder-preview__surface {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(30,26,22,.08);
}

.font-builder-preview__eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--text-soft);
}

.font-builder-preview__surface h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
}

.font-builder-preview__surface p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.upload-analysis {
  display: grid;
  gap: 10px;
}

.upload-analysis-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-analysis-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(30,26,22,.06);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.upload-analysis-pill.is-good {
  background: rgba(34, 124, 72, 0.12);
  color: #207048;
}

.upload-analysis-pill.is-warn {
  background: rgba(184, 124, 36, 0.14);
  color: #946119;
}

.upload-analysis-pill.is-bad {
  background: rgba(166, 60, 60, 0.14);
  color: #9a3030;
}

.upload-analysis-text {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.upload-preview-shell-file {
  align-content: start;
}

@media (max-width: 720px) {
  .font-builder-preview__head {
    flex-direction: column;
  }
}


/* admin compatibility refinements */
.admin-filter-form {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.align-start {
  align-items: start;
}

.status-badge.is-muted {
  background: rgba(30,26,22,.08);
  color: var(--text-soft);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--text);
  background: #f5eee6;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.icon-btn:hover {
  background: #ece2d6;
  transform: translateY(-1px);
}

.icon-btn.danger,
.admin-actions .danger {
  color: #8f3535;
  background: #fff2f2;
}

.icon-btn.danger:hover,
.admin-actions .danger:hover {
  background: #ffe7e7;
}

.font-library-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.font-library-preview {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft-2);
  color: var(--text);
}

.toast-stack-inline .toast {
  box-shadow: var(--shadow);
}

.status-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}


.media-library-headline {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.media-library-headline strong {
  font-size: 14px;
  color: var(--text);
}

.media-library-headline span {
  font-size: 12px;
  color: var(--text-soft);
}

.gallery-manage-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.media-manage-card {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0;
  position: relative;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.media-manage-card:hover {
  border-color: rgba(30, 26, 22, 0.2);
  box-shadow: 0 14px 30px rgba(30, 26, 22, 0.08);
  transform: translateY(-1px);
}

.media-manage-thumb {
  background: var(--surface-soft-2);
}

.media-manage-meta {
  display: grid;
  gap: 4px;
  padding: 12px 12px 8px;
}

.media-manage-meta strong {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.media-manage-meta span {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.45;
}

.media-manage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 12px;
}

.media-manage-actions .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 15px;
  position: relative;
  z-index: 3;
}

.media-manage-actions .icon-btn.accent.is-selected {
  background: rgba(30, 26, 22, 0.94);
  color: #fff;
  border-color: rgba(30, 26, 22, 0.94);
  box-shadow: 0 10px 24px rgba(30, 26, 22, 0.18);
  transform: scale(1.04);
}

.media-manage-actions .icon-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.upload-grid-item .media-manage-meta {
  padding-top: 10px;
}

.upload-grid-item figcaption.media-manage-meta {
  padding-bottom: 8px;
}

.upload-grid-item .media-manage-actions {
  padding-top: 0;
}


.media-manage-card.is-cover-selected {
  border-color: rgba(30, 26, 22, 0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,238,232,0.98));
  box-shadow: 0 22px 46px rgba(30, 26, 22, 0.14);
  outline: 3px solid rgba(30, 26, 22, 0.16);
  outline-offset: 2px;
}

.media-manage-card.is-cover-selected .media-manage-thumb::after {
  content: "★";
  position: absolute;
  inset: 12px auto auto 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(30, 26, 22, 0.92);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(30, 26, 22, 0.18);
  z-index: 2;
}

.media-manage-card.is-cover-selected .media-manage-status {
  color: var(--text);
  font-weight: 600;
}

.media-manage-card.is-cover-selected::after {
  content: 'Kapak seçildi';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(30, 26, 22, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  pointer-events: none;
}

.media-manage-card.is-dragging {
  opacity: 0.6;
  transform: scale(0.98);
}

.media-manage-card.is-drag-target {
  outline: 2px dashed rgba(30, 26, 22, 0.22);
  outline-offset: 3px;
}

.media-manage-actions--stacked {
  flex-wrap: wrap;
}

.media-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30, 26, 22, 0.08);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .02em;
}

.cover-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(30, 26, 22, 0.92);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30,26,22,.18);
  font-weight: 700;
}

.drag-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  cursor: grab;
  user-select: none;
}

.media-manage-thumb {
  position: relative;
}

.icon-btn.accent {
  border-color: rgba(30, 26, 22, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.icon-btn.is-selected,
.icon-btn.accent.is-selected {
  border-color: rgba(30, 26, 22, 0.26);
  background: rgba(30, 26, 22, 0.9);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 26, 22, 0.16);
}

.slider-media-manage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(248,244,239,.96) 100%);
}

.slider-media-manage-card__content {
  display: grid;
  gap: 4px;
}

.slider-media-manage-card__content strong {
  font-size: 14px;
  color: var(--text);
}

.slider-media-manage-card__content span {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
}

.slider-media-manage-card__button {
  margin-top: 0;
}

@media (max-width: 700px) {
  .slider-media-manage-card {
    flex-direction: column;
    align-items: stretch;
  }
}


.media-manage-card[data-cover-selected="true"] {
  border-color: rgba(30, 26, 22, 0.52) !important;
  box-shadow: 0 24px 48px rgba(30, 26, 22, 0.16) !important;
  outline: 3px solid rgba(30, 26, 22, 0.18);
  outline-offset: 2px;
}

.media-manage-actions .icon-btn.accent[data-selected="true"] {
  background: rgba(30, 26, 22, 0.94);
  color: #fff;
  border-color: rgba(30, 26, 22, 0.94);
  box-shadow: 0 10px 24px rgba(30, 26, 22, 0.18);
  transform: scale(1.05);
}

.content-group-stack {
  display: grid;
  gap: 18px;
}

.content-group-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(249,245,240,.98) 100%);
  box-shadow: var(--shadow);
}

.social-section-header {
  align-items: center;
}

.social-preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links-manager {
  display: grid;
  gap: 14px;
}

.social-links-list {
  display: grid;
  gap: 14px;
}

.social-link-row {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  gap: 14px;
}

.social-link-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.social-link-grid .wide,
.social-link-grid .social-link-toggle {
  grid-column: 1 / -1;
}

.social-links-footer-actions {
  display: flex;
  justify-content: flex-start;
}

.status-badge.muted {
  background: rgba(31,27,23,.08);
  color: var(--text-soft);
}

.social-link-card {
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: start;
}

.social-link-main {
  min-width: 0;
}

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

.social-link-grid .wide,
.social-link-grid .social-link-toggle {
  grid-column: 1 / -1;
}

.social-link-actions {
  align-self: center;
}

@media (max-width: 720px) {
  .social-link-grid {
    grid-template-columns: 1fr;
  }

  .social-preset-actions {
    width: 100%;
  }
}

.honeypot-field { position:absolute !important; left:-10000px !important; width:1px; height:1px; overflow:hidden; }



.admin-inline-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--text-soft);
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.admin-pager-nav {
  margin-top: 24px;
}


.empty-state-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(249,245,239,.92) 100%);
  box-shadow: var(--shadow);
}

.empty-state-card h2,
.empty-state-card p {
  margin: 0;
}

.admin-inline-summary-spread {
  align-items: center;
}

.message-bulk-actions {
  display: inline-flex;
  align-items: center;
}

.table-checkbox-col {
  width: 56px;
  text-align: center !important;
}

.table-select-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #2b251f;
  cursor: pointer;
}

.table-select-checkbox:disabled {
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .table-checkbox-col {
    width: 100%;
    text-align: left !important;
  }

  .message-bulk-actions {
    width: 100%;
  }
}


.status-chip.is-muted {
  background: rgba(31,27,23,.08);
  color: var(--text-soft);
}

.message-bulk-panel {
  margin: 18px 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
}

.message-bulk-actions-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.message-bulk-actions-left {
  display: grid;
  gap: 4px;
}

.message-bulk-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .message-bulk-panel {
    padding: 14px;
  }

  .message-bulk-actions-right {
    width: 100%;
  }
}


.text-link.is-active {
  font-weight: 700;
  color: var(--text);
}

/* product editor tabs and feature repeater */
.product-editor-tabs {
  gap: 20px;
}

.product-editor-tabs-nav {
  position: sticky;
  top: 14px;
  z-index: 5;
  box-shadow: 0 10px 22px rgba(20, 20, 20, .06);
}

.product-editor-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-editor-overview-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(31, 27, 23, .08);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,241,235,.98) 100%);
  box-shadow: 0 10px 24px rgba(18, 18, 18, .04);
}

.product-editor-overview-card.accent {
  border-color: rgba(199, 133, 50, .28);
  background: linear-gradient(180deg, rgba(255,250,244,.98) 0%, rgba(250,240,224,.98) 100%);
}

.product-editor-overview-card strong {
  font-size: 15px;
}

.product-editor-overview-card span {
  color: var(--text-soft);
  line-height: 1.6;
}

.product-editor-tab-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  text-align: left;
}

.product-editor-tab-btn__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(31,27,23,.08);
  color: inherit;
  font-size: 14px;
  font-weight: 800;
}

.product-editor-tab-btn.is-active .product-editor-tab-btn__step {
  background: rgba(255,255,255,.18);
}

.product-editor-tab-btn__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product-editor-tab-btn__copy strong {
  font-size: 15px;
}

.product-editor-tab-btn__copy small {
  color: inherit;
  opacity: .78;
  line-height: 1.45;
}

.product-editor-tab-btn__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31,27,23,.08);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.product-editor-tab-btn__status.is-complete {
  background: rgba(68, 132, 84, .14);
  color: #2d6a3d;
}

.product-tab-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 4px 0;
}

.product-tab-footer--split {
  justify-content: space-between;
  flex-wrap: wrap;
}

.product-tab-footer__hint {
  color: var(--text-soft);
  line-height: 1.6;
}

.product-actions-bar {
  position: sticky;
  bottom: 14px;
  z-index: 4;
  justify-content: flex-end;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(31, 27, 23, .08);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(18, 18, 18, .08);
}

.product-section-note {
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 27, 23, .08);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,244,239,.98) 100%);
  box-shadow: 0 12px 24px rgba(18, 18, 18, .05);
}

.product-section-note strong,
.feature-editor-toolbar strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.product-section-note span,
.feature-editor-toolbar p {
  display: block;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.feature-editor {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(31, 27, 23, .08);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,241,235,.98) 100%);
}

.feature-editor-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.feature-editor-list {
  display: grid;
  gap: 12px;
}

.feature-item-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(31, 27, 23, .08);
  background: rgba(255,255,255,.86);
}

.feature-item-order {
  font-weight: 700;
  color: var(--text-soft);
}

.feature-item-main {
  min-width: 0;
}

.feature-item-input {
  width: 100%;
}

.feature-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-item-actions .icon-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.feature-empty-note {
  margin: 0;
  color: var(--text-soft);
}

@media (max-width: 860px) {
  .product-editor-tabs-nav {
    position: static;
  }

  .product-editor-overview {
    grid-template-columns: 1fr;
  }

  .product-editor-tab-btn {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .product-editor-tab-btn__status {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }

  .product-section-note {
    max-width: none;
    width: 100%;
  }

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

  .feature-item-actions {
    justify-content: flex-start;
  }

  .product-tab-footer,
  .product-tab-footer--split {
    justify-content: flex-start;
  }
}


.message-meta-grid > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message-meta-grid strong,
.message-meta-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.message-meta-status strong {
  align-items: flex-start;
}

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

.theme-option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.theme-option-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.theme-option-card.is-selected,
.theme-option-card:has(input:checked) {
  border-color: rgba(30,26,22,.22);
  box-shadow: 0 16px 44px rgba(0,0,0,.08);
}

.theme-option-card input[type="radio"] {
  margin: 0;
}

.theme-option-card__preview {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  gap: 8px;
}

.theme-option-card__preview span {
  display: block;
  width: 24px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
}

.theme-option-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-option-card__body strong {
  font-size: 16px;
}

.theme-option-card__body small {
  color: var(--text-soft);
}

.theme-preview-natural span:nth-child(1) { background: #f4efe8; }
.theme-preview-natural span:nth-child(2) { background: #d7c7b6; }
.theme-preview-natural span:nth-child(3) { background: #171410; }
.theme-preview-white span:nth-child(1) { background: #ffffff; }
.theme-preview-white span:nth-child(2) { background: #ececec; }
.theme-preview-white span:nth-child(3) { background: #202020; }
.theme-preview-dark span:nth-child(1) { background: #161311; }
.theme-preview-dark span:nth-child(2) { background: #332b25; }
.theme-preview-dark span:nth-child(3) { background: #f5efe8; }
.theme-preview-olive span:nth-child(1) { background: #eef1e8; }
.theme-preview-olive span:nth-child(2) { background: #b8c3ad; }
.theme-preview-olive span:nth-child(3) { background: #1b241b; }
.theme-preview-orange span:nth-child(1) { background: #fbf2e7; }
.theme-preview-orange span:nth-child(2) { background: #cc7a29; }
.theme-preview-orange span:nth-child(3) { background: #452816; }
.theme-preview-ocean-blue span:nth-child(1) { background: #eef4fb; }
.theme-preview-ocean-blue span:nth-child(2) { background: #2f6fa5; }
.theme-preview-ocean-blue span:nth-child(3) { background: #18324a; }

body.theme-dark .detail-stage,
body.theme-dark .contact-card,
body.theme-dark .about-copy-card,
body.theme-dark .about-note-card,
body.theme-dark .product-card,
body.theme-dark .message-body-box,
body.theme-dark .product-stage,
body.theme-dark .auth-card,
body.theme-dark .account-card {
  background: #211c18;
}

body.theme-dark .product-card,
body.theme-dark .about-copy-card,
body.theme-dark .about-note-card,
body.theme-dark .contact-card,
body.theme-dark .auth-card,
body.theme-dark .account-card,
body.theme-dark .message-body-box {
  border-color: rgba(255,255,255,.08);
}

body.theme-dark .rich-editor,
body.theme-dark .reply-meta-strip,
body.theme-dark .status-alert,
body.theme-dark .demo-box {
  background: #201b18;
}

body.theme-dark .form-row input,
body.theme-dark .form-row textarea,
body.theme-dark .form-row select,
body.theme-dark .message-reply-form input,
body.theme-dark .message-reply-form textarea,
body.theme-dark .message-search-form input[type="search"] {
  background: #171311;
  color: var(--text);
  border-color: rgba(255,255,255,.10);
}

body.theme-dark .zoom-hint {
  background: rgba(20,20,20,.75);
  color: #fff;
}

@media (max-width: 860px) {
  .theme-admin-grid {
    grid-template-columns: 1fr;
  }
}


/* public theme polish */
body[class*="theme-"] .auth-card,
body[class*="theme-"] .account-card,
body[class*="theme-"] .about-copy-card,
body[class*="theme-"] .about-note-card,
body[class*="theme-"] .contact-card,
body[class*="theme-"] .admin-section-card,
body[class*="theme-"] .gallery-preview-item,
body[class*="theme-"] .slide-preview-card,
body[class*="theme-"] .message-detail-card,
body[class*="theme-"] .message-form-card,
body[class*="theme-"] .reply-meta-strip,
body[class*="theme-"] .zoom-hint {
  background: var(--surface-raised);
  color: var(--text);
}

body[class*="theme-"] .contact-card.soft,
body[class*="theme-"] .message-body-emphasis,
body[class*="theme-"] .gallery-preview-item img,
body[class*="theme-"] .table-image-thumb,
body[class*="theme-"] .table-image-thumb.is-wide,
body[class*="theme-"] .demo-box {
  background: var(--surface-soft-2);
}

body[class*="theme-"] .form-row input,
body[class*="theme-"] .form-row textarea,
body[class*="theme-"] .form-row select,
body[class*="theme-"] .message-reply-form input,
body[class*="theme-"] .message-reply-form textarea,
body[class*="theme-"] .message-reply-form select,
body[class*="theme-"] .message-search-form input[type="search"],
body[class*="theme-"] .rich-editor-toolbar,
body[class*="theme-"] .rich-editor-button,
body[class*="theme-"] .rich-editor-surface {
  background: var(--input-bg);
  color: var(--text);
  border-color: var(--input-border-strong);
}

body[class*="theme-"] .btn-dark,
body[class*="theme-"] .tab-btn:hover,
body[class*="theme-"] .tab-btn.is-active,
body[class*="theme-"] .category-link:hover,
body[class*="theme-"] .category-link.is-active,
body[class*="theme-"] .pager-link.is-active {
  background: var(--contrast-bg);
  color: var(--contrast-text);
  border-color: var(--contrast-bg);
}

body[class*="theme-"] .btn-light,
body[class*="theme-"] .pager-link,
body[class*="theme-"] .social-icon-btn.is-dark {
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--line);
}

body.theme-dark .product-card,
body.theme-dark .product-detail-layout,
body.theme-dark .simple-about,
body.theme-dark .home-products,
body.theme-dark .products-page,
body.theme-dark .product-detail-page,
body.theme-dark .about-page,
body.theme-dark .contact-page,
body.theme-orange .product-card,
body.theme-sunset-orange .product-card {
  color: var(--text);
}

body.theme-dark .slider-arrow,
body.theme-dark .gallery-arrow {
  background: rgba(216,147,67,.20);
  color: #fff4e7;
}

body.theme-dark .dot {
  background: rgba(255,255,255,.24);
}

body.theme-dark .dot.is-active {
  background: var(--contrast-bg);
}

body.theme-dark .media-frame--contain,
body.theme-dark .media-frame--contain-top {
  background: linear-gradient(180deg, rgba(40,32,27,.96) 0%, rgba(29,24,20,.96) 100%);
}

body.theme-orange .media-frame--contain,
body.theme-orange .media-frame--contain-top,
body.theme-sunset-orange .media-frame--contain,
body.theme-sunset-orange .media-frame--contain-top {
  background: linear-gradient(180deg, rgba(250,238,224,.98) 0%, rgba(245,224,202,.98) 100%);
}

body.theme-orange .slider-arrow,
body.theme-orange .gallery-arrow,
body.theme-sunset-orange .slider-arrow,
body.theme-sunset-orange .gallery-arrow {
  background: rgba(204,122,41,.18);
  color: #fff7ef;
}

body.theme-orange .dot,
body.theme-sunset-orange .dot {
  background: rgba(204,122,41,.22);
}

body.theme-orange .dot.is-active,
body.theme-sunset-orange .dot.is-active {
  background: var(--contrast-bg);
}

body.theme-ocean-blue .media-frame--contain,
body.theme-ocean-blue .media-frame--contain-top {
  background: linear-gradient(180deg, rgba(240,247,255,.98) 0%, rgba(225,237,249,.98) 100%);
}

body.theme-ocean-blue .slider-arrow,
body.theme-ocean-blue .gallery-arrow {
  background: rgba(47,111,165,.18);
  color: #f7fbff;
}

body.theme-ocean-blue .dot {
  background: rgba(47,111,165,.22);
}

body.theme-ocean-blue .dot.is-active {
  background: var(--contrast-bg);
}

body.theme-ocean-blue .product-card {
  color: var(--text);
}

/* Faz 12 root slider rebuild: public hero is now a true full-screen stage.
   Image placement never changes the layout height; only the image alignment and backdrop style change. */
.hero-slider {
  --hero-header-offset: 96px;
  --hero-stage-height: 100dvh;
  position: relative;
  width: 100%;
  min-height: var(--hero-stage-height);
  margin: 0;
  padding: 0;
  background: var(--surface-alt);
  overflow: hidden;
}

.hero-slider__viewport {
  position: relative;
  width: 100%;
  height: var(--hero-stage-height);
  min-height: var(--hero-stage-height);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-alt);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(241,233,224,.98) 0%, rgba(231,222,212,.98) 100%);
}

.hero-slide__media .media-backdrop,
.hero-slide__media .media-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide__media .media-backdrop {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(30px) saturate(0.96);
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.35s ease;
}

.hero-slide__media .media-asset {
  z-index: 1;
  object-fit: contain;
  object-position: center center;
}

.hero-slide[data-slide-display-mode="cover"] .hero-slide__media,
.hero-slide[data-slide-display-mode="cover-top"] .hero-slide__media,
.hero-slide[data-slide-display-mode="soft-backdrop"] .hero-slide__media {
  background: rgba(32, 27, 24, 0.22);
}

.hero-slide[data-slide-display-mode="cover"] .hero-slide__media .media-backdrop,
.hero-slide[data-slide-display-mode="cover-top"] .hero-slide__media .media-backdrop,
.hero-slide[data-slide-display-mode="soft-backdrop"] .hero-slide__media .media-backdrop {
  opacity: 0.92;
}

.hero-slide[data-slide-display-mode="cover-top"] .hero-slide__media .media-backdrop,
.hero-slide[data-slide-display-mode="contain-top"] .hero-slide__media .media-backdrop,
.hero-slide[data-slide-display-mode="cover-top"] .hero-slide__media .media-asset,
.hero-slide[data-slide-display-mode="contain-top"] .hero-slide__media .media-asset {
  object-position: center top;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 13, 12, 0.08) 0%, rgba(15, 13, 12, 0.02) 28%, rgba(15, 13, 12, 0.16) 100%);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.hero-slide__overlay-inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  padding-top: calc(var(--hero-header-offset) + 20px);
  padding-bottom: 42px;
}

.hero-slide .slide-copy-box {
  pointer-events: auto;
  max-width: min(560px, 100%);
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.24) 0%, rgba(18, 16, 14, 0.40) 100%);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(17, 14, 12, 0.18);
}

.hero-slide .slide-copy-box .eyebrow {
  margin-bottom: 10px;
}

.hero-slide .slide-copy-box h1,
.hero-slide .slide-copy-box h2 {
  font-size: clamp(36px, 5vw, 72px);
}

.hero-slide .slide-copy-box p,
.hero-slide .slide-copy-box .slide-description,
.hero-slide .slide-copy-box .rich-copy {
  margin-top: 14px;
  max-width: 480px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

.hero-slider .slider-arrow,
.hero-slider .slider-dots {
  z-index: 3;
}

.hero-slider .slider-arrow.prev,
.hero-slider .gallery-arrow.prev {
  left: 24px;
}

.hero-slider .slider-arrow.next,
.hero-slider .gallery-arrow.next {
  right: 24px;
}

.hero-slider .slider-dots {
  bottom: 22px;
}

.hero-slider .dot {
  width: 10px;
  height: 10px;
}

@media (max-width: 991.98px) {
  .hero-slider {
    --hero-header-offset: 126px;
  }

  .hero-slide__overlay-inner {
    padding-top: calc(var(--hero-header-offset) + 12px);
    padding-bottom: 20px;
  }

  .hero-slide .slide-copy-box {
    max-width: 100%;
    padding: 16px 18px 18px;
    border-radius: 18px;
  }

  .hero-slider .slider-arrow.prev,
  .hero-slider .gallery-arrow.prev {
    left: 12px;
  }

  .hero-slider .slider-arrow.next,
  .hero-slider .gallery-arrow.next {
    right: 12px;
  }

  .hero-slider .slider-dots {
    bottom: 12px;
  }
}




/* phase 12 footer and about polish */
.about-refined-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .58fr);
  gap: 24px;
  align-items: start;
}

.about-refined-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.about-story-card,
.about-side-card {
  padding: 28px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-side-card--minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background: linear-gradient(180deg, var(--surface-soft-2) 0%, var(--white) 100%);
}

.about-side-card--minimal .btn {
  min-width: 180px;
}

.site-footer.site-footer-enhanced {
  margin-top: 16px;
  padding: 36px 0 14px;
}

.footer-shell {
  gap: 24px;
  align-items: start;
  padding: 24px 0 16px;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-rich {
  line-height: 1.72;
}

.footer-socials,
.social-button-list {
  margin-top: 14px;
}

.footer-bottom {
  padding-top: 12px;
  min-height: auto;
}

.footer-bottom--single {
  justify-content: center;
  text-align: center;
}

@media (max-width: 960px) {
  .about-refined-grid {
    grid-template-columns: 1fr;
  }

  .about-side-card--minimal {
    justify-content: flex-start;
  }
}
