/* Gid Beauty Shop — Journal Palette */
:root {
  --bg: #f6f3ed;
  --bg-soft: #eef7f5;
  --paper: #fffdf8;
  --ink: #111111;
  --muted: #686760;
  --line: rgba(17, 17, 17, 0.14);
  --accent: #ffe500;
  --accent-deep: #dec600;
  --teal: #78d7d2;
  --teal-deep: #1b6e69;
  --max: 1280px;
  --font: "Georgia", "Times New Roman", serif;
  --font-ui: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.92), transparent 28%),
    linear-gradient(180deg, #faf8f3 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shop-shell { min-height: 100vh; }
.shop-topline,
.shop-nav-row,
.shop-main,
.shop-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 5vw;
  padding-right: 5vw;
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,243,237,.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

.shop-topline {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding-top: 1em;
  padding-bottom: .9em;
  border-bottom: 1px solid var(--line);
}

.issue-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1.1em;
  background: var(--accent);
  color: var(--ink);
  font-size: .82em;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shop-topline p {
  color: var(--muted);
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.shop-nav-row {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
}

.logo {
  font-family: var(--font);
  font-size: 1.55em;
  font-weight: 700;
  letter-spacing: .03em;
}

.logo span { color: var(--ink); }

.logo em {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-style: normal;
  font-size: .48em;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 2.2em;
  flex-wrap: wrap;
}

.shop-nav a {
  position: relative;
  color: var(--muted);
  font-size: .84em;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.shop-nav a::before {
  content: "/";
  position: absolute;
  left: -1.1em;
  color: rgba(17,17,17,.18);
}

.shop-nav a:first-child::before { display: none; }
.shop-nav a:hover,
.shop-nav a.active { color: var(--ink); }

.cart-link span { color: var(--teal-deep); }

.shop-main {
  padding-top: 3em;
  padding-bottom: 5em;
  min-height: 70vh;
}

.catalog-header {
  margin-bottom: 3em;
}

.catalog-header::before {
  content: "сейчас в магазине";
  display: inline-block;
  margin-bottom: .95em;
  color: var(--teal-deep);
  font-size: .78em;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.catalog-header h1 {
  font-family: var(--font);
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.08;
  margin-bottom: .35em;
}

.catalog-header .subtitle {
  color: var(--muted);
  font-size: .96em;
  max-width: 540px;
  line-height: 1.7;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 3em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--line);
}

.cat-btn {
  position: relative;
  font-size: .82em;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 1.2em;
  transition: color .2s ease;
}

.cat-btn::after {
  content: "/";
  margin-left: 1.2em;
  color: rgba(17,17,17,.18);
}

.cat-btn:last-child::after { display: none; }
.cat-btn:hover,
.cat-btn.active { color: var(--ink); }
.cat-btn.active {
  background: linear-gradient(transparent 68%, var(--accent) 68%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5em 2em;
}

.product-card {
  display: block;
  background: transparent;
  transition: transform .2s ease;
}

.product-card:hover { transform: translateY(-4px); }

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(180deg, #f2eee5 0%, #e8e2d6 100%);
  margin-bottom: 1em;
}

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

.product-card:hover .product-image img { transform: scale(1.03); }

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 2.5em;
  color: #d0cbc1;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: .35em .8em;
  background: var(--accent);
  color: var(--ink);
  font-size: .66em;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-info { padding: 0 .15em; }

.product-info h3,
.cart-page h1,
.product-details h1,
.form-section h2,
.product-full-description h2 {
  font-family: var(--font);
  font-weight: 700;
}

.product-info h3 {
  font-size: 1.18em;
  line-height: 1.22;
  margin-bottom: .32em;
  letter-spacing: .01em;
}

.product-desc {
  color: var(--muted);
  font-size: .84em;
  margin-bottom: .7em;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: .5em;
}

.price {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15em;
}

.price-sale { color: var(--teal-deep); }

.price-old {
  color: var(--muted);
  font-size: .8em;
  text-decoration: line-through;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72em 2em;
  border: 2px solid transparent;
  font-size: .85em;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
}

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

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--accent);
}

.btn-large { padding: .95em 2.8em; font-size: .95em; }

.product-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 5vw;
}

.breadcrumbs {
  color: var(--muted);
  font-size: .75em;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2em;
}

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

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  margin-bottom: 4em;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding-top: 1em;
}

.product-details h1 {
  font-size: clamp(1.7em, 3vw, 2.5em);
  line-height: 1.15;
  letter-spacing: .01em;
}

.product-short-desc {
  color: var(--muted);
  line-height: 1.68;
  font-size: .92em;
  max-width: 440px;
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: .6em;
}

.product-actions {
  display: flex;
  gap: 1em;
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.qty-control button {
  background: none;
  border: none;
  padding: .55em .8em;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
}

.qty-control input {
  width: 3em;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: none;
  font-size: 1em;
  font-weight: 600;
}

.stock-status {
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.in-stock { color: var(--teal-deep); }
.out-of-stock { color: #987100; }

.product-meta {
  display: flex;
  gap: 2em;
  color: var(--muted);
  font-size: .78em;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-full-description {
  margin-top: 3em;
  padding-top: 3em;
  border-top: 2px solid var(--ink);
}

.product-full-description h2 {
  font-size: 1.45em;
  margin-bottom: 1em;
}

.cart-page {
  max-width: 640px;
  margin: 0 auto;
}

.cart-page h1 {
  font-size: 2em;
  margin-bottom: 1.5em;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font);
  font-size: 1.3em;
  font-weight: 700;
  margin: 1.5em 0;
  padding-top: 1.2em;
  border-top: 2px solid var(--ink);
}

.checkout-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 2.5em;
}

.form-section h2 {
  font-size: 1.2em;
  margin-bottom: 1em;
  letter-spacing: .02em;
}

.form-section label {
  display: block;
  margin-bottom: .8em;
  color: var(--muted);
  font-size: .85em;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form-section input,
.form-section textarea {
  width: 100%;
  padding: .75em 1em;
  border: 2px solid var(--line);
  background: var(--paper);
  font-size: .95em;
  transition: border-color .2s ease;
}

.form-section input:focus,
.form-section textarea:focus {
  outline: none;
  border-color: var(--teal);
}

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

.shipping-options {
  display: flex;
  flex-direction: column;
  gap: .6em;
  margin-top: .6em;
}

.shipping-options label {
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .8em 1em;
  border: 2px solid var(--line);
  background: var(--paper);
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s ease;
}

.shipping-options label:hover { border-color: var(--teal); }

.empty-state {
  text-align: center;
  padding: 5em 2em;
  color: var(--muted);
}

.empty-state p {
  font-family: var(--font);
  font-size: 1.3em;
  margin-bottom: 1.5em;
}

.shop-footer {
  text-align: center;
  padding: 2em 5vw;
  color: var(--muted);
  font-size: .75em;
  letter-spacing: .04em;
  border-top: 1px solid var(--line);
  margin-top: 3em;
}

.gid-shop-card {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 1.2em 0;
  border-bottom: 1px solid var(--line);
}

.gid-shop-card-img {
  width: 72px;
  height: 72px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.gid-shop-card-body h4 {
  font-family: var(--font);
  font-size: 1em;
  font-weight: 700;
  margin-bottom: .2em;
}

.gid-shop-card-body p {
  color: var(--muted);
  font-size: .8em;
  margin-bottom: .4em;
}

.gid-shop-card-price {
  color: var(--teal-deep);
  font-family: var(--font);
  font-size: .95em;
  font-weight: 700;
}

.gid-shop-card-price s {
  color: var(--muted);
  font-weight: 400;
  margin-right: .3em;
}

.gid-shop-card-btn {
  display: inline-block;
  padding: .4em 1.2em;
  background: var(--ink);
  color: var(--accent);
  font-size: .75em;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .shop-topline,
  .shop-nav-row,
  .shop-main,
  .shop-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .shop-topline,
  .shop-nav-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-nav {
    gap: 1.5em;
  }

  .shop-nav a::before {
    left: -0.9em;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 2em;
  }

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

  .product-details h1 {
    font-size: 1.45em;
  }
}
