/* Carrito + Checkout — alineado al sitio EBLAW */

.shop-hero {
  background: var(--primary);
  min-height: auto;
  padding: calc(var(--header-h) + 2.4rem) 0 2.4rem;
  display: flex;
  align-items: center;
}
.shop-hero .hero-content { padding-top: 0; max-width: 640px; }
.shop-hero .hero-content h1 {
  color: #fff;
  margin-bottom: .65rem;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
}
.shop-hero .hero-content p { margin-bottom: 0; color: rgba(255,255,255,.82); }

.shop-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.shop-count {
  color: var(--gray-500);
  font-size: .85rem;
  font-weight: 600;
}

.shop-update-row {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--gray-200);
}

.btn-shop-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: .75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  cursor: pointer;
  font: inherit;
}
.btn-shop-secondary:hover {
  border-color: var(--accent);
  background: #fff;
  color: var(--primary);
  transform: translateY(-1px);
}

.shop-notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .95rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.35rem;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.45;
}
.shop-notice--ok {
  background: #e8f5ee;
  color: #1f6b4a;
  border: 1px solid #cfe6d9;
}
.shop-notice--err {
  background: #fdecea;
  color: #8c3a32;
  border: 1px solid #f0c9c4;
}
.shop-notice--warn {
  background: #fff8ea;
  color: #6e5420;
  border: 1px solid #f0e0b8;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr);
  gap: 1.5rem;
  align-items: start;
}

.shop-panel {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.shop-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  background: #fafbfc;
}
.shop-panel__head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .02em;
}
.shop-panel__body { padding: 1.15rem 1.25rem 1.35rem; }

.shop-empty {
  text-align: center;
  padding: 3rem 1.5rem;
}
.shop-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(200,169,110,.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.shop-empty h3 {
  margin: 0 0 .5rem;
  font-size: 1.35rem;
  color: var(--primary);
}
.shop-empty p {
  margin: 0 0 1.4rem;
  color: var(--gray-500);
}

.shop-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}
.shop-item:first-child { padding-top: .15rem; }
.shop-item:last-child {
  border-bottom: 0;
  padding-bottom: .15rem;
}
.shop-item__img {
  width: 88px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}
.shop-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-item__title {
  margin: 0 0 .25rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}
.shop-item__meta {
  margin: 0 0 .65rem;
  color: var(--gray-500);
  font-size: .88rem;
}
.shop-item__meta strong { color: var(--primary); font-weight: 600; }
.shop-item__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.shop-qty {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: .25rem .55rem .25rem .75rem;
}
.shop-qty label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.shop-qty input {
  width: 52px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  padding: .2rem .15rem;
}
.shop-item__price {
  text-align: right;
  white-space: nowrap;
}
.shop-item__price strong {
  display: block;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: .45rem;
}
.shop-remove {
  border: 0;
  background: transparent;
  color: #8c3a32;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.shop-remove:hover { color: #6e2d27; }

.shop-summary {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.shop-summary .shop-panel__body { padding-top: 1rem; }
.shop-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .65rem;
  font-size: .95rem;
  color: var(--gray-500);
}
.shop-summary-line strong { color: var(--primary); font-weight: 600; }
.shop-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
}
.shop-summary-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 1.15rem;
}
.shop-summary-actions .btn {
  width: 100%;
  justify-content: center;
}
.shop-summary-note {
  margin: .85rem 0 0;
  font-size: .8rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.4;
}

.shop-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.shop-form input {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.shop-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,.2);
}
.shop-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.shop-form-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: .4rem;
}
.shop-form-actions .btn { width: 100%; justify-content: center; }

.shop-mini-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.shop-mini-item:first-child { padding-top: 0; }
.shop-mini-item:last-child { border-bottom: 0; }
.shop-mini-item__name {
  margin: 0 0 .2rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary);
}
.shop-mini-item__meta {
  margin: 0;
  font-size: .82rem;
  color: var(--gray-500);
}
.shop-mini-item__price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  font-size: .92rem;
}

.shop-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: .85rem;
  font-size: .8rem;
  color: var(--gray-500);
}

.shop-form-actions .btn-primary:disabled,
.shop-form-actions .btn-primary[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.shop-hero .section-subtitle {
  color: var(--accent);
}

.shop-result {
  text-align: center;
  padding: 2.25rem 1.5rem 2.5rem;
}
.shop-result__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}
.shop-result__icon--ok {
  background: #e8f5ee;
  color: #1f6b4a;
}
.shop-result__icon--warn {
  background: #fff8ea;
  color: #6e5420;
}
.shop-result h3 {
  margin: 0 0 .55rem;
  font-size: 1.35rem;
  color: var(--primary);
}
.shop-result p {
  margin: 0 0 .55rem;
  color: var(--gray-500);
}
.shop-result__meta {
  margin: 1.15rem auto 0;
  max-width: 360px;
  text-align: left;
}
.shop-result__meta .shop-summary-line strong {
  font-variant-numeric: tabular-nums;
}
.shop-result .btn {
  margin-top: 1.35rem;
}

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-summary { position: static; }
  .shop-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .shop-item__price {
    grid-column: 2;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .shop-item__price strong { margin: 0; }
  .shop-form-row { grid-template-columns: 1fr; }
}
