/* ==========================================================================
   DARYA — components: buttons, cards, covers, forms, cart, checkout,
   product page, magazine, account
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn--primary {
  background: var(--pastel);
  color: var(--navy-deep);
  border-color: var(--pastel);
  box-shadow: 0 10px 24px -14px rgba(120, 149, 165, 0.9);
}

.btn--primary:hover {
  background: var(--pastel-deep);
  border-color: var(--pastel-deep);
  color: #fff;
}

.btn--dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn--dark:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy);
}

.btn--outline:hover {
  border-color: var(--pastel-deep);
  background: #fff;
  color: var(--navy);
}

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

.btn--ghost:hover {
  border-color: var(--pastel);
  background: var(--ice);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 12.5px;
  border-radius: var(--radius-pill);
}

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

.btn--danger {
  background: #fdeceb;
  color: #a3382f;
  border-color: #f6d3d0;
}

.btn--danger:hover {
  background: #f9dbd8;
}

.text-link {
  color: var(--slate);
  font-weight: 600;
  border-bottom: 1px solid var(--ice-deep);
}

.text-link:hover {
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Badges & chips
   -------------------------------------------------------------------------- */
.badge {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  letter-spacing: 0.01em;
}

.badge--sale {
  background: var(--clay);
}

.badge--new {
  background: var(--slate);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--slate);
}

.chip--active,
.chip.is-active {
  background: var(--ice);
  border-color: var(--pastel);
  color: var(--navy);
  font-weight: 600;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
}

.stock::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.stock--in {
  color: #4f7f63;
}

.stock--out {
  color: #b06a5f;
}

/* --------------------------------------------------------------------------
   Book cover (typographic or uploaded photograph)
   -------------------------------------------------------------------------- */
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  container-type: inline-size;
  background: linear-gradient(155deg, #eef5f7, #d9e7ee);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(52, 73, 87, 0.08), 6px 10px 24px -18px rgba(52, 73, 87, 0.7);
}

.cover::before {
  /* spine */
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 7%;
  background: linear-gradient(270deg, rgba(52, 73, 87, 0.16), rgba(52, 73, 87, 0.02));
}

.cover::after {
  /* spine highlight line */
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-end: 8%;
  width: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.cover__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  padding: 12% 10% 11% 14%;
  text-align: center;
}

.cover__publisher {
  font-size: clamp(6px, 4.6cqw, 10px);
  letter-spacing: 0.02em;
  opacity: 0.66;
  font-weight: 500;
}

.cover__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(11px, 10.5cqw, 26px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-height: 62%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.cover__author {
  font-size: clamp(6px, 5.2cqw, 12px);
  opacity: 0.78;
  font-weight: 500;
}

.cover__wave {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 38%;
  z-index: 1;
  opacity: 0.5;
  background:
    radial-gradient(60% 100% at 20% 120%, rgba(255, 255, 255, 0.6), transparent 70%),
    repeating-linear-gradient(
      180deg,
      transparent 0 10px,
      rgba(255, 255, 255, 0.24) 10px 11px
    );
}

.cover--photo {
  background: var(--ice);
}

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

/* Cover tones */
.tone-ice { background: linear-gradient(155deg, #f1f8fa, #cfe3ed); color: #2f4a5a; }
.tone-dusk { background: linear-gradient(155deg, #cfdde8, #9db7c9); color: #22343f; }
.tone-sage { background: linear-gradient(155deg, #e6efe6, #bcd2c2); color: #2c4438; }
.tone-sand { background: linear-gradient(155deg, #f6efe2, #e0cfb1); color: #4b3f2b; }
.tone-clay { background: linear-gradient(155deg, #f2e0d6, #d8b39d); color: #4c3327; }
.tone-mist { background: linear-gradient(155deg, #f0eef3, #d5d0dc); color: #37333f; }
.tone-night { background: linear-gradient(155deg, #466173, #2b3f4c); color: #eef5f8; }
.tone-rose { background: linear-gradient(155deg, #f6e8e5, #e0c4bf); color: #4d3230; }

/* --------------------------------------------------------------------------
   Book card
   -------------------------------------------------------------------------- */
.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--ice-deep);
}

.book-card__media {
  position: relative;
  padding: 4px 12px 0;
}

.book-card__media-link {
  display: block;
}

.book-card__media .cover {
  transition: transform 0.3s var(--ease);
}

.book-card:hover .book-card__media .cover {
  transform: rotate(-1deg) scale(1.015);
}

.book-card__wish {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-end: 0;
  z-index: 3;
}

.wish-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--slate);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.wish-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wish-btn:hover {
  color: var(--clay);
  border-color: var(--rose);
}

.wish-btn.is-active {
  background: #fbeeea;
  border-color: #f0d6cd;
  color: var(--clay);
}

.wish-btn.is-active svg {
  fill: currentColor;
}

.book-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 4px 4px;
  flex: 1;
}

.book-card__publisher {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.book-card__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.book-card__title a:hover {
  color: var(--slate);
}

.book-card__author {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-card__meta {
  margin-top: 8px;
}

.book-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.book-card__price {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
}

.price--sale {
  color: #a75b45;
}

.price--old {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
}

.book-card__add .btn {
  white-space: nowrap;
}

.book-card__add .btn svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Books grid & slider
   -------------------------------------------------------------------------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.slider-wrap {
  position: relative;
}

.slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.slider::-webkit-scrollbar {
  height: 6px;
}

.slider::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.slider > * {
  flex: 0 0 clamp(190px, 22%, 232px);
  scroll-snap-align: start;
}

.slider-nav {
  display: flex;
  gap: 8px;
}

.slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.slider-btn:hover {
  background: var(--ice);
  border-color: var(--pastel);
}

.slider-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Page header / breadcrumb
   -------------------------------------------------------------------------- */
.page-head {
  background: linear-gradient(180deg, #f3f9fb, var(--warm));
  padding-block: 30px 34px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--navy);
}

.breadcrumb__sep {
  opacity: 0.6;
}

.page-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  max-width: 70ch;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.field .hint {
  font-size: 11.5px;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.9;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--pastel-deep);
  box-shadow: 0 0 0 3px rgba(169, 201, 216, 0.28);
}

.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: #d6a49a;
  background: #fdf7f6;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237895a5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-start: 36px;
  padding-inline-end: 15px;
}

.error-text {
  font-size: 11.5px;
  color: #a94f42;
}

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.checkbox input {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  accent-color: var(--slate);
  flex-shrink: 0;
}

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: #fff;
}

.qty button {
  width: 36px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.qty button:hover {
  background: var(--ice);
}

.qty input {
  width: 42px;
  height: 40px;
  border: 0;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  -moz-appearance: textfield;
}

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

/* --------------------------------------------------------------------------
   Alerts / empty state
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  border: 1px solid transparent;
  margin-bottom: 18px;
  line-height: 1.85;
}

.alert--success {
  background: #eef6f1;
  border-color: #cfe5d8;
  color: #33654a;
}

.alert--error {
  background: #fcf0ee;
  border-color: #f3d6d2;
  color: #9d4335;
}

.alert--info {
  background: var(--ice);
  border-color: var(--ice-deep);
  color: var(--navy);
}

.alert--warning {
  background: #fdf6e9;
  border-color: #f0e0bd;
  color: #8a6524;
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.empty-state__mark {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: var(--ice);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--slate);
}

.empty-state__mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 44ch;
  margin: 0 auto 20px;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 38px;
  flex-wrap: wrap;
}

.pagination__link {
  min-width: 40px;
  height: 40px;
  padding-inline: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: var(--navy);
}

.pagination__link:hover {
  border-color: var(--pastel);
  background: var(--ice);
}

.pagination__link.is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pagination__link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Shop layout
   -------------------------------------------------------------------------- */
.shop-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.filters-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.filters-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.filters__title {
  font-size: 14px;
  font-weight: 700;
}

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

.filters__group:last-of-type {
  border-bottom: 0;
}

.filters__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  display: block;
}

.filters__options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
  padding-inline-end: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.filters__options::-webkit-scrollbar {
  width: 5px;
}

.filters__options::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.filters__options::-webkit-scrollbar-track {
  background: transparent;
}

.filters__option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  padding: 5px 4px;
  border-radius: 8px;
  cursor: pointer;
}

.filters__option:hover {
  background: var(--warm);
}

.filters__option input {
  accent-color: var(--slate);
  width: 15px;
  height: 15px;
}

.filters__option span {
  flex: 1;
}

.filters__option small {
  color: var(--muted);
  font-size: 11px;
}

.price-inputs {
  display: flex;
  gap: 8px;
}

.price-inputs .input {
  min-height: 42px;
  font-size: 12.5px;
  padding-inline: 10px;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.shop-toolbar__count {
  font-size: 13px;
  color: var(--muted);
}

.shop-toolbar__count strong {
  color: var(--navy);
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.sort-form .select {
  min-height: 40px;
  font-size: 12.5px;
  padding-block: 6px;
}

.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */
.product-layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 104px;
}

.product-gallery__frame {
  background: linear-gradient(160deg, #f3f8fa, #e3eef3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.product-gallery__frame .cover {
  max-width: 300px;
  margin-inline: auto;
  box-shadow: 0 30px 50px -30px rgba(52, 73, 87, 0.6);
}

.product-gallery__note {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.product-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.product-author {
  font-size: 14.5px;
  color: var(--muted);
}

.product-author a {
  color: var(--navy);
  border-bottom: 1px solid var(--ice-deep);
}

.product-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.price-box {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-box__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.price-box__amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
}

.price-box__amount--sale {
  color: #a75b45;
}

.price-box__old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.price-box__save {
  font-size: 11.5px;
  background: #fbeeea;
  color: #a75b45;
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.product-actions .btn {
  flex: 1;
  min-width: 168px;
}

.wishlist-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.wishlist-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wishlist-action.is-active {
  background: #fbeeea;
  border-color: #f0d6cd;
  color: #a75b45;
}

.wishlist-action.is-active svg {
  fill: currentColor;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13.5px;
}

.spec-table th,
.spec-table td {
  padding: 12px 18px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 34%;
  font-weight: 600;
  color: var(--muted);
  background: #fcfdfd;
}

.spec-table td {
  color: var(--navy);
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.prose {
  font-size: 14.5px;
  line-height: 2.15;
  color: #3c4f5b;
}

.prose p {
  margin-bottom: 16px;
}

.content-card .prose {
  max-width: 82ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3 {
  margin: 26px 0 10px;
  font-size: 1.1rem;
}

.prose ul {
  list-style: disc;
  padding-inline-start: 22px;
  margin-bottom: 16px;
}

.prose li {
  margin-bottom: 6px;
}

.section-title-sm {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.tabs-head {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 0;
  background: transparent;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn.is-active {
  color: var(--navy);
  border-bottom-color: var(--pastel-deep);
}

/* --------------------------------------------------------------------------
   Cart
   -------------------------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 28px;
  align-items: start;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.cart-item__cover {
  width: 86px;
}

.cart-item__title {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.cart-item__title a:hover {
  color: var(--slate);
}

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

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cart-item__total {
  text-align: end;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item__remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
}

.cart-item__remove:hover {
  color: #a75b45;
}

.cart-item__remove svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.summary {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.summary__title {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  padding-block: 7px;
}

.summary__row strong {
  color: var(--navy);
  font-weight: 600;
}

.summary__row--discount strong {
  color: #4f7f63;
}

.summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.summary__total span:last-child {
  font-size: 1.1rem;
}

.summary__note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.9;
}

.summary .btn {
  margin-top: 16px;
}

.discount-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.discount-form .input {
  min-height: 44px;
  font-size: 12.5px;
}

.discount-form .btn {
  margin-top: 0;
  padding-inline: 18px;
  flex-shrink: 0;
}

.summary__applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #eef6f1;
  border: 1px dashed #cfe5d8;
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 12.5px;
  color: #33654a;
  margin-block: 10px 4px;
}

.summary__applied a {
  font-size: 11.5px;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 28px;
  align-items: start;
}

.card-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}

.card-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.card-panel__step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.card-panel__title {
  font-size: 14.5px;
  font-weight: 700;
}

.card-panel__hint {
  font-size: 12px;
  color: var(--muted);
  margin-inline-start: auto;
}

.auth-switch {
  display: flex;
  gap: 8px;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px;
  width: fit-content;
  margin-bottom: 18px;
}

.auth-switch a {
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.auth-switch a.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.shipping-option + .shipping-option {
  margin-top: 10px;
}

.shipping-option:hover {
  border-color: var(--pastel);
}

.shipping-option input {
  accent-color: var(--slate);
  width: 16px;
  height: 16px;
}

.shipping-option input:checked ~ .shipping-option__body {
  color: var(--navy);
}

.shipping-option:has(input:checked) {
  border-color: var(--pastel-deep);
  background: #f7fbfc;
}

.shipping-option__body {
  flex: 1;
}

.shipping-option__name {
  font-size: 13.5px;
  font-weight: 600;
}

.shipping-option__desc {
  font-size: 11.5px;
  color: var(--muted);
}

.shipping-option__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.order-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.order-mini__item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
}

.order-mini__cover {
  width: 44px;
}

.order-mini__title {
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}

.order-mini__qty {
  font-size: 11px;
  color: var(--muted);
}

.order-mini__price {
  font-weight: 600;
  white-space: nowrap;
}

.payment-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--ice);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 12px;
  color: var(--navy);
  line-height: 1.9;
}

.payment-note svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 4px;
  fill: none;
  stroke: var(--slate);
  stroke-width: 1.6;
}

/* --------------------------------------------------------------------------
   Auth pages
   ------------------------------------------------------------------------- */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
}

.auth-aside {
  background: linear-gradient(160deg, var(--ice), #dcebf2);
  border-radius: var(--radius-lg);
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.auth-aside h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.auth-aside p {
  color: #4e6c7c;
  font-size: 13.5px;
  max-width: 34ch;
}

.auth-aside__list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--navy);
}

.auth-aside__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.auth-aside__list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 5px;
  fill: none;
  stroke: var(--slate);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.auth-card h1 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.auth-card__sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}

.auth-card .field + .field {
  margin-top: 14px;
}

.auth-card .btn {
  margin-top: 20px;
}

.auth-card__foot {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Orders / account
   ------------------------------------------------------------------------- */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.order-card__number {
  font-weight: 700;
  font-size: 14px;
}

.order-card__meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.order-card__body {
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--ice);
  color: var(--navy);
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--paid { background: #eef6f1; color: #33654a; }
.status-pill--pending_payment { background: #fdf6e9; color: #8a6524; }
.status-pill--processing { background: var(--ice); color: var(--navy); }
.status-pill--shipped { background: #edf2f7; color: #3c5a70; }
.status-pill--delivered { background: #eef6f1; color: #2f6046; }
.status-pill--cancelled { background: #fcf0ee; color: #9d4335; }

/* --------------------------------------------------------------------------
   Magazine
   ------------------------------------------------------------------------- */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-card__media {
  aspect-ratio: 16 / 10;
  background: var(--ice);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.article-card:hover .article-card__media img {
  transform: scale(1.04);
}

.article-card__placeholder {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--slate);
  padding: 20px;
  text-align: center;
}

.article-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.article-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.article-card__excerpt {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.95;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__foot {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

.article-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 420px;
  background: var(--ice);
  margin-bottom: 28px;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-body {
  max-width: 74ch;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body h2 {
  margin: 30px 0 12px;
  font-size: 1.2rem;
}

.article-body h3 {
  margin: 24px 0 10px;
  font-size: 1.05rem;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-inline-start: 3px solid var(--pastel);
  background: var(--ice);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 2;
  color: var(--navy);
}

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.article-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.article-nav a:hover {
  border-color: var(--pastel);
}

.article-nav span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   About & contact
   ------------------------------------------------------------------------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.about-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

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

.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 2;
  color: var(--navy);
  margin-bottom: 20px;
}

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

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.value-card__mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--ice);
  color: var(--slate);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.value-card__mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.value-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.95;
}

.contact-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
}

.contact-item__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--ice);
  color: var(--slate);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-item__mark svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item__label {
  font-size: 11.5px;
  color: var(--muted);
}

.contact-item__value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  direction: ltr;
  text-align: start;
}

.contact-item__value--rtl {
  direction: rtl;
  font-weight: 500;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Order confirmation
   ------------------------------------------------------------------------- */
.confirm-wrap {
  max-width: 760px;
  margin-inline: auto;
}

.confirm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
}

.confirm-mark {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #eef6f1;
  color: #33654a;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.confirm-mark--warn {
  background: #fdf6e9;
  color: #8a6524;
}

.confirm-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirm-card h1 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.confirm-card > p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 52ch;
  margin: 0 auto 22px;
}

.confirm-details {
  text-align: start;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
  margin-top: 6px;
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.info-rows__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.info-rows__row span:first-child {
  color: var(--muted);
}

.info-rows__row span:last-child {
  color: var(--navy);
  font-weight: 600;
  text-align: end;
}
