
:root {
  /* Approved Everyday Store palette */
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-soft: #eff1e9;
  --ink: #202720;
  --muted: #6b736b;
  --line: #dfe3d9;
  --green: #214d3d;
  --green-dark: #18392d;
  --accent: #e4eee5;
  --accent-ink: #214d3d;
  --radius: 18px;
  --shadow: 0 25px 65px rgba(24, 35, 27, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.cart-open { overflow: hidden; }

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

button, input, select { font: inherit; }

button { cursor: pointer; }

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible {
  outline: 3px solid #8ea68c;
  outline-offset: 3px;
}

.site-header {
  min-height: 78px;
  padding: 16px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.brand {
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -1.5px;
}

.brand span { color: var(--green); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}

.site-header nav a:hover, .text-link:hover { color: var(--green); }

.cart-button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 17px;
  background: transparent;
  color: var(--ink);
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  margin-left: 8px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 12px;
}

.hero {
  padding: 58px 6% 65px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 6%;
  align-items: center;
}

.hero-copy { padding: 25px 0; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 23px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: .99;
  letter-spacing: -2.6px;
  font-weight: 500;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 30px;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--green);
  color: white;
  font-weight: 650;
  transition: background .2s, transform .2s;
}

.primary-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.hero-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.hero-image {
  position: relative;
  min-height: 390px;
  height: min(48vw, 570px);
  overflow: hidden;
  border-radius: 22px;
  background: #e6e4d9;
}

.hero-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.image-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 10px 16px;
  background: rgba(255,255,255,.92);
  border-radius: 5px;
  font-size: 13px;
}

.benefits {
  padding: 22px 6%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
}

.shop-section { padding: 85px 6%; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 27px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  font-weight: 500;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }

.shop-tools {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 12px;
  margin-bottom: 28px;
}

.search-box, .shop-tools select, .admin-form input,
.admin-form textarea, .admin-form select, .login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--surface);
  color: var(--ink);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box span { font-size: 22px; }

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
}

.product-card { min-width: 0; }

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.7;
  background: #eae9e2;
  border-radius: 17px;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.product-card:hover .product-image img { transform: scale(1.045); }

.product-category {
  margin: 17px 0 5px;
  color: #7a8576;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 10px;
  font-weight: 800;
}

.product-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.product-description {
  min-height: 42px;
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price { font-size: 15px; font-weight: 750; }

.add-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.add-button:hover { background: var(--green); color: white; }
.add-button:disabled { opacity: .45; cursor: not-allowed; }

.about-section {
  padding: 75px 20px;
  text-align: center;
  background: var(--accent);
  border-radius: 22px;
}

.about-section h2 { margin-bottom: 17px; }

.about-section > p:not(.eyebrow) {
  max-width: 490px;
  margin: 0 auto 22px;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-weight: 700;
}

.site-footer {
  padding: 35px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer .brand { color: var(--ink); font-size: 23px; }
.site-footer p { margin: 0; }

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(20, 25, 20, .42);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.cart-panel {
  position: fixed;
  z-index: 21;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100dvh;
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(103%);
  transition: transform .25s ease;
}

body.cart-open .cart-backdrop { opacity: 1; visibility: visible; }
body.cart-open .cart-panel { transform: translateX(0); }

.cart-heading {
  position: sticky;
  top: -22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.cart-heading h2 { font-size: 29px; }
.cart-heading .eyebrow { margin-bottom: 5px; }

.icon-button {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background: var(--surface);
}

.cart-items { flex: 0 0 auto; overflow: visible; padding: 15px 0 5px; }

.empty-cart {
  padding: 40px 10px;
  text-align: center;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 76px;
  height: 88px;
  border-radius: 5px;
  object-fit: cover;
  background: #eae9e2;
}

.cart-item h3 { margin: 0 0 4px; font-size: 14px; }
.cart-item p { margin: 0; font-size: 13px; }

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.quantity-controls button {
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
}

.remove-button {
  margin-top: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
}

.cart-bottom {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 3px;
}
.cart-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 19px;
}
.cart-total, .cart-shipping, .cart-estimated-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}
.cart-total, .cart-shipping { color: var(--muted); }
.cart-total strong, .cart-shipping strong { color: var(--ink); font-weight: 700; }
.cart-estimated-total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
.cart-estimated-total strong { font-size: 20px; letter-spacing: -.02em; }
.cart-estimated-note { color: var(--muted); font-size: 10px; margin: -4px 0 0; }
.checkout-button { width: 100%; }
.message { color: #9b362b; font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
.secure-note { text-align: center; color: var(--muted); font-size: 10px; margin: 12px 0 0; }

/* Approved-theme shipping form and rate cards */
.shipping-checkout {
  margin: 18px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--bg);
}
.shipping-checkout h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.5px;
}
.shipping-checkout label:not(.shipping-rate-option) {
  display: block;
  margin: 11px 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.shipping-checkout input:not([type="hidden"]):not([type="radio"]) {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--surface);
  pointer-events: auto;
  opacity: 1;
  appearance: auto;
}
.shipping-checkout input::placeholder { color: var(--muted); opacity: .75; }
.shipping-checkout input:focus-visible { outline: 3px solid #7baa8c; outline-offset: 2px; }
.shipping-checkout button { width: 100%; margin-top: 14px; }
.shipping-rate-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}
.shipping-rate-option:has(input:checked) {
  border-color: var(--green);
  background: var(--accent);
}
.shipping-rate-option input[type="radio"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}
.shipping-rate-option span { flex: 1; min-width: 0; }
.shipping-rate-option strong { font-size: 11px; font-weight: 750; }
#shipping-rates { display: grid; gap: 0; margin-top: 10px; }
.shipping-checkout .message { color: var(--muted); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 40;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  pointer-events: none;
  transition: .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { gap: 4%; }
  .hero-image { min-height: 350px; }
}

@media (max-width: 700px) {
  .cart-panel { padding: 16px 16px 22px; }
  .cart-heading { top: -16px; }
  .shipping-checkout { padding: 14px; }
  .site-header { padding: 13px 5%; gap: 10px; }
  .brand { font-size: 24px; }
  .site-header nav { gap: 13px; font-size: 12px; }
  .site-header nav a:nth-child(2) { display: none; }
  .cart-button { padding: 7px 10px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding: 35px 5% 45px; }
  h1 { font-size: 55px; letter-spacing: -2.8px; }
  .hero-image { height: 360px; min-height: 0; }
  .benefits { padding: 18px 5%; flex-wrap: wrap; font-size: 11px; }
  .shop-section { padding: 55px 5%; }
  .section-heading { display: block; }
  .section-heading > p { margin: 12px 0 0; }
  .shop-tools { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 13px; }
  .product-description { min-height: 0; }
  .product-buy { align-items: start; flex-direction: column; }
  .site-footer { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .site-header nav { gap: 8px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-buy { flex-direction: row; align-items: center; }
}
/*  */

.admin-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 45px 6% 90px;
}

.admin-intro { margin-bottom: 35px; }
.admin-intro h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 12px; }

.admin-card {
  margin-bottom: 25px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 35, 27, .04);
}

.admin-card h2, .admin-card h3 { margin-bottom: 12px; }

.login-form, .admin-form {
  display: grid;
  gap: 16px;
}

.login-form { max-width: 450px; }
.login-form label, .admin-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
}

.admin-form textarea { resize: vertical; }
.admin-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.admin-checkbox {
  display: flex !important;
  align-items: center;
  grid-template-columns: none !important;
  gap: 10px !important;
}

.admin-checkbox input { width: 18px; height: 18px; }

.admin-actions, .admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-secondary {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
}

.admin-secondary:hover { background: var(--accent); border-color: var(--accent); }

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 35px 0 20px;
}

.admin-section-heading h2 { font-size: 28px; }

.admin-list { display: grid; gap: 12px; }

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.admin-row h3 { margin: 0 0 5px; font-size: 16px; }
.admin-row p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-row-actions button, .admin-row-actions select { font-size: 12px; }

.admin-price { font-weight: 750; }
.admin-status { color: #51694a; font-weight: 700; }

@media (max-width: 650px) {
  .cart-panel { width: 100%; }
  .admin-page { padding: 30px 5% 60px; }
  .admin-card { padding: 17px; }
  .admin-fields { grid-template-columns: 1fr; }
  .admin-section-heading { align-items: flex-start; flex-direction: column; }
  .admin-row { align-items: flex-start; flex-direction: column; }
  .admin-row-actions { width: 100%; }
}

/*  */

/* =========================================
   EVERYDAY STORE — RESPONSIVE NAVIGATION
   Overrides the earlier mobile navigation rules
========================================= */

/* Keep the desktop header horizontal */
.site-header {
  position: relative;
  z-index: 30;
  min-width: 0;
}

.site-header .brand {
  flex-shrink: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-header nav a {
  display: inline-block;
  padding: 8px 0;
}

.site-header nav a:focus-visible {
  outline-offset: 4px;
}

.hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image .hero-fallback-image {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-image .hero-fallback-image.is-visible {
  opacity: 1;
}

.hero-image .hero-video {
  z-index: 1;
}

.image-label,
.image-counter {
  z-index: 2;
}

.image-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

/* Tablet and mobile */
@media (max-width: 700px) {
  .site-header {
    min-height: 72px;
    padding: 12px 5%;
    gap: 10px;
  }

  .site-header .brand {
    margin-right: auto;
    font-size: 24px;
  }

  .menu-toggle {
    display: inline-flex;
    order: 2;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 31;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 5% 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 18px 25px rgba(24, 35, 27, 0.09);
    font-size: 15px;
  }

  .site-header nav.is-open {
    display: flex;
  }

  /* Undo the previous rule that hid the second link */
  .site-header nav a:nth-child(2) {
    display: block;
  }

  .site-header nav a {
    width: 100%;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-header nav a:last-child {
    border-bottom: 0;
  }

  .site-header .cart-button {
    order: 3;
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 12px;
  }

  .hero-image {
    position: relative;
    height: 360px;
    min-height: 0;
  }

  .image-counter {
    top: 14px;
    right: 14px;
    font-size: 9px;
  }
}

/* Narrow phones */
@media (max-width: 380px) {
  .site-header {
    gap: 7px;
  }

  .site-header .brand {
    font-size: 21px;
    letter-spacing: -1px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .site-header .cart-button {
    padding: 6px 8px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .menu-toggle span,
  .primary-button,
  .hero-image img {
    transition: none;
  }
}
