﻿body {
  font-family: "Segoe UI", sans-serif;
  background: #f6f7fb;
  margin: 0;
  padding: 0;
}

/* TÃ­tulo */
h1 {
  margin: 30px;
  font-size: 42px;
  font-weight: 800;
  color: #222;
}

/* BotÃ³n volver */
.btn-back {
  margin: 0 30px 25px;
  background: linear-gradient(135deg, #ff2a6d, #ff6aa0);
  border: none;
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 42, 109, 0.35);
}

/* Contenedor */
#purchasesContainer {
  max-width: 900px;
  margin: auto;
  padding: 0 20px 40px;
}

/* ==================== FILTROS ==================== */
.filters-section {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.filters-section h3 {
  margin-top: 0;
  color: #333;
  font-size: 18px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-weight: 600;
  color: #555;
  font-size: 14px;
}

.filter-group select,
.filter-group input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #ff2a6d;
  box-shadow: 0 0 0 3px rgba(255, 42, 109, 0.1);
}

#priceDisplay {
  font-size: 12px;
  color: #ff2a6d;
  font-weight: 600;
}

/* ==================== TARJETA ==================== */
.purchase-card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.purchase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Encabezado */
.purchase-card h3 {
  margin: 0 0 15px;
  font-size: 20px;
  color: #333;
}

/* Lista productos */
.purchase-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}

.purchase-card li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 12px;
  font-size: 15px;
  color: #444;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.purchase-card li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Imagen producto */
.purchase-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eee;
}

.item-info {
  flex: 1;
}

.item-name {
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.item-qty {
  font-size: 13px;
  color: #999;
}

.item-price {
  font-weight: 700;
  color: #ff2a6d;
  min-width: 80px;
  text-align: right;
}

.item-actions {
  display: flex;
  gap: 8px;
}

/* Total */
.purchase-total {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin-top: 10px;
}

/* MÃ©todo pago */
.purchase-method {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

/* Botones */
.btn-rebuy {
  background: #111;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-rebuy:hover {
  background: #333;
}

.btn-view-product {
  background: #ff2a6d;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
}

.btn-view-product:hover {
  background: #e6246a;
  transform: translateY(-2px);
}

.btn-review {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-size: 13px;
}

.btn-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-shipping-details {
  background: #eef2ff;
  color: #2b3c74;
  border: 1px solid #cfd8ff;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-size: 13px;
}

.btn-shipping-details:hover {
  background: #e2e9ff;
}

.purchase-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.purchase-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.purchase-status {
  margin-top: 8px;
  font-size: 13px;
  color: #5f6880;
}

.shipping-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.shipping-status-pill.pendiente {
  background: #fff4d9;
  color: #9a6800;
}

.shipping-status-pill.enviado {
  background: #e8f1ff;
  color: #1d4ed8;
}

.shipping-status-pill.entregado {
  background: #e8f8ef;
  color: #166534;
}

.shipping-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 16px;
}

.shipping-modal {
  background: #fff;
  border-radius: 14px;
  width: min(560px, 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.shipping-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eff2f8;
}

.shipping-modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #1f2944;
}

.shipping-modal-body {
  padding: 18px 20px 22px;
}

.shipping-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shipping-detail-box {
  background: #f8f9fd;
  border: 1px solid #e8ebf2;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.shipping-detail-box span {
  font-size: 12px;
  color: #6f7890;
}

.shipping-detail-box strong {
  font-size: 14px;
  color: #1b2742;
  line-height: 1.35;
}

/* ==================== MODAL RESEÃ‘A ==================== */
.review-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.review-modal {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.review-modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.close-modal {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: 0.2s;
}

.close-modal:hover {
  color: #333;
}

.review-modal-body {
  padding: 25px;
}

#reviewProductName {
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.rating-section {
  margin-bottom: 25px;
}

.rating-section label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
  font-size: 14px;
}

.stars {
  display: flex;
  gap: 10px;
  font-size: 32px;
  cursor: pointer;
}

.star {
  opacity: 0.3;
  transition: 0.2s;
}

.star:hover,
.star.active {
  opacity: 1;
  transform: scale(1.2);
}

.review-text-section {
  margin-bottom: 25px;
}

.review-text-section label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
  font-size: 14px;
}

#reviewText {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

#reviewText:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 640px) {
  .purchase-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .purchase-actions {
    justify-content: flex-start;
  }

  .shipping-detail-grid {
    grid-template-columns: 1fr;
  }
}

.review-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 32px; }
  .purchase-card { padding: 18px; }
  .purchase-card li {
    flex-direction: column;
    align-items: flex-start;
  }
  .item-price {
    text-align: left;
  }
  .purchase-footer {
    flex-direction: column;
    gap: 15px;
  }
}

/* =========================================================
   REDISEÑO MIS COMPRAS (SCOPED)
========================================================== */
.mis-compras-page {
  background: radial-gradient(1200px 400px at 100% -10%, #ffeef6 0%, transparent 60%), #f4f6fb;
  color: #1f2433;
  font-size: 16px;
}

.mis-compras-page .container {
  max-width: 1180px;
  padding: 0 24px;
}

.mis-compras-page .header {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8ebf3;
  box-shadow: 0 8px 24px rgba(20, 27, 50, .06);
}

.mis-compras-page main.container {
  padding-top: 28px;
  padding-bottom: 46px;
}

.mis-compras-page h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 3vw, 52px);
  letter-spacing: .2px;
  color: #1a2139;
}

.mis-compras-page #purchasesContainer {
  max-width: none;
  margin: 0;
  padding: 0;
}

.mis-compras-page .filters-section {
  background: linear-gradient(120deg, #ffffff 0%, #fff7fb 100%);
  border: 1px solid #e7e8ef;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 16px 34px rgba(23, 31, 53, 0.08);
}

.mis-compras-page .filters-section h3 {
  font-size: 20px;
  margin: 0 0 14px;
  color: #1f2944;
}

.mis-compras-page .filters-grid {
  gap: 16px;
}

.mis-compras-page .filter-group label {
  font-size: 13px;
  color: #5f6880;
  letter-spacing: .2px;
}

.mis-compras-page .filter-group select,
.mis-compras-page .filter-group input {
  border: 1px solid #dbe0ec;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.mis-compras-page .purchase-card {
  border: 1px solid #e3e7f2;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(22, 33, 61, .08);
}

.mis-compras-page .purchase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(200, 35, 99, .14);
}

.mis-compras-page .purchase-header h3,
.mis-compras-page .purchase-card h3 {
  font-size: 26px;
  margin: 0;
  color: #1c2540;
}

.mis-compras-page .purchase-date {
  color: #6e7690;
  font-size: 14px;
}

.mis-compras-page .purchase-items li {
  border-bottom: 1px solid #edf0f7;
  padding-bottom: 14px;
}

.mis-compras-page .purchase-card img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  border: 1px solid #e8ebf2;
}

.mis-compras-page .item-name {
  font-size: 16px;
}

.mis-compras-page .item-qty {
  color: #7f879c;
}

.mis-compras-page .item-price {
  color: #cb1c62;
  font-size: 22px;
  min-width: 120px;
}

.mis-compras-page .item-actions {
  gap: 10px;
}

.mis-compras-page .btn-view-product,
.mis-compras-page .btn-review,
.mis-compras-page .btn-rebuy {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15px;
}

.mis-compras-page .btn-view-product {
  background: linear-gradient(180deg, #f02b74 0%, #c11656 100%);
}

.mis-compras-page .btn-review {
  background: linear-gradient(180deg, #6f7de9 0%, #5b3fb2 100%);
}

.mis-compras-page .btn-rebuy {
  background: #131724;
  box-shadow: 0 10px 20px rgba(19, 23, 36, .25);
}

.mis-compras-page .purchase-total {
  font-size: 38px;
  line-height: 1;
  color: #0f1526;
}

.mis-compras-page .purchase-method {
  color: #6f7890;
  margin-top: 8px;
  margin-bottom: 0;
}

.mis-compras-page .review-modal {
  border-radius: 16px;
  border: 1px solid #e8ebf2;
  box-shadow: 0 24px 60px rgba(21, 27, 44, .28);
}

.mis-compras-page .review-modal-header {
  background: linear-gradient(120deg, #ffffff 0%, #f8faff 100%);
}

.mis-compras-page .review-modal-body {
  padding: 22px;
}

.mis-compras-page .star {
  color: #f7b940;
}

@media (max-width: 900px) {
  .mis-compras-page .container {
    padding: 0 14px;
  }

  .mis-compras-page h1 {
    margin-bottom: 14px;
  }

  .mis-compras-page .purchase-card {
    padding: 16px;
  }

  .mis-compras-page .item-price {
    font-size: 20px;
    min-width: 0;
  }

  .mis-compras-page .purchase-total {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .mis-compras-page .top-bar {
    padding: 8px 0;
  }

  .mis-compras-page .top-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
  }

  .mis-compras-page .header {
    position: sticky;
    top: 0;
    padding: 10px 12px;
  }

  .mis-compras-page .search-bar-header {
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    order: 4;
  }

  .mis-compras-page .search-bar-header input {
    min-width: 0;
  }

  .mis-compras-page main.container {
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .mis-compras-page h1 {
    font-size: 30px;
  }

  .mis-compras-page .filters-section {
    padding: 14px;
    border-radius: 14px;
  }

  .mis-compras-page .filters-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mis-compras-page .purchase-card {
    padding: 14px;
    border-radius: 14px;
  }

  .mis-compras-page .purchase-items li {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    align-items: start;
  }

  .mis-compras-page .purchase-card img {
    width: 58px;
    height: 58px;
  }

  .mis-compras-page .item-price {
    grid-column: 2;
    font-size: 18px;
    text-align: left;
  }

  .mis-compras-page .item-actions {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mis-compras-page .purchase-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .mis-compras-page .btn-rebuy {
    width: 100%;
  }

  .mis-compras-page .review-modal {
    width: calc(100% - 20px);
    max-width: none;
  }
}

@media (max-width: 520px) {
  .mis-compras-page .logo {
    font-size: 18px;
    letter-spacing: .5px;
  }

  .mis-compras-page h1 {
    font-size: 26px;
  }

  .mis-compras-page .purchase-header h3,
  .mis-compras-page .purchase-card h3 {
    font-size: 20px;
  }

  .mis-compras-page .purchase-total {
    font-size: 24px;
  }

  .mis-compras-page .btn-view-product,
  .mis-compras-page .btn-review,
  .mis-compras-page .btn-rebuy {
    width: 100%;
    text-align: center;
  }
}

/* Header fix - Mis Compras */
.mis-compras-page .header {
  gap: 14px;
  padding: 14px 20px;
}

.mis-compras-page .brand-main {
  font-size: clamp(24px, 2.1vw, 34px);
  letter-spacing: 0.9px;
}

.mis-compras-page .brand-script {
  font-size: clamp(30px, 2.3vw, 40px);
}

.mis-compras-page .search-bar-header {
  max-width: 280px;
  margin: 0 12px;
}

.mis-compras-page .nav-menu {
  gap: 16px;
}

.mis-compras-page .nav-menu a {
  font-size: 12px;
}

.mis-compras-page .icons {
  gap: 18px;
  flex-shrink: 0;
  margin-left: 8px;
}

.mis-compras-page .user-btn {
  gap: 6px;
  white-space: nowrap;
  padding-right: 6px;
}

.mis-compras-page #userBtn {
  max-width: none;
}

.mis-compras-page #userNameText {
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

/* =========================================================
   MIS COMPRAS REDESIGN V2
========================================================== */
.mis-compras-page {
  background:
    radial-gradient(1100px 420px at 95% -8%, rgba(255, 203, 223, 0.24) 0%, transparent 56%),
    radial-gradient(900px 380px at -8% 15%, rgba(210, 233, 255, 0.32) 0%, transparent 58%),
    #f2f6fc;
}

.mis-compras-page main.container {
  background: linear-gradient(170deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e2eaf6;
  border-radius: 22px;
  box-shadow: 0 24px 50px -30px rgba(12, 24, 50, 0.36);
  padding: 24px 22px 30px;
  margin-top: 14px;
  margin-bottom: 26px;
}

.mis-compras-page h1 {
  margin: 2px 0 14px;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: #13233f;
}

.mis-compras-page .filters-section {
  border: 1px solid #e3eaf6;
  border-radius: 16px;
  background: #fbfdff;
  box-shadow: 0 12px 26px -22px rgba(13, 29, 58, 0.5);
}

.mis-compras-page .purchase-card {
  border: 1px solid #e5ebf7;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 16px 34px -26px rgba(9, 23, 46, 0.42);
}

.mis-compras-page .purchase-header {
  border-bottom: 1px solid #edf1f8;
  padding-bottom: 10px;
}

.mis-compras-page .purchase-date {
  color: #6b7890;
  font-size: 12px;
}

.mis-compras-page .purchase-items li {
  border-bottom-color: #edf1f8;
}

.mis-compras-page .purchase-card img {
  border-radius: 12px;
  border: 1px solid #e7ecf6;
}

.mis-compras-page .item-name {
  color: #1b2742;
}

.mis-compras-page .item-qty {
  color: #7a859a;
}

.mis-compras-page .item-price {
  color: #df1b67;
}

.mis-compras-page .purchase-total {
  color: #101b33;
}

.mis-compras-page .purchase-method {
  font-size: 13px;
}

.mis-compras-page .btn-view-product {
  background: linear-gradient(130deg, #f12b78 0%, #c41555 100%);
}

.mis-compras-page .btn-review {
  background: linear-gradient(130deg, #6d7be7 0%, #5b40b8 100%);
}

.mis-compras-page .btn-shipping-details {
  background: #eef2ff;
  border-color: #d4dcff;
  color: #2b3d74;
}

.mis-compras-page .btn-rebuy {
  background: linear-gradient(130deg, #12192b 0%, #1e2a49 100%);
}

.mis-compras-page .shipping-modal {
  border: 1px solid #e4eaf7;
  border-radius: 16px;
  box-shadow: 0 24px 56px -24px rgba(12, 26, 52, 0.56);
}

.mis-compras-page .shipping-modal-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.mis-compras-page .shipping-detail-box {
  border-color: #e2e9f6;
  background: #f8faff;
}

@media (max-width: 768px) {
  .mis-compras-page main.container {
    border-radius: 14px;
    padding: 14px 10px 18px;
    margin-top: 8px;
  }

  .mis-compras-page h1 {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .mis-compras-page .filters-section {
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
  }

  .mis-compras-page .purchase-card {
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
  }

  .mis-compras-page .purchase-header h3,
  .mis-compras-page .purchase-card h3 {
    font-size: 20px;
  }

  .mis-compras-page .purchase-items li {
    grid-template-columns: 56px 1fr;
    gap: 9px;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .mis-compras-page .purchase-card img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }

  .mis-compras-page .item-name {
    font-size: 14px;
    line-height: 1.25;
  }

  .mis-compras-page .item-qty {
    font-size: 12px;
  }

  .mis-compras-page .item-price {
    font-size: 24px;
    margin-top: 2px;
  }

  .mis-compras-page .item-actions {
    gap: 6px;
  }

  .mis-compras-page .btn-view-product,
  .mis-compras-page .btn-review,
  .mis-compras-page .btn-rebuy,
  .mis-compras-page .btn-shipping-details {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  .mis-compras-page .purchase-total {
    font-size: 34px;
  }

  .mis-compras-page .purchase-status {
    margin-top: 6px;
    font-size: 12px;
  }

  .mis-compras-page .shipping-status-pill {
    font-size: 11px;
    padding: 3px 8px;
  }
}

@media (max-width: 480px) {
  .mis-compras-page h1 {
    font-size: 32px;
  }

  .mis-compras-page .purchase-total {
    font-size: 30px;
  }
}

/* Shipping details modal redesign */
.mis-compras-page .shipping-modal-overlay {
  backdrop-filter: blur(6px);
  background: rgba(10, 18, 34, 0.54);
}

.mis-compras-page .shipping-modal {
  width: min(620px, 100%);
  border-radius: 18px;
  border: 1px solid #e4ebf8;
  background: linear-gradient(170deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 28px 64px -28px rgba(8, 20, 42, 0.62);
}

.mis-compras-page .shipping-modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid #ebf0f8;
}

.mis-compras-page .shipping-modal-header h2 {
  margin: 0;
  font-size: 26px;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #182745;
}

.mis-compras-page .shipping-modal-body {
  padding: 16px 18px 18px;
}

.mis-compras-page .shipping-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mis-compras-page .shipping-detail-box {
  border: 1px solid #e5ecf8;
  border-radius: 12px;
  background: #f8faff;
  padding: 10px 12px;
  min-height: 76px;
}

.mis-compras-page .shipping-detail-box span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c7890;
}

.mis-compras-page .shipping-detail-box strong {
  font-size: 14px;
  line-height: 1.35;
  color: #172644;
  word-break: break-word;
}

.mis-compras-page .shipping-status-pill {
  margin-left: 0;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .mis-compras-page .shipping-modal {
    width: calc(100% - 14px);
    border-radius: 14px;
  }

  .mis-compras-page .shipping-modal-header {
    padding: 12px 12px 10px;
  }

  .mis-compras-page .shipping-modal-header h2 {
    font-size: 20px;
  }

  .mis-compras-page .shipping-modal-body {
    padding: 12px;
  }

  .mis-compras-page .shipping-detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mis-compras-page .shipping-detail-box {
    border-radius: 10px;
    min-height: auto;
    padding: 9px 10px;
  }

  .mis-compras-page .shipping-detail-box strong {
    font-size: 13px;
  }
}

/* Shipping modal redesign V3 */
.mis-compras-page .shipping-modal-overlay {
  background: radial-gradient(120% 120% at 10% 0%, rgba(255, 215, 230, 0.35), rgba(7, 16, 34, 0.58));
  backdrop-filter: blur(8px);
}

.mis-compras-page .shipping-modal {
  width: min(700px, 100%);
  border-radius: 20px;
  border: 1px solid #dfe7f5;
  background: linear-gradient(165deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 30px 70px -30px rgba(12, 24, 52, 0.65);
  overflow: hidden;
}

.mis-compras-page .shipping-modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid #e8eef9;
  background: linear-gradient(95deg, #ffffff 0%, #f4f8ff 100%);
}

.mis-compras-page .shipping-modal-header h2 {
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #152646;
}

.mis-compras-page #closeShippingModal {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d9e3f3;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6f7f99;
}

.mis-compras-page #closeShippingModal:hover {
  color: #cf2365;
  border-color: #efc5d7;
}

.mis-compras-page .shipping-modal-body {
  padding: 16px 18px 20px;
}

.mis-compras-page .shipping-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mis-compras-page .shipping-detail-box {
  border: 1px solid #e1e9f8;
  border-radius: 14px;
  background: #fbfcff;
  padding: 12px 13px;
  min-height: 88px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.mis-compras-page .shipping-detail-box span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7685a0;
}

.mis-compras-page .shipping-detail-box strong {
  margin-top: 6px;
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #12233f;
}

.mis-compras-page .shipping-status-pill {
  margin-top: 8px;
  padding: 8px 14px;
  font-size: 17px;
  border-radius: 999px;
}

.mis-compras-page .shipping-status-pill.pendiente {
  background: linear-gradient(180deg, #fff0c9 0%, #f6e2b2 100%);
  color: #6e5201;
  border: 1px solid #ecd58e;
}

.mis-compras-page .shipping-status-pill.enviado {
  background: linear-gradient(180deg, #e8f0ff 0%, #d4e2ff 100%);
  color: #244cae;
  border: 1px solid #bdd1ff;
}

.mis-compras-page .shipping-status-pill.entregado {
  background: linear-gradient(180deg, #e8f8ee 0%, #d5f1e0 100%);
  color: #166a45;
  border: 1px solid #b8e4cb;
}

@media (max-width: 640px) {
  .mis-compras-page .shipping-modal {
    width: calc(100% - 12px);
    border-radius: 14px;
  }

  .mis-compras-page .shipping-modal-header {
    padding: 12px 12px 10px;
  }

  .mis-compras-page .shipping-modal-header h2 {
    font-size: 28px;
  }

  .mis-compras-page #closeShippingModal {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .mis-compras-page .shipping-modal-body {
    padding: 10px 10px 12px;
  }

  .mis-compras-page .shipping-detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mis-compras-page .shipping-detail-box {
    border-radius: 10px;
    min-height: auto;
    padding: 9px 10px;
  }

  .mis-compras-page .shipping-detail-box strong {
    font-size: 20px;
  }

  .mis-compras-page .shipping-status-pill {
    font-size: 14px;
    padding: 6px 10px;
  }
}

/* Shipping modal compact override */
.mis-compras-page .shipping-modal {
  width: min(620px, 100%);
  border-radius: 14px;
}

.mis-compras-page .shipping-modal-header {
  padding: 12px 14px;
}

.mis-compras-page .shipping-modal-header h2 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
}

.mis-compras-page .shipping-modal-body {
  padding: 12px 14px 14px;
}

.mis-compras-page .shipping-detail-grid {
  gap: 8px;
}

.mis-compras-page .shipping-detail-box {
  border-radius: 10px;
  padding: 9px 10px;
  min-height: 66px;
}

.mis-compras-page .shipping-detail-box strong {
  font-size: 16px;
  line-height: 1.2;
  margin-top: 3px;
}

.mis-compras-page .shipping-status-pill {
  padding: 5px 10px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .mis-compras-page .shipping-modal {
    width: calc(100% - 10px);
    border-radius: 12px;
  }

  .mis-compras-page .shipping-modal-header {
    padding: 10px 10px 8px;
  }

  .mis-compras-page .shipping-modal-header h2 {
    font-size: 20px;
  }

  .mis-compras-page .shipping-modal-body {
    padding: 10px;
  }

  .mis-compras-page .shipping-detail-box {
    min-height: auto;
    padding: 8px 9px;
  }

  .mis-compras-page .shipping-detail-box strong {
    font-size: 15px;
  }
}

