:root {
  --bg: #f7f7f6;
  --surface: #ffffff;
  --text: #151515;
  --muted: #666b73;
  --line: #e9eaec;
  --accent: #1f5f5b;
  --ok: #156f3d;
  --warn: #9a6a00;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 16px 36px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: linear-gradient(180deg, #fafaf9, var(--bg));
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 246, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.2px;
  white-space: nowrap;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

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

.menu a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #2a2d31;
  font-size: 14px;
}

.menu a:hover,
.menu a.active {
  background: #fff;
}

.right-tools,
.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.search-form input {
  width: 180px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(31, 95, 91, .12);
  border: 1px solid rgba(31, 95, 91, .25);
  color: #18413e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
}

.mobile-menu { display: none; padding: 8px 0 14px; }
.mobile-menu.show { display: block; }

.mobile-menu a {
  display: block;
  padding: 12px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.mobile-search { margin-top: 8px; }
.mobile-search .search-form {
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
}
.mobile-search .search-form input { width: 100%; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 20px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.footer-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links span {
  color: var(--text);
  font-weight: 600;
}

.footer-links a:hover { color: var(--text); }

body.drawer-open {
  overflow: hidden;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 80;
}

.cart-drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 36px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  transition: transform .24s ease;
  z-index: 90;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-drawer-head h3 {
  margin: 0;
  font-size: 18px;
}

.cart-drawer-close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.cart-drawer-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.cart-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.cart-summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  color: #3f444a;
  font-size: 14px;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cart-items:empty {
  display: none;
}

.cart-items li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: #2f343a;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.cart-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-qty {
  color: var(--muted);
}

.cart-item-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex: 0 0 auto;
}

.cart-item-main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.cart-item-prices {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.cart-item-line {
  color: var(--text);
  font-weight: 600;
}

.cart-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-item-remove {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.cart-drawer-actions {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 14px;
  cursor: pointer;
}

.drawer-btn.primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.social-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.share-btn:hover {
  background: #f8f8f8;
}

.share-icons-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.share-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  padding: 0;
}

.share-icon-btn.copied {
  border-color: rgba(21, 111, 61, .35);
  background: rgba(21, 111, 61, .12);
}

.share-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.share-icon-label {
  display: none;
}

body.newsletter-open {
  overflow: hidden;
}

.newsletter-floating-btn {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  border: 1px solid rgba(31, 95, 91, .35);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-family: inherit;
}

.newsletter-floating-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.newsletter-floating-btn span {
  font-size: 13px;
  font-weight: 600;
}

.newsletter-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .36);
  z-index: 94;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.newsletter-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.newsletter-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.98);
  width: min(460px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.newsletter-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.newsletter-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.newsletter-modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.newsletter-close-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.newsletter-lead {
  margin: 10px 0 12px;
  color: #3f444a;
  font-size: 14px;
}

.newsletter-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.newsletter-control + .newsletter-control {
  margin-top: 10px;
}

.newsletter-control label {
  font-size: 12px;
  color: var(--muted);
}

.newsletter-control input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.newsletter-check {
  margin-top: 12px;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #2f343a;
  font-size: 13px;
}

.newsletter-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.newsletter-submit-btn {
  margin-top: 12px;
  width: 100%;
  border: 1px solid rgba(31, 95, 91, .35);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 14px;
  cursor: pointer;
}

.newsletter-message {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
}

.newsletter-message.success {
  color: var(--ok);
}

body.cookie-open {
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 98;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-head h3 {
  margin: 0;
  font-size: 18px;
}

.cookie-banner-text {
  margin: 8px 0 0;
  color: #3f444a;
  font-size: 14px;
}

.cookie-banner-actions,
.cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.cookie-btn.primary {
  border-color: rgba(31, 95, 91, .35);
  background: var(--accent);
  color: #fff;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .36);
  z-index: 96;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.cookie-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.98);
  width: min(520px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 97;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cookie-modal-head h3 {
  margin: 0;
  font-size: 20px;
}

.cookie-close-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.cookie-options {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.cookie-option {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cookie-option strong {
  display: block;
  font-size: 14px;
}

.cookie-option p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cookie-option input {
  width: 18px;
  height: 18px;
}

.cookie-settings-btn {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 75;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  padding: 7px 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .menu { display: none; }
  .search-form { display: none; }
  .menu-btn { display: inline-flex; }

  .share-icons-group {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .share-icon-btn {
    width: 70px;
    height: auto;
    border-radius: 12px;
    padding: 8px 6px;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
  }

  .share-icon-label {
    display: block;
    font-size: 11px;
    line-height: 1;
    color: var(--muted);
  }

  .newsletter-floating-btn {
    top: auto;
    bottom: 12px;
    left: 12px;
    transform: none;
    padding: 10px;
  }

  .newsletter-floating-btn span {
    display: none;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner-actions,
  .cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
