/* ============================================================
   Vitasana-inspired theme
   Palette: navy #10235E · orange #FE9A31 · mint #78D8D0 · blue #5AA4E5
   Fonts:   Geologica (headings / UI) · Inter (body)
   ============================================================ */

:root {
  --navy: #10235e;
  --navy-deep: #0a1740;
  --navy-soft: #e8ecf7;
  --orange: #fe9a31;
  --orange-soft: #ffeeda;
  --mint: #78d8d0;
  --mint-soft: #e2f6f4;
  --blue: #5aa4e5;
  --cream: #f6f1e8;
  --cream-soft: #fbf8f2;
  --white: #ffffff;

  --bg: var(--cream-soft);
  --surface: #ffffff;
  --ink: var(--navy);
  --body: #3c4560;
  --muted: #707890;
  --line: rgba(16, 35, 94, 0.1);
  --danger: #d23f3f;
  --warn: #b57408;
  --ok: #1d9a6c;

  --shadow: 0 14px 40px rgba(16, 35, 94, 0.08);
  --shadow-lift: 0 24px 60px rgba(16, 35, 94, 0.14);
  --radius: 20px;
  --radius-lg: 30px;
  --pill: 5em;

  --font: "Inter", sans-serif;
  --display: "Geologica", sans-serif;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 460px at 92% -6%, rgba(120, 216, 208, 0.16), transparent 55%),
    radial-gradient(760px 420px at 4% 4%, rgba(254, 154, 49, 0.08), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 40%, var(--cream-soft) 100%);
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------------- Top bar ---------------- */

.topbar {
  background: var(--orange);
  color: var(--white);
  font-size: 0.78rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
}

.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.topbar-contacts a,
.topbar-address {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.topbar-contacts a:hover {
  color: var(--navy);
}

.topbar svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.topbar-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 0;
  color: var(--white);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.topbar-lang svg {
  width: 13px;
  height: 13px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--navy);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--orange);
  font-weight: 600;
  font-size: 1.3rem;
  font-family: var(--display);
}

.brand-logo {
  height: 2.75rem;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.admin-brand .brand-logo {
  height: 2.5rem;
  max-width: 180px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.45rem;
  padding: 0.2rem 0.35rem;
}

.header-search {
  display: flex;
  align-items: center;
  max-width: 520px;
  width: 100%;
  justify-self: center;
  background: var(--navy-soft);
  border: 1px solid transparent;
  border-radius: var(--pill);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.header-search:focus-within {
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(16, 35, 94, 0.08);
}

.header-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.68rem 1.3rem;
  outline: none;
  color: var(--ink);
}

.header-search button {
  display: grid;
  place-items: center;
  border: 0;
  padding: 0.55rem 1.1rem;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: color 0.2s;
}

.header-search button svg {
  width: 18px;
  height: 18px;
}

.header-search button:hover {
  color: var(--orange);
}

/* --- Header actions (support / account / wishlist / cart) --- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-support {
  color: var(--body);
  font-size: 0.92rem;
  margin-right: 0.4rem;
}

.header-support:hover {
  color: var(--orange);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--navy);
  transition: background 0.2s, color 0.2s;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: var(--orange-soft);
  color: var(--orange);
}

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  transition: background 0.2s;
}

.cart-btn svg {
  width: 19px;
  height: 19px;
}

.cart-btn:hover {
  background: var(--orange);
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--pill);
  background: var(--orange);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.66rem;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* --- Nav row (categories / links / contact) --- */

.header-navrow {
  background: var(--white);
}

.navrow-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.55rem 0;
}

.categories-menu {
  position: relative;
}

.categories-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
}

.categories-toggle svg {
  width: 18px;
  height: 18px;
}

.categories-toggle:hover {
  color: var(--orange);
}

.categories-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 60;
}

.categories-menu:hover .categories-dropdown,
.categories-menu.open .categories-dropdown,
.categories-menu:focus-within .categories-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.categories-dropdown a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 0.92rem;
  color: var(--navy);
  transition: background 0.2s, color 0.2s;
}

.categories-dropdown a:hover {
  background: var(--orange-soft);
  color: var(--orange);
}

.main-nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.main-nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding: 0.55rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width 0.25s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  border-radius: var(--pill);
  background: var(--orange);
  color: var(--white);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-contact:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  background: var(--navy);
  display: block;
  border-radius: 2px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--pill);
  padding: 0.85rem 1.9rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange);
  color: var(--navy);
}

.btn-orange {
  background: var(--orange);
  color: var(--navy);
}

.btn-orange:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--orange);
}

.btn-block {
  width: 100%;
}

/* ---------------- Banner slider ---------------- */

.home-banner {
  width: 100%;
  margin: 0;
  padding: 0;
}

.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-viewport {
  position: relative;
  width: 100%;
  height: min(78vh, 640px);
  background: var(--navy);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

.banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.banner-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-slide-fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 82% 18%, rgba(120, 216, 208, 0.35), transparent 45%),
    radial-gradient(circle at 12% 80%, rgba(254, 154, 49, 0.25), transparent 50%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #1c3577 100%);
}

.banner-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
  background: linear-gradient(90deg, rgba(10, 23, 64, 0.62) 0%, rgba(10, 23, 64, 0.18) 65%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.banner-overlay-inner {
  pointer-events: auto;
  max-width: 620px;
  color: var(--white);
}

.banner-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.8rem;
  color: var(--white);
}

.banner-subtitle {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.6;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(10, 23, 64, 0.25);
  transition: background 0.2s, color 0.2s;
}

.banner-nav:hover {
  background: var(--orange);
  color: var(--navy);
}

.banner-prev { left: 1.2rem; }
.banner-next { right: 1.2rem; }

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.45rem;
}

.banner-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--pill);
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.banner-dot.is-active {
  width: 24px;
  background: var(--orange);
}

/* ---------------- Hero ---------------- */

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--orange);
  margin: 0 0 1rem;
}

.brand-hero {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--orange);
  margin: 0 0 1rem;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 500;
  margin: 0 0 1.1rem;
  max-width: 16ch;
}

.detail-info h1,
.admin-header h1,
.login-card h1 {
  margin: 0 0 0.8rem;
}

.hero-lead,
.page-lead,
.detail-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 44ch;
  margin: 0 0 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-visual {
  min-height: 380px;
}

.hero-panel {
  position: relative;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(120, 216, 208, 0.5), transparent 48%),
    radial-gradient(circle at 15% 85%, rgba(254, 154, 49, 0.35), transparent 50%),
    linear-gradient(150deg, var(--navy) 0%, #1a3170 65%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-lift);
  animation: panelFloat 7s ease-in-out infinite;
}

.hero-orb {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  right: 10%;
  top: 15%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.5), transparent 55%),
    rgba(120, 216, 208, 0.25);
  animation: orbPulse 4.5s ease-in-out infinite;
}

.hero-shelf {
  position: absolute;
  left: 8%;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hero-shelf span {
  display: inline-block;
  width: fit-content;
  padding: 0.6rem 1.3rem;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  animation: shelfSlide 5s ease-in-out infinite;
}

.hero-shelf span:nth-child(2) {
  animation-delay: 0.4s;
  margin-left: 1.4rem;
  background: rgba(254, 154, 49, 0.85);
  color: var(--navy);
}

.hero-shelf span:nth-child(3) {
  animation-delay: 0.8s;
  margin-left: 0.5rem;
  background: rgba(120, 216, 208, 0.8);
  color: var(--navy);
}

@keyframes panelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes shelfSlide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* ---------------- Sections ---------------- */

.section {
  padding: 3.5rem 0;
}

.section-soft {
  background: var(--white);
}

.section-cream {
  background: var(--cream);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--orange);
  margin: 0 0 0.4rem;
}

.section-head h2,
.detail-body h2,
.related h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0;
  font-weight: 500;
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.text-link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--orange);
}

/* ---------------- Category rail ---------------- */

.category-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.2rem;
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.6rem 1rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  animation-delay: var(--d, 0s);
}

.category-chip:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(254, 154, 49, 0.45);
}

.category-chip-media {
  flex: 0 0 auto;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mint-soft);
  border: 4px solid var(--cream);
  margin-bottom: 0.6rem;
}

.category-chip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s;
}

.category-chip:hover .category-chip-media img {
  transform: scale(1.07);
}

.category-chip-media.is-placeholder img {
  object-fit: contain;
  padding: 1.4rem;
}

.category-chip-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.category-chip strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.3;
}

.category-chip span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-chip-cta {
  margin-top: 0.5rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------------- Product cards ---------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(16, 35, 94, 0.14);
}

.product-media {
  position: relative;
  aspect-ratio: 1.05 / 1;
  background: var(--cream);
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.product-media img {
  max-height: 170px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.32rem 0.75rem 0.28rem;
  border-radius: var(--pill);
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  z-index: 3;
}

.badge-sale {
  background: var(--orange);
  color: var(--navy);
}

.badge-rx {
  left: auto;
  right: 0.9rem;
  background: var(--blue);
  color: var(--white);
}

.product-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-meta {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.product-meta a:hover {
  color: var(--orange);
}

.product-body h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--navy);
}

.price-row.large .price {
  font-size: 2rem;
}

.mrp {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.88rem;
}

.stock {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stock.in { color: var(--ok); }
.stock.out { color: var(--danger); }

/* ---------------- Promo duo ---------------- */

.promo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.promo-tile {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.4rem;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.4rem;
}

.promo-tile.is-orange {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(140deg, var(--orange) 0%, #ffb45f 100%);
}

.promo-tile.is-mint {
  background:
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.4), transparent 45%),
    linear-gradient(140deg, var(--mint) 0%, #9fe6e0 100%);
}

.promo-mark {
  display: inline-block;
  padding: 0.32rem 0.85rem 0.28rem;
  border-radius: var(--pill);
  background: var(--navy);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.promo-tile h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
  color: var(--navy);
  max-width: 18ch;
}

.promo-tile p {
  margin: 0 0 1.2rem;
  color: rgba(16, 35, 94, 0.75);
  max-width: 34ch;
}

/* ---------------- Service strip ---------------- */

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}

.service-card:nth-child(2) { border-top-color: var(--mint); }
.service-card:nth-child(3) { border-top-color: var(--blue); }

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.service-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-card .text-link {
  font-size: 0.78rem;
}

/* ---------------- Page hero ---------------- */

.page-hero {
  padding: 3.2rem 0 1.2rem;
}

.page-hero-with-image {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.page-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mint-soft);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------- Catalogue ---------------- */

.catalog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: 6.5rem;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filters h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-link {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--pill);
  color: var(--body);
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
  transition: background 0.2s, color 0.2s;
}

.filter-link.active {
  background: var(--navy);
  color: var(--white);
}

.filter-link:hover:not(.active) {
  background: var(--orange-soft);
  color: var(--navy);
}

.catalog-search {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.catalog-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--pill);
  padding: 0.75rem 1.2rem;
  outline: none;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-search input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(16, 35, 94, 0.08);
}

.catalog-search .btn,
.admin-search .btn {
  white-space: nowrap;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pagination a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--navy);
  border-radius: var(--pill);
  transition: background 0.2s, color 0.2s;
}

.pagination a:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------------- Product detail ---------------- */

.detail-section {
  padding-top: 2rem;
}

.back-link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.back-link:hover {
  color: var(--orange);
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  margin-top: 1.4rem;
}

.detail-media {
  position: relative;
  align-self: start;
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow);
  padding: 1rem;
  overflow: hidden;
}

.detail-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(520px, 70vh);
  object-fit: contain;
  margin: 0 auto;
  border-radius: calc(var(--radius-lg) - 0.4rem);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 1.5rem;
}

.tag {
  display: inline-flex;
  padding: 0.35rem 0.85rem 0.3rem;
  border-radius: var(--pill);
  background: var(--mint-soft);
  color: var(--navy);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-rx {
  background: var(--blue);
  color: var(--white);
}

.spec-list {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
}

.spec-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.spec-list dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  color: var(--navy);
}

.detail-body p {
  color: var(--body);
  white-space: pre-wrap;
}

.rich-content {
  color: var(--body);
  line-height: 1.65;
}

.rich-content > *:first-child {
  margin-top: 0;
}

.rich-content > *:last-child {
  margin-bottom: 0;
}

.rich-content p,
.rich-content ul,
.rich-content ol {
  margin: 0 0 0.85rem;
}

.rich-content ul,
.rich-content ol {
  padding-left: 1.25rem;
}

.rich-content a {
  color: var(--blue);
  text-decoration: underline;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-family: var(--display);
}

.related {
  margin-top: 3.5rem;
}

.related h2 {
  margin-bottom: 1.4rem;
}

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.about-block {
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}

.about-block:nth-child(2) { border-top-color: var(--mint); }
.about-block:nth-child(3) { border-top-color: var(--blue); }

/* ---------------- Video gallery ---------------- */

.video-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.video-search {
  flex: 1 1 240px;
  max-width: 360px;
}

.video-search input {
  width: 100%;
  border: 1px solid rgba(15, 40, 70, 0.12);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font: inherit;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.video-search input:focus {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
}

.video-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 40, 70, 0.12);
}

.video-card.is-hidden,
.video-card[hidden] {
  display: none !important;
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0f2846;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.25s;
}

.video-card:hover .video-thumb img {
  transform: scale(1.04);
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 22, 40, 0.45));
  color: #fff;
}

.video-play svg {
  width: 58px;
  height: 58px;
  padding: 14px 12px 14px 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s;
}

.video-thumb:hover .video-play svg,
.video-thumb:focus-visible .video-play svg {
  transform: scale(1.08);
  background: #fff;
}

.video-meta {
  padding: 1.15rem 1.2rem 1.35rem;
}

.video-meta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.video-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.video-empty-filter {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--muted);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 32, 0.72);
  backdrop-filter: blur(4px);
}

.video-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: videoModalIn 0.28s ease;
}

@keyframes videoModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.video-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.video-modal-close svg {
  width: 18px;
  height: 18px;
}

.video-modal-title {
  margin: 0 2.5rem 0.9rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.video-modal-open {
  overflow: hidden;
}

.about-block h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.about-block p,
.about-block .rich-content {
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------------- Contact page ---------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2rem;
}

.contact-panel h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
}

.contact-form .btn {
  justify-self: start;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
  border-top: 4px solid var(--orange);
}

.contact-card:nth-child(2) { border-top-color: var(--mint); }
.contact-card:nth-child(3) { border-top-color: var(--blue); }

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-card a {
  color: var(--navy);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--orange);
}

.contact-map-section {
  padding-top: 0;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--mint-soft);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---------------- Newsletter / CTA band ---------------- */

/* .cta-band {
  margin: 3rem 0 0;
} */

.cta-band-inner {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 20%, rgba(120, 216, 208, 0.3), transparent 45%),
    radial-gradient(circle at 8% 90%, rgba(254, 154, 49, 0.28), transparent 50%),
    var(--navy);
  color: var(--white);
  padding: 3.2rem 3rem;
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 2rem;
  align-items: center;
}

.cta-band-inner h2 {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  max-width: 22ch;
}

.cta-band-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 3.5rem;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.6rem 0 3rem;
}

.footer-brand-col {
  padding-top: 0.2rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand-link .brand-mark {
  background: var(--white);
}

.footer-brand-link .brand-logo {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.5rem;
  padding: 0.3rem 0.5rem;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.65);
  max-width: 34ch;
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-label {
  font-family: var(--display);
  font-weight: 600;
  color: var(--white);
  font-size: 1.02rem;
  margin: 0 0 1rem;
}

.footer-label-gap {
  margin-top: 1.8rem;
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-hours {
  margin: 0 0 0.6rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  margin-bottom: 0;
  transition: background 0.2s, transform 0.2s;
}

.footer-social a svg {
  width: 17px;
  height: 17px;
}

.footer-social a:hover {
  background: var(--white);
  color: var(--orange);
  transform: translateY(-2px);
}

.footer-bottom {
  background: var(--navy-deep);
  padding: 0.8rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-contacts {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.footer-contacts > a,
.footer-contacts > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contacts a:hover {
  color: var(--orange);
}

.footer-contacts svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-bottom p {
  margin: 0;
}

/* ---------------- Flash messages ---------------- */

.flash-stack {
  display: grid;
  gap: 0.5rem;
  margin: 1rem auto;
}

.flash {
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  font-weight: 500;
}

.flash-success { background: #e2f6ee; color: var(--ok); }
.flash-danger { background: #fdeaea; color: var(--danger); }
.flash-warning { background: #fff4e0; color: var(--warn); }

.empty-state {
  color: var(--muted);
  padding: 2.5rem;
  text-align: center;
  grid-column: 1 / -1;
  background: var(--surface);
  border-radius: var(--radius);
}

/* ---------------- Reveal animation ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Admin
   ============================================================ */

.admin-body {
  background:
    radial-gradient(700px 400px at 0% 0%, rgba(16, 35, 94, 0.08), transparent 50%),
    var(--cream-soft);
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 1.5rem 1.1rem;
}

.admin-brand {
  color: var(--white);
  margin-bottom: 1.6rem;
  padding: 0.4rem;
  font-size: 1.15rem;
}

.admin-brand .brand-mark::after {
  color: var(--orange);
}

.admin-sidebar nav {
  display: grid;
  gap: 0.35rem;
}

.admin-sidebar a {
  padding: 0.72rem 1rem;
  border-radius: var(--pill);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(254, 154, 49, 0.18);
  color: var(--orange);
}

.admin-main {
  padding: 1.8rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-header .eyebrow {
  margin-bottom: 0.3rem;
}

.admin-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-tile,
.admin-panel,
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-tile {
  padding: 1.2rem 1.3rem;
  border-top: 4px solid var(--orange);
}

.stat-tile:nth-child(2) { border-top-color: var(--mint); }
.stat-tile:nth-child(3) { border-top-color: var(--blue); }
.stat-tile:nth-child(4) { border-top-color: var(--navy); }

.stat-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.stat-tile strong {
  font-size: 1.9rem;
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
}

.admin-panel {
  padding: 1.6rem;
}

.admin-panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.table-product {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.table-product img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--cream);
  flex-shrink: 0;
}

.table-product strong {
  font-family: var(--display);
  font-weight: 500;
  color: var(--navy);
}

.table-product span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.actions {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

td.actions {
  text-align: right;
}

.actions a {
  font-weight: 600;
  color: var(--navy);
}

.actions a:hover {
  color: var(--orange);
}

.actions form {
  margin: 0;
}

.link-danger,
.actions button {
  background: none;
  border: 0;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-form form > .btn {
  margin-top: 1rem;
}

.admin-form label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--pill);
  padding: 0.72rem 1.1rem;
  outline: none;
  font-family: var(--font);
  font-weight: 400;
  color: var(--body);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-form textarea,
.admin-form select,
.product-form input[type="file"] {
  border-radius: 14px;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(16, 35, 94, 0.08);
}

.admin-form .ck-editor {
  width: 100%;
}

.admin-form .ck.ck-editor__main > .ck-editor__editable {
  min-height: 180px;
  border-radius: 0 0 14px 14px;
  font-family: var(--font);
  color: var(--body);
}

.admin-form .ck.ck-toolbar {
  border-radius: 14px 14px 0 0 !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.check {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400 !important;
  grid-auto-flow: column;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  font-family: var(--font);
}

.split-panel {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
}

.split-panel > * {
  min-width: 0;
}

.split-panel > .table-wrap {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

.admin-search {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.6rem;
}

.admin-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--pill);
  padding: 0.72rem 1.1rem;
  outline: none;
}

.warn {
  color: var(--warn);
  font-weight: 700;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: min(430px, 100%);
  padding: 2.2rem;
}

.login-card .brand-hero {
  font-size: 1rem;
}

.login-card .text-link {
  display: inline-block;
  margin-top: 1rem;
}

.category-form-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.category-current-image {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}

.category-current-image img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  flex-shrink: 0;
}

.logo-preview .logo-preview-img {
  width: auto;
  height: 56px;
  max-width: 240px;
  object-fit: contain;
}

.category-current-image .link-danger {
  display: inline-block;
  margin-top: 0.25rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--danger);
  font-weight: 600;
}

/* ============================================================
   Responsive
   ============================================================ */

/* ---- Large tablets / small laptops ---- */

@media (max-width: 1100px) {
  .category-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .main-nav {
    gap: 1.2rem;
  }
}

/* ---- Tablets ---- */

@media (max-width: 980px) {
  .topbar-address,
  .header-support {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    border-bottom: 0;
  }

  .header-actions {
    justify-self: end;
  }

  /* Search moves to its own full-width row instead of disappearing */
  .header-search {
    order: 5;
    grid-column: 1 / -1;
    max-width: none;
  }

  .header-navrow {
    display: none;
  }

  body.nav-open .header-navrow {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }

  body.nav-open .navrow-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 0;
  }

  body.nav-open .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .categories-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0.2rem 0 0 0.8rem;
    display: none;
  }

  .categories-menu.open .categories-dropdown {
    display: block;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-layout,
  .detail-grid,
  .catalog-layout,
  .contact-layout,
  .about-grid,
  .promo-duo,
  .service-strip,
  .admin-shell,
  .split-panel,
  .cta-band-inner,
  .page-hero-with-image {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    position: static;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 1rem 1.1rem;
  }

  .admin-sidebar nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }

  .admin-header {
    flex-wrap: wrap;
    align-items: start;
  }

  .split-panel > .table-wrap {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }

  .cta-band-inner {
    padding: 2.2rem 1.8rem;
    text-align: center;
    justify-items: center;
  }

  .detail-media {
    padding: 0.85rem;
  }
}

/* ---- Small tablets / large phones ---- */

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head.centered {
    align-items: center;
  }

  .contact-map iframe {
    height: 320px;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-contacts {
    justify-content: center;
    gap: 1rem;
  }
}

/* ---- Phones ---- */

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.8rem);
  }

  .product-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .category-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-chip-media {
    width: 96px;
    height: 96px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 2.5rem 0 2rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-visual {
    min-height: 280px;
  }

  .banner-viewport {
    height: min(66vh, 480px);
  }

  .banner-nav {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .banner-prev { left: 0.6rem; }
  .banner-next { right: 0.6rem; }

  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .topbar-contacts {
    justify-content: center;
    gap: 0.8rem 1.2rem;
  }

  .page-hero {
    padding: 2.2rem 0 0.8rem;
  }

  .promo-tile {
    padding: 1.9rem 1.5rem;
    min-height: 200px;
  }

  .contact-panel {
    padding: 1.6rem 1.2rem;
  }

  .detail-media {
    padding: 0.75rem;
  }

  .detail-media img {
    max-height: min(360px, 55vh);
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .admin-main {
    padding: 1.2rem 1rem;
  }

  .admin-panel {
    padding: 1.2rem 1rem;
  }

  .cta-band-inner {
    padding: 1.9rem 1.3rem;
  }
}

/* ---- Small phones ---- */

@media (max-width: 480px) {
  .header-actions {
    gap: 0.4rem;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .cart-btn {
    width: 40px;
    height: 40px;
  }

  .brand-logo {
    height: 2.3rem;
  }

  .brand {
    font-size: 1.15rem;
  }

  .topbar {
    font-size: 0.72rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
  }

  .contact-map iframe {
    height: 260px;
  }
}
