/* ── Shop layout ── */
.shop-section {
  padding: 40px 0 56px;
  background: #fff;
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.shop-panel {
  border: 1px solid #e8ecf1;
  border-radius: 6px;
  background: #fff;
}

.shop-panel__head {
  padding: 18px 22px;
  border-bottom: 1px solid #eef1f5;
}

.shop-panel__title {
  font-size: 18px;
  font-weight: 600;
  color: #1a2b4a;
}

.shop-panel__body {
  padding: 22px;
}

.shop-empty {
  text-align: center;
  padding: 48px 24px;
  color: #6b7a8d;
}

.shop-empty svg {
  width: 56px;
  height: 56px;
  color: #c5cdd8;
  margin-bottom: 16px;
}

.shop-empty h2 {
  font-size: 20px;
  color: #1a2b4a;
  margin-bottom: 8px;
}

.shop-empty p {
  margin-bottom: 20px;
  font-size: 14px;
}

/* ── Cart items ── */
.cart-list {
  list-style: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eef1f5;
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-item__img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eef1f5;
  background: #f7f8fa;
}

.cart-item__name {
  font-size: 15px;
  font-weight: 600;
  color: #1a2b4a;
  margin-bottom: 6px;
}

.cart-item__name a {
  color: inherit;
}

.cart-item__price {
  font-size: 14px;
  color: #9d3b16;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dde3ec;
  border-radius: 4px;
  overflow: hidden;
}

.cart-qty__btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: #f7f8fa;
  color: #1a2b4a;
  cursor: pointer;
  font-size: 16px;
}

.cart-qty__value {
  min-width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.cart-item__remove {
  border: 0;
  background: none;
  color: #6b7a8d;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.cart-item__remove:hover {
  color: #9d3b16;
}

.cart-item__total {
  font-size: 15px;
  font-weight: 700;
  color: #1a2b4a;
  white-space: nowrap;
}

/* ── Summary box ── */
.shop-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #5a6577;
  margin-bottom: 12px;
}

.shop-summary__row--total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eef1f5;
  font-size: 17px;
  font-weight: 700;
  color: #1a2b4a;
}

.shop-summary__note {
  font-size: 12px;
  color: #8a96a8;
  margin: 14px 0 20px;
  line-height: 1.5;
}

.shop-btn {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  border-radius: 4px;
  padding: 14px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.shop-btn--primary {
  background: #24a1b5;
  color: #fff;
}

.shop-btn--primary:hover {
  background: #1d8a9c;
}

.shop-btn--secondary {
  background: #fff;
  color: #1a2b4a;
  border: 1px solid #dde3ec;
  margin-top: 10px;
}

.shop-btn--secondary:hover {
  border-color: #24a1b5;
  color: #24a1b5;
}

.shop-btn--coral {
  background: #9d3b16;
  color: #fff;
}

.shop-btn--coral:hover {
  background: #823012;
}

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

/* ── Wishlist grid ── */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.wishlist-card {
  border: 1px solid #e8ecf1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.wishlist-card__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.wishlist-card__body {
  padding: 14px;
}

.wishlist-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2b4a;
  margin-bottom: 6px;
  line-height: 1.4;
}

.wishlist-card__price {
  font-size: 14px;
  color: #9d3b16;
  font-weight: 600;
  margin-bottom: 12px;
}

.wishlist-card__actions {
  display: flex;
  gap: 8px;
}

.wishlist-card__actions .shop-btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
}

/* ── Forms ── */
.shop-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shop-form__group {
  margin-bottom: 16px;
}

.shop-form__label {
  display: block;
  font-size: 13px;
  color: #6b7a8d;
  margin-bottom: 8px;
}

.shop-form__label .required {
  color: #9d3b16;
}

.shop-form__input,
.shop-form__textarea,
.shop-form__select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dde3ec;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 14px;
  color: #1a2b4a;
  background: #fff;
  outline: none;
}

.shop-form__input:focus,
.shop-form__textarea:focus,
.shop-form__select:focus {
  border-color: #7ec0e8;
  box-shadow: 0 0 0 3px rgba(126, 192, 232, 0.2);
}

.shop-form__textarea {
  min-height: 90px;
  resize: vertical;
}

.shop-form__radios {
  display: grid;
  gap: 10px;
}

.shop-form__radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dde3ec;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.shop-form__radio input {
  accent-color: #24a1b5;
}

.shop-form__radio.is-selected {
  border-color: #24a1b5;
  background: rgba(36, 161, 181, 0.06);
}

/* ── Receipt ── */
.receipt-card {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.receipt-card__head {
  background: #1e2356;
  color: #fff;
  padding: 28px 32px;
  text-align: center;
}

.receipt-card__head h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.receipt-card__head p {
  font-size: 14px;
  opacity: 0.9;
}

.receipt-card__body {
  padding: 28px 32px;
}

.receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 14px;
}

.receipt-meta strong {
  display: block;
  color: #1a2b4a;
  margin-bottom: 4px;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 20px;
}

.receipt-table th,
.receipt-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
}

.receipt-table th {
  color: #6b7a8d;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.receipt-table td:last-child,
.receipt-table th:last-child {
  text-align: right;
}

.receipt-totals {
  margin-left: auto;
  max-width: 280px;
}

.receipt-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.receipt-actions .shop-btn {
  width: auto;
  min-width: 160px;
}

.receipt-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(36, 161, 181, 0.15);
  color: #24a1b5;
  margin-bottom: 12px;
}

.receipt-success svg {
  width: 28px;
  height: 28px;
}

/* ── Toast ── */
.shop-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e2356;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.shop-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ── Wishlist active state on product cards ── */
.product-card__actions button.is-active svg,
.product-info__icon-btn.is-active svg {
  fill: #9d3b16;
  stroke: #9d3b16;
}

.wishlist-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  background: #1e2356;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header-actions__item--wishlist,
.header-actions__icon-btn--wishlist {
  position: relative;
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .receipt-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item__total {
    grid-column: 2;
    text-align: left;
  }

  .shop-form__row {
    grid-template-columns: 1fr;
  }

  .receipt-card__body,
  .receipt-card__head {
    padding: 20px;
  }

  .receipt-actions .shop-btn {
    width: 100%;
  }
}

@media print {
  .site-header,
  .site-footer,
  .receipt-actions,
  .page-hero {
    display: none !important;
  }

  .shop-section {
    padding: 0;
  }
}

/* ── Catalog page ── */
.shop-catalog__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.shop-catalog__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.shop-catalog__count {
  font-size: 14px;
  color: #6b7a8d;
}

.shop-filter + .shop-filter {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eef1f5;
}

.shop-filter--collapsible {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.shop-filter--collapsible + .shop-filter--collapsible {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eef1f5;
}

.shop-filter--collapsible + .shop-filter:not(.shop-filter--collapsible) {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eef1f5;
}

.shop-filter__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #1a2b4a;
  margin-bottom: 12px;
}

.shop-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.shop-filter__head::-webkit-details-marker {
  display: none;
}

.shop-filter__head .shop-filter__title {
  margin-bottom: 0;
}

.shop-filter__close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #dde3ec;
  border-radius: 4px;
  background: #f7f8fa;
  color: #1a2b4a;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.shop-filter__head:hover .shop-filter__close-btn {
  background: #eef1f5;
  border-color: #c5cdd8;
}

.shop-filter--collapsible[open] .shop-filter__close-btn::before {
  content: '×';
  font-size: 20px;
  line-height: 1;
}

.shop-filter--collapsible:not([open]) .shop-filter__close-btn::before {
  content: '+';
  font-size: 18px;
  line-height: 1;
}

.shop-filter--collapsible[open] .shop-filter__list,
.shop-filter--collapsible[open] .shop-filter__select {
  margin-top: 12px;
}

.shop-filter__list {
  list-style: none;
}

.shop-filter__list li + li {
  margin-top: 8px;
}

.shop-filter__option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
}

.shop-filter__option input {
  accent-color: #9d3b16;
}

.shop-filter__select {
  width: 100%;
  border: 1px solid #dde3ec;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  color: #1a2b4a;
  background: #fff;
}

.shop-filter__clear {
  width: 100%;
  margin-top: 24px;
  border: 1px solid #dde3ec;
  border-radius: 4px;
  background: #f7f8fa;
  color: #1a2b4a;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.shop-filter__clear:hover {
  background: #eef1f5;
  border-color: #c5cdd8;
}

@media (max-width: 900px) {
  .shop-catalog__layout {
    grid-template-columns: 1fr;
  }
}
