﻿.button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

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

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: #fff;
  border-color: var(--primary-soft);
  color: var(--text-main);
}

.button-light {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.button-danger {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.checkout-success-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1400;
}

.checkout-success-modal.is-open {
  opacity: 1;
}

.checkout-success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 54, 0.28);
  backdrop-filter: blur(2px);
}

.checkout-success-modal__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 380px);
  border-radius: 20px;
  padding: 20px 18px 18px;
  background: #ffffff;
  border: 1px solid #d3e2f7;
  box-shadow: 0 22px 45px rgba(20, 48, 86, 0.2);
  text-align: center;
  transform: translateY(8px) scale(0.96);
  opacity: 0;
}

.checkout-success-modal.is-open .checkout-success-modal__card {
  animation: checkoutSuccessCardIn 0.28s ease forwards;
}

.checkout-success-modal__check {
  width: 74px;
  height: 74px;
  margin: 0 auto 10px;
}

.checkout-success-modal__check svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #2d9a6e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-success-modal__check circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}

.checkout-success-modal__check path {
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
}

.checkout-success-modal.is-open .checkout-success-modal__check circle {
  animation: checkoutSuccessCircle 0.34s ease 0.08s forwards;
}

.checkout-success-modal.is-open .checkout-success-modal__check path {
  animation: checkoutSuccessTick 0.26s ease 0.32s forwards;
}

.checkout-success-modal__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #18375f;
  margin-bottom: 6px;
}

.checkout-success-modal__text {
  font-size: 0.96rem;
  color: #4a6488;
}

.form-success-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1450;
}

.form-success-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.form-success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 54, 0.28);
  backdrop-filter: blur(2px);
}

.form-success-modal__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  border-radius: 20px;
  padding: 20px 18px 18px;
  background: #ffffff;
  border: 1px solid #d3e2f7;
  box-shadow: 0 22px 45px rgba(20, 48, 86, 0.2);
  text-align: center;
  transform: translateY(8px) scale(0.96);
  opacity: 0;
}

.form-success-modal.is-open .form-success-modal__card {
  animation: checkoutSuccessCardIn 0.28s ease forwards;
}

.form-success-modal__check {
  width: 74px;
  height: 74px;
  margin: 0 auto 10px;
}

.form-success-modal__check svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #2d9a6e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-success-modal.is-error .form-success-modal__check svg {
  stroke: #d64545;
}

.form-success-modal__check circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}

.form-success-modal__check path {
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
}

.form-success-modal.is-open .form-success-modal__check circle {
  animation: checkoutSuccessCircle 0.34s ease 0.08s forwards;
}

.form-success-modal.is-open .form-success-modal__check path {
  animation: checkoutSuccessTick 0.26s ease 0.32s forwards;
}

.form-success-modal__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #18375f;
  margin-bottom: 6px;
}

.form-success-modal.is-error .form-success-modal__title {
  color: #8b2a2a;
}

.form-success-modal__text {
  font-size: 0.96rem;
  color: #4a6488;
}

.form-success-modal.is-error .form-success-modal__text {
  color: #7a3a3a;
}

.form-success-modal__actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.form-success-modal__actions .button {
  min-width: 140px;
}


@keyframes checkoutSuccessCardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes checkoutSuccessCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes checkoutSuccessTick {
  to {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 640px) {
  .button {
    width: auto;
  }
}

.product-price-special {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 117, 76, 0.08);
  border: 1px dashed rgba(34, 117, 76, 0.3);
  color: #1f5b3d;
  font-size: 0.72rem;
  white-space: nowrap;
}

.product-price-special-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

.product-price-special-value {
  font-weight: 800;
  font-size: 1.08rem;
  color: #1f5b3d;
}

.desktop-auth-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #cfe0f4;
  background: linear-gradient(180deg, #ffffff 0%, #f1f6ff 100%);
  color: #1c3b67;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.desktop-icon-btn.desktop-auth-btn {
  width: auto;
  height: auto;
  justify-content: flex-start;
  gap: 2px;
}

.desktop-icon-btn.desktop-auth-btn .desktop-icon-svg {
  display: none;
}

.desktop-auth-btn:hover {
  transform: translateY(-1px);
  border-color: #97b5e2;
  box-shadow: 0 10px 20px rgba(28, 71, 122, 0.12);
}

.desktop-auth-btn__status {
  font-size: 0.68rem;
  font-weight: 600;
  color: #5a7396;
}

.desktop-auth-btn.is-auth {
  border-color: #a7d7bf;
  background: linear-gradient(180deg, #f4fff8 0%, #e8f6ef 100%);
  color: #1f5b3d;
}

.desktop-icon-btn.is-auth {
  background: var(--primary);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 16px rgba(26, 61, 117, 0.2);
}

.desktop-icon-btn.is-auth:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 20px rgba(26, 61, 117, 0.24);
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1500;
}

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

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 54, 0.32);
  backdrop-filter: blur(2px);
}

.auth-modal__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  border-radius: 20px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #d3e2f7;
  box-shadow: 0 22px 45px rgba(20, 48, 86, 0.2);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  animation: checkoutSuccessCardIn 0.28s ease forwards;
}

.auth-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.auth-modal__header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #17345e;
}

.auth-modal__close {
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef3fb;
  color: #1f3d68;
  font-size: 1.2rem;
  cursor: pointer;
}

.auth-modal__form {
  display: grid;
  gap: 10px;
}

.auth-modal__field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #29466f;
  font-size: 0.82rem;
}

.auth-modal__field input {
  border: 1px solid #ccd9ec;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.auth-modal__error {
  min-height: 18px;
  color: #a43030;
  font-weight: 600;
  font-size: 0.82rem;
  margin: 0;
}

.auth-modal__submit {
  width: 100%;
}

.auth-modal__note {
  margin-top: 10px;
  color: #6a7f9b;
  font-size: 0.78rem;
}

.auth-modal__note a {
  color: #0d56c9;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.auth-modal__note a:visited {
  color: #0d56c9;
}

.auth-modal__note a:hover,
.auth-modal__note a:focus-visible {
  color: #0a43a1;
  text-decoration: underline;
}

.site-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  color: #60738f;
  font-size: 0.9rem;
}

.site-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.site-breadcrumbs a:hover {
  text-decoration: underline;
}

.site-breadcrumbs-separator {
  color: #9caec5;
}

.site-breadcrumbs-current {
  color: #60738f;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.hero-card {
  padding: clamp(20px, 6vw, 32px);
  background:
    linear-gradient(155deg, rgba(204, 225, 255, 0.95), rgba(236, 245, 255, 0.93)),
    var(--surface);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #344d75;
  margin-bottom: var(--space-2);
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 11vw, 4rem);
  line-height: 0.98;
  margin-bottom: var(--space-3);
}

.hero-text {
  color: #445d82;
  font-size: 1.2rem;
  margin-bottom: var(--space-4);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.category-card {
  min-height: 118px;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    rgba(67, 138, 243, 0) 0deg 280deg,
    rgba(67, 138, 243, 0.95) 325deg,
    rgba(67, 138, 243, 0) 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(210, 226, 252, 0.6);
  right: -14px;
  bottom: -18px;
  z-index: 0;
}

.category-card > * {
  position: relative;
  z-index: 2;
}

.category-chip {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: #29518f;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
}

.category-name {
  font-weight: 800;
  font-size: clamp(1.05rem, 2.15vw, 1.5rem);
  line-height: 1.12;
}

.category-meta {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

@media (hover: hover) {
  .category-card:hover {
    transform: translateY(-3px);
    border-color: #a8c6ef;
    box-shadow: 0 14px 28px rgba(26, 63, 114, 0.18);
  }

  .category-card:hover::before {
    opacity: 1;
    animation: categoryBorderRun 1.2s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-card {
    transition: none;
  }

  .category-card:hover::before {
    animation: none;
  }
}

@keyframes categoryBorderRun {
  to {
    transform: rotate(1turn);
  }
}

.product-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  align-content: start;
  height: 100%;
}

.product-media {
  order: 1;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #dfe4ec;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
}

.product-discount {
  position: absolute;
  left: 7px;
  top: 7px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
}

.product-favorite,
.product-compare {
  position: absolute;
  right: 7px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 10px;
  border: 1px solid #d5e3f6;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  color: var(--primary);
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 18px rgba(20, 48, 86, 0.08);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.product-favorite {
  top: 7px;
  font-size: 0;
  line-height: 1;
}

.product-favorite::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  transform: translateY(1px);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.1 20.3 5.35 13.83a4.76 4.76 0 0 1 6.74-6.73L12 7.2l-.09-.1a4.76 4.76 0 0 1 6.74 6.73z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.1 20.3 5.35 13.83a4.76 4.76 0 0 1 6.74-6.73L12 7.2l-.09-.1a4.76 4.76 0 0 1 6.74 6.73z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.product-favorite.is-active {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.product-favorite.is-active::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.1 20.3 5.35 13.83a4.76 4.76 0 0 1 6.74-6.73L12 7.2l-.09-.1a4.76 4.76 0 0 1 6.74 6.73z' fill='black'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.1 20.3 5.35 13.83a4.76 4.76 0 0 1 6.74-6.73L12 7.2l-.09-.1a4.76 4.76 0 0 1 6.74 6.73z' fill='black'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.product-favorite.is-active:hover,
.product-favorite.is-active:focus-visible {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.product-compare {
  top: 35px;
  padding: 0;
}

.product-compare::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19V10M10 19V6M15 19V13M20 19V4' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19V10M10 19V6M15 19V13M20 19V4' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.product-compare.is-active {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.product-compare:hover,
.product-compare:focus-visible {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.product-favorite:hover,
.product-compare:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
  border-color: #a9c5eb;
  box-shadow:
    0 10px 22px rgba(26, 61, 117, 0.14),
    0 0 0 6px rgba(14, 89, 157, 0.08);
}

.product-compare:hover,
.product-compare:focus-visible {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.product-favorite:focus-visible,
.product-compare:focus-visible,
.product-star:focus-visible {
  outline: none;
}

.product-favorite:focus-visible,
.product-compare:focus-visible {
  border-color: #9fbde7;
  box-shadow:
    0 8px 18px rgba(20, 48, 86, 0.1),
    0 0 0 4px rgba(14, 89, 157, 0.12);
}

.product-star:focus-visible {
  outline: 2px solid rgba(33, 101, 216, 0.35);
  outline-offset: 1px;
}

.product-sku {
  order: 2;
  color: #8b99b0;
  font-size: 0.72rem;
  margin: 0;
  white-space: nowrap;
}

.product-section-label {
  order: 3;
  margin: 0;
  color: #5a7296;
  font-size: 0.76rem;
  line-height: 1.35;
}

.product-meta-row {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 18px;
}

.product-meta-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.product-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.product-discount-inline {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 700;
  font-size: 0.66rem;
  line-height: 1;
  white-space: nowrap;
}

.product-star {
  border: 0;
  background: transparent;
  color: #c2cbda;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.product-star.is-active {
  color: #f2bf2c;
}

.product-name {
  order: 3;
  font-size: 0.88rem;
  line-height: 1.24;
  font-weight: 700;
  min-height: calc(1.24em * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
}

.product-price-note {
  order: 4;
  font-size: 0.72rem;
  color: #8698b3;
  margin: 0;
}

.product-price {
  order: 5;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.product-price.has-special {
  gap: 8px;
}

.product-price-current {
  font-size: 1.18rem;
  font-weight: 800;
}

.product-price-current.is-regular {
  font-size: 0.82rem;
  font-weight: 600;
  color: #7b8aa8;
}

.product-price-old {
  color: #8ea0ba;
  text-decoration: line-through;
  font-weight: 600;
  font-size: 0.72rem;
}

.product-price-compact.has-special {
  flex-wrap: nowrap;
}

.product-price-compact {
  min-height: 30px;
}

.product-price-compact .product-price-special-label {
  display: none;
}

.product-actions {
  order: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.product-actions .button {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.84rem;
}

@media (max-width: 639px) {
  .product-actions .button {
    font-size: calc(0.84rem - 1.5px);
    white-space: nowrap;
  }
}

.product-actions-compact {
  gap: 7px;
}

.qty-control-compact {
  height: 32px;
}

.qty-control-compact .qty-btn {
  width: 26px;
  height: 30px;
}

.qty-control-compact .qty-value {
  min-width: 20px;
  font-size: 0.82rem;
}

@media (min-width: 980px) and (max-width: 1037px) {
  .product-actions-compact {
    gap: 6px;
  }

  .product-actions-compact .button {
    padding: 7px 9px;
    font-size: 0.75rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .product-actions-compact .qty-control-compact {
    height: 30px;
    flex-shrink: 0;
  }

  .product-actions-compact .qty-control-compact .qty-btn {
    width: 22px;
    height: 28px;
    font-size: 0.86rem;
  }

  .product-actions-compact .qty-control-compact .qty-value {
    min-width: 18px;
    font-size: 0.76rem;
  }
}

.banner-card {
  min-height: 168px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  position: relative;
  background: #b8d4ff;
}

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

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.brand-item {
  min-height: 90px;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 5vw, 2rem);
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

.slider {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: var(--space-2);
  align-items: center;
}

.slider.slider-auto {
  grid-template-columns: minmax(0, 1fr);
}

.slider.slider-auto .slider-btn {
  display: none;
}

.slider.slider-auto .slider-track {
  grid-column: 1 / -1;
}

.slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(38, 62, 100, 0.86);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.slider-track {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.slider-track > * {
  scroll-snap-align: start;
  flex: 0 0 90%;
}

.review-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #fff;
  padding: var(--space-4);
  min-height: 170px;
}

.review-author {
  font-weight: 800;
  margin-bottom: 6px;
}

.review-stars {
  color: #2d71e6;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.review-text {
  color: #425b80;
}

.review-date {
  margin-top: 12px;
  color: #8ca0be;
  font-size: 0.9rem;
}

.review-form-toggle {
  margin-top: var(--space-3);
}

.review-form-panel {
  margin-top: var(--space-3);
  max-height: 760px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition:
    max-height 0.34s ease,
    opacity 0.24s ease,
    transform 0.24s ease,
    margin-top 0.24s ease,
    padding 0.24s ease,
    border-width 0.24s ease;
}

.review-form-panel.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

.review-form-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.review-form-star {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: #9cb0cd;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.review-form-star.is-active {
  color: #f6aa1c;
  border-color: #e8c37a;
  background: #fff7e5;
}

.form-card {
  padding: var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.form-label {
  font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

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

.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
}

.form-checkbox-input {
  inline-size: 18px;
  block-size: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}

.form-checkbox-label {
  line-height: 1.35;
}

.form-consent-note {
  margin: -2px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-consent-note a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-textarea:disabled {
  background: #f4f8ff;
  color: #6d7f98;
  cursor: not-allowed;
}

.map-shell {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

#custom-dark-map {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #102743;
}

#custom-dark-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.custom-pin {
  width: 44px;
  height: 44px;
  position: relative;
  pointer-events: none;
}

.yandex-map-fallback {
  position: relative;
  width: 100%;
  height: 100%;
}

.yandex-map-fallback iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background: linear-gradient(155deg, rgba(8, 28, 52, 0.92), rgba(14, 45, 79, 0.92));
  color: #e5eef9;
}

.map-loader-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(229, 238, 249, 0.24);
  border-top-color: #ffffff;
  animation: mapLoaderSpin 0.9s linear infinite;
}

.map-loader-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@keyframes mapLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.custom-pin-fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.custom-pin-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #ff9ea4 0%, #ff4f5e 38%, #d8172e 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 10px 24px rgba(216, 23, 46, 0.45);
}

.custom-pin-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  border: 2px solid rgba(255, 56, 74, 0.9);
  opacity: 0.9;
  animation: customPinPulse 2.2s ease-out infinite;
}

.custom-pin-ring-delay {
  animation-delay: 1.1s;
}

@keyframes customPinPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.85;
  }

  70% {
    opacity: 0.22;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

.contacts-subscribe-section {
  margin-top: 4px;
  --subscribe-corner-drop: 24px;
  --subscribe-footer-overlap: var(--subscribe-corner-drop);
  margin-bottom: calc(var(--subscribe-footer-overlap) * -1);
  position: relative;
  z-index: 1;
}

.contacts-subscribe-strip {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 10px 12px calc(6px + var(--subscribe-footer-overlap));
  border-radius: 20px 20px 0 0;
  border: 1px solid #c1cfe5;
  background: linear-gradient(180deg, #cbd9f2 0%, #c5d3ee 100%);
  overflow: visible;
}

.contacts-subscribe-strip::before,
.contacts-subscribe-strip::after {
  content: "";
  position: absolute;
  bottom: calc(var(--subscribe-corner-drop) * -1);
  width: 72px;
  height: var(--subscribe-corner-drop);
  background: linear-gradient(180deg, #cbd9f2 0%, #c5d3ee 100%);
}

.contacts-subscribe-strip::before {
  left: -1px;
  border-left: 1px solid #c1cfe5;
  border-bottom: 1px solid #c1cfe5;
  border-bottom-left-radius: 22px;
}

.contacts-subscribe-strip::after {
  right: -1px;
  border-right: 1px solid #c1cfe5;
  border-bottom: 1px solid #c1cfe5;
  border-bottom-right-radius: 22px;
}

.contacts-subscribe-lead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contacts-subscribe-icon {
  width: 0;
  height: 0;
  display: none;
  place-items: center;
  border-radius: 999px;
  color: #355b93;
  background: linear-gradient(145deg, #f5f8ff 0%, #dbe7ff 100%);
  box-shadow: inset 0 0 0 1px rgba(53, 91, 147, 0.14);
}

.contacts-subscribe-icon svg {
  width: 22px;
  height: 22px;
}

.contacts-subscribe-title {
  margin: 0;
  color: #173660;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
}

.contacts-subscribe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
}

.contacts-subscribe-input {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(73, 106, 157, 0.2);
  border-radius: 7px;
  padding: 0 9px;
  color: #1f3b67;
  background: rgba(255, 255, 255, 0.92);
}

.contacts-subscribe-input::placeholder {
  color: #7f95b9;
  font-size: 0.76rem;
}

.contacts-subscribe-button {
  width: auto;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  background: linear-gradient(130deg, #4a7fd4 0%, #3f6eb7 100%);
  color: #fff;
}

.contacts-subscribe-note {
  display: block;
  margin: 0;
  color: #3f5d88;
  font-size: 0.62rem;
  line-height: 1.25;
}

.contacts-subscribe-note a {
  color: #274f89;
  font-weight: 700;
}

.contacts-subscribe-submit-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 8px;
}

.contacts-subscribe-policy-inline {
  color: #274f89;
  font-size: 0.66rem;
  line-height: 1.15;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
}

.profile-menu {
  position: absolute;
  z-index: 1200;
  min-width: 260px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #dbe7f6;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(20, 45, 80, 0.18);
}

.profile-menu.is-open {
  display: block;
}

.profile-menu__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-menu__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8f0ff;
  color: #1b4a8c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.profile-menu__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-menu__title {
  font-weight: 700;
  color: #1d3b67;
}

.profile-menu__login {
  font-size: 13px;
  color: #6f7fa1;
}

.profile-menu__stats {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #31466b;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f7ff;
  margin-bottom: 12px;
}

.profile-menu__item {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: #1b4a8c;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.profile-menu__item.is-danger {
  background: #d13a3a;
}

@media (max-width: 639px) {
  .profile-menu {
    width: calc(100% - 32px);
  }
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #2a436f;
  cursor: pointer;
}

.qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qty-value {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
}

.notice {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-soft);
  padding: 12px 14px;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .category-grid,
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slider-track > * {
    flex-basis: 48%;
  }

  #custom-dark-map {
    height: 350px;
  }

  .contacts-subscribe-strip {
    grid-template-columns: auto minmax(280px, 1fr);
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px calc(6px + var(--subscribe-footer-overlap));
  }

  .contacts-subscribe-form {
    width: min(100%, 760px);
    justify-self: end;
    gap: 6px;
  }

  .contacts-subscribe-button {
    min-width: 98px;
  }

  .contacts-subscribe-submit-inline {
    justify-content: flex-start;
    flex-wrap: nowrap;
    column-gap: 14px;
    row-gap: 8px;
  }

  .contacts-subscribe-note {
    max-width: 300px;
    margin-top: 0;
  }
}

@media (max-width: 639px) {
  .contacts-subscribe-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .contacts-subscribe-submit-inline {
    display: contents;
  }

  .contacts-subscribe-button {
    justify-self: end;
  }

  .contacts-subscribe-note {
    grid-column: 1 / -1;
  }

  .contacts-subscribe-note {
    max-width: none;
  }
}

@media (min-width: 640px) and (max-width: 979px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: clamp(2.4rem, 3.7vw, 3.6rem);
    line-height: 1.03;
  }

  .hero-text {
    font-size: 1.02rem;
    max-width: 50ch;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .product-price-current {
    font-size: 1.28rem;
  }

  .button {
    font-size: 0.98rem;
  }

  .category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .slider-track > * {
    flex-basis: 32%;
  }

  #custom-dark-map {
    height: 400px;
  }
}

@media (min-width: 640px) and (max-width: 979px) {
  .product-card {
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
  }

  .product-image {
    aspect-ratio: 1 / 0.86;
  }

  .product-name {
    font-size: 0.94rem;
    line-height: 1.18;
    min-height: calc(1.18em * 2);
  }

  .product-price-current {
    font-size: 1.08rem;
  }

  .product-favorite,
  .product-compare {
    width: 26px;
    height: 26px;
  }
}



