/* =============================================
   TIENDA ONLINE — Stylesheet
   Paleta : Crema #FAF6F1 + Rosa palo #D4A5A5
   Fuentes: Playfair Display + DM Sans
   ============================================= */

/* ── VARIABLES ── */
:root {
  --cream:       #FAF6F1;
  --cream-alt:   #F0E8DF;
  --rose:        #D4A5A5;
  --rose-dark:   #B8908F;
  --rose-light:  #EDD8D8;
  --text:        #2C2C2C;
  --text-mid:    #5A5A5A;
  --text-light:  #9A9A9A;
  --white:       #FFFFFF;
  --border:      #E8E0D8;
  --green:       #7DC4A0;

  --shadow-xs: 0 1px 4px rgba(44,44,44,.06);
  --shadow-sm: 0 2px 10px rgba(44,44,44,.09);
  --shadow-md: 0 8px 28px rgba(44,44,44,.13);
  --shadow-lg: 0 18px 48px rgba(44,44,44,.16);

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;

  --ease: cubic-bezier(.4,0,.2,1);
  --t:    .25s;

  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  --header-h:  68px;
  --max-w:     1180px;
  --gap:       clamp(16px, 4vw, 32px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--font-b);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-b); }

/* ── LAYOUT ── */
.container {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(250,246,241,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-h);
  font-size: 1.45rem; font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}

.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a {
  font-size: .875rem; font-weight: 500; color: var(--text-mid);
  transition: color var(--t) var(--ease);
  position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--rose); border-radius: 1px;
  transition: width var(--t) var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

.btn-wa-header {
  display: flex; align-items: center; gap: 6px;
  background: var(--rose); color: var(--white);
  padding: 8px 18px; border-radius: 100px;
  font-size: .82rem; font-weight: 600;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn-wa-header:hover { background: var(--rose-dark); transform: translateY(-1px); }
.btn-wa-header svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── HERO ── */
.hero {
  position: relative;
  height: clamp(480px, 83vh, 800px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?w=1600&q=80');
  background-size: cover; background-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    rgba(34,20,20,.75) 0%,
    rgba(34,20,20,.35) 55%,
    rgba(180,120,120,.08) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 560px;
  animation: fadeUp .8s var(--ease) both;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,165,165,.22);
  border: 1px solid rgba(212,165,165,.45);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .75rem; font-weight: 600;
  color: #F0CCCC;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-h);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700; line-height: 1.15;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.hero-title em { font-style: italic; color: #F0CCCC; }
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.78);
  font-weight: 300;
  max-width: 400px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rose); color: var(--white);
  padding: 13px 26px; border-radius: 100px;
  font-weight: 600; font-size: .92rem;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  box-shadow: 0 4px 18px rgba(212,165,165,.45);
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,165,165,.5); }
.btn-primary svg { width: 15px; height: 15px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  padding: 13px 26px; border-radius: 100px;
  font-weight: 500; font-size: .92rem;
  border: 1.5px solid rgba(255,255,255,.48);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); }
.btn-ghost svg { width: 15px; height: 15px; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: rgba(255,255,255,.45);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  animation: bounce 2.2s infinite;
}
.scroll-hint svg { width: 18px; height: 18px; }

/* ── COLLECTION ── */
.collection-section { padding: 52px 0 0; }

.section-header {
  display: flex; align-items: baseline;
  justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-title {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -.02em;
}
.section-count { font-size: .82rem; color: var(--text-light); }

/* Category pills */
.cats-row {
  display: flex; gap: 9px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cats-row::-webkit-scrollbar { display: none; }

.cat-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-mid);
  font-size: .85rem; font-weight: 500;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.cat-btn:hover { border-color: var(--rose); color: var(--rose-dark); }
.cat-btn.active {
  background: var(--rose); border-color: var(--rose);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(212,165,165,.4);
}
.cat-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream-alt); color: var(--text-light);
  font-size: .7rem; font-weight: 700;
  border-radius: 100px; min-width: 20px; height: 20px; padding: 0 5px;
  transition: background var(--t), color var(--t);
}
.cat-btn.active .cat-count { background: rgba(255,255,255,.25); color: var(--white); }

/* ── PRODUCTS GRID ── */
.products-section { padding: 28px 0 88px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-alt);
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.product-card:hover .card-img-wrap img { transform: scale(1.07); }

.card-badge {
  position: absolute; top: 11px; left: 11px;
  background: var(--rose); color: var(--white);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.card-badge.badge-usa     { background: #2C2C2C; }
.card-badge.badge-popular { background: #C17A5A; }

/* Hover overlay "Ver producto" */
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(34,20,20,0);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t) var(--ease);
}
.product-card:hover .card-overlay { background: rgba(34,20,20,.28); }
.card-overlay-label {
  background: var(--white); color: var(--text);
  border-radius: 100px; padding: 9px 20px;
  font-size: .82rem; font-weight: 600;
  opacity: 0; transform: translateY(10px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  box-shadow: var(--shadow-md);
  pointer-events: none;
}
.product-card:hover .card-overlay-label { opacity: 1; transform: translateY(0); }

.card-body { padding: 15px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  font-size: .72rem; font-weight: 700;
  color: var(--rose-dark); letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 5px;
}
.card-name {
  font-family: var(--font-h);
  font-size: 1rem; font-weight: 600; line-height: 1.35;
  color: var(--text); flex: 1; margin-bottom: 12px;
}
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.card-price span { font-size: .82rem; font-weight: 400; color: var(--text-light); margin-right: 1px; }

.card-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cream); color: var(--rose-dark);
  border: 1.5px solid var(--border);
  transition: background var(--t), border-color var(--t), color var(--t);
  flex-shrink: 0;
}
.product-card:hover .card-arrow { background: var(--rose); border-color: var(--rose); color: var(--white); }
.card-arrow svg { width: 14px; height: 14px; }

/* Empty / error */
.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 80px 20px; color: var(--text-light);
}
.empty-state p { font-size: .96rem; margin-top: 6px; }

/* ── SKELETON LOADING ── */
.skeleton-card { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-xs); }
.skeleton {
  background: linear-gradient(90deg, var(--cream-alt) 25%, #E6DDD5 50%, var(--cream-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
.sk-img  { aspect-ratio: 4/3; border-radius: 0; }
.sk-body { padding: 15px 17px 18px; display: flex; flex-direction: column; gap: 9px; }
.sk-line { height: 13px; }
.sk-line.sm { width: 45%; }
.sk-line.md { width: 80%; }
.sk-line.lg { height: 17px; width: 65%; }

/* ── FOOTER ── */
.site-footer { background: #281A1A; color: rgba(255,255,255,.68); padding: 60px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 52px; margin-bottom: 40px;
}
.footer-logo { font-family: var(--font-h); font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); display: block; margin-bottom: 14px; }
.footer-desc { font-size: .86rem; line-height: 1.75; max-width: 270px; }
.footer-col h4 { font-family: var(--font-h); font-size: .92rem; color: var(--white); font-weight: 600; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .86rem; transition: color var(--t); }
.footer-col a:hover { color: var(--rose-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-copy { font-size: .8rem; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: background var(--t);
}
.social-links a:hover { background: var(--rose); }
.social-links svg { width: 15px; height: 15px; }

/* ── PRODUCT DETAIL PAGE ── */
.breadcrumb {
  padding: 22px 0;
  display: flex; align-items: center; gap: 7px;
  font-size: .82rem; color: var(--text-light);
}
.breadcrumb a { color: var(--text-mid); transition: color var(--t); }
.breadcrumb a:hover { color: var(--rose-dark); }
.breadcrumb .sep { color: var(--border); }

.product-detail { padding: 0 0 88px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 7vw, 80px);
  align-items: start;
}

.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-alt);
  box-shadow: var(--shadow-md);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-info {}
.detail-category {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  color: var(--rose-dark); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 10px;
}
.detail-title {
  font-family: var(--font-h);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
  margin-bottom: 16px;
}
.detail-price {
  display: flex; align-items: baseline; gap: 5px;
  margin-bottom: 26px;
}
.price-cur  { font-size: 1.1rem; font-weight: 400; color: var(--text-mid); }
.price-main { font-family: var(--font-h); font-size: 2.4rem; font-weight: 700; line-height: 1; }

.divider { height: 1px; background: var(--border); margin: 24px 0; }

.detail-desc { font-size: .95rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 24px; }

.specs-heading {
  font-size: .73rem; font-weight: 700;
  color: var(--text); letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 12px;
}
.specs-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 30px; }
.specs-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: var(--text-mid);
}
.specs-list li::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rose); flex-shrink: 0;
}

.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: #25D366; color: var(--white);
  border-radius: 100px; padding: 15px 28px;
  font-size: .98rem; font-weight: 700;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  margin-bottom: 12px;
}
.btn-whatsapp:hover { background: #1EB655; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.4); }
.btn-whatsapp svg { width: 22px; height: 22px; flex-shrink: 0; }

.btn-back {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; background: var(--cream); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 100px;
  padding: 13px 28px; font-size: .9rem; font-weight: 500;
  transition: border-color var(--t), background var(--t);
}
.btn-back:hover { border-color: var(--rose); background: var(--rose-light); }

.availability {
  display: flex; align-items: center; gap: 8px;
  margin-top: 20px; font-size: .82rem; color: var(--text-light);
}
.avail-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* Related products section */
.related-section { background: var(--cream-alt); padding: 52px 0 80px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .gallery-main { aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-ghost { justify-content: center; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-name { font-size: .9rem; }
  .card-price { font-size: 1rem; }
}
/* On touch devices show overlay label always */
@media (hover: none) {
  .card-overlay-label { opacity: 1; transform: none; }
  .card-overlay { background: rgba(34,20,20,.18); }
}
