:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --ink: #1c211f;
  --muted: #5d655f;
  --line: #dfe3de;
  --accent: #2f5d50;
  --accent-hover: #254a40;
  --accent-soft: #e8efe9;
  --warn: #7a4a3a;
  --radius: 5px;
  --shadow: 0 8px 24px rgba(28, 33, 31, 0.08);
  --max: 1120px;
  --header-h: 72px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: var(--ink);
  color: #eceee9;
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
}

.topbar a:hover {
  color: #fff;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.header__tools {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 8px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: max-content;
}

.logo__name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.logo__tag {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search__bar {
  position: relative;
}

.search__close {
  display: none;
}

.search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 44px 0 14px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.search input:focus {
  border-color: #b7c4bb;
  background: var(--surface);
}

.search__submit {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
}

.search__results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 420px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search__results.is-open {
  display: block;
}

.search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}

.search__item:last-child {
  border-bottom: 0;
}

.search__item:hover {
  background: var(--accent-soft);
}

.search__thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

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

.search__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search__copy strong {
  font-weight: 700;
}

.search__price {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.search__empty {
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  white-space: nowrap;
}

.header-phone:hover {
  border-color: #c5cdc6;
}

.header-phone i {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 15px;
  width: 1em;
  text-align: center;
}

.header-phone small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}

.header-phone strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.icon-btn:hover {
  border-color: #c5cdc6;
}

.icon-btn i,
.search__submit i,
.search__close i {
  font-size: 15px;
  width: 1em;
  text-align: center;
}

.cart-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  display: inline-grid;
  place-items: center;
}

.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
  min-height: 52px;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c6560;
  white-space: nowrap;
}

.nav__item > a i {
  font-size: 10px;
  transition: transform 0.15s ease;
}

.nav__item:hover > a i,
.nav__item:focus-within > a i {
  transform: rotate(180deg);
}

.nav__item > a:hover,
.nav__item > a.is-active {
  color: var(--ink);
}

.nav__item:hover,
.nav__item:focus-within {
  z-index: 41;
}

.nav__item > .nav__sub {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  width: 220px;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(27, 45, 40, 0.1);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__sub .nav__item {
  position: static;
  display: block;
}

.nav__sub .nav__item > a {
  display: block;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #f2f2f2;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.6;
  text-align: left;
  text-transform: uppercase;
  color: #1b2d28;
  white-space: normal;
}

.nav__sub .nav__item:last-child > a {
  border-bottom: 0;
}

.nav__sub .nav__item > a:hover,
.nav__sub .nav__item > a.is-active {
  background: #f5f5f5;
  color: var(--accent);
}

.nav__sub .nav__item > .nav__sub {
  top: 0;
  left: 100%;
  margin-left: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

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

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--bg);
}

.btn--block {
  width: 100%;
}

.page-head {
  padding: 16px 0;
}

.page-head__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-head__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.crumb a:hover {
  color: var(--ink);
}

.page-meta {
  margin: 0;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
}

.page-head__cats {
  display: none;
  border-top: 1px solid var(--line);
}

.cat-switch {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 48px;
  overflow-x: auto;
}

.cat-switch a {
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b736d;
  white-space: nowrap;
}

.cat-switch a:hover,
.cat-switch a.is-active {
  color: var(--ink);
}

.cat-switch a.is-active {
  border-bottom-color: var(--accent);
}

.page-about {
  padding: 4px 0 24px;
}

body:has(.page-about--missing) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:has(.page-about--missing) > main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body:has(.page-about--missing) .footer {
  margin-top: 0;
}

.page-about--missing {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 32px 0;
}

.page-about--missing .container {
  width: min(var(--max), calc(100% - 32px));
}

.page-about--missing .page-about__panel {
  padding: 40px 28px;
  text-align: center;
}

.page-about--missing .page-about__panel > * {
  margin: 0;
}

.page-about--missing .page-about__panel > * + * {
  margin-top: 12px;
}

.page-about__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px 26px;
}

.page-about h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-about__lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.page-about__article {
  margin-top: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.page-about__article::after {
  content: "";
  display: block;
  clear: both;
}

.page-about__article p {
  margin: 0 0 10px;
  color: var(--muted);
}

.page-split {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
}

.page-split__side h1 {
  margin: 0 0 8px;
  padding-top: 16px;
  font-size: 28px;
  line-height: 32px;
}

.page-about__article .page-contact__lead,
.page-about__article .page-contact__lead p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.page-split .page-form {
  margin: 0;
  padding-top: 16px;
}

.page-split .page-form h2 {
  min-height: 32px;
  line-height: 32px;
}

.page-contact {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: start;
  margin-top: 8px;
}

.page-about__article .page-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-about__article .page-contact__list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 40px;
  margin: 0;
  color: var(--ink);
}

.page-about__article .page-contact__list li > span:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40px;
}

.page-contact__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.page-contact__list small {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.page-contact__list a,
.page-contact__list strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.page-contact__list a:hover {
  color: var(--accent);
}

.page-about__article .page-contact__note {
  margin-top: 16px;
}

.page-about__article .page-contact__info p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.page-form {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.page-form h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.page-form label {
  display: grid;
  gap: 6px;
}

.page-form label span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.page-form label em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.page-form input,
.page-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  resize: vertical;
}

.page-form textarea {
  min-height: 120px;
}

.page-form input:focus,
.page-form textarea:focus {
  border-color: #303030;
}

.page-form__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-about__article .page-form p,
.page-form p {
  margin: 0;
  color: var(--muted);
}

.page-about__article .page-form__error,
.page-form__error {
  color: #8a1f11;
}

.page-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.page-form .btn {
  justify-self: start;
}

@media (max-width: 800px) {
  .page-split {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .page-split__side h1 {
    padding-top: 0;
  }

  .page-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-form__split {
    grid-template-columns: 1fr;
  }
}

.page-about__article h2,
.page-about__article h3,
.page-about__article h4 {
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.page-about__article h2 {
  font-size: 22px;
}

.page-about__article h3 {
  font-size: 18px;
}

.page-about__article h4 {
  font-size: 16px;
}

.page-about__article h2:first-child,
.page-about__article h3:first-child,
.page-about__article h4:first-child {
  margin-top: 0;
}

.page-about__article ul,
.page-about__article ol {
  margin: 0 0 10px;
  padding-left: 1.2em;
  color: var(--muted);
}

.page-about__article li + li {
  margin-top: 4px;
}

.page-about__table {
  clear: both;
  overflow-x: auto;
  margin: 10px 0 12px;
}

.page-about__article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.page-about__article th,
.page-about__article td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.page-about__article th {
  background: #f4f6f4;
  font-weight: 600;
  color: var(--ink);
}

.page-about__article td {
  color: var(--muted);
}

.page-about__article td a {
  color: var(--ink);
}

.page-about__now {
  color: var(--muted);
  font-size: 13px;
}

.page-about__article > :last-child {
  margin-bottom: 0;
}

.page-about__float {
  width: min(200px, 32%);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f0f2ef;
  object-fit: cover;
}

.page-about__float--left {
  float: left;
  margin: 0 16px 8px 0;
}

.page-about__float--right {
  float: right;
  margin: 0 0 8px 16px;
}

.stars {
  position: relative;
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: #d4d9d4;
}

.stars__on {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--score) / 5 * 100%);
  overflow: hidden;
  color: var(--accent);
  white-space: nowrap;
}

.reviews {
  padding: 8px 0 28px;
  scroll-margin-top: 96px;
}

.reviews h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.reviews__empty {
  margin: 0;
  color: var(--muted);
}

.reviews__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.reviews__meta strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.reviews__dot {
  color: #c5cdc6;
}

.reviews .stars {
  font-size: 15px;
  color: #e6dfc6;
}

.reviews .stars__on {
  color: #c9a227;
}

.reviews__row {
  display: block;
}

.reviews__scroller {
  position: relative;
  min-width: 0;
}

.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 252px;
  align-items: start;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.review-card {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.review-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.review-card time {
  color: var(--muted);
  font-size: 12px;
}

.review-card__text {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  min-height: calc(14px * 1.45 * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.review-card.is-open .review-card__text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.review-card__more {
  align-self: start;
  height: 18px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  visibility: hidden;
  pointer-events: none;
}

.review-card.is-long .review-card__more,
.review-card.is-open .review-card__more {
  visibility: visible;
  pointer-events: auto;
}

.review-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.review-card__up {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.reviews__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(28, 33, 31, 0.12);
  transform: translateY(-50%);
}

.reviews__nav[hidden] {
  display: none;
}

.reviews__nav--prev {
  left: -8px;
}

.reviews__nav--next {
  right: -8px;
}

.reviews__more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.reviews__more button {
  height: 40px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.reviews__more button:hover {
  border-color: #c5cdc6;
}


.product-hero {
  padding: 12px 0 20px;
}

.product-hero .container {
  width: min(var(--max), calc(100% - 24px));
}

.product {
  display: grid;
  grid-template-columns: minmax(280px, 0.96fr) minmax(0, 1.04fr);
  gap: 36px;
  align-items: start;
}

.gallery {
  display: grid;
  gap: 10px;
}

.gallery__stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center 46%;
  cursor: zoom-in;
}

.gallery__nav {
  position: absolute;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(28, 33, 31, 0.12);
}

.gallery__nav--prev {
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}

.gallery__nav--next {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery__thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
}

.gallery__thumb.is-active {
  border-color: var(--accent);
}

.zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: rgba(28, 33, 31, 0.72);
  opacity: 0;
  pointer-events: none;
}

.zoom.is-open {
  opacity: 1;
  pointer-events: auto;
}

.zoom img {
  max-width: min(720px, 100%);
  max-height: 86vh;
  background: #fff;
  border-radius: var(--radius);
}

.zoom__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}

.product__info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}

.product h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product__meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.product__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
}

.product__rating a {
  color: var(--muted);
}

.product__rating a:hover {
  color: var(--ink);
}

.packs {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.packs legend {
  margin: 0 0 10px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.packs__note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pack {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin: 0 0 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.pack:has(.pack__off) {
  margin-top: 12px;
}

.pack:last-of-type {
  margin-bottom: 0;
}

.pack input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pack__radio {
  width: 16px;
  height: 16px;
  border: 1px solid #b7bfb8;
  border-radius: 50%;
  background: var(--surface);
}

.pack.is-selected,
.pack:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pack.is-selected .pack__radio,
.pack:has(input:checked) .pack__radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--accent-soft);
}

.pack__name {
  font-size: 14px;
  font-weight: 600;
}

.pack__price {
  font-size: 14px;
  font-weight: 600;
}

.pack__off {
  position: absolute;
  top: -8px;
  right: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.product__buy {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.product__buy .btn {
  gap: 8px;
}

.buy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.buy-split .btn {
  width: 100%;
  min-width: 0;
  border-radius: 0;
  padding: 0 12px;
}

.buy-split__cart {
  background: var(--accent);
  color: #fff;
}

.buy-split__cart:hover {
  background: var(--accent-hover);
}

.buy-split__now {
  background: #5f6662;
  color: #fff;
}

.buy-split__now:hover {
  background: #4a504c;
}

.qty--buy {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 120px;
  height: 42px;
  margin-top: 0;
  padding: 0 8px;
  overflow: visible;
}

.qty--buy button,
.qty--buy span {
  width: 32px;
  height: 32px;
  background: transparent;
  font-size: 16px;
}

.qty--buy button {
  color: var(--muted);
}

.qty--buy button:hover {
  color: var(--ink);
}

.qty--buy span {
  font-weight: 600;
}

.product__notes {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.product__note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.product__note i {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 16px;
}

.product__note p {
  margin: 0;
  line-height: 1.45;
}

.product__note-tag {
  position: absolute;
  top: -8px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product__reviews {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  min-height: 44px;
}

.product__reviews-score {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
}

.product__reviews-score strong {
  font-size: 16px;
  font-weight: 700;
}

.product__reviews-score span {
  color: var(--muted);
}

.product__reviews-write {
  flex-shrink: 0;
  margin-left: auto;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.product__reviews-write:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.review-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.review-dialog::backdrop {
  background: rgba(28, 33, 31, 0.45);
}

.review-dialog form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.review-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-dialog__head h2 {
  margin: 0;
  font-size: 18px;
}

.review-dialog__head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.review-dialog label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.review-dialog label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.review-dialog input[type="text"],
.review-dialog input:not([type="radio"]):not([type="hidden"]),
.review-dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
}

.review-dialog textarea {
  min-height: 96px;
  resize: vertical;
}

.review-dialog__hp {
  position: absolute;
  left: -9999px;
}

.review-dialog__stars {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-dialog__stars legend {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.review-dialog__star-row {
  display: flex;
  gap: 2px;
}

.review-dialog__stars label {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  margin: 0;
}

.review-dialog__stars input {
  position: absolute;
  inset: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.review-dialog__stars span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  color: #d5dbd6;
  font-size: 0;
  pointer-events: none;
}

.review-dialog__stars span::before {
  content: "★";
  font-size: 28px;
  line-height: 1;
}

.review-dialog__stars label:has(input:checked) span,
.review-dialog__stars label:has(~ label input:checked) span,
.review-dialog__star-row:hover label:hover span,
.review-dialog__star-row:hover label:has(~ label:hover) span {
  color: var(--accent);
}

.review-dialog__error {
  margin: 0;
  color: var(--warn);
  font-size: 13px;
}

.page-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 40px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.section {
  padding: 28px 0;
}

.section--products {
  padding-top: 0;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

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

.section__head p,
.more {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.category {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 14px;
}

.category:hover {
  border-color: #c5cdc6;
}

.category img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f0f2ef;
}

.category strong {
  display: block;
  margin-top: 12px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: #c8d0c9;
}

.card__media {
  position: relative;
  display: block;
  background: #f0f2ef;
  aspect-ratio: 1;
}

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

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 6px;
  font-size: 11px;
  color: var(--warn);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  flex: 1;
}

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

.card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
}

.card h3 a {
  color: inherit;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.price b {
  font-size: 16px;
}

.price s {
  color: var(--muted);
  font-size: 13px;
}

.assure {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.assure__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.assure__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 24px;
}

.assure__item:first-child {
  padding-left: 0;
}

.assure__item:last-child {
  padding-right: 0;
}

.assure__item:not(:first-child) {
  position: relative;
}

.assure__item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: var(--line);
}

.assure__icon {
  width: 36px;
  height: 36px;
  border: 1px dashed #b7c4bb;
  border-radius: 6px;
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
}

.assure__item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.assure__item em {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

.info {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  align-items: stretch;
}

.info__box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.info h2 {
  margin: 0 0 8px;
}

.info p {
  margin: 0;
  color: var(--muted);
}

.info ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.info li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.faq h2 {
  margin-bottom: 12px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 18px;
  color: var(--accent);
  font-weight: 500;
  text-align: center;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 0 12px;
  font-size: 14px;
}

.privacy-card {
  display: flex;
  flex-direction: column;
  background: var(--accent);
  color: #f4f6f4;
  border-radius: var(--radius);
  padding: 28px 24px;
}

.privacy-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.privacy-card h2 {
  margin: 0 0 8px;
  color: #fff;
}

.privacy-card p {
  margin: 0 0 20px;
  color: rgba(244, 246, 244, 0.78);
}

.privacy-card ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.privacy-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  color: #f4f6f4;
}

.privacy-card li i {
  width: 16px;
  margin-top: 2px;
  color: rgba(244, 246, 244, 0.7);
  text-align: center;
}

.footer {
  margin-top: 32px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px 24px;
  padding: 40px 0 32px;
}

.footer__brand .logo {
  min-width: 0;
}

.footer__brand p {
  margin: 12px 0 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer h3 {
  width: max-content;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer__col a,
.footer__col li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 10px;
}

.footer__col a:hover {
  color: var(--ink);
}

.footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 33, 31, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: none;
}

.drawer__head,
.drawer__foot {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer__foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  display: block;
}

.drawer__items {
  flex: 1;
  overflow: auto;
  padding: 8px 18px;
}

.drawer__empty {
  color: var(--muted);
  padding: 28px 0;
}

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg);
}

.cart-row h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.cart-row h4 a {
  color: inherit;
}

.qty {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}

.product__buy .qty {
  margin-top: 0;
}

.qty button,
.qty span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--surface);
  font-size: 14px;
}

.cart-row__price {
  font-size: 14px;
  text-align: right;
}

.remove {
  display: block;
  margin-top: 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 0;
}

.drawer__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
}

.cart-page {
  padding: 0 0 48px;
}

.cart-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 36px;
  align-items: start;
}

.cart-page h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bag-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bag-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
}

.bag-row + .bag-row {
  border-top: 1px solid var(--line);
}

.bag-row__media {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.bag-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bag-row__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

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

.bag-row__info {
  min-width: 0;
}

.bag-row h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.bag-row h2 a:hover {
  color: var(--accent);
}

.bag-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.bag-row__off {
  margin-left: 8px;
  color: var(--accent);
  font-weight: 600;
}

.bag-row__remove {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -6px -6px 0 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease;
}

.bag-row__remove:hover,
.bag-row__remove:focus-visible {
  background: #fbeeee;
  color: #b3261e;
}

.bag-row__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  padding-top: 0;
}

.bag-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 0 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
}

.bag-qty button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  transition: background 0.15s ease, color 0.15s ease;
}

.bag-qty button:hover {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(28, 33, 31, 0.12);
}

.bag-qty span {
  min-width: 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.bag-row__price {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.2;
}

.bag-row__price b {
  font-size: 18px;
  font-weight: 700;
}

.bag-row__price s {
  color: var(--muted);
  font-size: 13px;
}

.cart-page__grid:has(.cart-empty:not([hidden])) {
  grid-template-columns: minmax(0, 1fr);
}

.cart-empty {
  display: grid;
  justify-items: center;
  width: 100%;
  margin: 8px 0 0;
  padding: 48px 28px 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-empty[hidden] {
  display: none;
}

.cart-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
}

.cart-empty h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cart-empty p {
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.cart-recent {
  margin-top: 28px;
}

.cart-recent[hidden] {
  display: none;
}

.cart-recent h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cart-done {
  padding: 28px 0;
}

.cart-done p {
  margin: 0 0 16px;
  color: var(--muted);
}

.cart-done h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
}

.cart-aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.cart-box {
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-box h2,
.cart-form h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.cart-box__rows {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-box__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.cart-box__rows .is-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.cart-box__note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cart-form {
  display: grid;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

/* hidden attribute'u display:grid ezmesin (sipariş sonrası form/özet gizlenir) */
.cart-form[hidden],
.cart-aside[hidden],
.cart-done[hidden] {
  display: none !important;
}

.checkout-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.checkout-form h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.cart-form h3 {
  margin-top: 14px;
}

.pay-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.pay-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg);
}

.pay-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.pay-row span {
  color: var(--muted);
}

.cart-box__back {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.cart-box__back:hover {
  color: var(--ink);
}

.cart-form label {
  display: grid;
  gap: 5px;
}

.cart-form label span {
  font-size: 13px;
  font-weight: 600;
}

.cart-form label em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.cart-form input,
.cart-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  resize: vertical;
}

.cart-form textarea {
  min-height: 84px;
}

.cart-form input:focus,
.cart-form textarea:focus {
  border-color: #b7c4bb;
}

.cart-form__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cart-pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}

.cart-pay legend {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}

.cart-form .cart-pay__opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.cart-form .cart-pay__opt > span:not(.cart-pay__radio) {
  font-size: 15px;
  font-weight: 500;
}

.cart-form .cart-pay__opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  min-height: 0;
  pointer-events: none;
}

.cart-pay__radio {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid #c5ccc6;
  border-radius: 50%;
  background: var(--surface);
}

.cart-form .cart-pay__opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.cart-form .cart-pay__opt:has(input:checked) .cart-pay__radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--accent-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 70;
}

.toast.is-open {
  opacity: 1;
  transform: translateX(-50%);
}

.menu-btn,
.cart-label-short {
  display: none;
}

@media (max-width: 980px) {
  .header__inner {
    gap: 12px;
  }

  .header-phone small {
    display: none;
  }

  .info,
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .assure__list {
    position: relative;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .assure__item {
    padding: 14px 12px;
  }

  .assure__item:first-child,
  .assure__item:last-child {
    padding-left: 12px;
    padding-right: 12px;
  }

  .assure__item:not(:first-child)::before {
    display: none;
  }

  .assure__list::before,
  .assure__list::after {
    content: "";
    position: absolute;
    background: var(--line);
    pointer-events: none;
  }

  .assure__list::before {
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: 1px;
  }

  .assure__list::after {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
  }

  .categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product {
    grid-template-columns: 1fr 1.05fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    justify-content: center;
  }

  .topbar__inner a {
    display: none;
  }

  .footer__base {
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .header .logo {
    min-width: 0;
  }

  .header .logo__name {
    font-size: 17px;
  }

  .header__tools {
    display: contents;
  }

  .icon-btn,
  .header-phone {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
  }

  .header__actions {
    margin-right: 4px;
  }

  .cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    box-shadow: 0 0 0 2px var(--surface);
  }

  .menu-btn,
  .cart-label-short {
    display: inline-flex;
  }

  .cart-label {
    display: none;
  }

  .header-phone span {
    display: none;
  }

  .search {
    display: none;
  }

  body.is-search {
    overflow: hidden;
  }

  body.is-search .search {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 90;
    width: auto;
    min-width: 0;
    padding: 10px 16px 0;
    background: var(--surface);
  }

  body.is-search .search__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  body.is-search .search__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
  }

  body.is-search .search input {
    flex: 1;
    min-width: 0;
  }

  body.is-search .search__results,
  body.is-search .search__results.is-open {
    display: block;
    position: static;
    flex: 1;
    overflow-y: auto;
    margin-top: 4px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  body.is-search .search__item {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
  }

  body.is-search .search__empty {
    padding: 18px 2px;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 12px;
  }

  .nav__item > a {
    padding: 10px 0;
  }

  .nav__item > .nav__sub,
  .nav__item:hover > .nav__sub,
  .nav__item:focus-within > .nav__sub {
    display: block;
    position: static;
    width: auto;
    min-width: 0;
    padding: 0 0 4px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }


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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding: 28px 0 24px;
  }

  .footer__grid > :first-child,
  .footer__grid > :last-child {
    grid-column: 1 / -1;
  }

  .footer__brand p {
    max-width: none;
  }

  .categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .category {
    padding-bottom: 10px;
  }

  .category strong {
    margin-top: 8px;
    padding: 0 6px;
    font-size: 12px;
    line-height: 1.25;
  }

  .assure__item {
    padding: 12px 10px;
  }

  .section h2,
  .page-about h1 {
    letter-spacing: -0.2px;
  }

  [data-category-page] .page-head {
    padding: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  [data-category-page] .page-head__top {
    min-height: 44px;
  }

  .page-head__cats {
    display: block;
  }

  .section--products {
    padding-top: 16px;
  }

  .product-hero {
    padding: 0 0 16px;
  }

  .product-hero .container {
    width: calc(100% - 20px);
  }

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

  .product h1,
  .page-about h1 {
    font-size: 24px;
  }

  .product__info {
    padding: 18px 16px 16px;
  }

  .product__buy {
    grid-template-columns: auto 1fr;
  }

  .product__buy .btn {
    width: 100%;
    min-width: 0;
  }

  .qty--buy {
    width: 104px;
  }

  .buy-split .btn {
    padding: 0 8px;
    font-size: 13px;
    gap: 6px;
  }

  .reviews__track {
    grid-auto-columns: minmax(220px, 78%);
    padding-right: 8px;
  }

  .page-about__article h2 {
    font-size: 20px;
  }

  .page-about__article h3 {
    font-size: 17px;
  }

  .page-about__panel {
    padding: 22px 18px;
  }

  .page-about__float,
  .page-about__float--left,
  .page-about__float--right {
    float: none;
    display: block;
    width: 100%;
    max-height: 220px;
    margin: 0 0 14px;
  }

  .cart-page__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bag-row {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 14px;
  }

  .bag-row__media {
    width: 64px;
    height: 64px;
  }

  .bag-row h2 {
    font-size: 15px;
  }


  .bag-row__price b {
    font-size: 16px;
  }
}


/* ---------- Mobil alt menü ---------- */
.tabbar,
.sheet {
  display: none;
}

@keyframes tabbar-bump {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.22) rotate(-6deg); }
  65% { transform: scale(0.94); }
}

@media (max-width: 720px) {
  body.has-tabbar {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .has-tabbar .header-search-btn,
  .has-tabbar .header-cart {
    display: none;
  }

  .has-tabbar .toast {
    bottom: calc(76px + env(safe-area-inset-bottom));
    transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.25s ease;
  }

  .has-tabbar.tabbar-hidden .toast {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 0 6px env(safe-area-inset-bottom);
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(28, 33, 31, 0.06);
    transition: transform 0.25s ease;
  }

  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .tabbar {
      background: color-mix(in srgb, var(--surface) 82%, transparent);
      -webkit-backdrop-filter: saturate(1.6) blur(14px);
      backdrop-filter: saturate(1.6) blur(14px);
    }
  }

  .tabbar-hidden .tabbar {
    transform: translateY(calc(100% + 30px));
  }

  .tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    height: 64px;
    min-width: 0;
    padding: 0 0 9px;
    border: 0;
    background: none;
    color: var(--muted);
    -webkit-tap-highlight-color: transparent;
  }

  .tabbar__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 30px;
    border-radius: 15px;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .tabbar__icon .fa-whatsapp {
    font-size: 20px;
  }

  .tabbar__label {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 500;
    line-height: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tabbar__item.is-active {
    color: var(--accent);
  }

  .tabbar__item.is-active .tabbar__icon {
    background: var(--accent-soft);
  }

  .tabbar__item.is-active .tabbar__label {
    font-weight: 700;
  }

  .tabbar__item:active .tabbar__icon {
    background: var(--accent-soft);
  }

  .tabbar__icon.is-bump {
    animation: tabbar-bump 0.5s ease;
  }

  .tabbar__badge {
    position: absolute;
    top: -5px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--surface);
  }

  /* Ortadaki Kategoriler: daire yukarı taşar, yazı diğerleriyle aynı hizada kalır */
  .tabbar__item--main {
    color: var(--accent);
  }

  .tabbar__item--main .tabbar__label {
    font-weight: 700;
  }

  .tabbar__item--main .tabbar__icon {
    background: none !important;
  }

  .tabbar__main {
    position: absolute;
    left: 50%;
    bottom: 7px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 0 0 4px var(--surface), 0 6px 16px rgba(28, 33, 31, 0.24);
    transform: translateX(-50%);
    transition: background 0.15s ease, transform 0.15s ease;
  }

  .tabbar__item--main:active .tabbar__main,
  .tabbar__item--main[aria-expanded="true"] .tabbar__main {
    background: var(--accent-hover);
    transform: translateX(-50%) scale(0.95);
  }

  .sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    max-height: min(75vh, 560px);
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 28px rgba(28, 33, 31, 0.18);
    transform: translateY(100%);
    transition: transform 0.22s ease;
  }

  .sheet[hidden] {
    display: none;
  }

  .sheet.is-open {
    transform: none;
  }

  .has-tabbar .overlay {
    z-index: 44;
  }

  .has-tabbar.is-sheet .tabbar {
    z-index: 56;
  }

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

  .sheet__head strong {
    font-family: var(--font-display);
    font-size: 17px;
  }

  .sheet__list {
    flex: 1;
    margin: 0;
    padding: 4px 16px 12px;
    overflow-y: auto;
    list-style: none;
  }

  .sheet__list > li {
    border-bottom: 1px solid var(--line);
  }

  .sheet__list > li:last-child {
    border-bottom: 0;
  }

  .sheet__list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    font-weight: 600;
  }

  .sheet__list > li > a i {
    color: var(--muted);
    font-size: 12px;
  }

  .sheet__list ul {
    margin: -6px 0 10px;
    padding: 0 0 0 12px;
    list-style: none;
  }

  .sheet__list ul a {
    display: block;
    padding: 7px 2px;
    color: var(--muted);
    font-size: 14px;
  }
}


/* Mobil: arama çubuğu başlığın altında sabit, tam ekran açılmaz. Telefon masaüstündeki gibi yazılı. */
@media (max-width: 720px) {
  .header__inner {
    min-height: 0;
    padding: 10px 0;
    row-gap: 10px;
  }

  .header-search-btn,
  .has-tabbar .header-search-btn {
    display: inline-flex;
  }

  .header-search-btn {
    order: -1;
  }

  .header-search-btn[aria-expanded="true"] {
    border-color: var(--accent);
    color: var(--accent);
  }

  .search {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body.is-searchbar .search {
    display: block;
    animation: searchbar-in 0.18s ease;
  }

  .search input {
    height: 42px;
  }

  .search__submit {
    top: 3px;
  }

  .search__results {
    max-height: min(60vh, 420px);
  }

  .header-phone {
    width: auto;
    height: 40px;
    padding: 0 10px;
    gap: 8px;
    justify-content: flex-start;
  }

  .header-phone span,
  .header-phone small {
    display: block;
  }

  .header-phone small {
    font-size: 10px;
  }

  .header-phone strong {
    font-size: 13px;
    white-space: nowrap;
  }
}

@keyframes searchbar-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}


/* Alt kategoriler kapalı gelir */
@media (max-width: 720px) {
  .sheet__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sheet__row > a {
    flex: 1;
    padding: 14px 2px;
    font-weight: 600;
  }

  .sheet__toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
  }

  .sheet__toggle i {
    transition: transform 0.2s ease;
  }

  .sheet__toggle[aria-expanded="true"] {
    color: var(--accent);
    background: var(--accent-soft);
  }

  .sheet__toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
  }

  .sheet__list ul[hidden] {
    display: none;
  }

  .nav__item > .nav__sub,
  .nav__item:hover > .nav__sub,
  .nav__item:focus-within > .nav__sub {
    display: none;
  }

  .nav__item.is-open > .nav__sub {
    display: block;
  }

  .nav__item {
    display: block;
    width: 100%;
  }

  .nav__item > .nav__sub {
    width: 100%;
  }

  .nav__item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav__item > a > i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: -8px -8px -8px 8px;
    transition: transform 0.2s ease;
  }

  .nav__item.is-open > a > i {
    transform: rotate(180deg);
  }
}


/* Ürün kartı: daha sade ve kompakt */
.card__brand {
  display: none;
}

.card__body {
  gap: 6px;
  padding: 10px 12px 12px;
}

.card h3 {
  font-size: 14px;
  line-height: 1.35;
}

.price b {
  font-size: 15px;
}

.card .btn {
  height: 36px;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .card__body {
    gap: 5px;
    padding: 8px 10px 10px;
  }

  .card h3 {
    font-size: 13px;
  }

  .price b {
    font-size: 14px;
  }

  .price s {
    font-size: 12px;
  }

  .card .btn {
    height: 34px;
    padding: 0 10px;
  }
}

/* Ürün adı tek satırsa boşluk kalmasın: fiyat adın hemen altında, düğme kartın dibinde */
.card h3 {
  min-height: 0;
}

.card .price {
  margin-top: 0;
}

.card .btn {
  margin-top: auto;
}

.card__body .price {
  margin-bottom: 4px;
}


/* Ödeme: sözleşme onayı */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Sipariş başarılı sayfası ────────────────────────── */

.os-hero {
  text-align: center;
  padding: 40px 0 32px;
}

.os-hero__icon {
  margin: 0 auto 16px;
}

.os-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.os-hero__sub {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--muted);
}

.os-hero__sub strong {
  color: var(--ink);
}

.os-hero__note {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.os-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 32px;
  align-items: start;
}

.os-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.os-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.os-dl {
  margin: 0;
}

.os-dl > div {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.os-dl > div + div {
  border-top: 1px solid var(--line);
}

.os-dl dt {
  flex: 0 0 100px;
  font-size: 14px;
  color: var(--muted);
}

.os-dl dd {
  margin: 0;
  font-size: 14px;
}

.os-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.os-items thead {
  border-bottom: 2px solid var(--line);
}

.os-items th {
  text-align: left;
  padding: 8px 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

.os-items td {
  padding: 10px 6px;
  border-top: 1px solid var(--line);
}

.os-items__qty {
  text-align: center;
  width: 60px;
}

.os-items__price {
  text-align: right;
  white-space: nowrap;
  width: 100px;
}

.os-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.os-summary h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.os-summary__rows > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.os-summary__rows > div.is-total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 600;
}

.os-summary__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.os-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 20px;
}

.os-summary__status small {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .os-grid {
    grid-template-columns: 1fr;
  }

  .os-hero h1 {
    font-size: 24px;
  }

  .os-dl > div {
    flex-direction: column;
    gap: 2px;
  }

  .os-dl dt {
    flex: none;
  }

  .os-items__price {
    width: 80px;
  }
}
