/* ======================================================
   PRODUCT PAGE – BASE
====================================================== */

.product-page {
  background: #fff;
  color: #000;
}

/* ======================================================
   PRODUCT LAYOUT
====================================================== */

.product-content {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  padding: 60px 60px 60px;
  align-items: start;
}

/* ======================================================
   PRODUCT IMAGES
====================================================== */

.product-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-images img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  object-fit: contain;
}



/* ======================================================
   PRODUCT INFO
====================================================== */

.product-info {
  position: sticky;
  top: 100px;
  font-size: 13px;
}

.product-info h1 {
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.price {
  font-size: 14px;
  margin-bottom: 12px;
}

.color-label {
  font-size: 12px;
  margin-bottom: 20px;
}

/* ======================================================
   SIZE SELECTOR
====================================================== */

.sizes {
  margin-bottom: 24px;
}

.sizes button {
  border: 1px solid #000;
  background: none;
  padding: 8px 14px;
  margin-right: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 12px;
}

.sizes button.active {
  background: #000;
  color: #fff;
}

/* ======================================================
   CTA BUTTON
====================================================== */

.cta {
  width: 100%;
  padding: 14px;
  margin-top: 24px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta.disabled {
  background: #f2f2f2;
  color: #8a8a8a;
  border-color: #e0e0e0;
  cursor: not-allowed;
}

.cta:not(.disabled):hover {
  background: #111;
}

/* ======================================================
   PRODUCT TABS
====================================================== */

.product-tabs {
  margin-top: 30px;
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
}

.tab-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
}

.tab-btn.active {
  border-bottom: 1px solid #000;
}

.tab-panel {
  display: none;
  font-size: 14px;
  line-height: 1.6;
}

.tab-panel.active {
  display: block;
}

.tab-panel h4 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ======================================================
   MINI CART OVERLAY
====================================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 998;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
} 

/* ======================================================
   MINI CART
====================================================== */

.mini-cart {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background: #fff;
  z-index: 999;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mini-cart.active {
  right: 0;
}

.cart-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  z-index: 1000;
}

.cart-title {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}


/* CONTENEDOR DE PRODUCTOS */
.cart-items {
  flex: 1;                 /* ocupa el espacio disponible */
  overflow-y: auto;        /* SCROLL vertical */
  padding: 16px;
}

/* Footer siempre visible */
.cart-footer {
  border-top: 1px solid #eee;
  padding: 16px;
  background: #fff;
}

.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.cart-items::-webkit-scrollbar-track {
  background: transparent;
}


/* ======================================================
   CART ITEMS
====================================================== */

.cart-items {
  flex: 1;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px dashed #e5e5e5;
  align-items: center;
}

.cart-item-img {
  width: 80px;
}

.cart-item-middle {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
}

.cart-item-size {
  font-size: 13px;
  color: #555;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* ======================================================
   CART QUANTITY
====================================================== */

.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  font-size: 16px;
  cursor: pointer;
}

.qty-btn:hover {
  background: #000;
  color: #fff;
}

.remove-btn {
  background: none;
  border: none;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #777;
  cursor: pointer;
  text-transform: uppercase;
}

.remove-btn:hover {
  color: #000;
  text-decoration: underline;
}

/* ======================================================
   CART FOOTER
====================================================== */

.cart-footer {
  border-top: 1px solid #e5e5e5;
  padding-top: 16px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  opacity: 0.7;
}

#cartSubtotal {
  font-size: 12px;
  font-weight: 500;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
}

/* ======================================================
   RECOMMENDED PRODUCTS
====================================================== */

.recommended-end {
  background: #fff;
  padding: 50px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recommended-label {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.recommended-container {
  max-width: 1200px;
  margin-bottom: 50px;
  padding: 0 40px;
}

.recommended-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 36px;
  justify-items: center;
}

.recommended-card {
  max-width: 260px;
  text-decoration: none;
  color: #000;
  transition: transform 0.2s ease;
}

.recommended-card:hover {
  transform: translateY(-4px);
}

.recommended-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.recommended-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.8px;
}

.recommended-meta .price {
  opacity: 0.6;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 900px) {
  .product-content {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .recommended-row {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .recommended-container {
    padding: 0 20px;
  }
}

/* ======================================================
   FOOTER (PRODUCT PAGE ONLY)
====================================================== */

.product-page .footer {
  background: #0e0e0e;
  color: #cfcfcf;
}

.product-logo {
  cursor: pointer;
}

/* ===============================
   FIX ESPACIO BLANCO FOOTER
================================ */

/* Reduce espacio final de recommended */
.recommended-end {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Asegura que el footer no agregue espacio extra */
.recommended-end .footer {
  margin-top: 40px;   /* controla distancia visual */
}

/* Evita espacio blanco final del body */
.product-page {
  margin-bottom: 0;
}

/* Seguridad extra */
body {
  overflow-x: hidden;
}

.size-btn {
  border: 1px solid #000;
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
}

.size-btn.active {
  background: #000;
  color: #fff;
}

/* =========================
   MINI CART QTY BUTTONS
========================= */

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #111;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty button:hover {
  background: #111;
  color: #fff;
}

.cart-qty span {
  font-size: 13px;
  min-width: 14px;
  text-align: center;
}

.cart-item-price {
  font-size: 13px;
  opacity: 0.6;
}

.cart-warning {
  margin-top: 10px;
  font-size: 13px;
  color: #c0392b;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.cart-warning.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RECOMMENDED PRODUCTS
========================= */

.recommended-row {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.recommended-item {
  width: 220px;               /* controla el tamaño del card */
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.recommended-item img {
  width: 100%;
  height: 280px;              /* altura fija */
  object-fit: cover;          /* recorta sin deformar */
  display: block;
}

.recommended-name {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

.recommended-price {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #777;
}

.recommended-item img {
  transition: transform 0.3s ease;
}

.recommended-item:hover img {
  transform: scale(1.03);
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
}

/* LOGO CENTRADO REAL */
.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-logo img {
  height: 26px;
}

/* MENU */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-btn span {
  width: 22px;
  height: 2px;
  background: #000;
}

/* ACCOUNT */
.account-link {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #000;
}

/* =========================
   CART LIMIT TEXT MESSAGE
========================= */

#cartLimitMessage {
  margin-top: 8px;

  font-size: 13px;
  font-weight: 500;
  color: #c10000;

  text-align: center;
  letter-spacing: 0.2px;
  font-size: 12px;

  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;

  pointer-events: none;
}

/* visible */
#cartLimitMessage.show {
  opacity: 1;
  transform: translateY(0);
}

.see-more-container {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.see-more-btn {
  background: none;
  border: 1px solid #000;
  padding: 14px 36px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.see-more-btn:hover {
  background: #000;
  color: #fff;
}

/* =========================
   ACCORDION PRODUCT INFO
========================= */

.accordion-item {
  border-top: 1px solid #e5e5e5;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;

  font-size: 13px;
  letter-spacing: 1px;
}

.accordion-header .arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

/* cerrado por defecto */
.tab-panel {
  display: none;
  padding-bottom: 16px;
}

/* abierto */
.accordion-item.active .tab-panel {
  display: block;
}

.accordion-item.active .arrow {
  transform: rotate(180deg);
}

/* =========================
   MAIN PRODUCT IMAGE
========================= */

.main-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px; /* ajusta si quieres más grande */
  margin-bottom: 24px;
}

.main-image-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* =========================
   ARROWS
========================= */

.image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  font-size: 28px;
  padding: 6px 12px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0.3;
}

.image-arrow.left {
  left: 12px;
}

.image-arrow.right {
  right: 12px;
}

.main-image-wrapper:hover .image-arrow {
  opacity: 1;
}

.image-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}

/* =========================
   SECONDARY IMAGES
========================= */

.secondary-image {
  width: 100%;
  display: block;
  margin-bottom: 24px;
  object-fit: cover;
}

/* =========================
   CENTER MAIN IMAGE
========================= */

.product-images {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image-wrapper {
  margin-left: auto;
  margin-right: auto;
}

.sizes {
  margin-top: 24px;
}

.size-title {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #000;
}

#sizeSelector {
  display: flex;
  gap: 10px;
}

.price {
  display: flex;
  gap: 10px;
  align-items: center;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

.sale-price {
  color: #000;
  font-weight: 500;
  font-size: 16px;
}

.discount-section {
  margin: 10px 0;
}

.discount-title {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.7;
}

.discount-input {
  display: flex;
  gap: 6px;
}

.discount-input input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #000;
  font-size: 12px;
}

.discount-input button {
  padding: 6px 10px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 1px;
}

.discount-input button:hover {
  opacity: 0.85;
}

.discount-message {
  font-size: 10px;
  margin-top: 4px;
}

.subtotal-values {
  display: flex;
  gap: 8px;
  align-items: center;
}

#cartSubtotal.discounted {
  text-decoration: line-through;
  opacity: 0.5;
}

#cartSubtotalDiscounted {
  font-weight: 600;
}

.hidden {
  display: none;
}

.cart-item-color {
  font-size: 12px;
  opacity: 0.7;
}

.cart-empty-message {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: #777;
  text-align: center;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-empty-message.show {
  display: block;
  opacity: 1;
}

