/* ============================================================
   Purr Cosas — main.css
   Diseño: minimalista, blanco/negro, tipografía bold
   Inspirado en purrcosas.com
   ============================================================ */

:root {
  --black:   #111111;
  --white:   #ffffff;
  --gray-50: #fafafa;
  --gray-100:#f4f4f4;
  --gray-200:#e8e8e8;
  --gray-400:#9ca3af;
  --gray-600:#4b5563;
  --footer-bg: #1a1a1a;
  --footer-text: rgba(255,255,255,.75);
  --accent:  #111111;
  --text:    #111111;
  --text-muted: #555555;
  --border:  #e0e0e0;
  --radius:  2px;
  --shadow:  0 1px 4px rgba(0,0,0,.08);
  --font:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--white); color: var(--text); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Tipografía ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--black); }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.5vw, 40px); }
h3 { font-size: 20px; }
p  { line-height: 1.7; color: var(--text-muted); }

/* ── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border: 2px solid var(--black);
  font-family: var(--font); font-size: 14px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: all .18s; text-decoration: none;
  border-radius: var(--radius); white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-primary:hover { background: #333; border-color: #333; color: var(--white); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }
.btn-danger { background: #dc2626; color: var(--white); border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 9px 18px; font-size: 12px; }
.btn-lg { padding: 18px 36px; font-size: 15px; }
.btn-block, .btn-full { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-link { background: none; border: none; padding: 0; font-size: inherit; cursor: pointer; text-decoration: underline; color: var(--text); font-weight: 600; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; color: var(--black); }
.form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 15px; font-family: var(--font);
  color: var(--text); background: var(--white); transition: border .15s;
}
.form-control:focus { border-color: var(--black); outline: none; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.input-group { display: flex; gap: 0; }
.input-group .form-control { border-right: none; border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: #dc2626; margin-top: 5px; font-weight: 600; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.checkbox-label input { margin-top: 3px; flex-shrink: 0; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; margin-bottom: 16px; border-left: 4px solid; }
.alert-success { background: #f0fdf4; border-color: #16a34a; color: #15803d; }
.alert-error, .alert-danger { background: #fef2f2; border-color: #dc2626; color: #b91c1c; }
.alert-warning { background: #fffbeb; border-color: #d97706; color: #92400e; }
.alert-info { background: #f0f9ff; border-color: #0284c7; color: #0369a1; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200; height: 64px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.site-logo {
  font-size: 17px; font-weight: 800; letter-spacing: -.02em;
  color: var(--black); text-decoration: none; white-space: nowrap;
}
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a { font-size: 14px; font-weight: 600; color: var(--text-muted); letter-spacing: .01em; transition: color .15s; }
.site-nav a:hover, .site-nav a.active { color: var(--black); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions a { font-size: 14px; font-weight: 600; color: var(--text-muted); transition: color .15s; }
.header-actions a:hover { color: var(--black); text-decoration: none; }
.cart-icon { position: relative; display: flex; align-items: center; gap: 6px; }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--black); color: var(--white);
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.nav-subscribe { background: var(--black); color: var(--white) !important; padding: 9px 18px; font-size: 13px !important; font-weight: 700 !important; }
.nav-subscribe:hover { background: #333 !important; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 80px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.hero-title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 24px; }
.hero-text { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Historia / About ─────────────────────────────────────── */
.about-section { padding: 80px 0; background: var(--white); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-images img { aspect-ratio: 1; object-fit: cover; }
.about-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.about-text { font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.stats-col { display: flex; flex-direction: column; gap: 32px; }
.stat-item { border-top: 2px solid var(--black); padding-top: 16px; }
.stat-number { font-size: 48px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat-label { font-size: 14px; font-weight: 700; color: var(--black); margin: 4px 0; }
.stat-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Productos ────────────────────────────────────────────── */
.products-section { padding: 80px 0; background: var(--gray-50); }
.products-section-title { font-size: clamp(24px, 3vw, 36px); margin-bottom: 8px; }
.products-section-sub { color: var(--text-muted); margin-bottom: 40px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border: 1px solid var(--border); transition: box-shadow .18s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.product-card-image { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--gray-100); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-badge { position: absolute; top: 12px; left: 12px; background: var(--black); color: var(--white); font-size: 11px; font-weight: 700; padding: 4px 8px; letter-spacing: .04em; }
.product-card-body { padding: 16px; }
.product-card-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--black); }
.product-card-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 18px; font-weight: 800; }
.product-price-old { font-size: 14px; color: var(--gray-400); text-decoration: line-through; margin-right: 6px; }
.product-card-footer .btn { padding: 8px 16px; font-size: 12px; }

/* ── Reseñas ──────────────────────────────────────────────── */
.reviews-section { padding: 80px 0; }
.reviews-title { text-align: center; font-size: clamp(24px, 3vw, 36px); margin-bottom: 8px; }
.reviews-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { border: 1px solid var(--border); padding: 20px; }
.review-stars { color: #f59e0b; font-size: 14px; margin-bottom: 8px; letter-spacing: 2px; }
.review-author { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.review-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.review-image { aspect-ratio: 4/3; overflow: hidden; }
.review-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Features / Beneficios ────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; }
.feature-item { text-align: center; }
.feature-icon { font-size: 36px; margin-bottom: 12px; }
.feature-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-desc { font-size: 14px; color: var(--text-muted); }

/* ── Newsletter banner ────────────────────────────────────── */
.newsletter-banner { background: var(--black); color: var(--white); padding: 60px 0; text-align: center; }
.newsletter-banner h2 { color: var(--white); margin-bottom: 8px; }
.newsletter-banner p { color: rgba(255,255,255,.7); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 0; max-width: 460px; margin: 0 auto; }
.newsletter-form .form-control { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: var(--white); border-radius: var(--radius) 0 0 var(--radius); }
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form .btn { border-radius: 0 var(--radius) var(--radius) 0; background: var(--white); color: var(--black); border-color: var(--white); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { font-size: 16px; font-weight: 800; color: var(--white); margin-bottom: 12px; letter-spacing: -.01em; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 16px; }
.footer-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-contact { font-size: 13px; color: rgba(255,255,255,.55); line-height: 2; margin-top: 4px; }
.footer-contact a { color: rgba(255,255,255,.55); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--white); }

/* ── Cart Sidebar ─────────────────────────────────────────── */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; }
.cart-overlay.open { display: block; }
.cart-sidebar {
  position: fixed; top: 0; right: -440px; width: 420px; height: 100vh;
  background: var(--white); z-index: 301; display: flex; flex-direction: column;
  transition: right .28s ease; box-shadow: -4px 0 24px rgba(0,0,0,.15);
}
.cart-sidebar.open { right: 0; }
.cart-sidebar-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-sidebar-header h3 { font-size: 16px; font-weight: 700; }
.cart-sidebar-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-sidebar-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); align-items: center; }
.cart-item-img { width: 60px; height: 60px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; }
.cart-item-variant { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-size: 14px; font-weight: 700; }
.cart-qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-qty-btn { width: 26px; height: 26px; border: 1px solid var(--border); background: var(--white); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--black); text-decoration: none; }
.breadcrumb-sep { color: var(--gray-400); }

/* ── Product detail ───────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px 0 80px; align-items: start; }
.product-gallery-main { aspect-ratio: 1; overflow: hidden; border: 1px solid var(--border); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.product-gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border: 2px solid transparent; cursor: pointer; }
.product-gallery-thumbs img.active, .product-gallery-thumbs img:hover { border-color: var(--black); }
.product-title { font-size: clamp(24px, 3vw, 36px); margin-bottom: 12px; }
.product-price-display { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.product-price-display .old { font-size: 18px; color: var(--gray-400); text-decoration: line-through; margin-right: 8px; }
.product-price-display .sale { color: #dc2626; }
.product-description { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.product-variants { margin-bottom: 20px; }
.product-variants-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-btn { padding: 8px 16px; border: 2px solid var(--border); background: var(--white); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; border-radius: var(--radius); }
.variant-btn.active, .variant-btn:hover { border-color: var(--black); background: var(--black); color: var(--white); }
.variant-btn.out-of-stock { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.product-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-input { width: 64px; text-align: center; padding: 10px; border: 1.5px solid var(--border); font-size: 16px; font-weight: 700; }
.product-add-to-cart { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.product-meta { font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; }
.product-meta span { margin-right: 16px; }

/* ── Checkout ─────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 40px; padding: 40px 0 80px; align-items: start; }
.checkout-section { margin-bottom: 32px; }
.checkout-section-title { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--black); }
.order-summary { background: var(--gray-50); border: 1px solid var(--border); padding: 24px; position: sticky; top: 80px; }
.order-summary-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px; }
.order-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-total-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.order-total-row.grand { font-size: 18px; font-weight: 800; border-top: 2px solid var(--black); margin-top: 8px; padding-top: 16px; }

/* ── Account ──────────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 40px 0 80px; }
.account-sidebar .card { padding: 0; overflow: hidden; }
.account-nav a { display: block; padding: 13px 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); transition: all .15s; }
.account-nav a:hover { color: var(--black); background: var(--gray-50); text-decoration: none; }
.account-nav a.active { color: var(--black); background: var(--black); color: var(--white); }
.account-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.account-card { border: 1px solid var(--border); padding: 24px; margin-bottom: 16px; }

/* ── Auth pages ───────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--gray-50); }
.auth-card { background: var(--white); border: 1px solid var(--border); padding: 40px; width: 100%; max-width: 420px; }
.auth-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

/* ── Cookie banner ────────────────────────────────────────── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--black); color: var(--white); padding: 16px 24px; z-index: 500; display: none; }
.cookie-banner.visible { display: block; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-text { font-size: 13px; color: rgba(255,255,255,.8); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; gap: 4px; justify-content: center; padding: 32px 0; }
.pagination a, .pagination span { padding: 9px 14px; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text-muted); transition: all .15s; }
.pagination a:hover { background: var(--black); color: var(--white); border-color: var(--black); text-decoration: none; }
.pagination .current { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── Status badges ────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 2px; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-gray { background: var(--gray-200); color: var(--gray-600); }
.status-badge { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-radius: 2px; }

/* ── Responsive ───────────────────────────────────────────── */
@media(max-width: 900px) {
  .hero-inner, .about-inner, .product-detail, .checkout-layout { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .account-layout { grid-template-columns: 1fr; }
}
@media(max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .form-control, .newsletter-form .btn { border-radius: var(--radius); }
}
