/*
 * ============================================================
 *  ROTTERI — pages.css
 *  Estilos específicos por página, extraídos de bloques
 *  <style> embebidos para mantener el CSS organizado.
 *
 *  Secciones:
 *    1. Cart Page        (.cart-*)
 *    2. Checkout Page    (.co-*)
 *    3. Product Detail   (.pd-*)
 * ============================================================
 */

/* ============================================================
   1. CART PAGE — /public/cart.php
   ============================================================ */

.cart-page-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 14px 100px;
}

.cart-title-section { margin-bottom: 20px; }
.cart-title-section h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-title-section h1 i { color: var(--primary); }

/* 2-column grid for desktop */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

/* Items list */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  position: relative;
  transition: transform .3s ease, opacity .3s ease;
}
.cart-item-card.removing {
  transform: scale(0.9);
  opacity: 0;
}

.cart-item-img {
  width: 80px; height: 80px;
  object-fit: contain;
  background: #F9FAFB;
  border-radius: 12px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-country {
  font-size: .65rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.cart-item-name {
  font-size: .83rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0;
}

.cart-item-price {
  font-size: .95rem;
  font-weight: 800;
  color: #111827;
  margin-top: 4px;
}

.cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* Quantity selector */
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border-radius: 50px;
  overflow: hidden;
}
.cart-qty-ctrl button {
  width: 28px; height: 28px;
  border: none; background: none;
  font-size: 1rem; font-weight: 700;
  color: #374151; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cart-qty-ctrl button:hover { background: #E5E7EB; }
.cart-qty-ctrl span {
  min-width: 26px; text-align: center;
  font-size: .8rem; font-weight: 700; color: #111827;
}

/* Remove button */
.cart-btn-remove {
  background: none; border: none;
  color: #9CA3AF; font-size: .85rem;
  cursor: pointer; padding: 6px;
  display: flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.cart-btn-remove:hover { color: #EF4444; }

/* Summary card */
.cart-summary-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.cart-summary-title {
  font-size: .95rem; font-weight: 800; color: #111827;
  margin-bottom: 14px;
  border-bottom: 1px solid #F3F4F6;
  padding-bottom: 10px;
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  font-size: .82rem; color: #6B7280; padding: 6px 0;
}
.cart-summary-total {
  display: flex; justify-content: space-between;
  font-size: 1.1rem; font-weight: 800; color: #111827;
  padding: 12px 0 0;
  border-top: 1px solid #F3F4F6;
  margin-top: 10px;
}

/* Checkout button */
.cart-btn-checkout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 50px;
  font-size: .9rem; font-weight: 700; text-decoration: none;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(255,107,0,.35);
  transition: all .2s;
}
.cart-btn-checkout:hover { background: #E65000; transform: translateY(-1px); }

/* Share button */
.cart-btn-share {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 11px;
  background: #fff; color: var(--primary);
  border: 1.5px solid rgba(255,107,0,.3); border-radius: 50px;
  font-size: .8rem; font-weight: 700; text-decoration: none;
  margin-top: 10px; cursor: pointer; transition: all .2s;
}
.cart-btn-share:hover { background: #FFF7F0; border-color: var(--primary); }

/* Trust badge */
.cart-trust-badge {
  display: flex; align-items: center; gap: 8px;
  background: #F9FAFB; border-radius: 10px;
  padding: 10px; margin-top: 16px;
  font-size: .7rem; color: #6B7280; line-height: 1.4;
}
.cart-trust-badge i { font-size: 1.2rem; color: #10B981; }

/* Cart responsive */
@media (min-width: 768px) {
  .cart-grid { grid-template-columns: 1fr 320px; gap: 24px; }
  .cart-summary-card { position: sticky; top: 80px; }
  .cart-title-section { margin-bottom: 24px; }
  .cart-title-section h1 { font-size: 1.7rem; }
}
@media (max-width: 599px) {
  .cart-page-wrap { padding: 12px 10px 90px; }
}


/* ============================================================
   2. CHECKOUT PAGE — /public/checkout.php
   ============================================================ */

/* CSS custom properties scoped to checkout root */
.co-root {
  --co-primary:      #FF6B00;
  --co-primary-glow: rgba(255,107,0,.18);
  --co-green:        #10B981;
  --co-green-glow:   rgba(16,185,129,.15);
  --co-surface:      #fff;
  --co-bg:           #F7F8FA;
  --co-border:       #E8ECF0;
  --co-text:         #111827;
  --co-text-2:       #4B5563;
  --co-text-3:       #9CA3AF;
  --co-radius:       18px;
  --co-radius-sm:    12px;
  background: var(--co-bg);
  min-height: 100vh;
}

/* Stepper */
.co-stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 24px 16px 8px;
  position: sticky; top: 0;
  background: var(--co-bg); z-index: 10;
}
.co-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; position: relative;
}
.co-step-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  border: 2.5px solid var(--co-border);
  background: #fff; color: var(--co-text-3);
}
.co-step.done .co-step-icon {
  background: var(--co-green); border-color: var(--co-green); color: #fff;
  box-shadow: 0 0 0 5px var(--co-green-glow);
}
.co-step.active .co-step-icon {
  background: var(--co-primary); border-color: var(--co-primary); color: #fff;
  box-shadow: 0 0 0 5px var(--co-primary-glow); transform: scale(1.12);
}
.co-step-label {
  font-size: .6rem; font-weight: 600; color: var(--co-text-3);
  text-transform: uppercase; letter-spacing: .05em;
}
.co-step.active .co-step-label { color: var(--co-primary); }
.co-step.done  .co-step-label { color: var(--co-green); }
.co-step-line {
  width: 52px; height: 2.5px;
  background: var(--co-border); border-radius: 2px;
  margin-bottom: 20px; position: relative; overflow: hidden;
}
.co-step-line.done::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--co-green), var(--co-primary));
  border-radius: 2px;
}
.co-step-line.active::after {
  content: ''; position: absolute; inset: 0; width: 50%;
  background: var(--co-primary); border-radius: 2px;
}

/* Layout wrapper */
.co-wrap {
  max-width: 860px; margin: 0 auto;
  padding: 4px 14px 120px;
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 768px) {
  .co-wrap { grid-template-columns: 1fr 340px; gap: 24px; padding-bottom: 60px; }
}

/* Cards */
.co-card {
  background: var(--co-surface); border-radius: var(--co-radius);
  border: 1.5px solid var(--co-border); overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: box-shadow .2s;
}
.co-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.09); }
.co-card-header {
  padding: 16px 20px 14px; border-bottom: 1.5px solid var(--co-border);
  display: flex; align-items: center; gap: 10px;
}
.co-card-header-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--co-primary-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--co-primary); font-size: .9rem;
}
.co-card-header h3 { font-size: .88rem; font-weight: 700; color: var(--co-text); margin: 0; }
.co-card-header span { font-size: .72rem; color: var(--co-text-3); margin-left: auto; }
.co-card-body { padding: 18px 20px; }

/* Form fields */
.co-field { margin-bottom: 14px; }
.co-field label {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 700; color: var(--co-text-2);
  margin-bottom: 7px; text-transform: uppercase; letter-spacing: .04em;
}
.co-field label i { color: var(--co-primary); font-size: .75rem; }
.co-input {
  width: 100%; padding: 12px 16px;
  background: var(--co-bg); border: 1.5px solid var(--co-border);
  border-radius: var(--co-radius-sm); color: var(--co-text);
  font-size: .9rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box; -webkit-appearance: none;
}
.co-input:focus {
  outline: none; border-color: var(--co-primary);
  box-shadow: 0 0 0 4px var(--co-primary-glow); background: #fff;
}
.co-input::placeholder { color: var(--co-text-3); }
.co-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Payment methods */
.co-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.co-pay-option { display: none; }
.co-pay-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 8px;
  background: var(--co-bg); border: 2px solid var(--co-border);
  border-radius: var(--co-radius-sm); cursor: pointer;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  text-align: center; user-select: none;
}
.co-pay-label:hover {
  border-color: var(--co-primary); background: var(--co-primary-glow);
  transform: translateY(-2px);
}
.co-pay-option:checked + .co-pay-label {
  border-color: var(--co-primary); background: var(--co-primary-glow);
  box-shadow: 0 0 0 3px var(--co-primary-glow), 0 4px 16px rgba(255,107,0,.15);
  transform: translateY(-3px) scale(1.02);
}
.co-pay-label .pay-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.co-pay-label .pay-name { font-size: .7rem; font-weight: 700; color: var(--co-text); line-height: 1.2; }
.co-pay-option:checked + .co-pay-label .pay-name { color: var(--co-primary); }

/* Order summary sidebar */
.co-summary-card { position: sticky; top: 100px; }
.co-item-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--co-border);
}
.co-item-row:last-child { border-bottom: none; }
.co-item-img {
  width: 52px; height: 52px; border-radius: 10px;
  object-fit: contain; background: var(--co-bg);
  border: 1px solid var(--co-border); flex-shrink: 0;
}
.co-item-img-placeholder {
  width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(135deg, var(--co-primary-glow), var(--co-bg));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid var(--co-border);
}
.co-item-img-placeholder i { color: var(--co-primary); font-size: 1.1rem; }
.co-item-name { font-size: .78rem; font-weight: 600; color: var(--co-text); flex: 1; line-height: 1.35; }
.co-item-qty  { font-size: .7rem; color: var(--co-text-3); }
.co-item-price { font-size: .82rem; font-weight: 700; color: var(--co-text); white-space: nowrap; }

/* Totals */
.co-total-rows { padding: 14px 0 0; }
.co-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: .8rem; color: var(--co-text-2);
}
.co-total-row.grand {
  border-top: 2px solid var(--co-border); margin-top: 8px;
  padding-top: 14px; font-size: 1rem; font-weight: 800; color: var(--co-text);
}
.co-total-row.grand .amount { color: var(--co-primary); font-size: 1.2rem; }

/* Coupon */
.co-coupon-row { display: flex; gap: 8px; align-items: stretch; }
.co-coupon-row .co-input { flex: 1; }
.co-coupon-btn {
  padding: 0 18px; background: var(--co-text); color: #fff;
  border: none; border-radius: var(--co-radius-sm);
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: background .2s, transform .15s; white-space: nowrap; font-family: inherit;
}
.co-coupon-btn:hover { background: var(--co-primary); transform: scale(1.03); }
.co-coupon-msg { font-size: .72rem; margin-top: 6px; display: none; }

/* Submit button */
.co-submit-btn {
  width: 100%; padding: 17px 24px;
  background: linear-gradient(135deg, var(--co-primary) 0%, #FF8C00 100%);
  color: #fff; border: none; border-radius: 50px;
  font-size: .95rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .25s; box-shadow: 0 6px 22px rgba(255,107,0,.4);
  letter-spacing: .02em; font-family: inherit; margin-top: 4px;
}
.co-submit-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255,107,0,.5); }
.co-submit-btn:active { transform: translateY(-1px); }
.co-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.co-secure-line {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .7rem; color: var(--co-text-3); margin-top: 10px;
}
.co-secure-line i { color: var(--co-green); }

/* Buyer selector */
.co-buyer-card {
  background: linear-gradient(135deg, rgba(255,107,0,.07), rgba(255,140,0,.04));
  border: 2px solid var(--co-primary); border-radius: var(--co-radius-sm);
  padding: 14px 16px; margin-bottom: 14px;
}
.co-buyer-label {
  font-size: .72rem; font-weight: 800; color: var(--co-primary);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}

/* Confirmation overlay */
.co-confirm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.co-confirm-overlay.show { display: flex; }
.co-confirm-modal {
  background: #fff; border-radius: 28px;
  padding: 40px 32px; text-align: center;
  max-width: 340px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
  animation: coModalPop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes coModalPop {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.co-confirm-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--co-green), #34D399);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; margin: 0 auto 20px;
  box-shadow: 0 0 0 12px rgba(16,185,129,.12);
  animation: coIconPulse 1.5s ease infinite;
}
@keyframes coIconPulse {
  0%,100% { box-shadow: 0 0 0 12px rgba(16,185,129,.12); }
  50%      { box-shadow: 0 0 0 20px rgba(16,185,129,.05); }
}
.co-confirm-title { font-size: 1.35rem; font-weight: 900; color: var(--co-text); margin-bottom: 8px; }
.co-confirm-sub { font-size: .85rem; color: var(--co-text-2); line-height: 1.55; margin-bottom: 24px; }
.co-confirm-close {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--co-green); color: #fff;
  border: none; border-radius: 50px; font-size: .88rem; font-weight: 700;
  cursor: pointer; font-family: inherit; text-decoration: none; transition: all .2s;
}
.co-confirm-close:hover { background: #059669; transform: translateY(-2px); }

/* Confetti pieces */
.confetti-piece {
  position: fixed; width: 10px; height: 10px;
  border-radius: 2px; pointer-events: none;
  z-index: 99999; animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* Checkout responsive */
@media (max-width: 767px) {
  .co-grid-2    { grid-template-columns: 1fr; gap: 0; }
  .co-pay-grid  { grid-template-columns: 1fr 1fr 1fr; }
  .co-summary-card { position: static; }
}


/* ============================================================
   3. PRODUCT DETAIL — /public/productos/detalle.php
   ============================================================ */

.pd-wrap { max-width: 900px; margin: 0 auto; padding: 16px 14px 100px; }
.pd-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; color: #6B7280; font-weight: 500;
  text-decoration: none; margin-bottom: 14px; transition: color .2s;
}
.pd-back:hover { color: var(--primary); }

/* Product image box */
.pd-img-box {
  position: relative; background: #F9FAFB; border-radius: 20px;
  overflow: hidden; margin-bottom: 20px;
  aspect-ratio: 1/1; max-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.pd-img-box img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.pd-img-box:hover img { transform: scale(1.04); }
.pd-badge-img {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; letter-spacing: .04em;
}
.pd-wish-btn {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #9CA3AF; cursor: pointer;
  transition: all .2s; box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.pd-wish-btn:hover, .pd-wish-btn.active { color: #EF4444; transform: scale(1.1); }

/* Product info */
.pd-brand { font-size: .72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.pd-name  { font-size: 1.25rem; font-weight: 800; color: #111827; line-height: 1.3; margin-bottom: 10px; }

/* Ratings */
.pd-rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pd-stars      { color: #D1D5DB; font-size: .9rem; letter-spacing: 2px; transition: color .3s; }
.pd-stars.loaded   { color: #F59E0B; }
.pd-rating-count   { font-size: .75rem; color: #6B7280; }
.pd-rating-link    { font-size: .75rem; color: var(--primary); text-decoration: none; }

/* Price */
.pd-price-row     { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.pd-price         { font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.pd-price-currency { font-size: .9rem; font-weight: 600; color: #9CA3AF; }

/* Stock badge */
.pd-stock     { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; margin-bottom: 20px; }
.pd-stock.in  { background: #D1FAE5; color: #065F46; }
.pd-stock.out { background: #FEE2E2; color: #991B1B; }

/* Quantity control */
.pd-qty-row   { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pd-qty-label { font-size: .8rem; font-weight: 600; color: #374151; }
.pd-qty-ctrl  { display: flex; align-items: center; background: #F3F4F6; border-radius: 50px; overflow: hidden; }
.pd-qty-ctrl button { width: 36px; height: 36px; border: none; background: none; font-size: 1.1rem; font-weight: 700; color: #374151; cursor: pointer; transition: background .15s; display: flex; align-items: center; justify-content: center; }
.pd-qty-ctrl button:hover { background: #E5E7EB; }
.pd-qty-ctrl span  { min-width: 32px; text-align: center; font-size: .9rem; font-weight: 700; color: #111827; }

/* CTA buttons */
.pd-actions  { display: flex; gap: 10px; margin-bottom: 24px; }
.pd-btn-cart {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 20px; background: var(--primary); color: #fff;
  border: none; border-radius: 50px; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: all .25s;
  box-shadow: 0 4px 14px rgba(255,107,0,.35); text-decoration: none;
}
.pd-btn-cart:hover    { background: #E65000; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,0,.4); }
.pd-btn-cart:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.pd-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 15px 20px; background: #25D366; color: #fff;
  border: none; border-radius: 50px; font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: all .25s; text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
}
.pd-btn-wa:hover { background: #1EA952; transform: translateY(-2px); }

/* Feature chips */
.pd-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-chip  { display: flex; align-items: center; gap: 5px; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 50px; padding: 7px 14px; font-size: .75rem; font-weight: 500; color: #374151; }
.pd-chip i { color: var(--primary); font-size: .78rem; }

/* Sections (description, reviews) */
.pd-section       { background: #fff; border-radius: 16px; padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.pd-section-title { font-size: .88rem; font-weight: 800; color: #111827; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.pd-section-title i { color: var(--primary); }
.pd-desc { font-size: .85rem; color: #6B7280; line-height: 1.7; white-space: pre-wrap; }

/* Reviews */
.pd-review-item          { padding: 14px 0; border-bottom: 1px solid #F3F4F6; }
.pd-review-item:last-child { border-bottom: none; }
.pd-review-header        { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 5px; }
.pd-review-avatar        { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #FF8C00); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.pd-review-name          { font-size: .8rem; font-weight: 700; color: #111827; }
.pd-review-date          { font-size: .68rem; color: #9CA3AF; margin-left: auto; white-space: nowrap; }
.pd-review-stars         { font-size: .75rem; color: #F59E0B; }
.pd-review-text          { font-size: .82rem; color: #4B5563; line-height: 1.5; margin-top: 4px; }
.pd-review-empty         { font-size: .82rem; color: #9CA3AF; padding: 20px 0; text-align: center; }
.pd-review-form          { background: #F9FAFB; border-radius: 12px; padding: 14px; margin-top: 12px; }
.pd-review-form p        { font-size: .78rem; font-weight: 700; color: #374151; margin-bottom: 10px; }
.pd-review-form textarea { width: 100%; padding: 10px 14px; background: #fff; border: 1.5px solid #E5E7EB; border-radius: 10px; color: #111827; font-size: .83rem; min-height: 70px; resize: vertical; font-family: inherit; transition: border-color .2s; box-sizing: border-box; }
.pd-review-form textarea:focus { outline: none; border-color: var(--primary); }

/* Star rating input */
#ratingStars              { display: flex; gap: 6px; margin-bottom: 10px; }
#ratingStars i            { font-size: 1.3rem; color: #D1D5DB; cursor: pointer; transition: all .15s; }
#ratingStars i.lit        { color: #F59E0B; transform: scale(1.1); }
#ratingStars i:hover      { color: #F4A100; transform: scale(1.2); }

/* Sticky buy bar (mobile) */
.pd-sticky-bar {
  position: fixed;
  bottom: calc(48px + max(8px, env(safe-area-inset-bottom)));
  left: 0; right: 0;
  background: #fff; border-top: 1px solid #F3F4F6;
  padding: 10px 16px;
  display: none; gap: 10px;
  z-index: 50; box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.pd-similares-title { font-size: 1rem; font-weight: 800; color: #111827; padding: 0 14px 12px; }

/* Product detail responsive */
@media (min-width: 768px) {
  .pd-layout   { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .pd-img-box  { max-height: 440px; aspect-ratio: unset; height: 440px; }
  .pd-name     { font-size: 1.45rem; }
  .pd-sticky-bar { display: none !important; }
  .pd-wrap     { padding-bottom: 40px; }
}
@media (max-width: 767px) {
  .pd-sticky-bar { display: flex; }
  .pd-actions    { display: none; }
  .pd-wrap       { padding-bottom: calc(110px + max(8px, env(safe-area-inset-bottom))); }
}

/* ============================================================
   4. CASINO VEGAS SHOWCASE — /public/index.php
   ============================================================ */

/* Main outer box */
.hm-vegas-showcase {
  background: #0d001a;
  border-radius: var(--radius);
  border: 3.5px solid #ff0055;
  box-shadow: 0 0 25px rgba(255,0,85,0.45), inset 0 0 20px rgba(255,0,85,0.3);
  position: relative;
  overflow: hidden;
  margin: 20px auto;
  padding: 24px 20px;
}

/* Lights border blinking animation */
.hm-vegas-showcase__lights {
  display: flex;
  justify-content: space-around;
  position: absolute;
  width: calc(100% - 24px);
  left: 12px;
}
.hm-vegas-showcase__lights--top { top: 8px; }
.hm-vegas-showcase__lights--bottom { bottom: 8px; }
.hm-vegas-light {
  width: 7px; height: 7px;
  border-radius: 50%;
  background-color: #FFD700;
  box-shadow: 0 0 8px #FFD700;
  transition: background-color 0.15s;
}
.hm-vegas-light:nth-child(odd) { animation: hmBlinkYellow 0.5s infinite alternate; }
.hm-vegas-light:nth-child(even) { animation: hmBlinkRed 0.5s infinite alternate 0.25s; }

@keyframes hmBlinkYellow {
  0% { background: #FFD700; box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700; }
  100% { background: #332700; box-shadow: none; }
}
@keyframes hmBlinkRed {
  0% { background: #ff0055; box-shadow: 0 0 10px #ff0055, 0 0 20px #ff0055; }
  100% { background: #330011; box-shadow: none; }
}

/* Titles */
.hm-vegas-showcase__title-container {
  text-align: center;
  margin-bottom: 20px;
}
.hm-vegas-showcase__title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
  letter-spacing: .08em;
  margin: 0;
  animation: vegasPulseText 1.5s infinite alternate;
}
.hm-vegas-showcase__subtitle {
  font-size: .72rem;
  font-weight: 700;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 4px;
}
@keyframes vegasPulseText {
  0% { text-shadow: 0 0 8px #ff00ff, 0 0 15px #ff00ff; transform: scale(0.98); }
  100% { text-shadow: 0 0 18px #ff00ff, 0 0 35px #ff00ff; transform: scale(1.02); }
}

/* Slot machine container holding reels + lever */
.hm-vegas-slot-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

/* Vegas columns grid */
.hm-vegas-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #06000c;
  border: 2px solid #00ffff;
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0,255,255,0.25), inset 0 0 15px rgba(0,255,255,0.2);
}
.hm-vegas-grid::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50px;
  background: linear-gradient(to bottom, #06000c 0%, transparent 100%);
  z-index: 5; pointer-events: none;
}
.hm-vegas-grid::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50px;
  background: linear-gradient(to top, #06000c 0%, transparent 100%);
  z-index: 5; pointer-events: none;
}

.hm-vegas-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* Blur & Motion Effects */
.hm-vegas-col.spinning {
  animation: vegasFastSpin 0.15s linear infinite !important;
  filter: blur(4px);
}
@keyframes vegasFastSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-400px); }
}

/* Vegas card layout */
.hm-vegas-card {
  background: #150022;
  border: 1.5px solid rgba(0,255,255,0.3);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s;
}
.hm-vegas-card:hover {
  border-color: #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.4);
  background: #220033;
}
.hm-vegas-card.winner-highlight {
  border-color: #FFD700 !important;
  box-shadow: 0 0 15px #FFD700, inset 0 0 5px #FFD700 !important;
  background: #332700 !important;
  transform: scale(1.03);
}

.hm-vegas-card__img-wrap {
  width: 44px; height: 44px;
  border-radius: 8px; overflow: hidden;
  background: #fff; flex-shrink: 0;
}
.hm-vegas-card__img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
}
.hm-vegas-card__info { flex: 1; min-width: 0; }
.hm-vegas-card__name {
  font-size: .72rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-vegas-card__price {
  font-size: .88rem; font-weight: 900; color: #FFD700;
  text-shadow: 0 0 5px rgba(255,215,0,0.3);
}
.hm-vegas-card__tag {
  font-size: .52rem; font-weight: 800; text-transform: uppercase;
  background: #ff0055; color: #fff;
  padding: 1px 5px; border-radius: 4px; width: fit-content; margin-top: 2px;
}

/* Lever (desktop only) */
.hm-vegas-lever-wrap {
  width: 32px; height: 130px;
  position: relative;
  cursor: pointer;
  display: none;
}
@media (min-width: 768px) {
  .hm-vegas-lever-wrap { display: block; }
}
.hm-vegas-lever-base {
  position: absolute; bottom: 10px; left: 6px;
  width: 20px; height: 40px;
  background: #2a2a2a; border-radius: 5px;
  border: 2px solid #555;
}
.hm-vegas-lever-arm {
  position: absolute; bottom: 40px; left: 13px;
  width: 6px; height: 75px;
  background: linear-gradient(to right, #ccc, #fff, #999);
  border-radius: 3px;
  transform-origin: bottom center;
  transition: transform 0.25s ease-in-out;
}
.hm-vegas-lever-ball {
  position: absolute; top: -14px; left: -9px;
  width: 24px; height: 24px;
  background: radial-gradient(circle at 30% 30%, #ff3b30, #b30000);
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}
/* Trigger state when pulled */
.hm-vegas-lever-wrap.pulled .hm-vegas-lever-arm {
  transform: rotateX(75deg);
}

/* Action button bar */
.hm-vegas-action-bar {
  text-align: center;
  margin-top: 20px;
}
.hm-vegas-spin-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #ff0055 0%, #ff00ff 100%);
  color: #fff; border: none;
  border-radius: 50px; font-size: .95rem; font-weight: 800;
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 0 15px rgba(255,0,85,0.4);
  font-family: inherit; text-transform: uppercase;
}
.hm-vegas-spin-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 25px rgba(255,0,85,0.6);
}
.hm-vegas-spin-btn:active { transform: translateY(0); }
.hm-vegas-spin-btn:disabled {
  background: #333; color: #777; box-shadow: none; cursor: not-allowed; transform: none;
}

/* Modal Popup */
.hm-vegas-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
}
.hm-vegas-modal.open {
  opacity: 1; pointer-events: all;
}
.hm-vegas-modal__body {
  background: #110022;
  border: 3px solid #ff00ff;
  box-shadow: 0 0 35px #ff00ff;
  border-radius: 24px;
  max-width: 360px; width: 100%;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hm-vegas-modal.open .hm-vegas-modal__body {
  transform: scale(1);
}
.hm-vegas-modal__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
}
.hm-vegas-modal__icon { font-size: 2.5rem; margin-bottom: 12px; }
.hm-vegas-modal__title {
  font-size: 1.25rem; font-weight: 900; color: #fff;
  text-shadow: 0 0 8px #ff00ff; margin-bottom: 6px;
}
.hm-vegas-modal__desc {
  font-size: .8rem; color: #aaa; margin-bottom: 18px;
}

.hm-vegas-modal__product {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 12px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; text-align: left;
  border: 1px solid rgba(255,255,255,0.1);
}
.hm-vegas-modal__product img {
  width: 50px; height: 50px; object-fit: contain;
  background: #fff; border-radius: 8px;
}
.hm-vegas-modal__prod-name {
  font-size: .78rem; font-weight: 700; color: #fff;
}
.hm-vegas-modal__prod-price {
  font-size: .9rem; font-weight: 800; color: #FFD700;
}

.hm-vegas-modal__coupon-box {
  display: flex; align-items: stretch;
  background: #00ffff1a;
  border: 2px dashed #00ffff;
  border-radius: 12px;
  overflow: hidden; margin-bottom: 20px;
}
.hm-vegas-modal__coupon-code {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 900; color: #00ffff;
  letter-spacing: .06em;
}
.hm-vegas-modal__copy-btn {
  padding: 0 16px; background: #00ffff; border: none;
  color: #000; font-size: .75rem; font-weight: 800;
  cursor: pointer; transition: background 0.15s;
}
.hm-vegas-modal__copy-btn:hover { background: #00cccc; }

.hm-vegas-modal__buy-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 14px;
  background: #ff0055; color: #fff;
  border-radius: 50px; font-size: .88rem; font-weight: 700;
  text-decoration: none; box-shadow: 0 4px 15px rgba(255,0,85,0.4);
  transition: all 0.25s;
}
.hm-vegas-modal__buy-btn:hover {
  background: #e6004c; transform: translateY(-2px);
}

/* ============================================================
   5. GLOBAL LIGHTWEIGHT LOGIN MODAL
   ============================================================ */
.nav-account-wrap {
  position: relative;
}
.hm-login-modal {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
  border: 1px solid #E5E7EB;
  width: 320px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hm-login-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.hm-login-modal__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  color: #9CA3AF; font-size: 1.5rem; cursor: pointer;
  transition: color 0.15s;
}
.hm-login-modal__close:hover { color: #111827; }
.hm-login-modal__logo {
  height: 40px; margin-bottom: 12px;
}
.hm-login-modal__title {
  font-size: 1.1rem; font-weight: 800; color: #111827;
  margin: 0 0 6px 0;
}
.hm-login-modal__desc {
  font-size: .8rem; color: #6B7280; line-height: 1.5;
  margin: 0 0 24px 0;
}
.hm-login-modal__google-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; padding: 12px;
  background: #F9FAFB; border: 1.5px solid #E5E7EB;
  border-radius: 12px; font-size: .88rem; font-weight: 600;
  color: #374151; cursor: pointer; text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  box-sizing: border-box;
}
.hm-login-modal__google-btn:hover {
  background: #F3F4F6; border-color: #D1D5DB;
}
.hm-login-modal__divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: #9CA3AF; font-size: .75rem;
}
.hm-login-modal__divider::before,
.hm-login-modal__divider::after {
  content: ''; flex: 1; height: 1px; background: #E5E7EB;
}
.hm-login-modal__explore-btn {
  width: 100%; padding: 12px;
  background: #fff; border: 1.5px solid #E5E7EB;
  border-radius: 12px; font-size: .85rem; font-weight: 600;
  color: #4B5563; cursor: pointer; transition: all 0.15s;
}
.hm-login-modal__explore-btn:hover {
  background: #F9FAFB; color: #111827; border-color: #D1D5DB;
}

/* Login Modal Form */
.hm-login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-top: 16px;
}
.hm-login-modal__form-group {
  display: flex;
  flex-direction: column;
}
.hm-login-modal__label {
  font-size: .72rem;
  font-weight: 700;
  color: #4B5563;
  margin-bottom: 4px;
}
.hm-login-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: .83rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: #111827;
  transition: border-color 0.15s ease;
}
.hm-login-modal__input:focus {
  border-color: var(--primary);
}
.hm-login-modal__error {
  color: #EF4444;
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  background: #FEE2E2;
  border-radius: 10px;
  margin-bottom: 6px;
  border: 1px solid #FCA5A5;
}
.hm-login-modal__submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(255,107,0,0.2);
}
.hm-login-modal__submit-btn:hover {
  background: #E65000;
}
.hm-login-modal__submit-btn:active {
  transform: translateY(1px);
}


