:root {
  --bg: #ffffff;
  --accent: #d4af37; /* dorado suave */
  --accent-dark: #a68426;
  --text-main: #222222;
  --text-soft: #666666;
  --border-soft: #e5e5e5;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-main);
}

/* HEADER */

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 6vw;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  font-family: "Kenao", sans-serif;
  text-decoration: none;
  color: inherit
}
.logo:hover {
  color: var(--accent);
}

.logo span {
  color: var(--accent);
}

.main-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 999px;
  transition: 0.2s;
}

.main-nav a:hover {
  background: var(--border-soft);
  color: var(--text-main);
}

.main-nav a.active {
  background: var(--accent);
  color: #fff;
}

.cart-link {
  position: relative;
}

.cart-count {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.75rem;
  margin-left: 4px;
}

/* BUTTONS */

.btn-primary,
.btn-secondary {
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: #f3f3f3;
  color: var(--text-main);
}

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

/* HERO SLIDER */

.hero-slider {
  width: 100%;
  margin-top: 8px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: min(60vh, 420px); /* ancho completo, no tan alto */
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-content {
  background: rgba(255, 255, 255, 0.85);
  padding: 20px 26px;
  border-radius: var(--radius-lg);
  margin-left: 8vw;
  max-width: 360px;
  box-shadow: var(--shadow-soft);
}

.slide-content h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.slide-content p {
  margin: 0 0 16px;
  color: var(--text-soft);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.slider-btn.prev {
  left: 14px;
}
.slider-btn.next {
  right: 14px;
}

/* FEATURED SECTION */

.featured {
  padding: 40px 6vw 50px;
}

.featured h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.featured-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.featured-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.featured-card p {
  margin: 0;
  color: var(--text-soft);
}

/* COLLECTION PAGE */

.collection-page {
  padding: 30px 6vw 60px;
}

.filters h1 {
  margin: 0 0 14px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 170px;
}

.filter-group label {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.filter-group select,
.filter-group input {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.9rem;
}

/* PRODUCTS GRID */

.products-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.product-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.product-name {
  font-size: 0.98rem;
  margin: 0 0 4px;
}
.product-name a {
  font-family: 'Kenao', serif; /* 🔁 cambia por TU fuente */
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.product-price {
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card button {
  align-self: flex-start;
}

/* CART PAGE */

.cart-page {
  padding: 30px 6vw 60px;
}

.cart-container {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #fff;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

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

.cart-item img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-item-info {
  font-size: 0.9rem;
}

.cart-item-info p {
  margin: 0 0 4px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.85rem;
}

.cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}

.cart-summary p {
  margin: 0;
}

/* FOOTER */

.main-footer {
  padding: 16px 6vw 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .slide-content {
    margin-left: 5vw;
    max-width: 80%;
  }

  .cart-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* HERO SLIDE FULL WIDTH */

.hero-slide {
  width: 100%;
}

.hero-slide-image {
  width: 100%;
  height: 400px; /* ALTURA FIJA */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide-content {
  margin-left: 8vw;
  background: rgba(255, 255, 255, 0.85);
  padding: 22px 28px;
  border-radius: 16px;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hero-slide-content h1 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: #555;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .hero-slide-image {
    height: 320px;
  }

  .hero-slide-content {
    margin-left: 5vw;
    max-width: 85%;
  }
}
@font-face {
  font-family: 'Kenao';
  src: url('../fonts/Kenao.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
/* ADMIN PAGE */

.admin-page {
  padding: 30px 6vw 60px;
}

.admin-table-wrapper {
  max-height: 60vh;
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border-soft);
  padding: 6px 8px;
  text-align: left;
}

.admin-table thead {
  position: sticky;
  top: 0;
  background: #fafafa;
  z-index: 1;
}

.admin-table input,
.admin-table select {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.8rem;
  padding: 4px 6px;
}

.admin-actions {
  margin: 10px 0 16px;
}

.admin-output {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  font-family: monospace;
  font-size: 0.8rem;
}
/* PRODUCT PAGE */

.product-page {
  padding: 30px 6vw 60px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-main-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #f8f8f8;
}

.product-main-image {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.product-main-image:hover {
  transform: scale(1.03);
}

.zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.product-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-thumb {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  width: 70px;
  height: 70px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb.active {
  border-color: var(--accent);
}

/* INFO */

.product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0;
}

.product-breadcrumb a {
  color: var(--text-soft);
}

.product-title {
  margin: 0;
  font-size: 1.6rem;
  font-family: kenao, serif;
}

.product-meta-line {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.product-price-large {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 8px 0;
}

.product-description {
  font-size: 0.95rem;
  color: var(--text-main);
}

.product-actions {
  margin-top: 10px;
}

/* ZOOM OVERLAY */

.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.zoom-overlay.visible {
  display: flex;
}

.zoom-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.zoom-inner img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: zoom-out;
}

.zoom-close {
  position: absolute;
  top: -32px;
  right: 0;
  border: none;
  cursor: pointer;
  background: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
}

/* MOBILE */

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

  .product-gallery {
    order: 1;
  }

  .product-info {
    order: 2;
  }
}
.product-stock-line {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 4px 0 8px;
}

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.product-qty-row input {
  width: 80px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}
/* Quitar estilos por defecto de links en productos */

.product-card a,
.product-card a:visited,
.product-card a:hover,
.product-card a:active {
  color: var(--text-main);   /* usa el color principal de la marca */
  text-decoration: none;     /* sin subrayado */
}
.product-card a:hover {
  color: var(--accent);     /* resalta con el color de acento al pasar el mouse */
}
/* === HOVER ELEGANTE PRODUCTOS === */

.product-image-wrapper {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.product-image {
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* overlay sutil */
.product-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* efecto hover */
.product-card:hover .product-image {
  transform: scale(1.08);
  filter: brightness(0.95);
}

.product-card:hover .product-image-wrapper::after {
  opacity: 1;
}
/* ======================================================
   RESPONSIVE COMPLETO – MOBILE FIRST (NO ROMPE DESKTOP)
   Pegar TODO este bloque al FINAL de style.css
====================================================== */

/* ===================== TABLETS & MOBILE ===================== */
@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  /* ---------- HEADER ---------- */
  .main-header {
    padding: 10px 4vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .main-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .main-nav a {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.9rem;
    padding: 6px 8px;
  }

  /* ---------- HERO / SLIDER ---------- */
  .hero-slide-image,
  .slider-container {
    height: 280px;
  }

  .slide-content,
  .hero-slide-content {
    margin-left: 4vw;
    margin-right: 4vw;
    max-width: 90%;
    padding: 16px 18px;
  }

  /* ---------- FEATURED ---------- */
  .featured {
    padding: 24px 4vw 32px;
  }

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

  /* ---------- COLECCIÓN ---------- */
  .collection-page {
    padding: 20px 4vw 40px;
  }

  .filters-row {
    flex-direction: column;
    gap: 10px;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group select,
  .filter-group input {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    padding: 10px;
  }

  .product-card .btn-primary {
    width: 100%;
    text-align: center;
  }

  /* ---------- PRODUCTO INDIVIDUAL ---------- */
  .product-page {
    padding: 20px 4vw 40px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-gallery {
    order: 1;
  }

  .product-info {
    order: 2;
    gap: 8px;
  }

  .product-title {
    font-size: 1.4rem;
  }

  .product-price-large {
    font-size: 1.3rem;
  }

  .product-thumbs {
    justify-content: flex-start;
  }

  /* ---------- CARRITO ---------- */
  .cart-page {
    padding: 20px 4vw 40px;
  }

  .cart-container {
    padding: 12px 10px;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 8px;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cart-summary {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .cart-summary .btn-primary,
  .cart-summary .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* ---------- ADMIN ---------- */
  .admin-page {
    padding: 20px 4vw 40px;
  }

  .admin-table-wrapper {
    max-height: 55vh;
  }

  .admin-table th,
  .admin-table td {
    padding: 4px 6px;
  }

  .admin-output {
    font-size: 0.75rem;
  }
}

/* ===================== MOBILE SMALL ===================== */
@media (max-width: 480px) {

  .products-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .product-thumb {
    width: 60px;
    height: 60px;
  }
}

/* ===================== LINKS & HOVER FIX ===================== */

/* Quitar azul/morado/subrayado en nombres */
.product-card a,
.product-card a:visited,
.product-card a:hover,
.product-card a:active {
  color: var(--text-main);
  text-decoration: none;
}

/* Hover elegante productos */
.product-image-wrapper {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.product-image {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.product-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.08);
  filter: brightness(0.95);
}

.product-card:hover .product-image-wrapper::after {
  opacity: 1;
}

/* Hover nombre coherente */
.product-card:hover .product-name a {
  color: var(--accent);
}

/* ===================== ZOOM FIX ===================== */

.zoom-inner img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: zoom-out;
}

/* Quitar mini zoom cortado */
.product-main-image {
  transform: none !important;
}
/* Imagen en colecciones destacadas */

.featured-card-image-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
  background: #f5f5f5;
}

.featured-card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* Hover suave también en estas tarjetas */
.featured-card:hover .featured-card-image {
  transform: scale(1.05);
  filter: brightness(0.97);
}

/* Links del título sin azul/morado */
.featured-card h3 a,
.featured-card h3 a:visited,
.featured-card h3 a:hover,
.featured-card h3 a:active {
  color: var(--text-main);
  text-decoration: none;
  font-family: 'Kenao', serif; /* cambia por tu fuente si quieres */
}

/* Color dorado al pasar el mouse sobre el título */
.featured-card h3 a:hover {
  color: var(--accent);
}
