:root {
  --green: #1E8E3E;
  --green-dark: #166b31;
  --btn-height: 44px;
  --btn-height-sm: 36px;
  --btn-height-compact: 40px;
  --btn-height-icon: 40px;
  --gray-900: #0f172a;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", sans-serif;
  color: var(--gray-900);
  background: #f7faf7;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-icon-sm {
  width: 32px;
  height: 32px;
}

.logo-wordmark {
  height: 48px;
  width: auto;
}

@media (max-width: 640px) {
  .logo-wordmark {
    height: 38px;
  }
}

@media (min-width: 1024px) {
  .logo-wordmark {
    height: 56px;
  }
}

.logo-footer {
  height: 28px;
  width: auto;
}

.logo-text {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.5px;
  line-height: 1;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.02em; }
.uppercase { text-transform: uppercase; }

.text-gray-900 { color: var(--gray-900); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-400 { color: #94a3b8; }
.text-gray-800 { color: #1f2937; }
.text-green-700 { color: var(--green-dark); }
.text-green-600 { color: var(--green); }
.text-white { color: var(--white); }

.bg-white { background: var(--white); }
.bg-gray-50 { background: var(--gray-50); }
.bg-gray-100 { background: var(--gray-100); }
.bg-gray-200 { background: #e2e8f0; }
.bg-green-600 { background: var(--green); }

.border { border: 1px solid var(--gray-200); }
.border-gray-200 { border: 1px solid var(--gray-200); }
.border-gray-300 { border: 1px solid #cbd5e1; }
.border-gray-100 { border: 1px solid var(--gray-100); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.rounded { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.75rem; }
.rounded-full { border-radius: 999px; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }

.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.shadow { box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

.hidden { display: none !important; }
.block { display: block; }

.leading-5 { line-height: 1.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--btn-height);
  padding: 0.55rem 1.25rem;
  border-radius: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm {
  min-height: var(--btn-height-sm);
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn-compact {
  min-height: var(--btn-height-compact);
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

.btn-icon {
  width: var(--btn-height-icon);
  height: var(--btn-height-icon);
  padding: 0;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-equal-group {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.btn-equal-group > .btn,
.btn-equal-group > a.btn,
.btn-equal-group > button.btn,
.btn-equal-group > form .btn {
  width: 100%;
}

.btn-edit {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.btn-view {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.btn-delete {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-tool-group {
  display: grid;
  gap: 0.35rem;
}

.admin-range-select {
  min-width: 220px;
}

.admin-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
}

.admin-list-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-list-row > strong {
  flex: 0 0 auto;
}

.admin-export-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 1 1 320px;
}

.admin-search .input {
  min-width: 320px;
  max-width: 420px;
  min-height: 46px;
}

.admin-search .btn {
  min-height: 46px;
  padding: 0 1.25rem;
}

.admin-blog-header {
  display: grid;
  gap: 0.85rem;
}

.admin-blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.admin-blog-search {
  display: grid;
  gap: 0.55rem;
  flex: 1 1 720px;
  max-width: 820px;
}

.admin-blog-search-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-blog-search .admin-blog-search-input {
  min-width: 0;
  max-width: none;
  width: 100%;
}

.admin-blog-search-btn {
  flex: 0 0 auto;
  min-width: 120px;
}

.admin-blog-search-category {
  min-height: 46px;
}

.admin-blog-actions-row {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-blog-actions-row .btn {
  min-height: 46px;
}

.admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.admin-actions form {
  display: inline-flex;
  margin: 0;
}

.row-suspicious {
  background: #fff5f5;
}

.row-banned {
  background: #fff7ed;
}

.admin-thumb {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  object-fit: cover;
  border: 1px solid var(--gray-100);
  background: #f8fafc;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover { background: var(--green-dark); }

.btn-blue {
  background: #2563eb;
  color: #ffffff;
}

.btn-blue:hover {
  background: #1d4ed8;
}

.btn-outline {
  border-color: var(--gray-200);
  background: var(--white);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-danger {
  background: #dc2626;
  color: var(--white);
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-light:hover {
  background: #f1faf4;
  border-color: #d7efd8;
}

.card {
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.checkout-success-card {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.checkout-success-actions {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #e7f6ec;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  background: var(--white);
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 2.6rem;
}

.password-toggle {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle .eye-off {
  display: none;
}

.password-toggle.is-visible .eye {
  display: none;
}

.password-toggle.is-visible .eye-off {
  display: block;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 142, 62, 0.15);
}

.input-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input-valid {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.password-hints {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.2rem;
  color: #b91c1c;
  font-size: 0.9rem;
}

.password-hints li {
  margin: 0.15rem 0;
}

.password-hints li.hint-valid {
  color: #166534;
}

.rich-editor {
  border: 1px solid var(--gray-200);
  border-radius: 0.9rem;
  background: var(--white);
  overflow: hidden;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--gray-100);
}

.rich-btn {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: #0f172a;
  padding: 0.35rem 0.6rem;
  border-radius: 0.55rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rich-btn:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.rich-select {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: #0f172a;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  padding: 0.35rem 0.45rem;
  min-height: 32px;
}

.rich-color-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: #0f172a;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  padding: 0.2rem 0.35rem;
}

.rich-color {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rich-editor-area {
  min-height: 160px;
  padding: 0.75rem 0.9rem;
  outline: none;
}

.rich-editor-area:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
}

.rich-editor-area ul,
.rich-editor-area ol {
  padding-left: 1.4rem;
  margin: 0.4rem 0;
}

.rich-editor-area p {
  margin: 0 0 0.5rem 0;
}

.rich-content ul,
.rich-content ol {
  padding-left: 1.4rem;
  margin: 0.4rem 0;
}

.rich-content p {
  margin: 0 0 0.6rem 0;
}

.admin-blog-form {
  display: grid;
  gap: 1rem;
}

.admin-blog-form-section {
  display: grid;
  gap: 0.65rem;
}

.admin-blog-form-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

.price-old {
  color: var(--gray-500);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.hero {
  background: linear-gradient(135deg, #f5fbf7 0%, #ffffff 60%);
  border: 1px solid var(--gray-100);
  border-radius: 1.5rem;
  padding: 2.5rem;
}

.toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  z-index: 50;
}

.toast-success { border-left: 4px solid var(--green); }
.toast-error { border-left: 4px solid #dc2626; }

.react-toast-stack {
  position: fixed;
  right: 1.25rem;
  top: 1.25rem;
  display: grid;
  gap: 0.55rem;
  z-index: 90;
  width: min(360px, calc(100vw - 2rem));
}

.react-toast {
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  font-weight: 600;
}

.react-toast-success {
  border-left: 4px solid #16a34a;
}

.react-toast-error {
  border-left: 4px solid #dc2626;
}

.react-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.react-dialog-card {
  width: min(480px, 100%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
}

.react-dialog-title {
  margin: 0;
  font-size: 1.15rem;
}

.react-dialog-message {
  margin: 0.6rem 0 0;
  color: #475569;
}

.react-dialog-input {
  margin-top: 0.8rem;
}

.react-dialog-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.modal.open { display: flex; }

.modal-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 720px;
  width: 90%;
}

.newsletter-modal-content {
  max-width: 520px;
}

.newsletter-modal-close {
  margin-left: auto;
}

.newsletter-modal-copy {
  margin-top: 0.75rem;
  color: var(--gray-600);
}

.newsletter-modal-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar {
  background: #0f3d1f;
  color: var(--white);
  font-size: 0.85rem;
}

.topbar-text {
  padding: 0.5rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.nav-links a:hover {
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-wishlist-btn {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--green-dark);
  font-weight: 600;
}

.cart-link:hover {
  border-color: var(--green);
}

.cart-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.cart-count {
  font-size: 0.85rem;
}

.cart-link-mobile {
  width: fit-content;
  margin-top: 0.25rem;
}

.hamburger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--green-dark);
  display: block;
  border-radius: 999px;
  transition: none;
}

.hamburger.is-open span:nth-child(1),
.hamburger.is-open span:nth-child(2),
.hamburger.is-open span:nth-child(3) {
  transform: none;
  opacity: 1;
}

.mobile-menu {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

.mobile-menu .container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0 1.5rem;
  align-items: center;
  text-align: center;
}

.hero-clean {
  margin-top: 1.5rem;
}

.hero-clean-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: stretch;
  padding: 2rem;
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  min-height: 340px;
}

.hero-clean-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.25));
  z-index: 1;
}

.hero-clean-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
}

.hero-clean-text p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-clean-text {
  color: var(--white);
  position: relative;
  z-index: 2;
}

.hero-clean-text .pill {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-point {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-clean-media {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  height: 100%;
}

.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: 1.6rem;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-info {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}

.hero-clean .hero-info {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-info h3 {
  margin-top: 0;
}

.hero-info ul {
  padding-left: 1.1rem;
  margin: 0.75rem 0 1rem;
  color: var(--gray-600);
}

.hero-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-clean .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: transparent;
}

.hero-clean .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.75);
}

.section {
  margin-top: 3rem;
}

.section-muted {
  background: #eef6f0;
  border-radius: 1.5rem;
  padding: 2rem;
}

.filter-panel {
  height: fit-content;
}

.about-photo {
  min-height: 320px;
  border-radius: 1.2rem;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gray-100);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-header h2 {
  margin: 0;
}

.section-header p {
  margin: 0.4rem 0 0;
  color: var(--gray-600);
}

.text-link {
  font-weight: 600;
  color: var(--green);
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--white);
  border-radius: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--gray-100);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.category-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: #f3f6f3;
  color: var(--green-dark);
  overflow: hidden;
}

.category-thumb {
  width: 100%;
  height: 270px;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #f3f6f3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.8rem 0.9rem;
}

.category-thumb img,
.category-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.category-icon svg,
.info-icon svg {
  width: 24px;
  height: 24px;
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-card h3 {
  margin: 0;
  font-size: 1rem;
}

.category-card span {
  display: block;
  color: var(--gray-600);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.category-info {
  padding: 0 0.15rem 0.2rem;
}

.section-strip {
  position: relative;
  margin-top: 2rem;
  border-radius: 1.2rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.shop-search {
  margin-bottom: 1.5rem;
}

.shop-filters-toggle {
  display: none;
}

.shop-search form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.shop-search .input {
  flex: 1;
}

.blog-search-shell {
  margin-bottom: 1rem;
}

.blog-search-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: nowrap;
  width: min(680px, 100%);
}

.blog-search-form .input {
  flex: 1;
  min-width: 0;
}

.blog-layout {
  margin-top: 0.5rem;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-self: start;
}

.blog-post-media {
  display: block;
  margin: -1rem -1rem 0;
  border-radius: 0.9rem 0.9rem 0 0;
  overflow: hidden;
  background: #f3f6fb;
}

.blog-post-media img {
  width: 100%;
  height: clamp(180px, 28vw, 340px);
  object-fit: contain;
  display: block;
}

.blog-post-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.blog-post-body > p {
  margin: 0.5rem 0 1rem;
}

.blog-post-body .btn {
  margin-top: auto;
}

.blog-post-title {
  font-size: 1.15rem;
  line-height: 1.35;
}

.filter-section {
  margin-bottom: 1.25rem;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-section h3 {
  margin: 0;
  font-size: 1rem;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  color: var(--gray-600);
  border: 1px solid transparent;
}

.category-list a.active,
.category-list a:hover {
  border-color: #d7efd8;
  background: #f3fbf5;
  color: var(--green-dark);
}

.shop-category-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  color: var(--gray-600);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.shop-category-btn.active,
.shop-category-btn:hover {
  border-color: #d7efd8;
  background: #f3fbf5;
  color: var(--green-dark);
}

.category-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.category-name img {
  width: 36px;
  height: 36px;
  border-radius: 0.6rem;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  border: 1px solid var(--gray-100);
}

.category-count {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.shop-layout {
  display: grid;
  gap: 2rem;
}

.shop-product-grid {
  /* scoped heights */
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-product-grid .product-media {
  height: 290px;
}

.home-category-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-featured-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-featured-grid .product-media {
  height: 330px;
}

.shop-results {
  min-width: 0;
}

.shop-pagination .btn {
  min-width: 42px;
}

.strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.2));
}

.strip-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: var(--white);
  max-width: 520px;
}

.strip-content h3 {
  margin-top: 0;
}

.strip-content p {
  color: rgba(255, 255, 255, 0.85);
}

.product-card {
  background: var(--white);
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.product-media {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.9rem 1rem;
}

.product-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.product-body {
  padding: 0.75rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-body h3 {
  margin: 0;
  font-size: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-500);
  gap: 0.5rem;
}

.product-category {
  font-weight: 600;
  color: var(--gray-600);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-new {
  font-weight: 700;
  color: var(--green-dark);
}

.product-actions {
  margin-top: 0.2rem;
}

.product-summary {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
}

.product-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.product-gallery img {
  cursor: pointer;
}

.product-gallery {
  display: grid;
  gap: 1rem;
}

.product-main {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 1.2rem;
  padding: 1.5rem;
  min-height: 360px;
  height: 360px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.product-main img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.product-thumb {
  width: 92px;
  height: 92px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 0.8rem;
  padding: 0.35rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.product-thumb:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.product-thumb.is-active {
  border-color: var(--green);
  box-shadow: 0 8px 18px rgba(30, 142, 62, 0.18);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #e7f6ec;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-sale {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
}

.badge-muted {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: #f1f5f9;
  color: var(--gray-600);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e7f6ec;
  color: var(--green-dark);
}

.pill-danger {
  background: #fee2e2;
  color: #991b1b;
}

.pill-warning {
  background: #fef3c7;
  color: #92400e;
}

.pill-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.pill-light {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.pill-muted {
  background: #f1f5f9;
  color: var(--gray-600);
}

.info-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: 0.8rem;
  background: #e7f6ec;
  color: var(--green-dark);
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
}

.site-footer {
  margin-top: 4rem;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid var(--gray-100);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray-500);
  padding: 1rem 0;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 1rem 0;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  z-index: 80;
}

.cookie-card {
  width: min(960px, 100%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(6px);
}

.cookie-title {
  margin: 0 0 0.35rem 0;
  font-weight: 700;
}

.cookie-text {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions .btn {
    flex: 1;
  }
}

.auth-shell {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.auth-card h1 {
  margin-top: 0;
}

.code-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.code-input {
  height: 60px;
  border-radius: 0.9rem;
  border: 2px solid #ef4444;
  background: #fff;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
}

.code-input.is-filled {
  border-color: #16a34a;
  color: #0f172a;
}

.code-inputs.is-complete .code-input {
  border-color: #16a34a;
}

.auth-social {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--gray-200);
  background: #f8fafc;
  font-weight: 600;
}

.social-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}


.social-btn:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.social-dark {
  background: #0f172a;
  color: var(--white);
  border-color: #0f172a;
}

.social-dark:hover {
  color: var(--white);
  opacity: 0.9;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--gray-500);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-shell {
  display: grid;
  gap: 2rem;
}

.account-sidebar {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.account-content {
  width: 100%;
  min-width: 0;
}

.account-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
}

.account-card .btn {
  min-height: 46px;
  width: 100%;
  justify-content: center;
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #e7f6ec;
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 1rem;
  overflow: hidden;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-table table,
.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.account-table th,
.account-table td,
.order-table th,
.order-table td {
  padding: 0.88rem 0;
  border-bottom: 1px solid var(--gray-100);
  text-align: left;
  font-size: 0.95rem;
}

.account-table th {
  color: var(--gray-500);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .md\\:flex { display: flex !important; }
  .md\\:hidden { display: none !important; }
  .md\\:block { display: block !important; }
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\\:col-span-2 { grid-column: span 2 / span 2; }
  .md\\:col-span-3 { grid-column: span 3 / span 3; }
  .md\\:text-3xl { font-size: 1.875rem; }
  .md\\:text-4xl { font-size: 2.25rem; }
  .md\\:p-8 { padding: 2rem; }
  .nav-links { display: flex; }
  .hero-clean-grid { grid-template-columns: 1.25fr 0.75fr; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-shell { grid-template-columns: 300px 1fr; }
  .hamburger { display: none; }
  .product-media { height: 280px; }
  .shop-layout { grid-template-columns: 280px 1fr; align-items: start; }
}

@media (min-width: 1024px) {
  .product-media { height: 280px; }
}

@media (max-width: 767px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.35rem 0;
  }

  .topbar-text {
    padding: 0;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .nav-wrap {
    gap: 0.55rem;
    padding: 0.75rem 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo-wordmark {
    height: 34px;
  }

  .nav-actions {
    gap: 0.45rem;
    min-width: 0;
  }

  .nav-wishlist-btn {
    min-height: 38px;
    padding: 0.35rem 0.65rem;
    font-size: 0.9rem;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cart-link {
    padding: 0.35rem 0.5rem;
  }

  .mobile-menu .container {
    align-items: stretch;
    text-align: left;
    padding-bottom: 1rem;
  }

  .mobile-menu a {
    width: 100%;
    font-weight: 600;
    padding: 0.2rem 0;
  }

  .mobile-menu form {
    width: 100%;
  }

  .section {
    margin-top: 2rem;
  }

  .section-muted {
    padding: 1rem;
    border-radius: 1rem;
  }

  .hero-clean-grid {
    gap: 1rem;
    padding: 1.1rem;
    min-height: 0;
    border-radius: 1rem;
  }

  .hero-clean-text h1 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .hero-clean-text p {
    font-size: 0.95rem;
  }

  .hero-clean .hero-info {
    width: 100%;
    padding: 0.75rem 0.85rem;
  }

  .strip-content {
    padding: 1.2rem;
  }

  .strip-content h3 {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .shop-layout {
    gap: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-search form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

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

  .blog-search-shell .blog-search-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.55rem;
  }

  .blog-search-shell .btn {
    width: 100%;
    flex: 1 1 auto;
  }

  .shop-filters-toggle {
    display: inline-flex;
    margin-bottom: 0.9rem;
  }

  .filter-panel {
    display: none;
  }

  .shop-layout.is-filters-open .filter-panel {
    display: block;
  }

  .shop-results .section-header h1,
  .shop-results .section-header h2 {
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .shop-results .section-header p {
    margin-top: 0.25rem;
  }

  .shop-pagination .flex {
    width: 100%;
    flex-wrap: wrap;
  }

  .shop-pagination .btn {
    min-width: 0;
    flex: 1 1 calc(33.333% - 0.5rem);
  }

  .shop-pagination .btn:first-child,
  .shop-pagination .btn:last-child {
    flex-basis: 100%;
  }

  .shop-category-btn .category-name {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .blog-post-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-media img {
    height: clamp(180px, 52vw, 240px);
  }

  .cart-item-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .cart-item-row img {
    width: 100px !important;
    height: 100px !important;
  }

  .cart-item-qty {
    width: 100%;
    max-width: none !important;
  }

  .cart-item-remove {
    width: 100%;
  }

  .cart-promo-form {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-promo-form .btn {
    width: 100%;
  }

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

  .admin-search .input,
  .admin-search .btn {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .admin-tool-group,
  .admin-range-select {
    width: 100%;
    min-width: 0;
  }

  .admin-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-header-row h1 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .admin-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
  }

  .admin-header-actions .btn {
    flex: 0 0 auto;
    min-width: 138px;
  }

  .admin-theme-switch {
    min-width: 0;
    justify-content: center;
  }

  .hero-actions,
  .newsletter-modal-actions,
  .cookie-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .newsletter-modal-actions .btn,
  .cookie-actions .btn {
    width: 100%;
  }

  .admin-blog-toolbar {
    align-items: stretch;
  }

  .admin-blog-search {
    flex: 1 1 100%;
    max-width: none;
  }

  .admin-blog-search-main .admin-blog-search-btn {
    width: auto;
  }

  .admin-blog-actions-row {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .shop-product-grid { grid-template-columns: 1fr; }
  .product-media { height: 260px; }
  .shop-product-grid .product-media { height: 270px; }
  .home-featured-grid .product-media { height: 240px; }
  .home-category-grid,
  .home-featured-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .home-category-grid > .category-card,
  .home-featured-grid > .product-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
  .category-thumb { height: 220px; align-items: center; }
  .category-card { height: 100%; }
  .footer-grid { text-align: center; }
  .footer-links { align-items: center; }
  .footer-badges { justify-content: center; }
  .footer-bottom-inner { justify-content: center; text-align: center; }

  .admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
  }

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

@media (max-width: 1023px) {
  .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .product-main { height: 300px; }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\\:block { display: block; }
  .lg\\:hidden { display: none; }
}



.btn-admin-add {
  background: #14b8a6;
  color: #ffffff;
  border: 1px solid #0f766e;
}

.btn-admin-add:hover {
  background: #0f766e;
}

.btn-admin-remove {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #b91c1c;
}

.btn-admin-remove:hover {
  background: #b91c1c;
}

.btn-admin-disabled {
  background: #e2e8f0;
  color: #94a3b8;
  border: 1px solid #cbd5e1;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.2rem 0;
}

.admin-actions form,
.admin-actions a {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
}

.admin-actions .btn,
.admin-actions .btn-icon {
  margin: 0.12rem 0;
}

.card table th,
.card table td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  vertical-align: middle;
}

.card table th:first-child,
.card table td:first-child {
  padding-left: 0.35rem;
}

.card table th:last-child,
.card table td:last-child {
  padding-right: 0.35rem;
}

.table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.table-scroll table {
  min-width: 760px;
  width: max-content;
}

.admin-export-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-export-overlay.is-open {
  display: flex;
}

.admin-export-open {
  overflow: hidden;
}

.admin-export-card {
  width: min(680px, 100%);
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 1rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.admin-export-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-export-title {
  margin: 0;
  font-size: 1.1rem;
}

.admin-export-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #64748b;
}

.admin-export-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d1d9e6;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.admin-export-close:hover {
  border-color: #94a3b8;
}

.admin-export-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-export-tab {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid #d1d9e6;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}

.admin-export-tab.is-active {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

.admin-export-pane {
  display: none;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: #f8fafc;
}

.admin-export-pane.is-active {
  display: grid;
  gap: 0.75rem;
}

.admin-export-pane-note {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}

.admin-export-pane-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-export-email-form {
  display: grid;
  gap: 0.5rem;
}

.admin-page-stack {
  display: grid;
  gap: 1.25rem;
}

.admin-page-stack.is-loading {
  opacity: 0.72;
}

.admin-card-stack {
  display: grid;
  gap: 0.65rem;
}

.admin-card-stack > form,
.admin-card-stack > a,
.admin-card-stack > button {
  width: 100%;
}

.admin-card-stack > form .btn,
.admin-card-stack > a.btn,
.admin-card-stack > button.btn {
  width: 100%;
  min-height: var(--btn-height);
}

.admin-form-stack {
  display: grid;
  gap: 0.75rem;
}

.admin-form-stack .btn,
.admin-form-stack .input,
.admin-form-stack .select,
.admin-form-stack .textarea {
  width: 100%;
}

.admin-main .grid > .card {
  height: 100%;
}

.admin-stat-card {
  display: grid;
  gap: 0.45rem;
}

.admin-stat-sparkline {
  margin-top: 0.35rem;
  height: 96px;
}

.admin-stat-sparkline canvas {
  width: 100% !important;
  height: 100% !important;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at -15% -10%, rgba(20, 184, 166, 0.08), transparent 55%),
    radial-gradient(900px 500px at 120% 0%, rgba(37, 99, 235, 0.08), transparent 50%),
    #f8fafc;
}

.admin-sidebar {
  min-width: 250px;
  max-width: 250px;
  height: 100vh;
  position: sticky;
  top: 0;
  border-radius: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  box-shadow: 10px 0 28px rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.admin-sidebar-brand {
  min-width: 0;
}

.admin-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #d1d9e6;
  border-radius: 0.75rem;
  background: #ffffff;
}

.admin-nav-toggle span {
  width: 20px;
  height: 2px;
  background: #1e8e3e;
  border-radius: 999px;
}

.admin-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.admin-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.admin-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.admin-sidebar-nav {
  flex-direction: column;
  gap: 0.45rem;
}

.admin-sidebar-nav a {
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.5rem 0.65rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.admin-sidebar-nav a.is-active {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
  font-weight: 700;
}

.admin-sidebar-nav a:hover {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-nav-dot {
  min-width: 18px;
  height: 18px;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.admin-sidebar-nav form {
  margin-top: 0.45rem;
}

.admin-main {
  flex: 1;
  min-width: 0;
}

.admin-main .container {
  max-width: 1360px;
}

.card table tbody tr:hover {
  background: rgba(239, 246, 255, 0.7);
}

@media (max-width: 1023px) {
  body.admin-nav-open {
    overflow: hidden;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    min-width: 100%;
    max-width: none;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 60;
    border-right: 0;
    box-shadow: none;
    padding: 0.9rem 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
  }

  .admin-sidebar.is-open {
    max-height: 100dvh;
  }

  .admin-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .admin-sidebar-brand {
    font-size: 1.45rem;
  }

  .admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0;
    border-top: 1px solid #dbe2ea;
    padding-top: 0.7rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .admin-sidebar.is-open .admin-sidebar-nav {
    max-height: 1200px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0.65rem;
    padding-bottom: 0.2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    align-content: start;
  }

  .admin-sidebar-nav a,
  .admin-sidebar-nav form {
    flex: initial;
    width: 100%;
    margin: 0;
  }

  .admin-sidebar-nav a {
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-weight: 600;
    line-height: 1.3;
    background: #ffffff;
    border-color: #e2e8f0;
  }

  .admin-sidebar-nav form .btn {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
  }

  .admin-main header .container {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
}

@media (max-width: 1023px) {
  .admin-theme-dark .admin-sidebar {
    background: rgba(11, 18, 32, 0.97);
    border-color: rgba(148, 163, 184, 0.28);
  }

  .admin-theme-dark .admin-sidebar-nav a {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.4);
    color: #cbd5e1;
  }

  .admin-theme-dark .admin-sidebar-nav form .btn {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
  }
}

@media (max-width: 560px) {
  .admin-sidebar-brand {
    font-size: 1.35rem;
  }

  .admin-sidebar-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-sidebar.is-open .admin-sidebar-nav {
    grid-template-columns: 1fr;
  }
}

.admin-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: #334155;
  user-select: none;
  padding: 0.25rem 0.45rem;
  border: 1px solid #d1d9e6;
  border-radius: 999px;
  background: #f8fafc;
}

.admin-theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-theme-slider {
  position: relative;
  width: 54px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.admin-theme-icon {
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.9;
}

.admin-theme-icon-sun {
  color: #b45309;
}

.admin-theme-icon-moon {
  color: #1e3a8a;
}

.admin-theme-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

.admin-theme-switch input:checked + .admin-theme-slider {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #1e293b;
}

.admin-theme-switch input:checked + .admin-theme-slider::after {
  transform: translateX(26px);
}

.admin-theme-label {
  font-weight: 600;
  color: #475569;
}

.admin-top-page-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.admin-top-page-row:last-child {
  border-bottom: 0;
}

.admin-top-page-left {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.admin-top-page-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}

.admin-top-page-path {
  font-size: 0.76rem;
  color: #64748b;
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  padding: 1.4rem;
  background: rgba(2, 6, 23, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.admin-modal-overlay.is-open {
  display: flex;
}

.admin-modal-overlay.is-fullscreen {
  padding: 0;
}

.admin-modal-open {
  overflow: hidden;
}

.admin-modal-card {
  width: min(1180px, 98vw);
  height: min(92vh, 920px);
  border-radius: 1rem;
  border: 1px solid #dbe2ea;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.38);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 1rem;
  background: #f8fafc;
}

.admin-modal-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.admin-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-close:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.admin-modal-body {
  position: relative;
  flex: 1;
}

.admin-modal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  z-index: 1;
}

.admin-modal-loader.is-hidden {
  display: none;
}

.admin-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.admin-modal-frame.is-ready {
  opacity: 1;
}

.admin-modal-page {
  background: #f8fafc;
}

.admin-modal-page-content {
  width: min(1160px, 100%);
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 auto;
}

.admin-modal-page-content > .card {
  width: min(760px, 100%);
  margin: 0 auto;
}

.admin-modal-page-content > .grid,
.admin-modal-page-content > .table-scroll,
.admin-modal-page-content > [data-live-search-root] {
  width: 100%;
}

.admin-modal-page-content .card {
  box-shadow: none;
}

.admin-modal-page-content.is-fullscreen {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0.75rem 1rem 1.5rem;
}

.admin-modal-page-content.is-fullscreen > .card {
  width: 100%;
  max-width: none;
}

.admin-modal-overlay.is-fullscreen .admin-modal-card {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: 0;
}

.admin-modal-overlay.is-fullscreen .admin-modal-header {
  border-radius: 0;
}

.admin-theme-dark {
  color: #e2e8f0;
  background: #0b1220;
}

.admin-theme-dark .admin-shell {
  background:
    radial-gradient(920px 540px at -10% -10%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(850px 480px at 120% -10%, rgba(37, 99, 235, 0.18), transparent 52%),
    #0b1220;
}

.admin-theme-dark .admin-sidebar {
  background: linear-gradient(180deg, #0f1b2e 0%, #111d31 100%);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 12px 0 34px rgba(0, 0, 0, 0.35);
}

.admin-theme-dark .admin-sidebar .text-green-700 {
  color: #4ade80;
}

.admin-theme-dark .admin-sidebar-nav a {
  color: #cbd5e1;
}

.admin-theme-dark .admin-sidebar-nav a.is-active {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.admin-theme-dark .admin-sidebar-nav a:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.48);
  color: #dbeafe;
}

.admin-theme-dark header.bg-white {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(100, 116, 139, 0.35);
  backdrop-filter: blur(8px);
}

.admin-theme-dark .card,
.admin-theme-dark .bg-white {
  background: #111b2d;
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.admin-theme-dark .text-gray-900 {
  color: #f1f5f9;
}

.admin-theme-dark .text-gray-700,
.admin-theme-dark .text-gray-600,
.admin-theme-dark .text-gray-500,
.admin-theme-dark .text-gray-400 {
  color: #cbd5e1;
}

.admin-theme-dark .input,
.admin-theme-dark .select,
.admin-theme-dark .textarea {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.admin-theme-dark .input:focus,
.admin-theme-dark .select:focus,
.admin-theme-dark .textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

.admin-theme-dark .btn-outline {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
}

.admin-theme-dark .btn-outline:hover {
  border-color: #60a5fa;
  color: #bfdbfe;
}

.admin-theme-dark .admin-nav-toggle {
  border-color: rgba(148, 163, 184, 0.45);
  background: #0f172a;
  color: #e2e8f0;
}

.admin-theme-dark .admin-nav-toggle span {
  background: #cbd5e1;
}

.admin-theme-dark .admin-nav-toggle:hover {
  border-color: #60a5fa;
  color: #bfdbfe;
}

.admin-theme-dark .admin-theme-switch {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.35);
}

.admin-theme-dark .admin-theme-label {
  color: #cbd5e1;
}

.admin-theme-dark .admin-top-page-row {
  border-color: rgba(148, 163, 184, 0.22);
}

.admin-theme-dark .admin-top-page-title {
  color: #f1f5f9;
}

.admin-theme-dark .admin-top-page-path {
  color: #94a3b8;
}

.admin-theme-dark .card table tbody tr:hover {
  background: rgba(59, 130, 246, 0.16);
}

.admin-theme-dark .card table th,
.admin-theme-dark .card table td {
  border-color: rgba(148, 163, 184, 0.22);
}

.admin-theme-dark .admin-modal-card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.34);
}

.admin-theme-dark .admin-modal-header {
  background: #111f36;
  border-color: rgba(148, 163, 184, 0.32);
}

.admin-theme-dark .admin-modal-close {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.4);
}

.admin-theme-dark .admin-modal-loader {
  background: #0f172a;
  color: #cbd5e1;
}

.admin-theme-dark .rich-editor {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.35);
}

.admin-theme-dark .rich-toolbar {
  background: #111f36;
  border-color: rgba(148, 163, 184, 0.3);
}

.admin-theme-dark .rich-btn,
.admin-theme-dark .rich-select,
.admin-theme-dark .rich-color-wrap {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.admin-theme-dark .rich-btn:hover {
  color: #bfdbfe;
  border-color: #60a5fa;
}

.admin-theme-dark .rich-editor-area {
  color: #e2e8f0;
}

.admin-theme-dark .rich-editor-area:empty:before {
  color: #94a3b8;
}

.admin-theme-dark .rich-color {
  background: transparent;
}

.admin-modal-page.admin-theme-dark {
  background: #0b1220;
}

.admin-modal-page.admin-theme-dark .admin-modal-page-content {
  color: #e2e8f0;
}

.admin-theme-dark .admin-export-card {
  background: #0f172a;
  border-color: #334155;
}

.admin-theme-dark .admin-export-subtitle {
  color: #94a3b8;
}

.admin-theme-dark .admin-export-close {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.admin-theme-dark .admin-export-tab {
  background: #111b34;
  border-color: #334155;
  color: #cbd5e1;
}

.admin-theme-dark .admin-export-tab.is-active {
  background: #083344;
  border-color: #155e75;
  color: #99f6e4;
}

.admin-theme-dark .admin-export-pane {
  background: #0b1328;
  border-color: #334155;
}

.admin-theme-dark .admin-export-pane-note {
  color: #cbd5e1;
}

@media (max-width: 767px) {
  .admin-header-actions {
    gap: 0.5rem;
    grid-template-columns: 1fr;
  }

  .admin-header-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .admin-theme-label {
    display: none;
  }

  .admin-modal-overlay {
    padding: 0.55rem;
  }

  .admin-modal-card {
    width: 100%;
    height: 94vh;
    border-radius: 0.85rem;
  }

  .table-scroll {
    display: block;
    padding-bottom: 0.25rem;
  }

  .table-scroll table {
    min-width: 680px;
  }

  .admin-main .card {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-main .card table {
    min-width: 680px;
  }

  .admin-main .card .admin-form-stack,
  .admin-main .card .admin-card-stack {
    min-width: 0;
  }

  .admin-export-card {
    width: 100%;
    padding: 0.85rem;
  }

  .admin-export-pane-actions .btn,
  .admin-export-email-form .btn {
    width: 100%;
  }
}
