:root {
  --bg: #efe7da;
  --bg-elevated: rgba(255, 251, 246, 0.86);
  --bg-alt: #e5d6c3;
  --surface: rgba(255, 251, 246, 0.92);
  --surface-strong: #fffdf9;
  --border-subtle: rgba(120, 100, 78, 0.12);
  --border-strong: rgba(46, 58, 51, 0.14);
  --text: #223127;
  --text-muted: #6f756f;
  --accent: #184d3b;
  --accent-soft: rgba(24, 77, 59, 0.09);
  --accent-strong: #0e3427;
  --accent-contrast: #f8f1e7;
  --danger: #c24133;
  --danger-soft: rgba(194, 65, 51, 0.11);
  --shadow-soft: 0 24px 70px rgba(77, 58, 39, 0.14);
  --shadow-card: 0 20px 50px rgba(67, 48, 28, 0.12);
  --radius-lg: 24px;
  --radius-full: 999px;
  --nav-height: 64px;
  --transition-fast: 160ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 28%),
    radial-gradient(circle at top right, rgba(214, 193, 165, 0.42), transparent 24%),
    linear-gradient(180deg, #f7f2ea 0%, #efe5d6 42%, #eadfce 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 70%);
  opacity: 0.3;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
.brand-title,
.hero-heading,
.products-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.01em;
}



.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(250, 245, 237, 0.95), rgba(244, 236, 224, 0.9));
  border-bottom: 1px solid rgba(120, 100, 78, 0.16);
  box-shadow: 0 10px 30px rgba(96, 77, 56, 0.06);
}

/* Transparent header overlaying the hero */
.site-header--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  gap: 8px;
  position: relative;
  padding-block: 18px 10px;
}

.header-inner .cart-icon {
  /* cart is now inline inside nav */
}

/* Header brand logo (centered above nav) */
.header-brand {
  display: block;
  text-decoration: none;
}
.header-brand-img {
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Non-home pages: dark logo + dark nav */
.site-header:not(.site-header--transparent) .header-brand-img {
  filter: none;
}

.site-header:not(.site-header--transparent) .nav-link {
  color: var(--accent-strong) !important;
}

.site-header:not(.site-header--transparent) .nav-link:hover {
  background: rgba(24, 77, 59, 0.08);
}

.site-header:not(.site-header--transparent) .nav-link.is-active {
  background: rgba(24, 77, 59, 0.12);
}

.site-header:not(.site-header--transparent) .cart-icon {
  color: var(--accent-strong) !important;
}

/* Minimal header – cart only (non-home pages) */
.site-header-minimal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.home-link-minimal {
  display: inline-block;
}

.logo-minimal {
  width: 100px;
  height: auto;
}

.cart-icon-fixed {
  color: var(--accent-strong);
}

.header-top {
  justify-content: space-between;
  padding-block: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
}

.main-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.main-nav .nav-link.is-active {
  background: rgba(255, 255, 255, 0.18);
}

.nav-link-dropdown {
  cursor: pointer;
}

.nav-link-dropdown::after {
  content: "▾";
  margin-left: 5px;
  font-size: 0.65rem;
}

.nav-group {
  position: relative;
}

.nav-group::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 251, 246, 0.97);
  border: 1px solid rgba(120, 100, 78, 0.12);
  box-shadow: var(--shadow-card);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 30;
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown a:hover {
  background: rgba(24, 77, 59, 0.06);
  color: var(--accent-strong);
}

@media (hover: hover) {
  .nav-group:hover > .nav-dropdown {
    display: flex !important;
  }
}

.nav-dropdown.is-open {
  display: flex;
}

/* Cart icon */
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.cart-icon:hover {
  opacity: 0.7;
}

.cart-icon.is-cart-pop {
  animation: cartIconPop 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: -4px;
  background: #4dd9ac;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(250, 245, 237, 0.95);
}

.cart-badge.is-badge-bump {
  animation: cartBadgeBump 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cartIconPop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cartBadgeBump {
  0% {
    transform: scale(0.72);
    box-shadow: 0 0 0 0 rgba(77, 217, 172, 0.4);
  }
  55% {
    transform: scale(1.18);
    box-shadow: 0 0 0 10px rgba(77, 217, 172, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(77, 217, 172, 0);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 44px;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-admin-link {
  font-weight: 400;
  opacity: 0.4;
  font-size: 0.72rem;
}

.main-nav[data-open="true"] {
  display: flex;
}

.site-main {
  padding: 0 0 56px;
}

.site-footer {
  border-top: 1px solid rgba(120, 100, 78, 0.14);
  background: linear-gradient(180deg, rgba(243, 235, 223, 0.9), rgba(238, 229, 214, 0.98));
  padding: 28px 0 34px;
  margin-top: 18px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-brand {
  margin: 0;
  font-weight: 700;
  color: var(--accent-strong);
}

.footer-note {
  margin: 4px 0 0;
  max-width: 480px;
  white-space: pre-wrap;
}

.footer-meta {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
}

.footer-links {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-link {
  color: var(--accent-strong, #173d31);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.footer-link:hover,
.footer-link:focus {
  border-bottom-color: var(--accent-strong, #173d31);
  opacity: 0.85;
}

/* ========== HERO FULL-WIDTH ========== */
.hero-fullwidth {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #173d31;
  overflow: hidden;
  isolation: isolate;
}

.hero-fullwidth::after {
  content: "";
  position: absolute;
  inset: auto -10% -140px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 207, 0.34), transparent 65%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(16, 48, 37, 0.86) 0%,
    rgba(20, 62, 48, 0.72) 48%,
    rgba(25, 70, 55, 0.24) 100%
  );
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Centered logo inside hero */
.hero-logo-center {
  margin-bottom: 2.5rem;
  display: none;
}
.hero-logo-center .brand {
  display: block;
  text-decoration: none;
}
.hero-logo-img {
  width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: 100%;
  padding: 0;
  margin-top: 60px;
  margin-left: 72px;
  color: #fff;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

@media (max-width: 767px) {
  .hero-content {
    margin-top: 56px;
    margin-left: 16px;
    padding-right: 16px;
  }
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 243, 228, 0.78);
  margin: 0 0 0.7rem;
}

.hero-heading {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.9rem;
  color: #fff;
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 247, 237, 0.86);
  margin: 0 0 1.2rem;
  max-width: 680px;
  white-space: pre-wrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-button {
  min-width: 180px;
}

.btn-hero {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 247, 237, 0.88);
  font-size: 0.76rem;
}

.intro-band {
  margin-top: 26px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.intro-card,
.intro-stat-card,
.info-block,
.about-story-card,
.order-aside-card,
.order-hero-card,
.cta-band {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.95), rgba(248, 241, 232, 0.88));
  border: 1px solid rgba(120, 100, 78, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.intro-card,
.intro-stat-card {
  padding: 22px;
}

.intro-card-kicker,
.section-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
}

.intro-card h2,
.info-block h2,
.order-hero-copy h1,
.order-hero-card h2,
.about-hero h1,
.about-story-card h2,
.cta-band h2,
.success-panel h1,
.section-header h1,
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin: 0 0 10px;
  color: var(--accent-strong);
}

.intro-card p,
.intro-stat-card p,
.info-block p,
.order-hero-copy p,
.order-hero-card p,
.about-hero p,
.about-story-card p,
.cta-band p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.intro-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.intro-stat-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.3rem;
  color: var(--accent-strong);
}

.current-filter {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.current-filter a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 8px;
}

/* ========== PRODUCTS SECTION ========== */
.products-section {
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}
.products-header {
  text-align: center;
  margin-bottom: 2.7rem;
}
.products-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--accent-strong);
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
}
.products-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin: 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 500px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 233, 0.92));
  border-radius: 24px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
  border: 1px solid rgba(120, 100, 78, 0.12);
  box-shadow: 0 16px 45px rgba(74, 54, 30, 0.1);
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 20px 52px rgba(74, 54, 30, 0.14);
  transform: translateY(-4px);
}
.product-card-image {
  overflow: hidden;
  aspect-ratio: 0.85;
  position: relative;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
}
.product-card-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
}
.product-card-body {
  padding: 1.1rem 1.1rem 1.3rem;
}
.product-card-category {
  font-size: 0.73rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.45rem;
}
.product-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--accent-strong);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.product-card-price {
  margin: 0;
  font-size: 0.9rem;
}
.price-eur {
  font-weight: 600;
  color: var(--accent-strong);
}
.price-bgn {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-left: 4px;
}
.product-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ========== INFO SECTION ========== */
.info-section {
  background: transparent;
  padding: 0;
  width: auto;
  margin-left: 0;
}
.info-block h2 {
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: rgba(14, 52, 39, 0.72);
  color: var(--accent-contrast);
  box-shadow: 0 16px 34px rgba(24, 77, 59, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(24, 77, 59, 0.3);
}

.btn-secondary {
  background: rgba(255, 250, 244, 0.85);
  border-color: rgba(120, 100, 78, 0.14);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(120, 100, 78, 0.14);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--text);
}

.btn-danger {
  border-color: rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

.btn-xs {
  padding: 6px 10px;
  font-size: 0.75rem;
}

.section {
  margin-top: 24px;
  padding: 22px 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(247, 240, 230, 0.9));
  border: 1px solid rgba(120, 100, 78, 0.12);
  box-shadow: var(--shadow-soft);
}

.section-alt {
  background: linear-gradient(135deg, #f7f1e6, #efe3d1);
  border-color: rgba(209, 213, 219, 0.9);
}

.section-narrow {
  max-width: 520px;
  margin-inline: auto;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 8px;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.filters {
  margin-bottom: 12px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.grid-examples img,
.grid-examples-admin img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.card,
.card-example {
  border-radius: 18px;
  background: linear-gradient(145deg, #fdfbf8, #f2ebe1);
  border: 1px solid rgba(229, 231, 235, 0.9);
  padding: 12px;
}

.card-image {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  margin-bottom: 8px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.card-title {
  font-size: 0.96rem;
  margin: 0;
}

.card-text {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.info-block {
  padding: 24px;
}

.steps,
.bullets {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.steps li + li,
.bullets li + li {
  margin-top: 4px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-panel {
  margin-top: 0;
}

.form-section-heading h2 {
  margin: 0 0 6px;
  font-size: 1.8rem;
}

.form-section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
}

.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #145a41;
  cursor: pointer;
}

.shipping-group .form-group-label {
  font-weight: 700;
  color: var(--accent-strong);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.shipping-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.shipping-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(120, 100, 78, 0.22);
  border-radius: 8px;
  background: rgba(248, 244, 236, 0.6);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--accent-strong);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.shipping-option:hover {
  border-color: rgba(20, 90, 65, 0.5);
}
.shipping-option input[type="radio"] {
  accent-color: #145a41;
  cursor: pointer;
}
.shipping-option:has(input[type="radio"]:checked) {
  border-color: #145a41;
  background: rgba(20, 90, 65, 0.08);
  box-shadow: 0 0 0 1px rgba(20, 90, 65, 0.25) inset;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}

.form-group label {
  font-weight: 700;
  color: var(--accent-strong);
}

.form-group input,
.form-group textarea,
.form-group select {
  border-radius: 16px;
  border: 1px solid rgba(120, 100, 78, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 13px 14px;
  font-size: 0.94rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.form-group select,
.size-select-group select,
.inline-form select {
  color-scheme: light;
}

.form-group select option,
.size-select-group select option,
.inline-form select option {
  color: var(--accent-strong);
  background: #fffdf9;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select-trigger {
  position: relative;
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(90, 77, 58, 0.18);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(245, 237, 225, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 14px 32px rgba(98, 76, 45, 0.1);
  color: var(--accent-strong);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 14px 54px 14px 16px;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.custom-select-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%23184d3b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--transition-fast);
}

.custom-select.is-open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-trigger:hover {
  border-color: rgba(24, 77, 59, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 18px 36px rgba(67, 48, 28, 0.14);
}

.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  outline: none;
  border-color: rgba(24, 77, 59, 0.34);
  box-shadow: 0 0 0 4px rgba(24, 77, 59, 0.1), 0 16px 36px rgba(67, 48, 28, 0.12);
}

.custom-select-trigger.is-placeholder {
  color: rgba(34, 49, 39, 0.68);
  font-weight: 500;
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid rgba(90, 77, 58, 0.14);
  background: rgba(255, 251, 246, 0.98);
  box-shadow: 0 24px 52px rgba(67, 48, 28, 0.16);
  backdrop-filter: blur(18px);
}

.custom-select.is-open .custom-select-menu {
  display: grid;
  gap: 4px;
}

.custom-select-option {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.98rem;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  outline: none;
  background: rgba(24, 77, 59, 0.08);
}

.custom-select-option.is-selected {
  background: var(--accent);
  color: var(--accent-contrast);
}

.custom-select-option.is-placeholder,
.custom-select-option:disabled {
  color: var(--text-muted);
}

.custom-select-option:disabled {
  cursor: not-allowed;
}

.custom-select.is-invalid .custom-select-trigger {
  border-color: rgba(194, 65, 51, 0.46);
  box-shadow: 0 0 0 4px rgba(194, 65, 51, 0.12);
}

.custom-select.is-disabled .custom-select-trigger {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(24, 77, 59, 0.34);
  box-shadow: 0 0 0 4px rgba(24, 77, 59, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.form-group input:disabled,
.form-group select:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  background: rgba(236, 231, 223, 0.82);
}

.label-note {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-weight: 400;
}

.field-help {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.current-image img {
  margin-top: 6px;
  max-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.alert {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.alert-error {
  background: var(--danger-soft);
  border: 1px solid rgba(194, 65, 51, 0.34);
  color: #7d2219;
}

.auth-card,
.success-panel,
.error-panel {
  border-radius: 28px;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(248, 241, 231, 0.92));
  border: 1px solid rgba(120, 100, 78, 0.12);
  box-shadow: var(--shadow-card);
}

.auth-card h1,
.success-panel h1,
.error-panel h1 {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.order-number {
  margin-top: 10px;
  font-weight: 700;
  color: var(--accent-strong);
}

.success-actions,
.error-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.metric-card {
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 1px solid #a5d6a7;
  color: var(--text);
}

.metric-card-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card-link * {
  text-decoration: none;
}

.metric-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #2e7d32;
}

.metric-label {
  margin: 0;
  font-size: 0.8rem;
  color: #2e7d32;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.metric-value {
  margin: 4px 0 2px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f4330;
}

.metric-link {
  font-size: 0.8rem;
  color: #145a41;
  text-decoration: none;
  font-weight: 500;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #145a41;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  transition: background 0.15s ease;
}

.btn-back:hover {
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.link-muted {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}

.table-wrapper {
  margin-top: 4px;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.table th,
.table td {
  padding: 6px 6px;
  border-bottom: 1px solid rgba(30, 64, 175, 0.45);
  text-align: left;
}

.table th {
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.table-actions {
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  padding: 2px 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.status-new {
  border-color: rgba(21, 128, 61, 0.9);
  background: rgba(21, 128, 61, 0.14);
  color: #14532d;
}

.status-in_progress {
  border-color: rgba(202, 138, 4, 0.9);
  background: rgba(202, 138, 4, 0.16);
  color: #78350f;
}

.status-completed {
  border-color: rgba(22, 163, 74, 0.9);
  background: rgba(22, 163, 74, 0.18);
  color: #064e3b;
}

.status-cancelled {
  border-color: rgba(220, 38, 38, 0.9);
  background: rgba(220, 38, 38, 0.16);
  color: #7f1d1d;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.description-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  font-size: 0.86rem;
}

.description-list dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.description-list dd {
  margin: 0;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.8rem;
}

.inline-form label {
  font-weight: 500;
}

.inline-form select {
  border-radius: 999px;
  color: var(--accent-strong);
  min-width: 170px;
  font-size: 0.8rem;
}

.inline-form .custom-select {
  min-width: 170px;
}

.inline-form .custom-select-trigger {
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 38px 8px 14px;
  font-size: 0.8rem;
}

.preformatted {
  white-space: pre-wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
}

.file-path code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(30, 64, 175, 0.6);
  font-size: 0.7rem;
  color: #c4d4ff;
}

.error-panel p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.order-hero,
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.order-hero {
  margin-bottom: 18px;
}

.order-hero-card,
.order-aside-card {
  padding: 24px;
}

.order-layout,
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.order-highlights {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.order-highlights li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(24, 77, 59, 0.06);
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.compact-list {
  margin-top: 12px;
}

.form-group-upload input[type="file"] {
  padding: 18px 14px;
  background: rgba(255, 252, 247, 0.9);
}

.about-hero,
.cta-band {
  margin-top: 24px;
  padding: 28px;
}

.about-content {
  white-space: pre-wrap;
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 1rem;
}

.prose-content .about-content {
  margin-top: 8px;
}

/* Single-page about layout */
.about-page {
  margin-top: 24px;
  padding: 36px 40px;
  background: rgba(255, 251, 245, 0.9);
  border: 1px solid rgba(120, 100, 78, 0.15);
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(36, 26, 12, 0.08);
}
.about-page .section-kicker {
  margin-bottom: 6px;
}
.about-page-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--text);
}
.about-page .about-content {
  margin: 0;
}
.about-images {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 22px 0;
}
.about-images img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 10px 22px rgba(36, 26, 12, 0.10);
}
.about-images-top {
  margin-top: 0;
  margin-bottom: 28px;
}
.about-images-bottom {
  margin-top: 28px;
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .about-page {
    padding: 24px 20px;
  }
  .about-page-title {
    font-size: 1.7rem;
  }
}

.cta-band {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.cta-band h2 {
  margin-bottom: 0;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

body.js-enhanced .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js-enhanced .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .hero-fullwidth {
    min-height: 100vh;
  }
  .hero-content {
    padding: 2.4rem 2rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 26px 24px;
  }

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

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

  .intro-grid,
  .order-hero,
  .order-layout,
  .about-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-card {
    grid-column: span 2;
  }

  .dashboard-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }

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

@media (min-width: 768px) {
  .header-inner {
    gap: 10px;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .main-nav .nav-link {
    font-size: 0.82rem;
  }

  .site-main {
    padding-top: 0;
    padding-bottom: 60px;
  }

  .section-header-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

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

  .cta-band {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

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

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero-fullwidth {
    min-height: 100vh;
  }
  .hero-content {
    padding: 3rem 2.6rem;
  }
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .order-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .about-story {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .section {
    margin-top: 28px;
  }
}

/* Inline add form (groups/classes) */
.inline-add-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 0;
}

.inline-add-form input[type="text"] {
  flex: 1;
  min-width: 200px;
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.checkbox-group-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: #145a41;
}

/* Tag pill */
.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 10px;
  background: #e8f5e9;
  color: #2e7d32;
  margin: 1px 2px;
}

/* Jobs */
.jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  padding: 20px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.job-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--text);
}

.job-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.job-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.job-badge-on {
  background: #e8f5e9;
  color: #2e7d32;
}

.job-badge-off {
  background: #fce4ec;
  color: #c62828;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #f9f9f6;
  border-radius: 8px;
}

.job-meta-item {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.82rem;
}

.job-meta-label {
  color: #888;
}

.job-meta-value {
  color: var(--text);
  font-weight: 500;
}

.job-result-ok {
  color: #2e7d32;
}

.job-result-err {
  color: #c62828;
}

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

.job-action-form {
  display: inline-flex;
  align-items: center;
}

.job-interval-form {
  gap: 6px;
}

.job-interval-input {
  width: 60px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.82rem;
  text-align: center;
}

.job-interval-suffix {
  font-size: 0.8rem;
  color: #888;
}

.job-history {
  margin-top: 14px;
  border-top: 1px solid #e8e5dc;
  padding-top: 10px;
}

.job-history summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: #145a41;
  font-weight: 500;
}

.job-runs-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-run-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fafaf7;
}

.job-run-status {
  font-weight: 700;
  font-size: 0.85rem;
}

.job-run-msg {
  flex: 1;
  color: #444;
}

.job-run-time {
  color: #999;
  white-space: nowrap;
}

.job-run-duration {
  color: #aaa;
  font-size: 0.72rem;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.alert-info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

/* ─── Product Detail ─── */
.product-detail {
  padding: 3rem 0;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-gallery {
  position: relative;
}
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 0.85;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f0e8;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(120, 100, 78, 0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  color: var(--accent-strong);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 2;
}
.gallery-arrow:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.gallery-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}
.gallery-thumb:hover {
  opacity: 1;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info Panel */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.product-info-category {
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0;
}
.product-info-crumb {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}
.product-info-crumb:hover,
.product-info-crumb:focus {
  border-bottom-color: currentColor;
  opacity: 0.85;
}
.product-info-crumb-sep {
  margin: 0 4px;
  opacity: 0.7;
}
.product-info-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin: 0;
  line-height: 1.2;
}
.product-info-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}
.price-eur-lg {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-strong);
}
.price-bgn-lg {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.product-info-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}
.product-info-desc p {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}
.product-info-color {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.product-info-color strong {
  color: var(--accent-strong);
}

/* Add to Cart */
.product-add-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.size-select-group {
  width: 100%;
  margin-bottom: 0.3rem;
}
.size-select-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.size-select-group select {
  width: 100%;
  border-radius: 18px;
  font-size: 1rem;
  color: var(--text);
}

.size-select-group .custom-select-trigger {
  min-height: 58px;
  font-size: 1.02rem;
}
.cart-item-size {
  display: block;
  font-size: 0.8rem;
  color: var(--accent, #b08968);
  margin-top: 2px;
}

/* Cart added modal */
.cart-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: cartOverlayFadeIn 180ms ease-out;
}
.cart-modal {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform-origin: center;
  animation: cartModalRise 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-modal-title {
  font-family: var(--ff-heading, 'Cormorant Garamond', serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--accent-strong, #173d31);
}
.cart-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-modal-actions .btn {
  width: 100%;
  justify-content: center;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid rgba(120, 100, 78, 0.2);
  border-radius: 8px;
  overflow: hidden;
}
.qty-control button {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(248, 244, 236, 0.8);
  cursor: pointer;
  font-size: 1rem;
  color: var(--accent-strong);
  transition: background 0.15s;
}
.qty-control button:hover {
  background: rgba(248, 244, 236, 1);
}
.qty-control input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid rgba(120, 100, 78, 0.15);
  border-right: 1px solid rgba(120, 100, 78, 0.15);
  font-size: 0.9rem;
  padding: 6px 0;
  background: #fff;
}
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: var(--accent-strong);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: "Manrope", system-ui, sans-serif;
}

.btn-add-cart.is-adding {
  animation: addCartButtonPulse 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-add-cart:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

@keyframes cartOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes addCartButtonPulse {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-1px) scale(1.03);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ─── Cart Page ─── */
.cart-section {
  padding: 3rem 0;
  min-height: 50vh;
}
.cart-section h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 2rem;
}
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(120, 100, 78, 0.1);
  border-radius: 14px;
}
.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-strong);
}
.cart-item-title a {
  color: inherit;
  text-decoration: none;
  background: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cart-item-title a:hover,
.cart-item-title a:focus {
  color: var(--accent);
  border-bottom-color: currentColor;
}
.cart-item-unit-price {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.cart-qty-form {
  display: flex;
  align-items: center;
  gap: 0;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(120, 100, 78, 0.18);
  background: rgba(248, 244, 236, 0.9);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.qty-btn:first-child {
  border-radius: 6px 0 0 6px;
}
.qty-btn:last-child {
  border-radius: 0 6px 6px 0;
}
.qty-btn:hover {
  background: rgba(248, 244, 236, 1);
}
.cart-qty-form span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  border-top: 1px solid rgba(120, 100, 78, 0.18);
  border-bottom: 1px solid rgba(120, 100, 78, 0.18);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.cart-item-total {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-strong);
  white-space: nowrap;
}
.cart-remove-form button {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.cart-remove-form button:hover {
  background: rgba(192, 57, 43, 0.08);
}
.cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 2px solid rgba(120, 100, 78, 0.15);
}
.cart-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-strong);
}
.cart-total-bgn {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}
.cart-checkout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--accent-strong);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.cart-checkout-btn:hover {
  background: var(--accent);
}
.cart-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}
.cart-empty a {
  color: var(--accent-strong);
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 0.8rem;
  }
  .cart-item-image {
    width: 60px;
    height: 60px;
  }
  .cart-qty-form,
  .cart-item-total,
  .cart-remove-form {
    grid-column: 2;
  }
  .cart-summary {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ─── Admin Image Grid ─── */
.admin-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.admin-image-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(120, 100, 78, 0.12);
  background: #f5f0e8;
}
.admin-image-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.admin-image-controls {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
}
.admin-image-controls label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* ─── Mobile header ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  padding: 0 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.16s ease-out, opacity 0.16s ease-out;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    position: absolute;
    left: 16px;
    top: 18px;
  }
  .header-inner {
    flex-direction: column;
    align-items: center;
  }
  .header-brand-img {
    width: 140px;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 100px;
    left: 10px;
    right: 10px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(23, 61, 49, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    z-index: 30;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.88rem;
    width: 100%;
    text-align: left;
    color: #fff !important;
  }
  .nav-group {
    display: flex;
    flex-direction: column;
  }
  .nav-dropdown {
    position: static;
    margin-top: 4px;
    border: none;
    box-shadow: none;
    background: transparent;
    padding-left: 16px;
  }
  .nav-dropdown a {
    color: rgba(255, 255, 255, 0.8);
  }
  .nav-submenu {
    position: static;
    display: flex;
    margin: 2px 0 2px 16px;
    padding: 2px 0 2px 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav-submenu a {
    color: rgba(255, 255, 255, 0.75);
  }
  .nav-submenu-arrow { display: none; }
  .cart-icon {
    margin-left: 0;
  }
  .hero-logo-img {
    width: 150px;
  }
  .hero-content {
    padding: 1.5rem;
  }
}

/* ── Order Form ── */
.order-form-header {
  text-align: center;
  margin-bottom: 2rem;
}
.order-form-header h1 {
  font-family: var(--ff-heading, 'Cormorant Garamond', serif);
  margin: 0 0 0.5rem;
}
.order-form-header p {
  color: var(--text-muted, #777);
  margin: 0;
}

.order-cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  grid-template-areas:
    "image info controls"
    "image message message";
  align-items: center;
  gap: 12px 14px;
  padding: 12px 14px;
  background: rgba(248, 244, 236, 0.6);
  border: 1px solid rgba(120, 100, 78, 0.12);
  border-radius: 10px;
}
.order-cart-item-image {
  grid-area: image;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(120, 100, 78, 0.15);
  align-self: start;
}
.order-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.order-cart-item-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.order-cart-item-title {
  font-weight: 600;
  font-size: 0.92rem;
}
.order-cart-item-size {
  font-size: 0.8rem;
  color: var(--accent, #b08968);
}
.order-cart-item-price {
  font-size: 0.8rem;
  color: var(--text-muted, #777);
}
.order-cart-item-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-control-sm {
  display: flex;
  align-items: center;
  border: 1px solid rgba(120, 100, 78, 0.2);
  border-radius: 6px;
  overflow: hidden;
}
.qty-control-sm button {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(248, 244, 236, 0.8);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--accent-strong);
}
.qty-control-sm input {
  width: 36px;
  height: 28px;
  border: none;
  text-align: center;
  font-size: 0.85rem;
  -moz-appearance: textfield;
}
.qty-control-sm input::-webkit-inner-spin-button {
  display: none;
}
.order-cart-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #c0392b;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.order-cart-remove:hover {
  color: #e74c3c;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: var(--ff-body, 'Manrope', sans-serif);
  color: var(--text, #333);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  background: #fff;
}

.pagination-link:hover {
  border-color: var(--accent, #b08968);
  color: var(--accent, #b08968);
  background: #fdf8f4;
}

.pagination-current {
  background: var(--accent, #b08968);
  color: #fff;
  border-color: var(--accent, #b08968);
  font-weight: 600;
  cursor: default;
}

.pagination-prev,
.pagination-next {
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* Hide native number-input spinners on quantity fields so only our custom
   -/+ buttons are visible. Typing a value is still allowed. */
input[type="number"].no-spin,
.qty-control input[type="number"],
.order-qty-input {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"].no-spin::-webkit-outer-spin-button,
input[type="number"].no-spin::-webkit-inner-spin-button,
.qty-control input[type="number"]::-webkit-outer-spin-button,
.qty-control input[type="number"]::-webkit-inner-spin-button,
.order-qty-input::-webkit-outer-spin-button,
.order-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Card message (текст върху картичката) */
.card-message-group {
  width: 100%;
}
.card-message-group textarea {
  width: 100%;
  min-height: 140px;
  height: 140px;
  resize: none;
  border-radius: 16px;
  border: 1px solid rgba(90, 77, 58, 0.18);
  background: rgba(255, 251, 246, 0.96);
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.card-message-group textarea:focus {
  outline: none;
  border-color: rgba(24, 77, 59, 0.34);
  box-shadow: 0 0 0 4px rgba(24, 77, 59, 0.10);
  background: #fffdf9;
}
.cart-item-message {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: pre-wrap;
}
.cart-item-message strong {
  color: var(--accent-strong);
  font-weight: 600;
}
.order-cart-item-message {
  grid-area: message;
  margin-top: 4px;
  width: 100%;
}
.order-cart-item-message label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 4px;
}
.order-cart-item-message textarea {
  width: 100%;
  min-height: 110px;
  height: 110px;
  resize: none;
  border-radius: 14px;
  border: 1px solid rgba(90, 77, 58, 0.18);
  background: rgba(255, 251, 246, 0.96);
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.5;
}
.order-cart-item-message textarea:focus {
  outline: none;
  border-color: rgba(24, 77, 59, 0.34);
  box-shadow: 0 0 0 4px rgba(24, 77, 59, 0.10);
  background: #fffdf9;
}
@media (max-width: 540px) {
  .order-cart-item {
    grid-template-columns: 84px 1fr;
    grid-template-areas:
      "image info"
      "image controls"
      "message message";
  }
  .order-cart-item-image {
    width: 84px;
    height: 84px;
  }
  .order-cart-item-controls {
    justify-content: flex-start;
  }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  background: linear-gradient(180deg, rgba(20, 62, 48, 0.98), rgba(14, 52, 39, 0.98));
  color: #f8f1e7;
  border: 1px solid rgba(255, 247, 237, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 30, 22, 0.35);
  padding: 18px 22px;
  backdrop-filter: blur(10px);
  animation: cookieBannerIn 260ms ease-out;
}
.cookie-banner[hidden] { display: none; }

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

.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 247, 237, 0.92);
}

.cookie-banner-link {
  background: none;
  border: none;
  padding: 0;
  color: #ffe9c9;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-banner-link:hover { color: #fff; }

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

.btn-cookie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn-cookie:active { transform: translateY(1px); }

.btn-cookie-primary {
  background: #f8f1e7;
  color: #0e3427;
  border: 1px solid #f8f1e7;
}
.btn-cookie-primary:hover {
  background: #fff;
  border-color: #fff;
}

.btn-cookie-ghost {
  background: transparent;
  color: #f8f1e7;
  border: 1px solid rgba(248, 241, 231, 0.55);
}
.btn-cookie-ghost:hover {
  background: rgba(248, 241, 231, 0.12);
  border-color: #f8f1e7;
}

@media (min-width: 720px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .cookie-banner-text { flex: 1; }
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cookie-modal[hidden] { display: none; }

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 34, 26, 0.55);
  backdrop-filter: blur(4px);
}

.cookie-modal-dialog {
  position: relative;
  background: #fffdf9;
  color: var(--text);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(15, 40, 30, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cookieBannerIn 220ms ease-out;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #184d3b, #0e3427);
  color: #f8f1e7;
}
.cookie-modal-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  color: #f8f1e7;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.cookie-modal-close:hover { background: rgba(255, 255, 255, 0.12); }

.cookie-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}
.cookie-modal-lead {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.cookie-group {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: rgba(24, 77, 59, 0.06);
  border: 1px solid rgba(24, 77, 59, 0.14);
  border-radius: 14px;
}
.cookie-group h3 {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: var(--accent-strong);
}
.cookie-group-note {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}
.cookie-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.cookie-list strong { color: var(--accent-strong); }

.cookie-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid rgba(120, 100, 78, 0.14);
  background: #faf5ec;
}
.cookie-modal-footer .btn-cookie-ghost {
  color: var(--accent-strong);
  border-color: rgba(24, 77, 59, 0.4);
}
.cookie-modal-footer .btn-cookie-ghost:hover {
  background: rgba(24, 77, 59, 0.08);
  border-color: var(--accent-strong);
}
.cookie-modal-footer .btn-cookie-primary {
  background: var(--accent-strong);
  color: #f8f1e7;
  border-color: var(--accent-strong);
}
.cookie-modal-footer .btn-cookie-primary:hover {
  background: #0a2a1f;
  border-color: #0a2a1f;
}

body.cookie-modal-open { overflow: hidden; }

/* ===== Taxonomy picker (admin) ===== */
.taxonomy-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.taxonomy-cat {
  border: 1px solid var(--border-subtle, #d9d3c5);
  border-radius: 10px;
  padding: 12px 14px 14px;
  background: #fbf7ee;
}
.taxonomy-cat legend {
  padding: 0 6px;
  font-weight: 600;
  color: var(--accent-strong, #1b3a2a);
  font-size: 0.95rem;
}
.taxonomy-cat .checkbox-label {
  padding: 3px 0;
  font-size: 0.92rem;
}
.taxonomy-cat .muted {
  color: #8a8372;
  font-size: 0.85rem;
}

/* ===== Nav dropdown with side flyout ===== */
.nav-dropdown-flyout {
  min-width: 210px;
}
.nav-submenu-item {
  position: relative;
}
.nav-dropdown-cat {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nav-submenu-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.nav-submenu-item.has-submenu:hover > .nav-dropdown-cat .nav-submenu-arrow,
.nav-submenu-item.is-open > .nav-dropdown-cat .nav-submenu-arrow {
  color: var(--accent-strong);
  transform: translateX(2px);
}
.nav-submenu {
  position: absolute;
  top: -8px;
  left: calc(100% + 6px);
  min-width: 200px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 251, 246, 0.98);
  border: 1px solid rgba(120, 100, 78, 0.12);
  box-shadow: var(--shadow-card);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
}
.nav-submenu::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 12px;
  height: 100%;
}
@media (hover: hover) {
  .nav-submenu-item.has-submenu:hover > .nav-submenu {
    display: flex;
  }
}
.nav-submenu-item.is-open > .nav-submenu {
  display: flex;
}
.nav-submenu a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-submenu a:hover {
  background: rgba(24, 77, 59, 0.06);
  color: var(--accent-strong);
}

/* ===== Subcategory chips ===== */
.subcategory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.5rem;
}
.subcategory-chips .chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle, #d9d3c5);
  background: #fbf7ee;
  color: var(--accent-strong, #1b3a2a);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.subcategory-chips .chip:hover {
  background: var(--accent-strong, #1b3a2a);
  color: #f8f1e7;
}
.subcategory-chips .chip-active {
  background: var(--accent-strong, #1b3a2a);
  color: #f8f1e7;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #8a8372;
}
.breadcrumbs a {
  color: var(--accent-strong, #1b3a2a);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; }

/* ===== Social links (home bottom) ===== */
.social-section {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fbf7ee;
  border: 1px solid rgba(120, 100, 78, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.social-link:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 8px 18px rgba(24, 77, 59, 0.15);
}
.social-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* =========================================================================
   ADMIN PANEL — Shopify-style chrome (topbar + sidebar)
   ========================================================================= */

.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Topbar */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 60px;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 rgba(67, 48, 28, 0.04);
}

.admin-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.admin-sidebar-toggle:hover { background: var(--accent-soft); }

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent-strong);
}
.admin-brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.admin-brand-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admin-topbar-spacer { flex: 1; }

.admin-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.admin-topbar-link:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--border-strong);
}
.admin-logout-form { margin: 0; }
.admin-logout-btn { color: var(--accent-strong); }

.admin-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 0.95rem;
  margin-left: 4px;
}

/* Body — sidebar + content */
.admin-body {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  position: relative;
}

.admin-sidebar {
  width: 240px;
  flex: 0 0 240px;
  background: var(--surface-strong);
  border-right: 1px solid var(--border-strong);
  padding: 16px 10px 24px;
  position: sticky;
  top: 60px;
  align-self: flex-start;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.admin-nav-group { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-group-label {
  margin: 4px 12px 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 140ms ease, color 140ms ease;
  border: 1px solid transparent;
}
.admin-nav-item:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.admin-nav-item.is-active {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: var(--accent-strong);
  border-color: #a5d6a7;
  font-weight: 600;
}
.admin-nav-icon {
  flex-shrink: 0;
  color: var(--accent);
}
.admin-nav-item.is-active .admin-nav-icon { color: var(--accent-strong); }

.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: rgba(34, 49, 39, 0.4);
  z-index: 19;
}

.admin-content {
  flex: 1;
  min-width: 0;
  background: var(--bg);
}
.admin-content-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 32px) 48px;
}

/* Login page keeps its standalone look */
.admin-login-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--bg);
}

/* Dashboard widgets (Shopify-style) */
.admin-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 28px;
  background: linear-gradient(135deg, #ffffff, #f3ece0);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.admin-welcome-text h1 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--accent-strong);
}
.admin-welcome-text p {
  margin: 0;
  color: var(--text-muted);
}
.admin-welcome-decor {
  font-size: 2.6rem;
  line-height: 1;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.admin-stat-card {
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  display: block;
}
.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 48, 28, 0.1);
  border-color: #a5d6a7;
}
.admin-stat-label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
}
.admin-stat-value {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-strong);
  line-height: 1;
}
.admin-stat-trend {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 12px;
}
.admin-section-title h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: var(--accent-strong);
}
.admin-section-title a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.admin-section-title a:hover { text-decoration: underline; }

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.admin-quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.admin-quick-card:hover {
  transform: translateY(-2px);
  border-color: #a5d6a7;
  background: linear-gradient(135deg, #ffffff, #eef7ef);
  box-shadow: 0 8px 20px rgba(67, 48, 28, 0.08);
}
.admin-quick-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.admin-quick-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-quick-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-strong);
}
.admin-quick-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 900px) {
  .admin-sidebar-toggle { display: inline-flex; }
  .admin-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    height: calc(100vh - 60px);
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    box-shadow: 4px 0 24px rgba(34, 49, 39, 0.18);
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-sidebar-backdrop[data-open] { display: block; }
  .admin-brand-text { display: none; }
  .admin-topbar-link span { display: none; }
}

/* =========================================================================
   NAV SEARCH (expanding lupe between contact and cart)
   ========================================================================= */
.nav-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-search-form {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.nav-search-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}
.nav-search-toggle:hover { opacity: 0.75; }

.nav-search-input {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  padding: 0;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transition: width 260ms ease, padding 260ms ease, opacity 200ms ease, box-shadow 200ms ease;
  z-index: 1;
}
.nav-search.is-open .nav-search-input {
  width: 260px;
  padding: 0 44px 0 16px;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(34, 49, 39, 0.18);
}
.nav-search.is-open .nav-search-toggle {
  color: var(--accent-strong) !important;
}
.nav-search-input::placeholder { color: var(--text-muted); }

/* On scrolled / non-transparent header, white pill on dark background */
.site-header:not(.site-header--transparent) .nav-search-input {
  border-color: var(--border-strong);
  background: #fff;
}

@media (max-width: 900px) {
  .nav-search.is-open .nav-search-input { width: 200px; }
}
@media (max-width: 720px) {
  .nav-search { width: 100%; }
  .nav-search-form { width: 100%; }
  .nav-search-input {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    padding: 0 44px 0 16px;
    background: rgba(255, 255, 255, 0.96);
  }
  .nav-search-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Search suggestions dropdown */
.nav-search-results {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(34, 49, 39, 0.18);
  z-index: 50;
  padding: 6px;
  display: none;
}
.nav-search-results[data-open] { display: block; }
.nav-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: background 120ms ease;
}
.nav-search-result:hover,
.nav-search-result.is-highlighted {
  background: var(--accent-soft);
}
.nav-search-result-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.nav-search-result-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.nav-search-result-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-search-result-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-search-result.is-fallback {
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
  padding-top: 12px;
}
.nav-search-result.is-fallback .nav-search-result-label {
  font-weight: 500;
  color: var(--text);
}
.nav-search-empty {
  padding: 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}
@media (max-width: 720px) {
  .nav-search-results {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
    top: var(--nav-height);
  }
}

/* ====== Rich text editor (admin) ====== */
.rich-editor {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 8px;
  background: #f7f7f8;
  border-bottom: 1px solid #e2e2e6;
}
.rich-toolbar .rich-btn {
  background: #fff;
  border: 1px solid #d6d6dc;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #222;
  line-height: 1.2;
}
.rich-toolbar .rich-btn:hover { background: #efeff3; }
.rich-toolbar .rich-select {
  background: #fff;
  border: 1px solid #d6d6dc;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.85rem;
  max-width: 180px;
}
.rich-toolbar .rich-color {
  width: 32px; height: 28px;
  border: 1px solid #d6d6dc;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  background: #fff;
}
.rich-toolbar .rich-sep {
  width: 1px; height: 22px;
  background: #d6d6dc;
  margin: 0 4px;
}
.rich-toolbar .rich-indicator {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #555;
  background: #fff;
  border: 1px solid #d6d6dc;
  border-radius: 6px;
  padding: 4px 10px;
  white-space: nowrap;
}
.rich-toolbar .rich-indicator-label { color: #888; font-weight: 500; }
.rich-toolbar .rich-indicator-font,
.rich-toolbar .rich-indicator-size {
  color: #1a4a33;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rich-toolbar .rich-indicator-mixed {
  color: #b85c00;
  background: #fff3e0;
  padding: 1px 6px;
  border-radius: 4px;
}
.rich-toolbar .rich-indicator-sep { color: #ccc; }
@media (max-width: 720px) {
  .rich-toolbar .rich-indicator {
    margin-left: 0;
    flex-basis: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }
}
.rich-content {
  min-height: 140px;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.65;
  outline: none;
  color: #222;
}
.rich-content:focus { background: #fcfcfd; }
.rich-content p { margin: 0 0 0.6em; }
.rich-content ul, .rich-content ol { padding-left: 1.4em; margin: 0 0 0.6em; }

/* Inline (single-line) variant for input[data-rich] */
.rich-editor-inline .rich-content-inline {
  min-height: auto;
  padding: 8px 12px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}
.rich-editor-inline .rich-content-inline br { display: none; }
.rich-editor-inline .rich-content-inline p { display: inline; margin: 0; }

/* ============================================================
   MOBILE & RESPONSIVE POLISH (added 2026-05-18)
   ============================================================ */

/* iOS form-zoom prevention: inputs ≥ 16px font-size on mobile */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="password"],
  input[type="search"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Bigger tap targets everywhere */
@media (max-width: 767px) {
  .btn,
  .hero-button,
  .nav-link,
  button[type="submit"],
  .gallery-arrow,
  .pagination-link,
  .product-card,
  .add-to-cart-btn {
    min-height: 44px;
  }
}

/* Generic small-screen container & section paddings */
@media (max-width: 767px) {
  .shell { padding: 0 14px; }
  .section { padding: 18px 14px; margin-top: 12px; }
  .section-narrow { padding: 24px 14px; }
}

/* HEADER — compact, no overlap with content */
@media (max-width: 767px) {
  .header-inner { padding-block: 12px 8px; gap: 4px; }
  .header-brand-img { width: 120px; }
  .nav-toggle { top: 14px; left: 12px; }
  /* Mobile nav drawer drops in just under the header */
  .main-nav { top: 80px !important; left: 10px; right: 10px; }
}

/* HERO — fits the phone screen, content not cropped */
@media (max-width: 767px) {
  .hero-fullwidth {
    min-height: 78vh;
    min-height: 78svh;
  }
  .hero-content {
    margin-top: 96px !important;
    margin-left: 16px !important;
    padding-right: 16px;
    max-width: none;
  }
  .hero-heading { font-size: clamp(1.6rem, 7vw, 2.3rem) !important; line-height: 1.2; }
  .hero-desc { font-size: 0.95rem; line-height: 1.6; }
  .hero-kicker { font-size: 0.68rem; letter-spacing: 0.18em; }
  .hero-actions { width: 100%; }
  .hero-actions .hero-button { flex: 1; justify-content: center; min-width: 0; }
}

/* HOME products grid — 2 cols on phones with tight spacing */
@media (max-width: 767px) {
  .products-header { text-align: center; }
  .products-title { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .products-subtitle { font-size: 0.9rem; }
  .products-grid { gap: 0.75rem; }
  .product-card { border-radius: 16px; box-shadow: 0 8px 22px rgba(74, 54, 30, 0.08); }
  .product-card-image { aspect-ratio: 1; }
  .product-card-body { padding: 0.7rem 0.8rem 0.9rem; }
  .product-card-category { font-size: 0.62rem; margin-bottom: 0.3rem; }
  .product-card-title { font-size: 0.82rem; line-height: 1.25; margin-bottom: 0.35rem; }
  .product-card-price { font-size: 0.82rem; }
  .product-card-badge { font-size: 0.65rem; padding: 2px 6px; }
}

/* Very small phones — one column only when really tight */
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr !important; }
  .product-card-image { aspect-ratio: 0.85; }
}

/* PRODUCT DETAIL — single column, full-width gallery */
@media (max-width: 767px) {
  .product-detail-grid { gap: 18px; }
  .gallery-main { aspect-ratio: 1; border-radius: 14px; }
  .gallery-arrow { width: 36px; height: 36px; font-size: 1.4rem; }
  .gallery-thumbs { gap: 6px; }
  .gallery-thumb { width: 56px; height: 56px; }
  .product-info-title { font-size: 1.35rem; line-height: 1.25; }
  .product-info-price .price-eur-lg { font-size: 1.4rem; }
  .product-info-price .price-bgn-lg { font-size: 0.95rem; }
  .product-info-desc { font-size: 0.95rem; }
  .product-add-form .btn { width: 100%; }
}

/* FORMS — full width on mobile, no zoom, comfortable spacing */
@media (max-width: 767px) {
  .form-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .form-group { margin-bottom: 14px; }
  .form-group label { font-size: 0.92rem; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
}

/* CART — readable rows */
@media (max-width: 767px) {
  .cart-section { padding: 1.6rem 0; }
  .cart-section h1 { font-size: 1.4rem; margin-bottom: 1.2rem; }
  .order-cart-item {
    grid-template-columns: 80px 1fr !important;
    grid-template-areas:
      "image info"
      "image controls"
      "message message" !important;
  }
  .order-cart-item .item-image { grid-area: image; }
  .order-cart-item .item-info { grid-area: info; }
  .order-cart-item .item-controls { grid-area: controls; }
}

/* SHIPPING radios — stack on phones, big tap targets */
@media (max-width: 767px) {
  .shipping-options { flex-direction: column; gap: 8px; }
  .shipping-option { width: 100%; padding: 14px 16px; }
}

/* FOOTER — centered on small screens */
@media (max-width: 767px) {
  .site-footer { padding: 22px 0 28px; }
  .footer-inner { text-align: center; align-items: center; gap: 8px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .footer-brand { font-size: 0.95rem; }
  .footer-note, .footer-meta { font-size: 0.85rem; }
}

/* ADMIN — usable on phones */
@media (max-width: 767px) {
  .admin-container { padding: 14px 12px; }
  .dashboard-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .editor-section { padding: 16px 12px; }
  .editor-section-title { font-size: 1rem; }
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { font-size: 0.85rem; min-width: 540px; }
  .table th, .table td { padding: 8px 10px; }
  .inline-form, .inline-add-form { flex-wrap: wrap; gap: 6px; }
  .btn-back { margin-bottom: 10px; }
}

/* Rich text editor — toolbar scrolls horizontally on phones */
@media (max-width: 767px) {
  .rich-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .rich-toolbar .rich-select { max-width: 130px; flex-shrink: 0; }
  .rich-toolbar .rich-btn { flex-shrink: 0; }
  .rich-content { min-height: 180px; padding: 12px 14px; }
}

/* General image safety — never break layout */
img { max-width: 100%; height: auto; }

/* Make sure nothing horizontally overflows on phones */
html, body { overflow-x: hidden; }

/* ============================================================
   SAFETY NET: reveal-on-scroll fallback
   If IntersectionObserver fails or sections are taller than the
   viewport (common on mobile), force-show after 2.5s so users
   never see permanently empty sections.
   ============================================================ */
@keyframes vk-reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
body.js-enhanced .reveal-on-scroll:not(.is-visible) {
  animation: vk-reveal-fallback 0.6s ease 2.5s forwards;
}

/* ============================================================
   MOBILE MENU POLISH v2 (2026-05-18)
   - Cart pinned top-right on mobile (home page).
   - Drawer items aligned uniformly, no pill on active, no inline cart/search.
   ============================================================ */

/* Floating cart — visible on home page mobile, hidden on desktop */
.cart-floating {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(23, 61, 49, 0.85);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}
.cart-floating .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #4dd9ac;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(250, 245, 237, 0.95);
}
@media (max-width: 767px) {
  .cart-floating { display: inline-flex; }
}

/* Mobile drawer — hide inline cart & search; the drawer is just navigation now */
@media (max-width: 767px) {
  .main-nav .cart-icon,
  .main-nav .nav-search { display: none !important; }

  /* All drawer items styled the same — left-aligned, no pill on active */
  .main-nav .nav-link,
  .main-nav .nav-link-dropdown {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    text-align: left !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-weight: 500;
  }
  .main-nav .nav-link.is-active {
    background: rgba(255, 255, 255, 0.10) !important;
    font-weight: 700;
  }
  .main-nav .nav-link-dropdown::after {
    margin-left: auto;
    font-size: 0.8rem;
  }
  .main-nav .nav-dropdown-item {
    padding: 12px 18px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.86) !important;
  }
}

/* ==========================================================================
   PROMOTIONS — discount badges, sale prices, free-shipping banner
   ========================================================================== */

/* Product card discount badge */
.product-card-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Make sure the product card itself can position the badge */
.product-card { position: relative; }

/* Sale price styling on cards */
.product-card-price .price-eur-original {
  text-decoration: line-through;
  color: #888;
  font-weight: 400;
  margin-right: 6px;
  font-size: 0.92em;
}
.product-card-price .price-eur-sale {
  color: #c0392b;
  font-weight: 700;
}

/* Product detail page sale block */
.product-info-price .price-eur-lg-original {
  text-decoration: line-through;
  color: #888;
  font-weight: 400;
  font-size: 0.7em;
  margin-right: 8px;
}
.product-info-price .price-eur-lg-sale {
  color: #c0392b;
}
.product-info-discount-badge {
  display: inline-block;
  margin-left: 10px;
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  vertical-align: middle;
}

/* Cart sale styling */
.cart-item-unit-original {
  text-decoration: line-through;
  color: #888;
  margin-right: 6px;
}
.cart-item-unit-sale {
  color: #c0392b;
  font-weight: 700;
  margin-right: 6px;
}
.cart-item-discount-badge,
.order-cart-item-discount-badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  vertical-align: middle;
  margin-right: 4px;
}
.cart-savings {
  display: block;
  color: #27ae60;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Order form line item sale */
.order-cart-item-price-original {
  text-decoration: line-through;
  color: #888;
  margin-right: 6px;
}
.order-cart-item-price-sale {
  color: #c0392b;
  font-weight: 700;
  margin-right: 6px;
}

/* Free shipping banner */
.free-shipping-banner {
  background: linear-gradient(90deg, #fff4d6 0%, #ffe9a8 100%);
  color: #6b4d00;
  border: 1px solid #f0c75e;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.free-shipping-banner--met {
  background: linear-gradient(90deg, #e6f7e6 0%, #c8eecb 100%);
  color: #1f6b2a;
  border-color: #7ec98a;
}
.free-shipping-banner strong { font-weight: 700; }

/* Shipping option price label */
.shipping-option-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.shipping-option-price {
  display: inline-block;
  font-weight: 600;
  color: #2c3e50;
  background: #f4f4f7;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.88rem;
}
.shipping-option-price--free {
  background: #e6f7e6;
  color: #1f6b2a;
}

/* ==========================================================================
   ADMIN PROMOTIONS — product checkbox grid with live preview
   ========================================================================== */
.promo-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e3e3e8;
  border-radius: 10px;
  background: #fafafb;
}
.promo-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e3e3e8;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.promo-product-item:has(input:checked) {
  border-color: #2c3e50;
  background: #f0f4f9;
}
.promo-product-item input[type="checkbox"] { flex-shrink: 0; }
.promo-product-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.promo-product-image-placeholder {
  width: 44px; height: 44px;
  background: #eef0f3;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  flex-shrink: 0;
}
.promo-product-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.promo-product-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo-product-price {
  font-size: 0.82rem;
  color: #666;
}
.promo-product-new-price {
  font-size: 0.82rem;
  color: #c0392b;
  font-weight: 700;
}

/* Order total summary (cash on delivery) */
.order-total-summary {
  background: #f8f6f0;
  border: 1px solid #e3ddc8;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
}
.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 0.95rem;
  color: #444;
}
.order-total-row + .order-total-row { border-top: 1px dashed #e3ddc8; }
.order-total-row--grand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #d6cfb6 !important;
}
.order-total-note {
  font-size: 0.82rem;
  color: #1f6b2a;
  font-weight: 600;
  margin-left: 4px;
}
