:root {
  --bg: #f7f7f7;
  --sand: #f1ebdf;
  --text: #111111;
  --muted: #555555;
  --line: #d8d8d8;
  --accent: #6b9aa1;
  --white: #ffffff;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

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

button {
  font: inherit;
}

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.15rem, 4vw, 4.75rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 48px;
  font-size: clamp(1.9rem, 3vw, 3.4rem);
  line-height: 1.18;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1110px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.hero-wrap {
  background: linear-gradient(90deg, var(--bg) 62%, var(--sand) 62%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 52px 0 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.brand svg {
  width: 30px;
  height: 30px;
}

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

.site-nav__link {
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--accent);
}


.site-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 1.06rem;
}

.phone-trigger {
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.phone-trigger svg {
  width: 20px;
  height: 20px;
}

.phone-trigger:hover {
  filter: brightness(0.92);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.icon-button svg {
  width: 24px;
  height: 24px;
}

.icon-button:hover {
  border-color: var(--line);
}

.account-link {
  width: auto;
  min-width: 72px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  right: -2px;
  top: -1px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 4px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 18px;
  text-align: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 1fr);
  align-items: center;
  gap: 36px;
  padding-bottom: 75px;
}

.hero-copy {
  max-width: 520px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy p {
  margin-top: 28px;
  max-width: 500px;
  font-size: 1.2rem;
  line-height: 1.56;
  color: #272727;
}

.cta {
  margin-top: 40px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
}

.cta__icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e4ebec;
  color: var(--accent);
}

.cta__icon svg {
  width: 29px;
  height: 29px;
}

.cta__label {
  min-width: 244px;
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  background: var(--accent);
  color: var(--white);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  transition: filter 0.2s ease;
}

.cta:hover .cta__label {
  filter: brightness(1.04);
}

.hero-dots {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  width: fit-content;
}

.hero-dots__item {
  position: relative;
  width: 32px;
  height: 4px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #d2d2d2;
}

.hero-dots__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-dots__item.is-active::after {
  animation: heroDotProgress 4.5s linear forwards;
}

.hero-media__main--animated {
  animation: heroFadeIn 0.7s ease both;
}

@keyframes heroDotProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0.3;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-media {
  position: relative;
  min-height: 710px;
  display: flex;
  justify-content: center;
}

.hero-media__main {
  width: min(540px, 100%);
  height: 690px;
  object-fit: cover;
  box-shadow: 0 24px 44px rgb(0 0 0 / 12%);
}

.hero-media__small {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 24px 44px rgb(0 0 0 / 14%);
}

.hero-media__small--top {
  width: 208px;
  height: 230px;
  right: -62px;
  top: 158px;
}

.hero-media__small--bottom {
  width: 202px;
  height: 288px;
  left: -74px;
  bottom: -4px;
}

.collection .container {
  text-align: center;
}

.collection h2,
.values h2,
.team h2 {
  text-align: left;
}

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

.product-card {
  text-align: center;
}

.product-card__img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__body {
  display: block;
  margin-top: 18px;
  color: inherit;
  text-align: left;
}

.product-card__name {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-media {
  position: relative;
  aspect-ratio: 0.79;
  overflow: hidden;
  margin-bottom: 0;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

/* Quick-add overlay — slides up from bottom of image on hover */
.product-card__quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  margin: 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card__quick-add {
  transform: translateY(0);
}

.product-card__quick-btn {
  width: 100%;
  height: 46px;
  border: 0;
  background: rgba(17, 17, 17, 0.88);
  color: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__quick-btn:hover {
  background: rgba(17, 17, 17, 0.97);
}

.product-card__quick-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.product-media.is-muted::after {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--accent) 44%, transparent);
}

.product-overlay-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgb(255 255 255 / 10%);
  color: var(--white);
  pointer-events: none;
}

.product-overlay-button svg {
  width: 30px;
  height: 30px;
}

.price {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8f8f8f;
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
}

.old-price {
  text-decoration: line-through;
}

.ghost-button {
  margin: 54px auto 0;
  width: fit-content;
  min-width: 315px;
  min-height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.3rem;
  transition: all 0.25s ease;
}

.ghost-button:hover {
  color: var(--white);
  background: var(--accent);
}

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

.feature-card__icon {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  margin-bottom: 34px;
}

.feature-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 500;
}

.feature-card p {
  max-width: 330px;
  color: #202020;
  font-size: 1.22rem;
  line-height: 1.45;
}

.team-content {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 70px;
}

.team-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-slider img {
  width: 100%;
  max-width: 760px;
  height: 500px;
  object-fit: cover;
}

.team-slider__image--animated {
  animation: heroFadeIn 0.6s ease both;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgb(255 255 255 / 65%);
  color: #8d8d8d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-arrow:first-of-type {
  left: -72px;
}

.slider-arrow:last-of-type {
  right: -62px;
}

.slider-arrow svg {
  width: 26px;
  height: 26px;
}

.slider-arrow:hover {
  color: var(--text);
  border-color: var(--line);
}

.team-copy h3 {
  margin-bottom: 30px;
  font-size: clamp(1.85rem, 2.5vw, 2.6rem);
  font-weight: 500;
}

.team-copy p {
  margin-bottom: 22px;
  font-size: 1.22rem;
  line-height: 1.47;
}

.team-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 1.15rem;
}

.team-link:hover {
  text-decoration: underline;
}

.shop-page .site-header,
.product-page .site-header,
.about-page .site-header,
.contact-page .site-header,
.cart-page .site-header {
  padding-bottom: 60px;
}

.shop-hero {
  padding-top: 96px;
  padding-bottom: 80px;
}

.shop-hero__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.shop-hero h1 {
  margin-bottom: 0;
}

.shop-hero__foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-hero__active-cat {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.08rem;
  color: #111111;
}

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

.breadcrumbs .is-current {
  color: #8f8f8f;
}

.shop-toolbar {
  padding-bottom: 84px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-button {
  min-width: 170px;
  min-height: 62px;
  padding: 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111111;
  background: transparent;
  color: #111111;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-button:hover,
.category-button.is-active {
  background: #111111;
  color: #ffffff;
}

.shop-products {
  padding-top: 0;
  padding-bottom: 120px;
}

.shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.shop-meta {
  color: #999999;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 28px;
}

.shop-card .product-media {
  margin-bottom: 28px;
}


.pagination {
  margin-top: 76px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.page-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111111;
  background: transparent;
  color: #111111;
  cursor: pointer;
}

.page-btn.is-active {
  background: #111111;
  color: #ffffff;
}

.page-btn--arrow {
  border-color: transparent;
}

.page-btn--arrow svg {
  width: 24px;
  height: 24px;
}

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

.about-content {
  padding-top: 0;
  padding-bottom: 80px;
}


.cart-hero {
  padding-top: 90px;
  padding-bottom: 90px;
}

.cart-hero h1 {
  margin-bottom: 26px;
}

.cart-content {
  padding-bottom: 120px;
}

.cart-table {
  width: 100%;
}

.cart-head {
  padding-bottom: 24px;
  border-bottom: 1px solid #d4d4d4;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 120px 160px 120px;
  align-items: center;
  column-gap: 22px;
  font-size: 1.05rem;
}

.cart-row {
  padding: 34px 0;
  border-bottom: 1px solid #ececec;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 120px 160px 120px;
  align-items: center;
  column-gap: 22px;
}

.cart-remove {
  width: 20px;
  height: 20px;
  margin-right: 20px;
  border: 0;
  background: transparent;
  color: #888888;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cart-product-cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

.cart-product {
  display: flex;
  align-items: center;
  min-width: 0;
}

.cart-product img {
  width: 136px;
  height: 178px;
  object-fit: cover;
  margin-right: 22px;
}

.cart-product p,
.cart-price,
.cart-total {
  font-size: 1.05rem;
}

.cart-product__info {
  min-width: 0;
}

.cart-product__info p {
  margin-bottom: 6px;
}

.cart-product__info small {
  color: #848484;
  font-size: 0.88rem;
}

.cart-qty input {
  width: 58px;
  height: 44px;
  border: 1px solid #afafaf;
  background: transparent;
  text-align: center;
  outline: none;
}

.cart-empty {
  padding: 42px 0;
  color: #8a8a8a;
  font-size: 1.04rem;
}

.cart-actions {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.coupon-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.coupon-input {
  width: 255px;
  border: 0;
  border-bottom: 1px solid #9f9f9f;
  background: transparent;
  padding: 0 0 14px;
  font-size: 1rem;
  outline: none;
}

.coupon-btn,
.refresh-btn {
  min-width: 255px;
  min-height: 62px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.coupon-btn:hover,
.refresh-btn:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.cart-summary {
  margin-top: 72px;
  margin-left: auto;
  width: fit-content;
}

.cart-subtotal {
  text-align: right;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.cart-checkout {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.cart-total-box {
  min-width: 290px;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: var(--sand);
  font-size: 1.75rem;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
}

.checkout-btn {
  min-width: 250px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.checkout-btn:hover:enabled {
  filter: brightness(1.03);
}

.checkout-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-message {
  margin-top: 16px;
  color: #7a7a7a;
  font-size: 0.94rem;
}

.coupon-hint {
  margin-top: 16px;
  color: #8d8d8d;
  font-size: 0.88rem;
}

.cart-message--success {
  color: #658e94;
  font-weight: 500;
}

.checkout-form-panel {
  margin-top: 52px;
  margin-left: auto;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
}

.checkout-form-panel h3 {
  margin-bottom: 22px;
  font-size: 1.3rem;
  font-weight: 500;
}

.checkout-form-panel--page {
  margin-top: 0;
  margin-left: 0;
  width: 100%;
}

.checkout-panel-hint {
  margin-bottom: 24px;
  color: #6f6f6f;
  font-size: 0.97rem;
  line-height: 1.52;
}

.checkout-screen {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.checkout-screen__summary {
  padding: 28px 26px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
}

.checkout-screen__summary h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  font-weight: 500;
}

.checkout-screen__meta {
  margin-bottom: 22px;
  color: #707070;
  font-size: 0.94rem;
}

.checkout-screen__items {
  margin-bottom: 22px;
  display: grid;
  gap: 10px;
}

.checkout-screen__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
}

.checkout-screen__item strong {
  white-space: nowrap;
  font-weight: 500;
}

.checkout-screen__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #585858;
  font-size: 0.95rem;
}

.checkout-screen__row + .checkout-screen__row {
  margin-top: 8px;
}

.checkout-screen__row--total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ececec;
  color: #111111;
  font-size: 1.04rem;
}

.checkout-back-btn {
  margin-top: 22px;
  width: 100%;
  min-width: 0;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.checkout-field {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #9f9f9f;
  padding: 0 0 12px;
  background: transparent;
  outline: none;
  font-size: 1rem;
}

.checkout-field::placeholder {
  color: #7f7f7f;
}

.checkout-submit {
  margin-top: 6px;
  min-height: 56px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.checkout-submit:hover {
  filter: brightness(1.03);
}

.checkout-error {
  color: #b35252;
  font-size: 0.92rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgb(110 167 173 / 82%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open,
#order-success-modal {
  display: flex;
}

.modal-card {
  position: relative;
  background: #ffffff;
}

.callback-modal {
  width: min(360px, 100%);
  padding: 58px 38px 44px;
}

.modal-close {
  position: absolute;
  right: 8px;
  top: 6px;
  border: 0;
  background: transparent;
  color: #9f9f9f;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.callback-modal h3 {
  margin-bottom: 28px;
  font-size: 1.18rem;
  text-align: center;
  font-weight: 500;
}

.modal-form {
  display: grid;
  gap: 18px;
}

.modal-field {
  border: 0;
  border-bottom: 1px solid #9f9f9f;
  padding: 0 0 10px;
  background: transparent;
  color: #111111;
  outline: none;
}

.modal-field::placeholder {
  color: #888888;
}

.modal-submit {
  margin-top: 10px;
  min-height: 52px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

.success-modal {
  width: min(530px, 100%);
  min-height: 208px;
  padding: 70px 40px 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.success-modal p {
  text-align: center;
  font-size: 1.08rem;
}

.modal-secondary-btn {
  min-width: 112px;
  min-height: 42px;
  border: 1px solid #9f9f9f;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
}

.product-section-wrap {
  padding-top: 0;
}

.product-category-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-name {
  margin-bottom: 28px;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.18;
}

.product-description {
  margin-bottom: 32px;
  color: #444444;
  font-size: 1rem;
  line-height: 1.65;
}

.product-option__label {
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-hero {
  padding-top: 90px;
  padding-bottom: 100px;
}

.product-hero h1 {
  margin-bottom: 26px;
}

.product-layout {
  margin-top: 62px;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(280px, 390px);
  gap: 70px;
  align-items: start;
}

.product-image-wrap {
  width: min(540px, 100%);
}

.product-image-wrap img {
  width: 100%;
  aspect-ratio: 0.79;
  object-fit: cover;
}

.product-info {
  padding-top: 18px;
}

.product-prices {
  margin-bottom: 58px;
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.product-prices__current {
  color: #998e78;
  font-size: clamp(2.05rem, 2.8vw, 2.85rem);
  font-weight: 500;
}

.product-prices__old {
  color: #9d9d9d;
  font-size: clamp(1.3rem, 2vw, 2rem);
  text-decoration: line-through;
}

.product-option + .product-option {
  margin-top: 34px;
}

.product-option p {
  font-size: 1rem;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.size-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #111111;
  background: transparent;
  color: #111111;
  cursor: pointer;
}

.size-btn.is-active {
  background: #111111;
  color: #ffffff;
}

.color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.color-btn {
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}

.color-btn.is-active {
  border-color: #111111;
  box-shadow: 0 0 0 3px #ffffff inset;
}

.buy-row {
  margin-top: 46px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.qty-control {
  min-width: 108px;
  height: 64px;
  display: flex;
  align-items: center;
  border: 1px solid #afafaf;
}

.qty-btn {
  width: 36px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #8b8b8b;
  font-size: 1.35rem;
  cursor: pointer;
}

.qty-input {
  width: 54px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 1.15rem;
  color: #111111;
  outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.add-cart-btn {
  min-width: 248px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.98rem;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.add-cart-btn:hover {
  filter: brightness(1.03);
}

.added-note {
  margin-top: 14px;
  color: #6f9ba2;
  font-size: 0.92rem;
}

.related {
  padding-top: 0;
  padding-bottom: 118px;
}

.related-title {
  margin-bottom: 54px;
  font-size: clamp(1.8rem, 2.4vw, 2.75rem);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 255px));
  gap: 32px;
}

.related-card {
  text-align: left;
}

.related-card .product-media {
  margin-bottom: 18px;
}

.related-card h3 {
  font-size: 1.1rem;
}

.related-card .price {
  margin-top: 8px;
  font-size: 0.92rem;
}

.footer {
  margin-top: 38px;
  padding: 94px 0;
  background: var(--sand);
}

.shop-page .footer,
.product-page .footer,
.about-page .footer,
.contact-page .footer,
.cart-page .footer {
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.35fr) minmax(220px, 1fr);
  gap: 34px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.02rem;
  color: #292929;
}

.footer-brand .brand {
  margin-bottom: 26px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 16px 46px;
  align-content: start;
  font-size: 1.12rem;
}

.footer-nav a:hover,
.footer-nav a.is-active {
  color: var(--accent);
}

.footer-contacts {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  font-size: 1.18rem;
}

.socials {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.socials a {
  width: 29px;
  height: 29px;
  color: var(--text);
}

.cards {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cards img {
  display: block;
  width: auto;
  height: 30px;
  object-fit: contain;
}

@media (max-width: 1220px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 58px;
  }

  .hero-copy {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-copy p {
    margin-inline: auto;
  }

  .hero-dots {
    margin-top: 34px;
    margin-inline: auto;
  }

  .hero-media {
    min-height: auto;
    margin-top: 20px;
    padding: 0 50px;
  }

  .hero-media__main {
    height: auto;
    aspect-ratio: 0.74;
    max-height: 680px;
  }

  .hero-media__small--top {
    right: 0;
    top: 14%;
  }

  .hero-media__small--bottom {
    left: 0;
    bottom: 2%;
  }

  .collection-grid,
  .values-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-grid .product-card:last-child {
    grid-column: 1 / -1;
    max-width: 430px;
    margin-inline: auto;
  }

  .team-content {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 48px;
  }

  .cart-head,
  .cart-row {
    grid-template-columns: minmax(250px, 1fr) 100px 130px 100px;
    column-gap: 16px;
  }

  .cart-product img {
    width: 112px;
    height: 146px;
  }

  .cart-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-summary {
    margin-left: 0;
  }

  .checkout-form-panel {
    margin-left: 0;
  }

  .checkout-screen {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .checkout-form-panel--page {
    order: 1;
  }

  .checkout-screen__summary {
    order: 2;
  }

  .product-image-wrap {
    width: min(540px, 100%);
  }

  .product-info {
    max-width: 500px;
  }

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

  .team-slider {
    padding: 0 60px;
  }

  .slider-arrow:first-of-type {
    left: 0;
  }

  .slider-arrow:last-of-type {
    right: 0;
  }

  .team-copy {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-nav {
    grid-template-columns: repeat(4, minmax(120px, max-content));
  }

  .footer-contacts {
    justify-self: start;
    align-items: flex-start;
  }
}

@media (max-width: 850px) {
  .container {
    width: min(1110px, calc(100% - 28px));
  }

  .section {
    padding: 62px 0;
  }

  .hero-wrap {
    background: var(--bg);
  }

  .site-header {
    gap: 18px;
    justify-content: flex-start;
    padding: 24px 0 20px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .site-actions {
    width: 100%;
    justify-content: space-between;
  }

  .phone-link span {
    font-size: 0.98rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  .hero-copy p {
    margin-top: 20px;
    font-size: 1.06rem;
  }

  .cta {
    width: 100%;
    justify-content: center;
  }

  .cta__icon {
    width: 62px;
    height: 62px;
  }

  .cta__label {
    min-width: 210px;
    min-height: 62px;
    font-size: 1rem;
  }

  .hero-media {
    padding: 0;
  }

  .hero-media__small {
    display: none;
  }

  .collection-grid,
  .values-grid,
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .collection-grid .product-card:last-child {
    max-width: none;
  }

  .ghost-button {
    min-width: 100%;
    margin-top: 36px;
    min-height: 62px;
    font-size: 1rem;
  }

  .feature-card p {
    max-width: none;
    font-size: 1.05rem;
  }

  .team-slider {
    padding: 0;
  }

  .team-slider img {
    height: 380px;
  }

  .slider-arrow {
    display: none;
  }

  .team-copy p {
    font-size: 1.05rem;
  }

  .shop-hero {
    padding-top: 66px;
    padding-bottom: 60px;
  }

  .about-hero,
  .contact-hero,
  .cart-hero {
    padding-top: 66px;
    padding-bottom: 60px;
  }

  .cart-content {
    padding-bottom: 78px;
  }

  .cart-head {
    display: none;
  }

  .cart-row {
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding: 28px 0;
  }

  .cart-remove {
    margin: 0;
  }

  .cart-product-cell {
    align-items: flex-start;
  }

  .cart-product {
    align-items: flex-start;
  }

  .cart-product img {
    width: 88px;
    height: 116px;
    margin-right: 14px;
  }

  .cart-price::before {
    content: 'Цена: ';
    color: #7f7f7f;
  }

  .cart-total::before {
    content: 'Всего: ';
    color: #7f7f7f;
  }

  .cart-actions {
    margin-top: 36px;
    gap: 16px;
  }

  .coupon-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .coupon-input,
  .coupon-btn,
  .refresh-btn {
    width: 100%;
    min-width: 0;
  }

  .cart-summary {
    margin-top: 42px;
    width: 100%;
  }

  .checkout-form-panel {
    margin-top: 32px;
    padding: 20px 16px;
  }

  .checkout-form-panel--page {
    margin-top: 0;
  }

  .checkout-screen {
    margin-top: 0;
    gap: 16px;
  }

  .checkout-screen__summary {
    padding: 20px 16px;
  }

  .cart-subtotal {
    text-align: left;
  }

  .cart-checkout {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .cart-total-box,
  .checkout-btn {
    min-width: 100%;
    min-height: 62px;
  }

  .callback-modal {
    padding: 52px 22px 30px;
  }

  .success-modal {
    min-height: 186px;
    padding: 40px 20px 34px;
  }

  .contact-success {
    min-width: 100%;
    min-height: 62px;
    text-align: center;
  }

  .product-hero {
    padding-top: 66px;
    padding-bottom: 72px;
  }

  .shop-toolbar {
    padding-bottom: 54px;
  }

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

  .category-button {
    min-width: 0;
    min-height: 56px;
  }

  .category-button:first-child {
    grid-column: 1 / -1;
  }

  .shop-bar {
    padding-bottom: 22px;
    margin-bottom: 28px;
  }

  .shop-products {
    padding-bottom: 78px;
  }

  .buy-row {
    flex-wrap: wrap;
  }

  .add-cart-btn {
    min-height: 62px;
    width: 100%;
  }

  .related {
    padding-bottom: 70px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .related-card .price {
    font-size: 1rem;
  }

  .pagination {
    margin-top: 48px;
  }

  .footer {
    padding: 66px 0;
  }

  .footer-nav {
    grid-template-columns: repeat(2, max-content);
    gap: 12px 24px;
  }
}

/* ─── About page redesign ─── */

.about-hero {
  padding-top: 96px;
  padding-bottom: 80px;
}

.about-hero__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-hero h1 { margin-bottom: 0; }

.about-hero__foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.about-block {
  display: grid;
  grid-template-columns: 480px 1fr;
  align-items: center;
  gap: 80px;
}

.about-block--reverse {
  grid-template-columns: 1fr 480px;
}

.about-block--reverse .about-block__image { order: 2; }
.about-block--reverse .about-block__copy  { order: 1; }

.about-block__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.about-block__copy { max-width: 520px; }

.about-block__copy h2 {
  margin-bottom: 28px;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
}

.about-block__copy p {
  font-size: 1.06rem;
  line-height: 1.68;
  color: #333333;
}

.about-block__copy p + p { margin-top: 18px; }

/* Stats strip */
.about-stats {
  background: var(--sand);
  padding: 72px 0;
}

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

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  border-left: 1px solid #d8cfc3;
  text-align: center;
}

.about-stat:first-child { border-left: 0; }

.about-stat__num {
  display: block;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #111111;
  margin-bottom: 8px;
}

.about-stat__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Contact page redesign ─── */

.contact-hero {
  padding-top: 96px;
  padding-bottom: 80px;
}

.contact-hero h1 { margin-bottom: 0; }

.contact-content {
  padding-bottom: 110px;
}

.contact-map {
  width: 100%;
  height: 440px;
  overflow: hidden;
  margin-bottom: 56px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-detail {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}

.contact-detail:last-child { border-right: 0; }

.contact-detail p {
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-detail a,
.contact-detail address {
  color: #111111;
  font-style: normal;
  font-size: 1.06rem;
  line-height: 1.5;
  transition: color 0.15s;
}

.contact-detail a:hover { color: var(--accent); }

.contact-form-wrap { max-width: 560px; }

.contact-form-title {
  margin-bottom: 36px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 500;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.contact-field {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #9f9f9f;
  padding: 0 0 14px;
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}

.contact-field::placeholder { color: #888888; }
.contact-field:focus { border-bottom-color: #444444; }

.contact-field--message {
  resize: vertical;
  min-height: 80px;
}

.contact-submit {
  width: fit-content;
  min-width: 200px;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.contact-submit:hover { filter: brightness(1.06); }

.contact-success {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--sand);
  color: #5a7a60;
  font-size: 0.94rem;
  font-weight: 500;
}

/* ─── Home page improvements ─── */

.collection-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}

.collection-header h2 { margin-bottom: 0; }

.collection-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s ease;
}

.collection-all-link:hover { gap: 14px; }

.values-header {
  margin-bottom: 48px;
}

.feature-card {
  padding: 36px 28px 28px;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: #c0c0c0;
  box-shadow: 0 8px 28px rgb(0 0 0 / 6%);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  margin-bottom: 28px;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
}

.feature-card p {
  color: #333333;
  font-size: 1rem;
  line-height: 1.58;
}

/* ─── Responsive: about / contact ─── */

@media (max-width: 1100px) {
  .about-block,
  .about-block--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-block--reverse .about-block__image { order: 0; }
  .about-block--reverse .about-block__copy  { order: 0; }
  .about-block__copy { max-width: 100%; }
  .about-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .about-stat { padding: 32px 20px; }
  .about-stat:nth-child(2) { border-left: 1px solid #d8cfc3; }
  .about-stat:nth-child(3) { border-left: 0; border-top: 1px solid #d8cfc3; }
  .about-stat:nth-child(4) { border-top: 1px solid #d8cfc3; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-detail { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .contact-detail:last-child { border-bottom: 0; }
  .collection-header { flex-direction: column; gap: 12px; }
  .collection-header h2 { margin-bottom: 0; }
}

@media (max-width: 700px) {
  .about-stats { padding: 48px 0; }
  .about-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .contact-map { height: 280px; margin-bottom: 36px; }
  .contact-form-wrap { max-width: none; }
}

/* ─── Auth pages ─── */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-hero { padding: 60px 0 32px; }
.auth-hero h1 { margin-bottom: 8px; }
.auth-wrap { max-width: 480px; margin: 0 auto 80px; padding: 0 24px; }
.auth-form { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 40px; }
.auth-form h2 { margin-bottom: 28px; font-size: 1.4rem; }
.auth-field { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .95rem; background: var(--bg); margin-bottom: 14px; transition: border-color .15s; }
.auth-field:focus { outline: none; border-color: var(--accent); }
.auth-submit { width: 100%; padding: 14px; background: var(--text); color: var(--white); border: none; border-radius: 8px; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 8px; transition: opacity .15s; }
.auth-submit:hover { opacity: .85; }
.auth-error { color: #e05555; font-size: .85rem; margin-bottom: 12px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--muted); }
.auth-switch a { color: var(--accent); text-decoration: underline; }

/* ─── Account pages ─── */
.account-hero { padding: 60px 0 32px; }
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-bottom: 80px; }
.account-sidebar { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px 0; height: fit-content; }
.account-sidebar a { display: block; padding: 12px 24px; color: var(--text); text-decoration: none; font-size: .9rem; border-left: 3px solid transparent; transition: background .15s, border-color .15s; }
.account-sidebar a:hover { background: var(--sand); }
.account-sidebar a.is-active { border-left-color: var(--accent); font-weight: 600; }
.account-content { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.account-content h2 { margin-bottom: 24px; font-size: 1.3rem; }
.account-form-group { margin-bottom: 16px; }
.account-form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.account-field { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .9rem; background: var(--bg); }
.account-field:focus { outline: none; border-color: var(--accent); }
.account-save-btn { padding: 12px 28px; background: var(--text); color: var(--white); border: none; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; margin-top: 8px; transition: opacity .15s; }
.account-save-btn:hover { opacity: .85; }

/* Orders list */
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.order-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-card__id { font-weight: 700; }
.order-card__date { font-size: .85rem; color: var(--muted); }
.order-status { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.order-status--pending    { background: #fff8e1; color: #b8860b; }
.order-status--processing { background: #e3f2fd; color: #1565c0; }
.order-status--shipped    { background: #e8f5e9; color: #2e7d32; }
.order-status--completed  { background: #e8f5e9; color: #1b5e20; }
.order-status--cancelled  { background: #fce4ec; color: #c62828; }
.order-card__items { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.order-card__total { font-weight: 700; }

/* Wishlist */
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.wishlist-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wishlist-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.wishlist-card__info { padding: 12px; }
.wishlist-card__name { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.wishlist-card__price { font-size: .9rem; color: var(--accent); }
.wishlist-card__actions { padding: 0 12px 12px; display: flex; gap: 8px; }
.wishlist-btn { flex: 1; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .8rem; cursor: pointer; background: transparent; transition: background .15s; }
.wishlist-btn:hover { background: var(--sand); }
.wishlist-btn--primary { background: var(--text); color: var(--white); border-color: var(--text); }
.wishlist-btn--primary:hover { opacity: .85; background: var(--text); }

/* Wishlist toggle button on product card */
.wishlist-toggle { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background .15s; }
.wishlist-toggle:hover, .wishlist-toggle.is-active { background: #fff; color: #e05555; }

/* Toast */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(16px); background: #1a1a2e; color: #fff; padding: 12px 24px; border-radius: 8px; font-size: .9rem; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 9999; white-space: nowrap; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Flash messages */
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes flashProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

.flash {
  position: relative;
  padding: 14px 44px 14px 20px;
  font-size: .9rem;
  overflow: hidden;
  max-height: 200px;
  animation: flashIn 0.3s ease both;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.4s ease 0.15s, padding 0.4s ease 0.15s;
}
.flash.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
.flash--success { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #4caf50; }
.flash--error   { background: #fce4ec; color: #c62828; border-left: 3px solid #e57373; }

.flash__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: currentColor;
  opacity: 0.45;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.15s, background 0.15s;
}
.flash__close:hover { opacity: 1; background: rgba(0,0,0,0.07); }

.flash__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.22;
  animation: flashProgress var(--flash-duration, 5000ms) linear forwards;
}

/* Admin bar */
.admin-bar {
  background: #1a1a2e;
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  padding: 0 0;
}
.admin-bar__inner {
  width: min(1110px, calc(100% - 48px));
  margin: 0 auto;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-bar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}
.admin-bar__label svg { opacity: 0.7; }
.admin-bar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.admin-bar__link {
  color: rgba(255,255,255,0.75);
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.admin-bar__link:hover { background: rgba(255,255,255,0.1); color: #ffffff; }
.admin-bar__link--active {
  background: rgba(107,154,161,0.35);
  color: #a8d5db;
}

/* ─── Cart redesign ─── */

.cart-section-label {
  margin-bottom: 28px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111111;
}

/* Empty state */
.cart-empty-state {
  padding: 100px 0;
  text-align: center;
}
.cart-empty-state__msg {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.cart-empty-state__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 52px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: filter 0.2s ease;
}
.cart-empty-state__cta:hover { filter: brightness(1.06); }

/* Two-column layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
  padding-bottom: 100px;
}

/* Items list */
.cart-items-head {
  display: grid;
  grid-template-columns: 1fr 100px 110px 96px;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #111111;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr 100px 110px 96px;
  gap: 16px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item__product {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.cart-item__remove {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #bbbbbb;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cart-item__remove:hover {
  background: #eeeeee;
  color: #111111;
}

.cart-item__img {
  flex-shrink: 0;
  display: block;
  width: 80px;
  height: 106px;
  overflow: hidden;
}
.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item__info { min-width: 0; }

.cart-item__name {
  font-size: 0.94rem;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.35;
}

.cart-item__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-item__price {
  font-size: 0.92rem;
  color: #666666;
}

.cart-item__qty-cell { display: flex; align-items: center; }

.cart-item__qty-input {
  width: 58px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 0.9rem;
  color: #111111;
  outline: none;
  transition: border-color 0.15s;
}
.cart-item__qty-input:focus { border-color: #888888; }
.cart-item__qty-input::-webkit-inner-spin-button,
.cart-item__qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item__total {
  font-size: 0.94rem;
  font-weight: 600;
  color: #111111;
}

/* Sidebar */
.cart-sidebar {
  position: sticky;
  top: 28px;
  background: var(--sand);
  padding: 30px 26px 34px;
}

/* Coupon */
.cart-coupon-form { margin-bottom: 28px; }

.cart-coupon-row {
  display: flex;
  height: 40px;
}
.cart-coupon-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c6bead;
  border-right: 0;
  background: rgba(255,255,255,0.55);
  padding: 0 12px;
  font: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}
.cart-coupon-input:focus { border-color: #9a9080; }
.cart-coupon-btn {
  height: 100%;
  padding: 0 14px;
  border: 1px solid #c6bead;
  background: #111111;
  color: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cart-coupon-btn:hover { opacity: 0.8; }
.cart-coupon-hint {
  margin-top: 8px;
  font-size: 0.76rem;
  color: #9a8e7e;
}
.cart-coupon-msg {
  margin-top: 7px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

/* Totals block (shared by cart + checkout) */
.cart-totals-block {
  border-top: 1px solid #c6bead;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}
.cart-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #555555;
}
.cart-totals-row--discount { color: var(--accent); }
.cart-totals-row--total {
  padding-top: 14px;
  margin-top: 2px;
  border-top: 1px solid #c6bead;
  font-size: 1.08rem;
  font-weight: 600;
  color: #111111;
}

/* CTA button */
.cart-checkout-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: filter 0.2s ease;
}
.cart-checkout-cta:hover { filter: brightness(1.07); }

/* ─── Checkout layout ─── */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
  padding-bottom: 100px;
}

.checkout-hint {
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-field-group { margin-bottom: 20px; }

.checkout-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-summary-panel {
  background: var(--sand);
  padding: 30px 26px 34px;
  position: sticky;
  top: 28px;
}

.checkout-summary-count {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.checkout-summary-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid #c6bead;
}

.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.checkout-summary-item img {
  width: 52px;
  height: 68px;
  object-fit: cover;
  flex-shrink: 0;
}
.checkout-summary-item__info {
  flex: 1;
  min-width: 0;
}
.checkout-summary-item__info p {
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 3px;
}
.checkout-summary-item__info small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}
.checkout-summary-item__qty {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}
.checkout-summary-item > strong {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.cart-back-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.15s;
}
.cart-back-link:hover { color: var(--accent); }

/* ─── Cart responsive ─── */

@media (max-width: 1000px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cart-sidebar {
    position: static;
    max-width: 460px;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .checkout-summary-panel {
    position: static;
    max-width: 460px;
  }
}

@media (max-width: 700px) {
  .cart-items-head { display: none; }
  .cart-item {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: 10px;
    column-gap: 16px;
  }
  .cart-item__product { grid-column: 1 / -1; }
  .cart-item__price::before { content: 'Цена: '; color: var(--muted); font-size: 0.78rem; }
  .cart-item__total::before { content: 'Сумма: '; color: var(--muted); font-size: 0.78rem; }
}
