/* ==========================================================================
   Levent Balcılık — design tokens & components
   Loaded after Bootstrap 5.3 in layouts/master.html.
   ========================================================================== */

:root {
  --winnie-bg: #fdfbf7;            /* Sıcak doğal krem zemin */
  --winnie-bg-alt: #ffffff;        /* Kart ve header beyazı */
  --winnie-amber: #b4690e;         /* Ana bal/kehribar vurgu rengi */
  --winnie-amber-dark: #8a4e06;    /* Hover koyu kehribar */
  --winnie-ink: #1e1912;           /* Ana metin ve koyu barlar (koyu espresso/toprak) */
  --winnie-ink-muted: #6e6559;     /* İkincil açıklama metinleri */
  --winnie-border: #e6dec8;        /* Sıcak balmumu çerçeve rengi */
  --winnie-sand: #c9b79c;          /* İkincil vurgu */
  --winnie-sand-light: #f5efe2;    /* Açık krem/balmumu kutu içi zemin */
  --winnie-shadow: 0 10px 30px -12px rgba(30, 25, 18, 0.12);
  --winnie-radius: 14px;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Bootstrap override */
  --bs-body-bg: var(--winnie-bg);
  --bs-body-color: var(--winnie-ink);
  --bs-body-font-family: var(--font-body);
  --bs-border-color: var(--winnie-border);
  --bs-link-color: var(--winnie-amber);
  --bs-link-hover-color: var(--winnie-amber-dark);
  --bs-link-color-rgb: 180, 105, 14;
  --bs-link-hover-color-rgb: 138, 78, 6;
  --bs-primary: var(--winnie-amber);
  --bs-primary-rgb: 180, 105, 14;
  --bs-secondary-color: var(--winnie-ink-muted);
  --bs-emphasis-color: var(--winnie-ink);
  --bs-border-radius: 10px;
  --bs-border-radius-lg: var(--winnie-radius);
  --bs-focus-ring-color: rgba(180, 105, 14, 0.25);

  --winnie-success: #3f7a3a;
  --winnie-danger: #a63b2a;
}

/* --------------------------------------------------------------- base --- */

/* Always reserve the scrollbar's space so short pages (empty cart, login) don't shift the centred header sideways. */
html { scrollbar-gutter: stable; }

body {
  font-family: var(--font-body);
  background-color: var(--winnie-bg);
  color: var(--winnie-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.display-heading,
.navbar-brand,
.stat-card__value {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--winnie-ink);
}

h1 { font-weight: 700; }

a { text-decoration: none; }
a:hover { text-decoration: none; }

.text-muted, .text-body-secondary { color: var(--winnie-ink-muted) !important; }
.text-amber { color: var(--winnie-amber) !important; }
.bg-sand { background-color: var(--winnie-sand-light) !important; }
.border-winnie { border-color: var(--winnie-border) !important; }
.fw-semibold { font-weight: 600 !important; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--winnie-amber);
}

.section { padding-block: 4.5rem; }
.section--tight { padding-block: 2.5rem; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 { margin: 0.25rem 0 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }

.page-title {
  padding-block: 2.5rem 1.5rem;
}
.page-title h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.25rem 0 0; }

.icon {
  width: 1.15em;
  height: 1.15em;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  font-weight: 500;
  --bs-btn-focus-shadow-rgb: 180, 105, 14;
}

.btn-primary,
.btn-outline-primary,
.btn-dark,
.btn-outline-dark,
.btn-light,
.btn-danger,
.btn-outline-danger,
.btn-secondary,
.btn-outline-secondary {
  border-radius: 999px;
  padding-inline: 1.5rem;
}

.btn-sm.btn-primary,
.btn-sm.btn-outline-primary,
.btn-sm.btn-outline-dark,
.btn-sm.btn-dark,
.btn-sm.btn-light,
.btn-sm.btn-danger,
.btn-sm.btn-outline-danger,
.btn-sm.btn-secondary,
.btn-sm.btn-outline-secondary { padding-inline: 1rem; }
.btn-danger { --bs-btn-bg: var(--winnie-danger); --bs-btn-border-color: var(--winnie-danger); --bs-btn-hover-bg: #8a2f21; --bs-btn-hover-border-color: #8a2f21; }
.btn-outline-danger { --bs-btn-color: var(--winnie-danger); --bs-btn-border-color: var(--winnie-danger); --bs-btn-hover-bg: var(--winnie-danger); --bs-btn-hover-border-color: var(--winnie-danger); }

.btn-primary {
  --bs-btn-bg: var(--winnie-amber);
  --bs-btn-border-color: var(--winnie-amber);
  --bs-btn-hover-bg: var(--winnie-amber-dark);
  --bs-btn-hover-border-color: var(--winnie-amber-dark);
  --bs-btn-active-bg: var(--winnie-amber-dark);
  --bs-btn-active-border-color: var(--winnie-amber-dark);
  --bs-btn-disabled-bg: var(--winnie-sand);
  --bs-btn-disabled-border-color: var(--winnie-sand);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}

.btn-outline-primary {
  --bs-btn-color: var(--winnie-amber);
  --bs-btn-border-color: var(--winnie-amber);
  --bs-btn-hover-bg: var(--winnie-amber);
  --bs-btn-hover-border-color: var(--winnie-amber);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--winnie-amber-dark);
  --bs-btn-active-border-color: var(--winnie-amber-dark);
}

.btn-dark {
  --bs-btn-bg: var(--winnie-ink);
  --bs-btn-border-color: var(--winnie-ink);
  --bs-btn-hover-bg: #3a3127;
  --bs-btn-hover-border-color: #3a3127;
}

.btn-outline-dark {
  --bs-btn-color: var(--winnie-ink);
  --bs-btn-border-color: var(--winnie-border);
  --bs-btn-hover-bg: var(--winnie-ink);
  --bs-btn-hover-border-color: var(--winnie-ink);
}

.btn-link { color: var(--winnie-amber); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
}

/* -------------------------------------------------------------- forms --- */

.form-control,
.form-select {
  border-color: var(--winnie-border);
  background-color: var(--winnie-bg-alt);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--winnie-amber);
  box-shadow: 0 0 0 0.2rem rgba(180, 105, 14, 0.15);
}

.form-check-input:checked {
  background-color: var(--winnie-amber);
  border-color: var(--winnie-amber);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--winnie-ink);
  margin-bottom: 0.35rem;
}

.form-text { color: var(--winnie-ink-muted); font-size: 0.8rem; }

.ql-toolbar.ql-snow,
.ql-container.ql-snow { border-color: var(--winnie-border) !important; background: #fff; }
.ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; }
.ql-container.ql-snow { border-radius: 0 0 10px 10px; font-family: var(--font-body); font-size: 0.95rem; }
.quill-editor { min-height: 220px; }

/* -------------------------------------------------------------- cards --- */

.card {
  background-color: var(--winnie-bg-alt);
  border: 1px solid var(--winnie-border);
  border-radius: var(--winnie-radius);
  box-shadow: var(--winnie-shadow);
}

.card-header,
.card-footer {
  background: transparent;
  border-color: var(--winnie-border);
}

.card-header { padding: 1rem 1.25rem; }
.card-title { font-family: var(--font-heading); font-weight: 600; }

.card--flat { box-shadow: none; }

.soft-box {
  background: var(--winnie-sand-light);
  border-radius: var(--winnie-radius);
  padding: 1.25rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--winnie-ink-muted);
}
.empty-state .icon { width: 2.5rem; height: 2.5rem; color: var(--winnie-sand); margin-bottom: 0.75rem; }
.empty-state h3 { font-size: 1.25rem; }

/* ------------------------------------------------------------ alerts --- */

.alert { border-radius: 12px; border-width: 1px; }
.alert-success { background: #eef5ea; border-color: #cfe1c6; color: #2f5a2b; }
.alert-danger  { background: #f9ece9; border-color: #ecc9c1; color: #7d2a1d; }
.alert-warning { background: #fdf4e3; border-color: #f1dcb2; color: #7a4a05; }
.alert-info    { background: var(--winnie-sand-light); border-color: var(--winnie-border); color: var(--winnie-ink); }

/* ------------------------------------------------------------- badges --- */

.badge { font-weight: 600; letter-spacing: 0.02em; border-radius: 999px; padding: 0.38em 0.7em; }
.badge-soft { background: var(--winnie-sand-light); color: var(--winnie-ink); border: 1px solid var(--winnie-border); }
.badge-amber { background: var(--winnie-amber); color: #fff; }

.status-badge { font-size: 0.72rem; }
.status-badge--pending   { background: #fdf0d6; color: #7a4a05; }
.status-badge--paid      { background: #e5effa; color: #1f4f80; }
.status-badge--shipped   { background: #efe7fb; color: #4e2f86; }
.status-badge--delivered { background: #e5f2e1; color: #2f5a2b; }
.status-badge--completed { background: #d9ecd3; color: #24481f; }
.status-badge--cancelled { background: #eeeae4; color: #6e6559; }

.stage-badge--new         { background: #f5efe2; color: #6e6559; }
.stage-badge--contacted   { background: #e5effa; color: #1f4f80; }
.stage-badge--sample_sent { background: #fdf0d6; color: #7a4a05; }
.stage-badge--proposal    { background: #efe7fb; color: #4e2f86; }
.stage-badge--won         { background: #d9ecd3; color: #24481f; }
.stage-badge--lost        { background: #f4e1dc; color: #7d2a1d; }

/* ------------------------------------------------------------- ticker --- */

.site-ticker {
  background: var(--winnie-ink);
  color: var(--winnie-sand-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
  white-space: nowrap;
  padding-block: 0.55rem;
}

.site-ticker__track {
  display: inline-flex;
  animation: winnie-ticker var(--ticker-duration, 35s) linear infinite;
}

.site-ticker:hover .site-ticker__track { animation-play-state: paused; }

.site-ticker__item { display: inline-flex; align-items: center; padding-right: 2.5rem; }
.site-ticker__item::after { content: "✦"; color: var(--winnie-amber); margin-left: 2.5rem; }
.site-ticker a { color: inherit; }
.site-ticker a:hover { color: #fff; }

@keyframes winnie-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .site-ticker__track { animation: none; padding-left: 1rem; }
  .product-tile__media, .product-tile__actions { transition: none; }
}

/* ------------------------------------------------------------- header --- */

.site-header {
  background: var(--winnie-bg-alt);
  border-bottom: 1px solid var(--winnie-border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar { padding-block: 0.85rem; }

.site-header .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--winnie-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Two-row header on desktop: brand + actions on top, category navigation centred below. */
@media (min-width: 992px) {
  .site-header .navbar { padding-bottom: 0; }
  .site-header .navbar > .container { flex-wrap: wrap; }
  .site-header .navbar-collapse {
    flex-basis: 100%;
    justify-content: center;
    margin-top: 0.75rem;
    border-top: 1px solid var(--winnie-border);
  }
  .site-header .navbar-nav { flex-wrap: wrap; justify-content: center; }
  .site-header .nav-link { padding-block: 0.8rem !important; margin-inline: 1rem; }
  .site-header .nav-link::after { bottom: 0.55rem; }
}

@media (max-width: 575.98px) {
  .site-header .navbar-brand { font-size: 1.25rem; gap: 0.35rem; }
  .site-header .brand-mark { width: 1.6rem; height: 1.6rem; }
  .header-icon { width: 2.1rem; height: 2.1rem; }
  .btn-desk { padding: 0.4rem 0.6rem; }
  .site-header .navbar-toggler { padding: 0.25rem 0.4rem; }
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  color: var(--winnie-amber);
}

.site-header .nav-link {
  position: relative;
  color: var(--winnie-ink);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  padding-inline: 0 !important;
  margin-inline: 0.7rem;
}

.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 1px;
  background: var(--winnie-amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--winnie-amber-dark); }
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after { transform: scaleX(1); }

.header-search {
  position: relative;
  width: 300px;
  max-width: calc(100vw - 3rem);
}

.header-search .form-control {
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 2.3rem;
  font-size: 0.85rem;
  background: var(--winnie-bg);
}

.header-search .icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--winnie-ink-muted);
}

.header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  color: var(--winnie-ink);
  transition: background-color 0.2s ease;
}

.header-icon:hover { background: var(--winnie-sand-light); color: var(--winnie-ink); }
.header-icon .icon { width: 1.3rem; height: 1.3rem; }

.cart-badge {
  position: absolute;
  top: 0.05rem;
  right: 0.05rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--winnie-amber);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}

.btn-desk {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.42rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--winnie-ink);
  color: var(--winnie-sand-light);
  box-shadow: 0 0 0 3px rgba(180, 105, 14, 0.25);
}

.btn-desk:hover { background: var(--winnie-amber-dark); color: #fff; }

.dropdown-menu {
  border-color: var(--winnie-border);
  border-radius: 12px;
  box-shadow: var(--winnie-shadow);
  padding: 0.4rem;
}

.account-menu { min-width: 16rem; max-width: min(20rem, calc(100vw - 1.5rem)); }
.account-menu__greeting { padding: 0.5rem 0.75rem 0.35rem; font-size: 0.8rem; color: var(--winnie-ink-muted); line-height: 1.35; }
.account-menu__greeting strong { display: block; font-size: 0.95rem; color: var(--winnie-ink); overflow-wrap: anywhere; }

.dropdown-item { border-radius: 8px; font-size: 0.9rem; padding: 0.45rem 0.75rem; }
.dropdown-item:hover { background: var(--winnie-sand-light); }
.dropdown-item.active, .dropdown-item:active { background: var(--winnie-amber); }

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  background-color: var(--winnie-sand-light);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}

.hero:not(.hero--banner)::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 60vmin;
  height: 60vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 105, 14, 0.18), transparent 70%);
  z-index: -1;
}

.hero--banner { color: #fff; }

.hero--banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30, 25, 18, 0.68), rgba(30, 25, 18, 0.35));
  z-index: -1;
}

.hero__content { max-width: 640px; padding-block: 4rem; }

.hero__art {
  position: absolute;
  right: 6%;
  top: 50%;
  width: min(34vw, 460px);
  transform: translateY(-50%);
  color: var(--winnie-amber);
  opacity: 0.9;
  z-index: -1;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--winnie-amber);
  margin-bottom: 1rem;
}

.hero--banner .hero__eyebrow { color: #f3c77f; }

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}

.hero--banner .hero__title { color: #fff; }

.hero__lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--winnie-ink-muted);
  margin-bottom: 2rem;
}

.hero--banner .hero__lead { color: rgba(255, 255, 255, 0.85); }

/* Text alignment per banner (Yönetim → Vitrin Bannerları). Phones always stay left-aligned. */
@media (min-width: 768px) {
  .hero--align-right .hero__content { margin-left: auto; text-align: right; }
  .hero--align-right .hero__art { right: auto; left: 6%; }
  .hero--align-right.hero--banner::before { background: linear-gradient(240deg, rgba(30, 25, 18, 0.68), rgba(30, 25, 18, 0.35)); }
  .hero--align-right:not(.hero--banner)::after { inset: auto auto -45% -10%; }
  .hero--align-center .hero__content { margin-inline: auto; text-align: center; }
  .hero--align-center .hero__art { display: none !important; }
  .hero--align-center.hero--banner::before { background: rgba(30, 25, 18, 0.5); }
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 26px;
  height: 3px;
  border-radius: 3px;
}

/* ---------------------------------------------------- value strip --- */

.value-strip {
  border-bottom: 1px solid var(--winnie-border);
  background: var(--winnie-bg-alt);
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 1.4rem;
}

.value-item .icon { width: 1.8rem; height: 1.8rem; color: var(--winnie-amber); }
.value-item strong { display: block; font-size: 0.92rem; }
.value-item span { font-size: 0.8rem; color: var(--winnie-ink-muted); }
.value-item--compact { padding-block: 0; }

/* ------------------------------------------------------ category tile --- */


/* -------------------------------------------------------- product tile --- */

.product-tile { position: relative; }
.product-tile__frame {
  position: relative;
  border-radius: var(--winnie-radius);
  overflow: hidden;
  box-shadow: var(--winnie-shadow);
}

.product-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--winnie-radius);
  background-color: var(--winnie-sand-light);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: background-size 0.6s ease;
}

.product-tile:hover .product-tile__media { background-size: 110%; }
.product-tile__media[style*="placeholder-honey"] { background-size: 70%; background-repeat: no-repeat; }
.product-tile:hover .product-tile__media[style*="placeholder-honey"] { background-size: 76%; }

.product-tile__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--winnie-amber);
  color: #fff;
}

.product-tile__badge--new { background: var(--winnie-ink); color: var(--winnie-sand-light); }
.product-tile__badge--soldout { background: rgba(255, 255, 255, 0.92); color: var(--winnie-ink-muted); }

.product-tile__actions {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 2.5rem 0.75rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(30, 25, 18, 0.72));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-tile:hover .product-tile__actions,
.product-tile:focus-within .product-tile__actions { opacity: 1; transform: translateY(0); }

.product-tile__actions form { margin: 0; }
.product-tile__actions .btn { font-size: 0.8rem; padding: 0.4rem 0.95rem; }

.product-tile__body { padding-top: 0.9rem; }

.product-tile__title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--winnie-ink);
}

.product-tile__title:hover { color: var(--winnie-amber-dark); }

.product-tile__meta { font-size: 0.8rem; color: var(--winnie-ink-muted); margin-top: 0.2rem; }

.product-tile__prices { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.4rem; }
.product-tile__price-old { font-size: 0.85rem; color: var(--winnie-ink-muted); text-decoration: line-through; }
.product-tile__price-current { font-size: 1.05rem; font-weight: 700; color: var(--winnie-ink); }
.product-tile__unit { font-size: 0.8rem; color: var(--winnie-ink-muted); margin-left: -0.25rem; }
.product-tile__shipping { font-size: 0.75rem; color: var(--winnie-ink-muted); margin-top: 0.15rem; }
.product-tile__shipping .icon { width: 0.9rem; height: 0.9rem; vertical-align: -0.12em; color: var(--winnie-amber); }

.product-tile.is-soldout .product-tile__media { filter: grayscale(0.4); opacity: 0.8; }

@media (hover: none) {
  .product-tile__actions { opacity: 1; transform: none; }
}

/* ------------------------------------------------------ product detail --- */

.product-zoom {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--winnie-radius);
  background-color: var(--winnie-sand-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--winnie-shadow);
  overflow: hidden;
  cursor: zoom-in;
}

.product-zoom.is-zooming { background-size: 200%; }

.product-zoom__hint {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--winnie-ink-muted);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.product-zoom.is-zooming .product-zoom__hint { opacity: 0; }

.product-thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem; }

.product-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 10px;
  border: 1.5px solid var(--winnie-border);
  background-size: cover;
  background-position: center;
  background-color: var(--winnie-sand-light);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-thumb:hover { transform: translateY(-2px); }
.product-thumb.is-active { border-color: var(--winnie-amber); box-shadow: 0 0 0 2px rgba(180, 105, 14, 0.2); }

.product-info__title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 0.5rem; }
.product-info__price { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; }
.product-info__unit { color: var(--winnie-ink-muted); margin-left: -0.5rem; }
.product-info__price-old { font-size: 1.1rem; color: var(--winnie-ink-muted); text-decoration: line-through; }

.price-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--winnie-amber);
  background: #fff8ec;
  font-size: 0.9rem;
}

.qty-input { max-width: 110px; text-align: center; }

.product-specs {
  background: var(--winnie-sand-light);
  border-radius: 14px;
  padding: 1.25rem;
}

.product-specs h2 { font-size: 1.05rem; margin-bottom: 0.75rem; }

.product-specs dl {
  display: grid;
  grid-template-columns: minmax(130px, 40%) 1fr;
  gap: 0.55rem 1rem;
  margin: 0;
  font-size: 0.9rem;
}

.product-specs dt { font-weight: 500; color: var(--winnie-ink-muted); }
.product-specs dd { margin: 0; font-weight: 600; }

.rich-text { line-height: 1.75; }
.rich-text p:last-child { margin-bottom: 0; }

.rating { color: var(--winnie-amber); letter-spacing: 0.1em; }

.review {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--winnie-border);
}
.review:last-child { border-bottom: 0; }

/* ---------------------------------------------------- catalog sidebar --- */

.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list a {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--winnie-ink);
  font-size: 0.92rem;
}
.filter-list a:hover { background: var(--winnie-sand-light); }
.filter-list a.active { background: var(--winnie-sand-light); color: var(--winnie-amber-dark); font-weight: 600; }

/* ------------------------------------------------------------- cart ----- */

.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--winnie-border);
}

.cart-line:last-child { border-bottom: 0; }

.cart-line__thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--winnie-sand-light);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding-block: 0.35rem;
}

.summary-row--total {
  border-top: 1px solid var(--winnie-border);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.shipping-progress { height: 6px; border-radius: 999px; background: var(--winnie-sand-light); }
.shipping-progress .progress-bar { background: var(--winnie-amber); border-radius: 999px; }

/* ----------------------------------------------------------- checkout --- */

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}

.checkout-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--winnie-ink);
  color: var(--winnie-sand-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
}

.choice-card {
  display: block;
  position: relative;
  border: 1.5px solid var(--winnie-border);
  border-radius: 14px;
  padding: 1rem;
  cursor: pointer;
  background: var(--winnie-bg-alt);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  height: 100%;
}

.choice-card:hover { border-color: var(--winnie-sand); }

.choice-card:has(input:checked) {
  border-color: var(--winnie-amber);
  background: var(--winnie-sand-light);
}

.choice-card input[type="radio"] { position: absolute; top: 1rem; right: 1rem; }
.choice-card__title { font-weight: 600; display: block; margin-bottom: 0.25rem; padding-right: 1.5rem; }
.choice-card__text { font-size: 0.85rem; color: var(--winnie-ink-muted); }

.reference-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--winnie-amber);
  border-radius: 14px;
  background: #fff8ec;
}

.reference-code__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--winnie-amber-dark);
}

.bank-account-card {
  border: 1px solid var(--winnie-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  background: var(--winnie-bg-alt);
}

.bank-account-card__iban {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.order-timeline { list-style: none; padding: 0; margin: 0; }
.order-timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.6rem;
  font-size: 0.88rem;
  color: var(--winnie-ink-muted);
}
.order-timeline li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--winnie-border);
}
.order-timeline li::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.1rem;
  bottom: 0;
  width: 1px;
  background: var(--winnie-border);
}
.order-timeline li:last-child::after { display: none; }
.order-timeline li.is-done { color: var(--winnie-ink); }
.order-timeline li.is-done::before { background: var(--winnie-amber); }

/* --------------------------------------------------------- account nav --- */

.account-nav .list-group-item {
  border: 0;
  border-radius: 10px !important;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  color: var(--winnie-ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.account-nav .list-group-item:hover { background: var(--winnie-sand-light); }
.account-nav .list-group-item.active { background: var(--winnie-sand-light); color: var(--winnie-amber-dark); font-weight: 600; }

/* ---------------------------------------------------------- newsletter --- */

.newsletter-band {
  background: var(--winnie-sand-light);
  border-top: 1px solid var(--winnie-border);
  padding-block: 3.5rem;
}

.newsletter-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin-left: auto;
}

.newsletter-form .form-control { flex: 1 1 0; width: auto; border-radius: 999px; padding-inline: 1.1rem; min-width: 0; }
.newsletter-form .btn { flex: none; white-space: nowrap; }

/* -------------------------------------------------------------- footer --- */

.site-footer {
  background: var(--winnie-ink);
  color: rgba(245, 239, 226, 0.75);
  padding-block: 3.5rem 2rem;
  font-size: 0.9rem;
}

.site-footer h3,
.site-footer h4 { color: var(--winnie-sand-light); font-size: 1rem; margin-bottom: 1rem; }
.site-footer .footer-brand { font-family: var(--font-heading); font-size: 1.5rem; color: #fff; font-weight: 700; }
.site-footer a { color: rgba(245, 239, 226, 0.75); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(245, 239, 226, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.site-footer .footer-bottom__end { display: inline-flex; align-items: center; gap: 0.4rem; }
.site-footer .footer-bottom__credit::before { content: "·"; margin: 0 0.5rem; opacity: .5; }
.site-footer .footer-bottom__credit, .site-footer .footer-bottom__credit a { color: rgba(245, 239, 226, 0.55); }
.site-footer .footer-bottom__credit a:hover { color: #fff; }
.site-footer .footer-bottom__end .icon { width: 14px; height: 14px; }

/* ---------------------------------------------------------- pagination --- */

.pagination { --bs-pagination-border-color: var(--winnie-border); gap: 0.3rem; }
.pagination .page-link {
  border-radius: 999px !important;
  min-width: 2.3rem;
  text-align: center;
  color: var(--winnie-ink);
  border-color: var(--winnie-border);
}
.pagination .page-item.active .page-link {
  background: var(--winnie-amber);
  border-color: var(--winnie-amber);
  color: #fff;
}

/* ---------------------------------------------------------- auth pages --- */

.auth-card { max-width: 480px; margin-inline: auto; }
.auth-card--wide { max-width: 680px; }

/* ===================================================== admin / backoffice */

.admin-body { background: #f7f4ee; }

.admin-topbar {
  background: var(--winnie-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.admin-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}

.admin-topbar__brand .brand-mark { color: #f3c77f; width: 1.6rem; height: 1.6rem; }
.admin-topbar__brand small { font-family: var(--font-body); font-weight: 400; color: var(--winnie-sand); font-size: 0.85rem; }

.admin-topbar__links { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }

.admin-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(245, 239, 226, 0.8);
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.admin-topbar__link:hover,
.admin-topbar__link.active { background: rgba(245, 239, 226, 0.12); color: #fff; }

.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 0.85rem;
  margin-left: 0.4rem;
  border-left: 1px solid rgba(245, 239, 226, 0.18);
  line-height: 1.15;
}

.admin-user strong { color: #fff; font-size: 0.85rem; display: block; }
.admin-user span { color: var(--winnie-sand); font-size: 0.72rem; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--winnie-amber);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.avatar--lg { width: 3rem; height: 3rem; font-size: 1rem; }

.admin-layout { display: flex; min-height: calc(100vh - 56px); }

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--winnie-bg-alt);
  border-right: 1px solid var(--winnie-border);
  padding: 1.25rem 0 1rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.admin-sidebar__group {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--winnie-ink-muted);
  padding: 1rem 1.25rem 0.4rem;
}

.admin-sidebar__group:first-child { padding-top: 0; }

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  color: var(--winnie-ink);
  border-left: 3px solid transparent;
}

.admin-sidebar__link .icon { color: var(--winnie-ink-muted); }
.admin-sidebar__link:hover { background: var(--winnie-sand-light); color: var(--winnie-ink); }

.admin-sidebar__link.active {
  border-left: 3px solid var(--winnie-amber);
  background: var(--winnie-sand-light);
  font-weight: 600;
  color: var(--winnie-amber-dark);
}

.admin-sidebar__link.active .icon { color: var(--winnie-amber); }

.admin-sidebar__count {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--winnie-amber);
  color: #fff;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}

.admin-version {
  margin-top: auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.72rem;
  color: var(--winnie-ink-muted);
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 1.75rem 2rem 3rem;
}

/* The shared page head (layouts/backoffice.html): title left, actions right, stays in reach while scrolling. */
.admin-page-head {
  position: sticky;
  top: 56px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  margin: -1.75rem -2rem 1.5rem;
  padding: 1rem 2rem;
  min-height: 72px;
  background: #f7f4ee;
  border-bottom: 1px solid var(--winnie-border);
}
.admin-page-head h1 { font-size: 1.6rem; margin: 0; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.admin-page-head__subtitle { font-size: 0.85rem; color: var(--winnie-ink-muted); margin-top: 0.15rem; }
.admin-page-head__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.admin-page-head__actions:empty { display: none; }
.page-help {
  display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  font: 600 0.75rem/1 var(--bs-body-font-family); color: var(--winnie-ink-muted);
  border: 1px solid var(--winnie-border); background: #fff; cursor: help;
}
.page-help:hover, .page-help:focus { color: var(--winnie-amber); border-color: var(--winnie-amber); outline: none; }
@media (max-width: 991.98px) {
  .admin-page-head { position: static; margin: 0 0 1.25rem; padding: 0; border: 0; background: none; min-height: 0; }
}

@media (max-width: 991.98px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--winnie-border);
    white-space: nowrap;
  }
  .admin-sidebar__group, .admin-version { display: none; }
  .admin-sidebar__link {
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
  }
  .admin-sidebar__link.active { border-left: 0; border-bottom: 3px solid var(--winnie-amber); }
  .admin-main { padding: 1.25rem 1rem 2.5rem; }
  .admin-user { display: none; }
}

/* ------------------------------------------------------------ stat card --- */

.stat-card {
  background: var(--winnie-bg-alt);
  border: 1px solid var(--winnie-border);
  border-left: 4px solid var(--winnie-amber);
  border-radius: var(--winnie-radius);
  padding: 1.1rem 1.25rem;
  height: 100%;
  box-shadow: var(--winnie-shadow);
}

.stat-card__value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--winnie-ink);
}

.stat-card__label {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--winnie-ink-muted);
}

.stat-card__hint { font-size: 0.78rem; color: var(--winnie-ink-muted); margin-top: 0.15rem; }
.stat-card--ink { border-left-color: var(--winnie-ink); }
.stat-card--sand { border-left-color: var(--winnie-sand); }
.stat-card--alert { border-left-color: var(--winnie-danger); }

/* -------------------------------------------------------- admin tables --- */

.table-winnie {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: var(--winnie-sand-light);
  margin: 0;
  font-size: 0.9rem;
}

.table-winnie thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--winnie-ink-muted);
  border-bottom: 1px solid var(--winnie-border);
  background: var(--winnie-bg);
  white-space: nowrap;
  padding: 0.75rem;
}

.table-winnie td { padding: 0.75rem; vertical-align: middle; border-color: var(--winnie-border); }
.table-winnie tbody tr:last-child td { border-bottom: 0; }

.table-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--winnie-sand-light);
  flex-shrink: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-bar .form-control,
.filter-bar .form-select { width: auto; min-width: 160px; padding-block: 0.45rem; font-size: 0.88rem; }

/* ------------------------------------------------------- CRM pipeline --- */

.nav-pills.pipeline-pills { gap: 0.4rem; flex-wrap: wrap; }

.nav-pills.pipeline-pills .nav-link {
  border-radius: 999px;
  border: 1px solid var(--winnie-border);
  background: var(--winnie-bg-alt);
  color: var(--winnie-ink);
  font-size: 0.85rem;
  padding: 0.4rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-pills.pipeline-pills .nav-link .count {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--winnie-sand-light);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}

.nav-pills.pipeline-pills .nav-link.active {
  background: var(--winnie-ink);
  border-color: var(--winnie-ink);
  color: #fff;
}

.nav-pills.pipeline-pills .nav-link.active .count { background: var(--winnie-amber); color: #fff; }

.deal-card {
  background: var(--winnie-bg-alt);
  border: 1px solid var(--winnie-border);
  border-radius: var(--winnie-radius);
  padding: 1.1rem 1.15rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.deal-card:hover { border-color: var(--winnie-sand); box-shadow: var(--winnie-shadow); }

.deal-card__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; color: var(--winnie-ink); }
.deal-card__title:hover { color: var(--winnie-amber-dark); }
.deal-card__amount { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.deal-card__meta { font-size: 0.8rem; color: var(--winnie-ink-muted); display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; }
.deal-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--winnie-border);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.deal-card__footer .form-select { font-size: 0.8rem; padding: 0.3rem 2rem 0.3rem 0.65rem; }

.stage-funnel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }

.stage-funnel__step {
  text-align: center;
  padding: 0.8rem 0.35rem;
  border-radius: 12px;
  background: var(--winnie-sand-light);
  color: var(--winnie-ink);
}

.stage-funnel__step strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; }
.stage-funnel__step span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--winnie-ink-muted); }
.stage-funnel__step--won { background: #d9ecd3; }
.stage-funnel__step--lost { background: #f4e1dc; }

@media (max-width: 767.98px) {
  .stage-funnel { grid-template-columns: repeat(3, 1fr); }
}

.stage-track { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.stage-track button {
  flex: 1;
  min-width: 110px;
  border: 1px solid var(--winnie-border);
  background: var(--winnie-bg-alt);
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.4rem 0.6rem;
  color: var(--winnie-ink-muted);
}
.stage-track button:hover { border-color: var(--winnie-amber); color: var(--winnie-ink); }
.stage-track button.is-current { background: var(--winnie-ink); border-color: var(--winnie-ink); color: #fff; }

/* ---------------------------------------------------------- activities --- */

.activity-list { list-style: none; padding: 0; margin: 0; }

.activity-item {
  display: flex;
  gap: 0.85rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--winnie-border);
}

.activity-item:last-child { border-bottom: 0; }

.activity-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--winnie-sand-light);
  color: var(--winnie-amber-dark);
  flex-shrink: 0;
}

.activity-item.is-overdue .activity-item__icon { background: #f4e1dc; color: var(--winnie-danger); }
.activity-item.is-done .activity-item__summary { text-decoration: line-through; color: var(--winnie-ink-muted); }
.activity-item__summary { font-weight: 600; font-size: 0.92rem; }
.activity-item__meta { font-size: 0.78rem; color: var(--winnie-ink-muted); }

.confidential {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--winnie-danger);
}

/* --------------------------------------------------------- utilities --- */

.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }
.small-caps { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--winnie-ink-muted); }
.divider { border-top: 1px solid var(--winnie-border); }
.image-preview { width: 120px; height: 120px; border-radius: 12px; background-size: cover; background-position: center; border: 1px solid var(--winnie-border); }

/* --------------------------------------------------------- seo & share --- */

.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.seo-preview { border: 1px solid var(--winnie-border); border-radius: 10px; padding: 0.9rem 1rem; background: #fff; font-family: Arial, sans-serif; }
.seo-preview__url { font-size: 0.78rem; color: #4d5156; }
.seo-preview__title { font-size: 1.1rem; color: #1a0dab; line-height: 1.3; margin: 0.15rem 0; }
.seo-preview__desc { font-size: 0.85rem; color: #4d5156; line-height: 1.45; }

/* ------------------------------------------------- backoffice toasts --- */

.flash-stack {
  position: fixed;
  top: 4.5rem;
  right: 1.25rem;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(420px, calc(100vw - 2.5rem));
}
.flash-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 2.75rem 0.85rem 1rem;
  border: 0;
  border-left: 4px solid var(--winnie-amber);
  border-radius: 10px;
  background: #fff;
  color: var(--winnie-ink);
  box-shadow: 0 12px 32px rgba(30, 25, 18, 0.16);
  font-size: 0.9rem;
}
.flash-toast .icon { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; }
.flash-toast .btn-close { padding: 1.05rem 1rem; font-size: 0.7rem; }
.flash-toast--success { border-left-color: #2f8f5b; }
.flash-toast--success .icon { color: #2f8f5b; }
.flash-toast--danger { border-left-color: #c0392b; }
.flash-toast--danger .icon { color: #c0392b; }
.flash-toast--warning { border-left-color: #d08a12; }
.flash-toast--warning .icon { color: #d08a12; }

.admin-topbar__cta { display: inline-flex; align-items: center; gap: 0.35rem; }
.admin-topbar__cta .icon { width: 1rem; height: 1rem; }

/* html reserves the scrollbar gutter already; Bootstrap's extra padding would shift the page. */
body.modal-open { padding-right: 0 !important; }

/* ------------------------------------------------ backoffice blocks --- */

.filter-panel { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-panel .form-control,
.filter-panel .form-select { width: auto; min-width: 150px; padding-right: 2.4rem; }
.filter-panel input[type="search"] { min-width: 240px; }
.filter-panel input[type="date"] { min-width: 0; }

.profile-card__name { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.875rem; margin: 0; }
.info-list dt { color: var(--winnie-ink-muted); font-weight: 400; }
.info-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.address-card { border: 1px solid var(--winnie-border); border-radius: 10px; padding: 0.85rem 1rem; height: 100%; }
.address-card.is-default { border-color: var(--winnie-amber); background: #fffaf1; }
.address-card__title { font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }

.danger-zone { border: 1px solid #f1c7c2; border-radius: 12px; background: #fff7f6; padding: 1.25rem 1.5rem; }
.confirm-card { max-width: 720px; }

.profile-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--winnie-sand-light);
  color: var(--winnie-amber-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
}
.stats-grid > [class*="col-"] > .stat-card { height: 100%; }

/* ------------------------------------------------------ rating summary --- */

.rating-summary { display: flex; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--winnie-border); border-radius: 12px; background: var(--winnie-bg-alt); }
.rating-summary__score { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.rating-summary__score strong { font-family: var(--font-heading); font-size: 2.2rem; line-height: 1; }
.rating-bar { display: grid; grid-template-columns: 2rem 1fr 2rem; gap: 0.5rem; align-items: center; font-size: 0.8rem; }
.rating-bar__track { height: 6px; border-radius: 999px; background: var(--winnie-sand-light); overflow: hidden; }
.rating-bar__fill { height: 100%; background: var(--winnie-amber); }

/* Product reviews page: sticky product card on the left. */
.review-product { position: sticky; top: 6rem; padding: 1.25rem; border: 1px solid var(--winnie-border); border-radius: 14px; background: var(--winnie-bg-alt); }
.review-product__image { display: block; aspect-ratio: 1; border-radius: 10px; background: var(--winnie-sand-light) center / cover no-repeat; }

/* Product edit page: titled sections, image grid. */
.product-section-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; }
.product-section-title .icon { color: var(--winnie-amber); }
.product-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.85rem; }
.product-images__item { position: relative; cursor: grab; border-radius: 12px; transition: opacity .15s, transform .15s; }
.product-images__item .image-preview { width: 100%; height: auto; aspect-ratio: 1; }
.product-images__item.is-primary .image-preview { border: 2px solid var(--winnie-amber); }
.product-images__item.is-dragging { opacity: .4; }
.product-images__item.is-drop-target { transform: scale(.96); }
.product-images__cover { position: absolute; top: .4rem; left: .4rem; display: none; }
.product-images__item.is-primary .product-images__cover { display: inline-block; }
.product-images__item.is-primary [data-image-primary] { display: none; }
.product-images__actions { position: absolute; right: .4rem; bottom: .4rem; display: flex; gap: 0.3rem; opacity: 0; transition: opacity .15s; }
.product-images__item:hover .product-images__actions, .product-images__item:focus-within .product-images__actions { opacity: 1; }
.product-images__actions .btn-icon { width: 1.9rem; height: 1.9rem; padding: 0; box-shadow: 0 1px 4px rgba(43, 33, 24, .2); }
@media (hover: none) { .product-images__actions { opacity: 1; } }
.product-images__add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; aspect-ratio: 1;
  border: 2px dashed var(--winnie-border); border-radius: 12px; color: var(--winnie-ink-muted); font-size: .8rem;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.product-images__add:hover, .product-images__add.is-over { border-color: var(--winnie-amber); color: var(--winnie-amber); background: var(--winnie-sand-light); }
.image-manager.is-busy .product-images__add { pointer-events: none; opacity: .6; }
.image-manager [data-image-status].text-danger { font-weight: 500; }

/* Backoffice contact info: footer-like preview. */
.contact-preview { background: var(--winnie-ink); color: rgba(245, 239, 226, 0.85); border-radius: 12px; padding: 1.25rem; font-size: 0.85rem; }
.contact-preview__brand { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.contact-preview ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.contact-preview a { color: inherit; }
.contact-preview a:hover { color: #f3c77f; }
.contact-preview__social, .footer-social { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.contact-preview__social a, .footer-social a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(245, 239, 226, 0.25); }

/* Contact page map (Google Maps embed) */
.contact-map { overflow: hidden; }
.contact-map__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: 1.25rem 1.5rem; }
.contact-map__frame { display: block; width: 100%; height: 380px; border: 0; }
.contact-map__frame--preview { height: 200px; border-radius: .5rem; }
@media (max-width: 575.98px) { .contact-map__frame { height: 280px; } }

/* A payment option that isn't offered yet ("Çok yakında") */
.choice-card.is-disabled { cursor: not-allowed; opacity: .6; background: var(--winnie-cream, #faf7f0); }
.choice-card.is-disabled:hover { border-color: inherit; }
.choice-card.is-disabled .choice-card__title { display: flex; align-items: center; gap: .35rem; }

/* Spam guard: the honeypot field is off-screen (not display:none, which some bots skip) */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.newsletter-form { flex-wrap: wrap; }
.newsletter-form .cf-turnstile { flex-basis: 100%; margin: .25rem 0 0 !important; }

/* Genel Bakış: 3×3 headline numbers next to the recent orders, stretched to the same height. */
.desk-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 0.75rem; height: 100%; }
.desk-kpi {
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.2rem; min-width: 0; padding: 0.75rem 0.9rem;
  border: 1px solid var(--winnie-border); border-radius: 12px;
  background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.desk-kpi:hover { border-color: var(--winnie-sand); box-shadow: 0 4px 14px rgba(43, 33, 24, .06); color: inherit; }
.desk-kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.desk-kpi__label { font-size: 0.8rem; font-weight: 600; color: var(--winnie-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-kpi__icon { flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; background: var(--winnie-sand-light); color: var(--winnie-amber-dark); }
.desk-kpi__icon .icon { width: 15px; height: 15px; }
.desk-kpi__value { font-family: var(--font-heading); font-size: clamp(1.05rem, 1.3vw, 1.35rem); font-weight: 700; color: var(--winnie-ink); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-kpi__hint { font-size: 0.72rem; color: var(--winnie-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-kpi--ink .desk-kpi__icon { background: var(--winnie-ink); color: #fff; }
.desk-kpi--alert .desk-kpi__icon { background: #fbe4e1; color: var(--winnie-danger); }
.desk-kpi--alert .desk-kpi__value { color: var(--winnie-danger); }
@media (max-width: 575.98px) { .desk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Page-head search box */
.head-search { position: relative; }
.head-search .icon { position: absolute; left: 0.65rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--winnie-ink-muted); pointer-events: none; }
.head-search .form-control { padding-left: 2rem; width: 230px; border-radius: 999px; }
@media (max-width: 575.98px) { .head-search .form-control { width: 100%; } }
.category-intro { max-width: 680px; }
.category-intro > :last-child { margin-bottom: 0; }

/* List + side form pages: the form card turns amber while editing; the edited row is highlighted. */
.split-form--editing { border-color: var(--winnie-amber); box-shadow: 0 0 0 3px rgba(193, 125, 17, .12); }
.table-winnie tr.is-editing > td { background: #fbf3e2; }
.banner-thumb { flex: none; width: 112px; height: 64px; border-radius: 8px; background: var(--winnie-sand-light) center / cover no-repeat; }

/* Account → Yorumlarım and the review box on the order page. */
.my-review__image { flex: none; width: 72px; height: 72px; border-radius: 10px; background: var(--winnie-sand-light) center / cover no-repeat; }
.order-review__rating { max-width: 260px; }

/* Bant Yönetimi: Duyuru / Avantaj switcher above the list + form. */
.band-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; max-width: 760px; }
.band-switch__item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; border: 1px solid var(--winnie-border);
  border-radius: 12px; background: #fff; color: var(--winnie-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.band-switch__item .icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--winnie-ink-muted); }
.band-switch__item span { display: flex; flex-direction: column; min-width: 0; }
.band-switch__item small { font-size: 0.75rem; color: var(--winnie-ink-muted); }
.band-switch__item:hover { border-color: var(--winnie-sand); color: var(--winnie-ink); }
.band-switch__item.active { border-color: var(--winnie-amber); box-shadow: 0 0 0 3px rgba(193, 125, 17, .12); }
.band-switch__item.active .icon { color: var(--winnie-amber); }
@media (max-width: 575.98px) { .band-switch { grid-template-columns: 1fr; } }

/* Sistem Sağlığı (ported from gargantua): one light for the whole system, a card per service. */
.sys-hero, .sys-card { --state: #7fa86a; --state-ink: #3f6b2f; --state-tint: #e7f0df; }
.sys-hero.warning, .sys-card.warning { --state: #e2b65e; --state-ink: var(--winnie-amber-dark); --state-tint: #fbf0d9; }
.sys-hero.down, .sys-card.down { --state: #e5765a; --state-ink: var(--winnie-danger); --state-tint: #fbe4e1; }
.sys-card.off { --state: #b9b1a0; --state-ink: var(--winnie-ink-muted); --state-tint: var(--winnie-sand-light); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.sys-hero {
  position: relative; overflow: hidden; margin-bottom: 1.25rem; padding: 1.5rem 1.6rem 1.4rem; border-radius: 14px; color: #ede7d8;
  background:
    radial-gradient(520px 220px at 12% 0%, color-mix(in srgb, var(--state) 22%, transparent), transparent 70%),
    radial-gradient(420px 260px at 100% 100%, rgba(193, 125, 17, .18), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 28px),
    var(--winnie-ink);
}
.sys-hero-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sys-hero-status { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.sys-hero-eyebrow { color: rgba(237, 231, 216, .55); font-size: .72rem; }
.sys-hero-title { margin: .25rem 0 0; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; line-height: 1.2; color: #fff; }
.sys-beacon { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--state); box-shadow: 0 0 0 4px color-mix(in srgb, var(--state) 25%, transparent), 0 0 22px var(--state); }
.sys-beacon span, .sys-beacon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--state); animation: sys-ring 2.4s ease-out infinite; }
.sys-beacon span { animation-delay: 1.2s; }
@keyframes sys-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.sys-pulse { display: block; width: 100%; height: 54px; margin: .9rem 0 .4rem; overflow: visible; }
.sys-pulse path { fill: none; stroke: var(--state); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px var(--state)); stroke-dasharray: 640 640; animation: sys-trace 3.2s linear infinite; }
.sys-hero.down .sys-pulse path { stroke-dasharray: none; animation: sys-blink 1.2s steps(2, jump-none) infinite; }
@keyframes sys-trace { from { stroke-dashoffset: 640; } to { stroke-dashoffset: -640; } }
@keyframes sys-blink { 50% { opacity: .35; } }
.sys-hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(237, 231, 216, .12); }
.sys-hero-stats > div { padding: .9rem 1.1rem 0; border-left: 1px solid rgba(237, 231, 216, .12); min-width: 0; }
.sys-hero-stats > div:first-child { padding-left: 0; border-left: none; }
.sys-hero-label { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(237, 231, 216, .5); }
.sys-hero-value { margin-top: .35rem; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-hero-value.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.2rem; }
.sys-hero-value small { margin-left: 3px; font-family: var(--bs-body-font-family); font-size: .8rem; font-weight: 500; color: rgba(237, 231, 216, .6); }
.sys-hero-sub { margin-top: .25rem; font-size: .72rem; color: rgba(237, 231, 216, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sys-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.sys-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--winnie-border); background: #fff; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.sys-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--state); }
.sys-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(43, 33, 24, .07); }
.sys-card-head { display: flex; align-items: center; gap: .7rem; }
.sys-card-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--state-tint); color: var(--state-ink); }
.sys-card-icon .icon { width: 18px; height: 18px; }
.sys-card-name { flex: 1; min-width: 0; }
.sys-card-title { font-family: var(--font-heading); font-size: .95rem; font-weight: 600; color: var(--winnie-ink); }
.sys-card-sub { font-size: .72rem; color: var(--winnie-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-light { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--state); box-shadow: 0 0 0 3px color-mix(in srgb, var(--state) 22%, transparent); }
.sys-card.ok .sys-light { animation: sys-glow 2.6s ease-in-out infinite; }
.sys-card.down .sys-light { animation: sys-blink 1s steps(2, jump-none) infinite; }
@keyframes sys-glow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--state) 10%, transparent); } }
.sys-card-state { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .9rem 0 .6rem; font-size: .82rem; font-weight: 600; color: var(--state-ink); }
.sys-latency { display: inline-flex; align-items: flex-end; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem; font-weight: 500; color: var(--winnie-ink-muted); }
.sys-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sys-signal i { width: 3px; border-radius: 1px; background: var(--winnie-border); }
.sys-signal i:nth-child(1) { height: 4px; } .sys-signal i:nth-child(2) { height: 7px; } .sys-signal i:nth-child(3) { height: 10px; } .sys-signal i:nth-child(4) { height: 12px; }
.sys-signal i.on { background: var(--state-ink); }
.sys-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .9rem; margin: 0; padding-top: .75rem; border-top: 1px dashed var(--winnie-border); }
.sys-facts > div { min-width: 0; }
.sys-facts .wide { grid-column: 1 / -1; }
.sys-facts dt { font-size: .65rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--winnie-ink-muted); }
.sys-facts dd { margin: .2rem 0 0; font-size: .82rem; color: var(--winnie-ink); overflow-wrap: anywhere; }
.sys-facts .mono dd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; }
.sys-facts .bad dd { color: var(--winnie-danger); font-weight: 600; }
.sys-meter { height: 8px; margin-top: .45rem; border-radius: 99px; background: var(--winnie-sand-light); border: 1px solid var(--winnie-border); overflow: hidden; }
.sys-meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--state-ink), var(--state)); }
.sys-meter-caption { margin-top: .35rem; font-size: .72rem; color: var(--winnie-ink-muted); }

.sys-data { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 1.25rem; border: 1px solid var(--winnie-border); border-radius: 12px; background: #fff; overflow: hidden; }
.sys-data-item { padding: .9rem 1rem; border-left: 1px solid var(--winnie-border); min-width: 0; }
.sys-data-item:first-child { border-left: none; }
.sys-data-label { font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--winnie-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-data-value { margin-top: .2rem; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--winnie-ink); }
.sys-deploy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.sys-deploy > .sys-facts { align-content: start; padding: 1.1rem 1.25rem; border-top: none; border-right: 1px solid var(--winnie-border); }
.sys-deploy td.mono { overflow-wrap: anywhere; }

@media (max-width: 1399.98px) { .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sys-data { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sys-data-item:nth-child(5) { border-left: none; } .sys-data-item:nth-child(n+5) { border-top: 1px solid var(--winnie-border); } }
@media (max-width: 767.98px) {
  .sys-hero { padding: 1.25rem 1rem 1.1rem; }
  .sys-hero-title { font-size: 1.3rem; }
  .sys-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-hero-stats > div:nth-child(3) { padding-left: 0; border-left: none; }
  .sys-hero-stats > div:nth-child(n+3) { padding-top: .9rem; }
  .sys-grid, .sys-deploy { grid-template-columns: minmax(0, 1fr); }
  .sys-deploy > .sys-facts { border-right: none; border-bottom: 1px solid var(--winnie-border); }
  .sys-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .sys-beacon span, .sys-beacon::after, .sys-pulse path, .sys-light { animation: none !important; }
  .sys-pulse path { stroke-dasharray: none; }
}

/* Raporlar: filters, headline tiles, server-rendered SVG charts. */
.report-filters { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .75rem 1rem; padding: .75rem 1rem; }
.report-filters__presets { display: flex; flex-wrap: wrap; gap: .35rem; }
.report-pill { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--winnie-border); font-size: .82rem; font-weight: 500; color: var(--winnie-ink); text-decoration: none; background: #fff; }
.report-pill:hover { border-color: var(--winnie-sand); color: var(--winnie-ink); }
.report-pill.active { background: var(--winnie-ink); border-color: var(--winnie-ink); color: #fff; }
.report-filters__pickers { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.report-picker { display: flex; align-items: center; gap: .35rem; }
.report-picker .form-control, .report-picker .form-select { border-radius: 999px; }
.report-picker input[type="month"] { width: 10.5rem; }
.report-picker select { width: 7.5rem; }
.report-picker--range input { width: 9.5rem; }
.report-range { font-size: .9rem; }

.report-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .75rem; height: 100%; }
.report-tile { display: flex; flex-direction: column; justify-content: space-between; gap: .15rem; min-width: 0; padding: .85rem 1rem; border: 1px solid var(--winnie-border); border-radius: 12px; background: #fff; }
.report-tile__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.report-tile__label { font-size: .8rem; font-weight: 600; color: var(--winnie-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-tile__icon { flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; background: var(--winnie-sand-light); color: var(--winnie-amber-dark); }
.report-tile__icon .icon { width: 15px; height: 15px; }
.report-tile__value { font-family: var(--font-heading); font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 700; color: var(--winnie-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-tile__foot { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--winnie-ink-muted); white-space: nowrap; overflow: hidden; }
.report-tile__foot > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.delta { flex: none; padding: .05rem .4rem; border-radius: 999px; font-weight: 600; }
.delta--up { background: #e7f0df; color: #3f6b2f; }
.delta--down { background: #fbe4e1; color: var(--winnie-danger); }
.delta--flat { background: var(--winnie-sand-light); color: var(--winnie-ink-muted); }
@media (max-width: 1199.98px) { .report-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .report-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.report-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--winnie-sand-light); }
.report-tabs button { border: 0; background: none; padding: .3rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--winnie-ink-muted); }
.report-tabs button.active { background: #fff; color: var(--winnie-ink); box-shadow: 0 1px 3px rgba(43, 33, 24, .12); }
.report-bucket-table { max-height: 360px; overflow: auto; }

.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--winnie-border); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-base { stroke: #cfc6b4; stroke-dasharray: none; }
.chart-y, .chart-x { font-size: 11px; fill: var(--winnie-ink-muted); font-family: var(--bs-body-font-family); }
.chart-hit { fill: transparent; }
.chart-bar { fill: var(--winnie-amber); transition: fill .12s; }
.chart-col.is-hover .chart-hit { fill: rgba(193, 125, 17, .07); }
.chart-col.is-hover .chart-bar { fill: var(--winnie-amber-dark); }
.chart-tip { position: fixed; z-index: 1080; pointer-events: none; padding: .45rem .65rem; border-radius: 8px; background: var(--winnie-ink); color: #fff; box-shadow: 0 6px 18px rgba(43, 33, 24, .25); font-size: .78rem; }
.chart-tip__title { color: rgba(255, 255, 255, .65); font-size: .7rem; }
.chart-tip__value { font-weight: 600; }

.report-bar { height: 8px; border-radius: 99px; background: var(--winnie-sand-light); overflow: hidden; }
.report-bar span { display: block; height: 100%; border-radius: 99px; background: var(--winnie-amber); }
.report-products__bar-col { width: 32%; min-width: 150px; }
.report-hbar + .report-hbar { margin-top: .85rem; }
.report-split { display: flex; gap: 2px; height: 12px; border-radius: 99px; overflow: hidden; background: var(--winnie-sand-light); }
.report-split span { display: block; height: 100%; }
.report-split__a, .report-swatch--a { background: var(--winnie-amber); }
.report-split__b, .report-swatch--b { background: var(--winnie-ink); }
.report-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: 0; }

/* Maintenance mode: the visitors' page, and the reminders staff see while it is on. */
.maintenance { padding-block: clamp(3rem, 8vw, 6rem); }
.maintenance__icon { display: inline-grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--winnie-sand-light); color: var(--winnie-amber); }
.maintenance__icon .icon { width: 2.2rem; height: 2.2rem; }
.maintenance-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem .6rem; padding: .5rem 1rem; background: var(--winnie-danger); color: #fff; font-size: .85rem; text-align: center; }
.maintenance-strip code { color: #fff; background: rgba(0, 0, 0, .2); padding: .05rem .35rem; border-radius: 4px; }
.maintenance-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; background: var(--winnie-danger); color: #fff; font-size: .8rem; font-weight: 600; text-decoration: none; }
.maintenance-badge:hover { color: #fff; filter: brightness(1.1); }
.maintenance-badge .icon { width: 14px; height: 14px; }
