@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Work+Sans:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --base-bg: #f3f1ee;
  --card-bg: #fff4eb;
  --cream: #f9f5ef;
  --text-dark: #2f1e13;
  --muted: #6f5a4c;
  --accent: #7c2c1a;
  --border: rgba(47, 30, 19, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f1efe9 0%, #f9f7f1 60%, #e9e6df 100%);
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 30px 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-header {
  top: 0;
  position: sticky;
  z-index: 1000;
}

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

.main-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  position: relative;
  width: 100%;
  padding: 20px 20px 26px;
  background: linear-gradient(180deg, rgba(245, 240, 233, 0.85), rgba(237, 232, 224, 0.65));
  border-bottom: 1px solid rgba(47, 30, 19, 0.08);
  box-shadow: 0 12px 24px rgba(47, 30, 19, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-back {
  border: none;
  background: transparent;
  color: #3b1f13;
  font-size: 1.8rem;
  font-weight: 800;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  border-radius: 999px;
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-back:hover {
  transform: translate(-2px, -50%);
}

.nav-back-hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-logo {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: rgb(173, 23, 23);
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
  text-transform: capitalize;
  padding: 6px 18px;
  margin-right: auto;
}

.nav-logo:focus-visible {
  outline: 2px solid rgb(173, 23, 23);
  outline-offset: 4px;
  border-radius: 12px;
}



.nav-pill a,
.nav-pill button {
  color: #fff;
  background: transparent;
  border: none;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-user {
  position: relative;
}

.nav-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
  z-index: 20;
}

.nav-user-menu button {
  background: none;
  border: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-user-menu button:hover {
  background: rgba(124, 44, 26, 0.08);
}

.lang-toggle {
  margin-left: 0px;
}

.nav-pill a:hover,
.nav-pill a:focus-visible,
.nav-pill button:hover,
.nav-pill button:focus-visible {
  background: rgba(255, 255, 255, 0.85);
  color: #2f1e13;
}

.nav-pill .nav-active {
  background: #dedede;
  color: #2f1e13;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

.nav-pill-wide {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 16px;
  background: #0b0b0b;
  border-radius: 999px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-divider {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

@media (min-width: 721px) {
  .nav-actions {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    order: 2;
    justify-content: center;
  }

  .nav-pill-wide {
    margin: 0 auto;
  }

  .nav-logo {
    order: 1;
    margin-right: auto;
    margin-left: 0;
    flex: 0 0 auto;
  }

  .nav-hamburger {
    order: 4;
  }
}

.lang-toggle {
  display: flex;
}

.lang-toggle button {
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #0b0b0b;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lang-toggle button:hover {
  background: #0b0b0b;
  color: #fff;
}

.admin-button {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.admin-only {
  display: none;
}

.nav-hamburger {
  border: none;
  background: transparent;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: #2f1e13;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-hamburger.nav-hamburger-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.nav-hamburger.nav-hamburger-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile-panel {
  display: none;
}

.admin-mode .admin-only {
  display: inline-flex;
}

.hero {
  background-image: linear-gradient(
      180deg,
      rgba(7, 7, 7, 0.15),
      rgba(7, 7, 7, 0.28)
    ),
    url("/mountains.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 32px;
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(220px, 0.8fr);
  gap: 32px;
  box-shadow: 0 24px 60px rgba(12, 12, 12, 0.3);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #fdf6ee;
  margin: 0 0 12px;
  line-height: 1.1;
}


.hero-description {
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  margin-bottom: 24px;
  line-height: 1.5;
}


.btn {
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-light {
  background: var(--cream);
  color: var(--text-dark);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.btn-dark {
  background: #3b1f13;
  color: #fff;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-pill-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 360px;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.9);
  padding: 18px 20px;
  border-radius: 24px;
  color: var(--text-dark);
  box-shadow: 0 18px 40px rgba(12, 12, 12, 0.2);
}

.hero-pill strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.teas-section {
  background: #fff;
  padding: 36px 36px 30px;
  box-shadow: 0 32px 80px rgba(62, 43, 23, 0.15);
}

.teas-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 32px;
  align-items: start;
}

.teas-sidebar-wrapper {
  position: relative;
}

@media (min-width: 901px) {
  .teas-sidebar-wrapper {
    align-self: stretch;
    height: 100%;
  }
}

.teas-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 28px;
  background: #f7f1ea;
  box-shadow: inset 0 0 0 1px rgba(47, 30, 19, 0.08);
  position: sticky;
  top: 120px;
}

.teas-sidebar-toggle {
  display: none;
}

.teas-sidebar h3 {
  margin: 0;
  font-size: 1.5rem;
}

.teas-sidebar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.teas-main {
  position: relative;
}

.admin-button {
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-name {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}



.sidebar-button {
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.17);
  width: 100%;
}

.sidebar-button:hover {
  opacity: 0.9;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.filter-button {
  border: none;
  border-radius: 18px;
  padding: 10px 16px;
  background: rgba(47, 30, 19, 0.08);
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-button.active {
  background: var(--text-dark);
  color: #fff;
}

.filter-button:hover {
  transform: translateY(-1px);
}

.filter-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot-color, rgba(47, 30, 19, 0.4));
  flex-shrink: 0;
}

.category-pill {
  align-self: flex-start;
  background: rgba(47, 30, 19, 0.9);
  color: #fff;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.category-pill.image-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  margin: 0;
  background: rgba(47, 30, 19, 0.95);
  letter-spacing: 0.12em;
}

.section-heading h2 {
  font-size: 2rem;
  margin: 0;
  margin-bottom: 30px;
}

.section-heading p {
  color: var(--muted);
  max-width: 640px;
  margin-top: 12px;
  line-height: 1.6;
}

.project-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.add-tea-button {
  border: none;
  background: #050505;
  color: #fff;
  border-radius: 20px;
  padding: 12px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.add-tea-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 32px 55px rgba(0, 0, 0, 0.3);
}

.add-tea-icon {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.add-tea-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.refresh-tea-button {
  border: 1px solid rgba(47, 30, 19, 0.15);
  background: #fff;
  color: #2f1e13;
  border-radius: 20px;
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.refresh-tea-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 26px 45px rgba(0, 0, 0, 0.2);
  border-color: rgba(47, 30, 19, 0.35);
}

.refresh-tea-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.refresh-tea-icon {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.refresh-tea-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-align: center;
}

.refresh-status {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.refresh-status.success {
  color: #1b7a52;
}

.refresh-status.error {
  color: #a13b2c;
}

.admin-table {
  width: 100%;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.admin-table-content {
  min-width: 720px;
}

.admin-row {
  display: grid;
  grid-template-columns: 0.5fr 0.9fr 1fr 1.2fr 0.8fr 1.4fr;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(47, 30, 19, 0.1);
  font-size: 0.95rem;
  align-items: center;
}

.admin-row span {
  word-break: break-word;
}

.admin-row-head {
  background: #f5f2ee;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #5a4333;
}

.admin-row:last-child {
  border-bottom: none;
}

.dashboard-message {
  color: var(--muted);
  margin: 12px 0 24px;
}

.dashboard-message.error {
  color: #a13b2c;
}

.status-cell {
  justify-self: flex-start;
}

.favorites-cell {
  font-size: 0.9rem;
  color: #46352a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.status-pill.verified {
  background: rgba(27, 122, 82, 0.15);
  color: #1b7a52;
}

.status-pill.pending {
  background: rgba(161, 59, 44, 0.15);
  color: #a13b2c;
}

@media (max-width: 900px) {
  .admin-table-content {
    min-width: 540px;
  }
  .admin-row,
  .admin-row-head {
    grid-template-columns: 0.6fr 0.9fr 1fr 1fr 0.8fr 1.4fr;
  }
}

@media (max-width: 640px) {
  .admin-table-content {
    min-width: 480px;
  }
  .admin-row,
  .admin-row-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .status-cell,
  .favorites-cell {
    justify-self: flex-start;
  }
}


.search-row input {
  width: 100%;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(47, 30, 19, 0.2);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-row input:focus {
  outline: none;
  border-color: #7c2c1a;
  box-shadow: 0 0 0 3px rgba(124, 44, 26, 0.2);
}

.tea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 32px;
}

.shop-view .tea-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.tea-card {
  background: var(--card-bg);
  border-radius: 28px;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.25s ease;
  border: none;
  text-align: left;
  
}

.tea-card:focus {
  outline: none;
}

.tea-card:hover,
.tea-card:focus-visible {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
}

.tea-card-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f2f0eb;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.tea-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.favorite-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(47, 30, 19, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: #a0492c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.favorite-button:hover {
  transform: scale(1.07);
}

.favorite-active {
  background: #7c2c1a;
  color: #fff;
  border-color: #7c2c1a;
}

.tea-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px 0;
}

.tea-card h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.price-row {
  display: flex;
  margin-top: 10px;
  margin-bottom: 10px;
  justify-content: space-between;
  align-items: center;
}

.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.weight-pill {
  margin-left: auto;
  background: #efe4d6;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #53341d;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.tea-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.5rem;
}

.info-stack {
  margin-top: 12px;
  background: #fffaf3;
  border-radius: 24px;
  padding: 12px;
  border: 1px dashed rgba(119, 90, 57, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-stack-head {
  background: #eadcc9;
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #51321b;
}

.info-stack-beans {
  display: flex;
  gap: 6px;
}

.info-bean {
  width: 14px;
  height: 14px;
  background: url("/coffee-bean.png") center/contain no-repeat;
  opacity: 0.3;
}

.info-bean.filled {
  opacity: 1;
}

.info-stack-row {
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eadfce;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.tea-origin {
  display: none;
}

.tea-origin {
  margin-top: 12px;
  padding: 12px 16px;
  background: #f2e7d9;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.tea-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #f2e7d9;
  border-radius: 18px;
}

.tea-edit-button {
  position: absolute;
  top: 12px;
  left: 12px;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(59, 31, 19, 0.95);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.tea-edit-button:hover {
  transform: translateY(-2px);
}

.buy-section {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.buy-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.buy-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}

.buy-button {
  border: 1px solid #eadfce;
  border-radius: 10px;
  width: 100px;
  height: 36px;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: transparent;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80% auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}


.buy-allegro {
  background-image: url('/allegro_logo.png');
  background-size: 55% auto;
  background-position: center 52%;
}

.buy-olx {
  background-image: url('/olx_logo.png');
  background-size: auto 60%;
  background-position: center 48%;
}

.detail-link {
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid rgba(47, 30, 19, 0.25);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
}

.editor-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2100;
}

.login-panel {
  background: #fff9f2;
  border-radius: 24px;
  padding: 32px;
  width: min(360px, 100%);
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}

.login-subtitle {
  margin: 0;
  color: #7c5c47;
  font-size: 1rem;
}

.login-helper {
  margin: 6px 0 0;
  color: rgba(47, 30, 19, 0.8);
  font-size: 0.9rem;
}

.login-email-hint {
  margin: 0;
  color: rgba(47, 30, 19, 0.8);
  font-size: 0.9rem;
  font-style: italic;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 22px;
}

.login-inline-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.login-inline-fields label {
  margin: 0;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.login-form input {
  border-radius: 14px;
  border: 1px solid rgba(47, 30, 19, 0.2);
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
}

.login-error {
  color: #a33;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.login-info {
  color: #236a33;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.login-toggle {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(47, 30, 19, 0.8);
}

.login-toggle-button {
  border: none;
  padding: 0;
  background: none;
  color: #4c2b19;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.login-verify-note {
  justify-content: center;
}

.login-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.editor-modal.hidden {
  display: none;
}

.editor-panel {
  background: #fffaf3;
  border-radius: 28px;
  padding: 32px;
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(47, 30, 19, 0.08);
  position: relative;
}

.editor-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

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

.editor-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--muted);
  gap: 6px;
  font-weight: 600;
}

.editor-form input,
.editor-form textarea {
  border-radius: 16px;
  border: 1px solid rgba(47, 30, 19, 0.18);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  box-shadow: inset 0 2px 6px rgba(47, 30, 19, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-form input:focus,
.editor-form textarea:focus {
  outline: none;
  border-color: #3b1f13;
  box-shadow: 0 0 0 3px rgba(59, 31, 19, 0.12);
}

.editor-form textarea {
  min-height: 90px;
  resize: vertical;
}

.field-row {
  display: flex;
  gap: 14px;
}

.field-row.single .field-cell {
  flex: 1;
}

.field-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.file-upload input {
  border: 1px dashed rgba(47, 30, 19, 0.25);
  border-radius: 14px;
  padding: 10px;
  font-family: inherit;
  cursor: pointer;
  background: #fff;
}

.image-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.image-preview-thumb {
  width: 80px;
  height: 60px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.image-preview-remove {
  border: none;
  background: #c0392b;
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 600;
}

.gallery-editor {
  border: 1px dashed rgba(47, 30, 19, 0.2);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-editor-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(47, 30, 19, 0.75);
  font-weight: 600;
  font-size: 0.95rem;
}

.gallery-editor-header small {
  font-weight: 400;
  font-size: 0.85rem;
}

.gallery-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.gallery-thumb {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 18px;
  background: rgba(47, 30, 19, 0.08);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(47, 30, 19, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(47, 30, 19, 0.4);
  font-weight: 700;
  font-size: 1rem;
}

.gallery-thumb-placeholder {
  font-size: 1.1rem;
}

.gallery-row-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-row-fields label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(47, 30, 19, 0.8);
}

.gallery-row-fields input {
  border-radius: 14px;
  border: 1px solid rgba(47, 30, 19, 0.18);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
}

.gallery-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-upload {
  position: relative;
  overflow: hidden;
}

.gallery-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.editor-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-delete {
  background: #b13b2c;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: 0 12px 24px rgba(177, 59, 44, 0.35);
}

@media (max-width: 540px) {
  .editor-panel {
    padding: 24px 20px;
  }

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

  .editor-actions {
    flex-direction: column;
  }
}

.newsletter {
  
  background: #3b2419;
  color: #f9f5ef;
  border-radius: 0 0 28px 28px;
  padding: 36px 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  box-shadow: 0 30px 70px rgba(25, 14, 8, 0.4);
}

.newsletter h3 {
  font-size: 2rem;
  margin: 8px 0;
  font-family: "Playfair Display", "Times New Roman", serif;
}

.newsletter p {
  margin: 0;
  line-height: 1.5;
  max-width: 460px;
}

.newsletter-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  max-width: 520px;
}

.newsletter-form input {
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 1rem;
  min-width: 0;
  flex: 1 1 260px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.newsletter-form button {
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  background: #fbeedc;
  color: #3b2419;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
}

.newsletter-form button:hover {
  opacity: 0.9;
}

.newsletter-form button:disabled {
  background: #c8c2bb;
  color: rgba(59, 36, 25, 0.6);
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.newsletter-status {
  width: 100%;
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.newsletter-status-success {
  color: #d8f2d8;
}

.newsletter-status-error {
  color: #ffd0c3;
}

/* --- Our Teas page --- */
.our-teas-page .page-shell {
  max-width: 1280px;
}

.teas-hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), rgba(46, 32, 22, 0.9)),
    url("/mountains.jpg") center/cover;
  border-radius: 36px;
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  overflow: hidden;
  color: #fef8ef;
}



.teas-hero-copy {
  position: relative;
  z-index: 1;
}

.teas-hero h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 12px 0;
}

.hero-chip {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.teas-hero p {
  line-height: 1.6;
  max-width: 480px;
}

.teas-hero-panels {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.teas-hero-panels div {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 22px;
  padding: 16px 20px;
  backdrop-filter: blur(6px);
}

.teas-hero-panels span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.slider-shell {
  margin-top: 48px;
  background: #fffdfa;
  border-radius: 30px;
  padding: 40px 32px;
  box-shadow: 0 25px 60px rgba(24, 11, 3, 0.15);
}

.slider-heading h2 {
  font-size: 2.4rem;
  margin: 0 0 8px;
}

.slider-heading p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
}

.slider {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-window {
  overflow: hidden;
  flex: 1;
}

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.slider-card {
  min-width: 280px;
  background: var(--card-bg);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.slider-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)),
    url("/mountains.jpg") center/cover;
  opacity: 0.25;
  transition: opacity 0.4s ease;
}

.slider-card:hover::before {
  opacity: 0.4;
}

.slider-card > * {
  position: relative;
  z-index: 1;
}

.slider-card h3 {
  margin: 8px 0 4px;
}

.slider-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.slider-card .tasting-note {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
}

.slider-card .story-snippet {
  font-size: 0.9rem;
  color: rgba(47, 30, 19, 0.75);
  margin: 8px 0 4px;
}

.slider-btn {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: none;
  background: #1c1109;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.slider-btn:hover {
  transform: translateY(-2px);
}

.moods-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.moods-card {
  background: #21130b;
  color: #f5ede0;
  padding: 24px;
  border-radius: 26px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  animation: floatCard 6s ease-in-out infinite;
}

.moods-card:nth-child(2) {
  animation-delay: 1s;
}

.moods-card:nth-child(3) {
  animation-delay: 2s;
}

.moods-card ul {
  padding-left: 18px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.our-teas-view .teas-hero {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), rgba(20, 39, 37, 0.95)),
    url("/mountains.jpg") center/cover;
}

.our-teas-view .teas-hero::after {
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.3), transparent 55%);
}

.our-teas-view .hero-chip {
  background: rgba(255, 255, 255, 0.18);
  color: #fffefa;
}

.our-teas-view .slider-shell {
  background: #fff5ec;
}

.our-teas-view .slider-card {
  background: rgba(255, 255, 255, 0.96);
}

.our-teas-view .slider-card::before {
  opacity: 0.12;
}

.our-teas-view .slider-btn {
  background: #224339;
}

.our-teas-view .moods-card {
  background: #2a1b13;
}

/* --- Tea detail page --- */
.tea-detail-page .page-shell {
  max-width: 1200px;
  gap: 24px;
}

.detail-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detail-hero {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(21, 12, 8, 0.9)),
    url("/mountains.jpg") center/cover;
  border-radius: 36px;
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  color: #fff9f0;
  position: relative;
  overflow: hidden;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.2), transparent 55%);
  pointer-events: none;
}

.detail-hero > * {
  position: relative;
  z-index: 1;
}

.detail-hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-family: "Playfair Display", serif;
  margin: 12px 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}

.flavor-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.85rem;
}

.detail-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 600;
}

.detail-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.detail-edit {
  border-radius: 999px;
}

.detail-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-hero-image-panel {
  background: rgba(18, 10, 6, 0.6);
  border-radius: 10px;
  padding: 10px;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.detail-slider {
  position: relative;
  width: clamp(260px, 30vw, 360px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  touch-action: pan-y;
}

.detail-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.detail-slider-frame {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.detail-slider-control:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: translateY(-50%) scale(1.05);
}

.detail-slider-control:disabled {
  opacity: 0.4;
  cursor: default;
}

.detail-slider-control-prev {
  left: 10px;
}

.detail-slider-control-next {
  right: 10px;
}

.detail-slider-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.detail-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.detail-slider-dot.active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .detail-hero {
    gap: 6px;
    display: flex;
    flex-direction: column;
    padding: 36px 24px;
  }

  .detail-hero-copy {
    display: contents;
  }

  .detail-hero-copy .hero-chip {
    order: 0;
  }

  .detail-hero-copy h1 {
    order: 1;
  }

  .detail-hero-image {
    order: 2;
    width: 100%;
  }

  .detail-hero-copy > p:not(.hero-chip) {
    order: 3;
  }

  .detail-tags {
    order: 4;
  }

  .detail-actions {
    order: 5;
  }

  .detail-hero-image-panel,
  .detail-hero-image-inner,
  .detail-slider {
    width: 100%;
    max-width: 100%;
  }
}

.detail-hero-image-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.detail-hero-image-inner::before {
  content: '';
  position: absolute;
  inset: -15%;
  background-image: var(--hero-image-url, none);
  background-size: cover;
  background-position: center;
  filter: blur(40px);
  opacity: 0.9;
  transform: scale(1.15);
  z-index: 0;
}

.detail-hero-image-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  border-radius: inherit;
  display: block;
  background: transparent;
}

.detail-subtext {
  opacity: 0.8;
  font-size: 0.9rem;
}

.detail-specs {
  background: #fffdfa;
  border-radius: 28px;
  padding: 28px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  margin: 0 auto;
}

.detail-specs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 20px;
  align-items: start;
}

.detail-specs-table h4 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

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

.spec-table th,
.spec-table td {
  border: 1px solid #f2e5d3;
  padding: 12px 16px;
}

.spec-table th {
  width: 160px;
  background: #fff4e1;
  color: #8d5926;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
}

.spec-table td {
  background: #fffefb;
}

.spec-table tr:nth-child(odd) td {
  background: #fff8ef;
}

.spec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spec-label-emoji {
  font-size: 1.1rem;
}

.detail-spec-aside {
  background: #fffcf6;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.spec-aside-block span {
  font-weight: 600;
  color: #7e4f1e;
  font-size: 0.9rem;
}

.spec-aside-block p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: #3d2818;
}

.caffeine-block {
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  padding: 12px 0;
}

.caffeine-meter {
  display: flex;
  gap: 8px;
  margin: 10px 0 4px;
}

.caffeine-meter .caffeine-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.caffeine-meter .caffeine-dot.filled {
  background: var(--accent);
}

@media (max-width: 900px) {
  .detail-specs-layout {
    grid-template-columns: 1fr;
  }

  .detail-spec-aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .spec-aside-block {
    flex: 1 1 200px;
  }

}

.detail-related {
  background: #201007;
  color: #fdf4e8;
  border-radius: 30px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.detail-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
}

.related-card h4 {
  margin: 0;
}

.related-link {
  font-size: 0.85rem;
  color: #f4d4a3;
}

.slider-detail {
  margin-top: 12px;
  border-color: rgba(0, 0, 0, 0.4);
}

@keyframes heroGlow {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-5%, 8%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 32px;
    grid-template-columns: 1fr;
  }

  .nav-pill {
    flex-wrap: wrap;
    justify-content: center;
  }

  .teas-section {
    padding: 32px 24px;
  }

  .detail-hero {
    padding: 32px;
  }
}

@media (max-width: 900px) {
  .teas-hero {
    padding: 32px;
  }

  .slider {
    flex-direction: column;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
  }
}

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

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

  .project-controls {
    justify-content: flex-start;
  }
}
.admin-banner {
  background: #1f9980;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
}

.admin-banner.hidden {
  display: none;
}

@media (max-width: 900px) {
  .page-shell {
    padding: 16px 12px 56px;
  }



  .main-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 30px;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-back {
    display: none;
  }

  .nav-logo {
    font-size: 2rem;
    padding: 0;
    text-align: left;
    flex: 1;
    min-width: 0;
    margin-right: auto;
    margin-left: 0;
  }

  .nav-back + .nav-logo {
    margin-left: 0;
  }

  .nav-actions.nav-desktop {
    display: none;
  }

  .nav-hamburger {
    display: inline-flex;
    margin-left: 12px;
    background: rgba(47, 30, 19, 0.12);
    border: 1px solid rgba(47, 30, 19, 0.18);
    align-self: center;
    flex-shrink: 0;
  }

  .nav-hamburger span {
    background: #2f1e13;
  }

  .nav-hamburger.nav-hamburger-open {
    background: rgba(47, 30, 19, 0.9);
    border-color: rgba(255, 255, 255, 0.35);
  }

  .nav-hamburger.nav-hamburger-open span {
    background: #fff;
  }

  .nav-divider {
    display: none;
  }

  .nav-mobile-panel {
    display: block;
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    width: 100%;
    padding: 0 16px 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 1300;
    visibility: hidden;
  }

  .main-nav.menu-open .nav-mobile-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-mobile-card {
    background: rgba(5, 5, 5, 0.96);
    border-radius: 26px;
    padding: 22px 20px;
    box-shadow: 0 30px 55px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav-mobile-link {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 16px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    font-weight: 600;
  }

  .nav-mobile-link.nav-active {
    background: rgba(253, 244, 232, 0.95);
    color: #2f1e13;
    border-color: rgba(253, 244, 232, 0.7);
  }

  .nav-mobile-link:hover,
  .nav-mobile-link:focus-visible {
    background: rgba(253, 244, 232, 0.18);
    border-color: rgba(253, 244, 232, 0.45);
  }

  .nav-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .nav-mobile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .nav-mobile-search-button {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 2px 3px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    min-width:50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .nav-mobile-favorite {
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(47, 30, 19, 0.15);
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    flex: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .nav-favorite-icon {
    font-size: 1.1rem;
    color: #c24d32;
  }

  .nav-mobile-admin {
    flex: 0 0 auto;
    background: #fdf4e8;
    color: #2f1e13;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    font-weight: 700;
    padding: 10px 16px;
    justify-content: center;
    min-width: 120px;
  }

  .nav-mobile-lang button {
    width: 52px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
  }

  .nav-mobile-search-button {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .teas-section {
    padding: 24px 18px;
    position: relative;
  }

  .tea-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-view .tea-grid {
    grid-template-columns: 1fr;
  }

  .tea-card {
    border-radius: 24px;
  }

  .newsletter {
    padding: 28px 22px;
  }

  .teas-sidebar-wrapper {
    position: fixed;
    top: 88px;
    left: 0;
    height: calc(100vh - 104px);
    display: flex;
    align-items: center;
    z-index: 1300;
    max-width: calc(min(360px, 70vw) + 24px);
    transform: translateX(calc(-100% + 24px));
    transition: transform 0.35s ease;
  }

  .teas-sidebar-wrapper.teas-sidebar-open {
    transform: translateX(0);
  }

  .teas-sidebar-wrapper .teas-sidebar {
    position: relative;
    top: 0;
    left: 0;
    width: min(360px, 70vw);
    max-height: 100%;
    overflow-y: auto;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    z-index: 1;
  }

  .teas-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 80px;
    border-radius: 0 20px 20px 0;
    border: 1px solid rgba(47, 30, 19, 0.1);
    background: linear-gradient(180deg, rgba(247, 241, 234, 0.9), rgba(247, 241, 234, 0.65));
    color: #2f1e13;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    z-index: 2;
    margin-left: 0;
  }

  .teas-main {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 540px) {
  .nav-mobile-panel {
    padding: 0 10px 14px;
  }

  .nav-mobile-card {
    padding: 18px 16px;
  }

  .nav-mobile-link {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
  }

  .nav-mobile-lang button {
    padding: 10px 14px;
  }

  .teas-sidebar h3 {
    font-size: 1.25rem;
  }

  .teas-sidebar p {
    font-size: 0.95rem;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    flex: none;
  }
}
.empty-state {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  padding: 60px 0;
}

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