:root {
  --bg: #f6f7f2;
  --surface: #fffefa;
  --ink: #1e2521;
  --muted: #68726d;
  --line: #dce1d6;
  --green: #2d6e43;
  --green-dark: #1f4b31;
  --gold: #c4912f;
  --red: #a43f3f;
  --shadow: 0 12px 30px rgba(31, 45, 37, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.shop-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.96);
  backdrop-filter: blur(10px);
}

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

.brand-sign {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #ffffff;
  background: #27352d;
  font-size: 19px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
}

.shop-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--muted);
}

.shop-nav a:hover {
  color: var(--green-dark);
  background: #eef3e9;
}

.header-actions,
.hero-actions,
.product-actions,
.drawer-head,
.section-head,
.product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions {
  justify-content: end;
}

.primary-button,
.primary-link,
.ghost-link,
.ghost-button,
.cart-button,
.icon-button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  cursor: pointer;
}

.primary-button,
.primary-link,
.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--green);
  font-weight: 700;
}

.primary-button:hover,
.primary-link:hover,
.cart-button:hover {
  background: var(--green-dark);
}

.ghost-button {
  color: var(--green-dark);
  background: #edf3e8;
  border: 1px solid #cddcc6;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  background: #edf3e8;
  border: 1px solid #cddcc6;
  font-weight: 700;
}

.icon-button {
  width: 38px;
  padding: 0;
  color: var(--ink);
  background: #f0f2ed;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #ffffff;
  font-size: 12px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.shop-hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  align-items: center;
  gap: 42px;
  padding: 42px 0;
}

.hero-copy h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 590px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-product {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(238,245,231,0.8)),
    radial-gradient(circle at 30% 20%, rgba(135, 168, 58, 0.25), transparent 32%),
    radial-gradient(circle at 80% 78%, rgba(83, 46, 97, 0.16), transparent 35%);
  border: 1px solid var(--line);
  padding: 46px 28px;
}

.bottle {
  position: relative;
  width: clamp(86px, 12vw, 128px);
  height: clamp(300px, 42vw, 410px);
  border-radius: 34px 34px 18px 18px;
  box-shadow: var(--shadow);
}

.bottle::before {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  top: -58px;
  height: 76px;
  border-radius: 18px 18px 8px 8px;
  background: inherit;
}

.bottle::after {
  content: "Sip";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 56px;
  display: grid;
  place-items: center;
  height: 96px;
  border-radius: 8px;
  color: #1f2722;
  background: rgba(255, 255, 255, 0.86);
  font-size: 26px;
  font-weight: 800;
}

.bottle-apple,
.tone-apple .product-image {
  background: linear-gradient(180deg, #b7cf45, #7fa12e);
}

.bottle-aronia,
.tone-aronia .product-image {
  background: linear-gradient(180deg, #582b64, #2b1838);
}

.bottle-haskap,
.tone-haskap .product-image {
  background: linear-gradient(180deg, #314a85, #1d264d);
}

.tone-mix .product-image {
  background: linear-gradient(135deg, #9ab23b, #d28436 48%, #4c2d68);
}

.shop-section {
  padding: 48px 0;
}

.processing-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 10px 0 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  box-shadow: var(--shadow);
}

.processing-band h2,
.processing-band p {
  margin: 0;
}

.processing-band p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.5;
}

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

.section-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 180px;
  gap: 10px;
}

.catalog-tools input,
.catalog-tools select,
.checkout-form input,
.checkout-form textarea,
.modal-card input,
.admin-card input,
.admin-card select,
.admin-card textarea {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(31, 45, 37, 0.06);
}

.product-image {
  position: relative;
  width: 100%;
  min-height: 190px;
  border: 0;
  cursor: pointer;
}

.product-image::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 74px;
  height: 126px;
  transform: translateX(-50%);
  border-radius: 24px 24px 12px 12px;
  background: rgba(255, 255, 255, 0.62);
}

.product-image::after {
  content: "Sip";
  position: absolute;
  left: 50%;
  bottom: 58px;
  width: 82px;
  height: 48px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #1e2521;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-category {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-body h3,
.product-body p {
  margin: 0;
}

.product-body p {
  min-height: 46px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.product-meta {
  justify-content: space-between;
}

.product-meta strong {
  font-size: 22px;
}

.product-meta span {
  color: var(--muted);
  font-size: 13px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.order-list,
.cart-items,
.admin-orders {
  display: grid;
  gap: 10px;
}

.order-card,
.cart-line,
.admin-order {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.order-card:nth-child(even),
.cart-line:nth-child(even),
.admin-order:nth-child(even) {
  background: #fbf8f0;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.cart-line strong,
.cart-line span,
.order-card strong,
.order-card span,
.admin-order strong,
.admin-order span {
  display: block;
}

.cart-line span,
.order-card span,
.admin-order span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.qty-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-tools button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f6f0;
  cursor: pointer;
}

.contact-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 28px 0 48px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.contact-band h2,
.contact-band p {
  margin: 0;
}

.contact-band p {
  margin-top: 8px;
  color: var(--muted);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: end;
  background: rgba(15, 24, 19, 0.36);
}

.drawer.is-open {
  display: flex;
}

.drawer-panel {
  width: min(440px, 100%);
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: 18px;
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.drawer-head {
  justify-content: space-between;
}

.drawer-head h2,
.checkout-form h3,
.admin-card h3 {
  margin: 0;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-form,
.modal-card,
.admin-card {
  display: grid;
  gap: 12px;
}

.checkout-form label,
.modal-card label,
.admin-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.delivery-info {
  display: grid;
  gap: 4px;
  border: 1px solid #d9e3cf;
  border-radius: 8px;
  padding: 10px;
  background: #f7fbf2;
  color: #24351f;
  font-size: 13px;
}

.delivery-info span {
  color: #5c6b55;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 24, 19, 0.42);
}

.modal-card {
  width: min(420px, 100%);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-check {
  display: flex !important;
  align-items: center;
  grid-template-columns: auto 1fr;
}

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

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .shop-header {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .shop-nav,
  .header-actions {
    justify-content: start;
  }

  .shop-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .hero-product {
    min-height: 340px;
  }

  .bottle {
    height: 255px;
  }

  .catalog-tools,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .contact-band,
  .processing-band {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .processing-actions {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  main,
  .admin-panel {
    width: min(100% - 20px, 1180px);
  }

  .shop-header {
    padding: 10px;
  }

  .shop-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .header-actions,
  .hero-actions,
  .product-actions,
  .processing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-product {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
