/* Minimal Shopify-style webshop for salon sub-sites */

.shop-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

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

.shop-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--salon-ink);
}

.shop-header__brand .salon-nav__logo {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--salon-cream);
  color: var(--salon-accent);
  font-size: 0.85rem;
}

.shop-header__nav {
  display: flex;
  gap: 24px;
}

.shop-header__nav a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--salon-muted);
  transition: color 0.2s;
}

.shop-header__nav a:hover,
.shop-header__nav a.is-active {
  color: var(--salon-ink);
}

.shop-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  color: var(--salon-ink);
  font-size: 1.1rem;
}

.shop-header__cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--salon-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.shop-main {
  min-height: calc(100vh - 130px);
  padding: 40px 0 64px;
  background: #fff;
}

.shop-page-head {
  margin-bottom: 32px;
  text-align: center;
}

.shop-page-head h1 {
  margin: 0 0 8px;
  font-family: var(--salon-serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
}

.shop-page-head p {
  margin: 0;
  color: var(--salon-muted);
}

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

.shop-card {
  display: flex;
  flex-direction: column;
}

.shop-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7f7;
  margin-bottom: 14px;
}

.shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.shop-card:hover .shop-card__media img {
  transform: scale(1.03);
}

.shop-card__body h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.shop-card__body h2 a {
  text-decoration: none;
  color: var(--salon-ink);
}

.shop-card__body h2 a:hover {
  color: var(--salon-accent);
}

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

.shop-price {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--salon-ink);
}

.shop-price--lg {
  font-size: 1.25rem;
}

.shop-price--compare {
  text-decoration: line-through;
  color: var(--salon-muted);
  font-weight: 400;
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--salon-ink);
  border-radius: 0;
  background: transparent;
  color: var(--salon-ink);
  font-family: var(--salon-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.shop-btn:hover {
  background: var(--salon-ink);
  color: #fff;
}

.shop-btn--primary {
  background: var(--salon-ink);
  color: #fff;
  border-color: var(--salon-ink);
}

.shop-btn--primary:hover {
  background: var(--salon-accent);
  border-color: var(--salon-accent);
}

.shop-btn--outline {
  background: transparent;
}

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

.shop-product__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.shop-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--salon-muted);
}

.shop-back:hover {
  color: var(--salon-ink);
}

.shop-product__media {
  margin: 0;
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  overflow: hidden;
}

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

.shop-product__info h1 {
  margin: 0 0 12px;
  font-family: var(--salon-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
}

.shop-product__price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.shop-product__desc {
  margin-bottom: 24px;
  color: var(--salon-muted);
  line-height: 1.7;
}

.shop-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}

.shop-qty-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--salon-muted);
}

.shop-qty-select {
  min-width: 72px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: var(--salon-sans);
  font-size: 0.9rem;
}

.shop-product__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--salon-muted);
}

.shop-product__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-product__meta i {
  color: var(--salon-accent);
}

.shop-cart-page {
  max-width: 900px;
}

.shop-cart {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.shop-cart__items {
  display: grid;
  gap: 0;
  border-top: 1px solid #eee;
}

.shop-cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.shop-cart-item__media {
  display: block;
  width: 80px;
  height: 80px;
  overflow: hidden;
  background: #f7f7f7;
}

.shop-cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-cart-item__info h2 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 500;
}

.shop-cart-item__info h2 a {
  text-decoration: none;
  color: var(--salon-ink);
}

.shop-cart-item__price {
  margin: 0;
  font-size: 0.85rem;
  color: var(--salon-muted);
}

.shop-cart-item__total {
  font-weight: 600;
  min-width: 72px;
  text-align: right;
}

.shop-cart__summary {
  padding: 24px;
  background: #fafafa;
  border: 1px solid #eee;
}

.shop-cart__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.shop-cart__summary-row--total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  font-size: 1.05rem;
}

.shop-cart__note {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--salon-muted);
}

.shop-cart__continue {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--salon-muted);
}

.shop-checkout__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.shop-checkout__form fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.shop-checkout__form legend {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--salon-muted);
}

.shop-checkout__form label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--salon-ink);
}

.shop-checkout__form input,
.shop-checkout__form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: var(--salon-sans);
  font-size: 0.95rem;
}

.shop-checkout__form input:focus,
.shop-checkout__form textarea:focus {
  outline: 2px solid var(--salon-accent);
  outline-offset: 0;
  border-color: var(--salon-accent);
}

.shop-optional {
  font-weight: 400;
  color: var(--salon-muted);
}

.shop-checkout__summary {
  padding: 24px;
  background: #fafafa;
  border: 1px solid #eee;
}

.shop-checkout__summary h2 {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--salon-muted);
}

.shop-checkout__items {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.shop-checkout__items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #eee;
}

.shop-checkout__demo-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--salon-muted);
  text-align: center;
}

.shop-alert {
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.shop-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.shop-confirmation {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.shop-confirmation__icon {
  font-size: 3rem;
  color: var(--salon-accent);
  margin-bottom: 16px;
}

.shop-confirmation h1 {
  margin: 0 0 12px;
  font-family: var(--salon-serif);
  font-size: 2rem;
}

.shop-confirmation__lead {
  margin: 0 0 28px;
  color: var(--salon-muted);
}

.shop-confirmation__box {
  padding: 24px;
  margin-bottom: 28px;
  text-align: left;
  background: #fafafa;
  border: 1px solid #eee;
}

.shop-confirmation__number {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.shop-confirmation__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.shop-empty {
  padding: 48px 24px;
  text-align: center;
  background: #fafafa;
  border: 1px solid #eee;
}

.shop-empty p {
  margin: 0 0 20px;
  color: var(--salon-muted);
}

.shop-footer {
  padding: 24px 0;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.shop-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--salon-muted);
}

.shop-footer__inner p {
  margin: 0;
}

.shop-footer__demo a {
  color: var(--salon-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Homepage shop promo */
.salon-shop-promo {
  padding: 72px 0;
  background: #fff;
}

.salon-shop-promo__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.salon-shop-promo__copy h2 {
  margin: 0 0 12px;
  font-family: var(--salon-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.salon-shop-promo__copy p {
  margin: 0 0 20px;
  color: var(--salon-muted);
}

.salon-shop-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.salon-shop-promo__preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.salon-shop-promo__preview a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.salon-shop-promo__preview figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
}

.salon-shop-promo__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.salon-shop-promo__preview a:hover img {
  transform: scale(1.04);
}

.salon-shop-promo__preview span {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.salon-nav__shop-link {
  color: var(--salon-accent) !important;
}

.salon-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.salon-demo__offer--shop {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--salon-line);
}

@media (max-width: 960px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-product__grid,
  .shop-cart,
  .shop-checkout__grid,
  .salon-shop-promo__grid {
    grid-template-columns: 1fr;
  }

  .shop-cart-item {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }

  .shop-cart-item__qty,
  .shop-cart-item__total {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .shop-grid,
  .salon-shop-promo__preview {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .shop-header__nav {
    display: none;
  }
}
