:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --text: #111111;
  --text-soft: #666666;
  --line: #eaeaea;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --max: 1280px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  width: 100%;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
.hidden {
  display: none !important;
}
.top-strip {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 8px;
}
.main-nav {
  display: flex;
  gap: 26px;
}
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.search-bar {
  max-width: var(--max);
  margin: 0 auto 18px;
  padding: 0 22px;
}
.search-bar input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero-home {
  background-image: url("https://content.api.news/v3/images/bin/bd7fe67eb2a150a4eeb0efbef4048d73");
  background-size: cover;
  background-position: center;
  height: 100vh;
}
.hero-content {
  max-width: var(--max);
  width: 100%;
  margin: auto;
  padding: 40px 22px;
  color: #fff;
}
.hero-badge,
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-content h1 {
  max-width: 720px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero-content p {
  max-width: 650px;
  font-size: 1.06rem;
  line-height: 1.7;
  margin-bottom: 26px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-dark {
  background: #111;
  color: #fff;
}
.btn-light {
  background: #fff;
  color: #111;
  border-color: #ddd;
}
.btn-full {
  width: 100%;
}
.section {
  max-width: var(--max);
  margin: auto;
  padding: 80px 22px;
}
.section-light {
  background: var(--bg-soft);
  border-radius: 36px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}
.section-text {
  max-width: 520px;
  color: var(--text-soft);
  line-height: 1.7;
}
.category-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
}
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 320px;
  box-shadow: var(--shadow);
}
.category-card.tall {
  grid-row: span 2;
  min-height: 660px;
}
.category-card img {
  height: 100%;
  object-fit: cover;
}
.category-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
}
.category-overlay h3 {
  margin-top: 8px;
  font-size: 2rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
}
.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5; /* PROPORCIÓN ZARA */
  overflow: hidden;
  border-radius: 26px 26px 0 0;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}
.product-content {
  padding: 18px;
}
.product-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-meta {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.product-price {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 14px 0;
}
.product-desc {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  min-height: 44px;
}
.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}
.icon-square {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 22px;
  max-width: var(--max);
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  letter-spacing: 6px;
}
.footer-brand p {
  max-width: 420px;
  color: var(--text-soft);
  line-height: 1.7;
}
.footer-links {
  display: grid;
  gap: 10px;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 3000;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.drawer-close {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 22px;
}
.drawer-footer {
  border-top: 1px solid var(--line);
  padding: 20px 22px;
}
.drawer-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-item img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}
.drawer-item h4 {
  font-size: 0.96rem;
  margin-bottom: 6px;
}
.drawer-item p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.drawer-item button {
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.category-hero {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.category-hero-inner {
  max-width: var(--max);
  margin: auto;
  padding: 70px 22px 50px;
}
.category-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: 12px;
}
.category-hero-inner p {
  color: var(--text-soft);
  font-size: 1rem;
}
.filters-bar {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filters-bar input,
.filters-bar select {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  min-width: 220px;
}
.simple-header {
  max-width: var(--max);
  margin: auto;
  padding: 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back-link {
  color: var(--text-soft);
  font-weight: 600;
}
.checkout-body {
  background: #fafafa;
}
.checkout-layout,
.pay-layout {
  max-width: var(--max);
  margin: auto;
  padding: 20px 22px 70px;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 24px;
}
.checkout-card,
.pay-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.checkout-card h1,
.pay-card h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.checkout-card p,
.pay-card p {
  color: var(--text-soft);
  line-height: 1.7;
}
.checkout-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checkout-form input,
.checkout-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.checkout-summary,
.pay-summary {
  align-self: start;
  position: sticky;
  top: 110px;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary-total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}
.customer-preview {
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafafa;
}
.admin-body {
  background: #f5f5f5;
}
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: #111;
  color: #fff;
  padding: 28px 20px;
}
.admin-brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 6px;
  margin-bottom: 32px;
}
.admin-nav {
  display: grid;
  gap: 10px;
}
.admin-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}
.admin-main {
  padding: 28px;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.admin-panel-head {
  margin-bottom: 18px;
}
.admin-panel-head p {
  color: var(--text-soft);
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.admin-product-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}
.admin-product-card img {
  height: 240px;
  object-fit: cover;
}
.admin-product-content {
  padding: 16px;
}
.admin-product-content p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.admin-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.empty-state {
  color: var(--text-soft);
  padding: 20px 0;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  padding: 20px;
}
.modal-box {
  width: min(100%, 520px);
  background: #fff;
  border-radius: 28px;
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}
.modal-box h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}
.modal-text {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 18px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-message {
  margin-top: 16px;
  color: var(--text-soft);
  font-weight: 600;
}
.admin-guard-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
}
.admin-guard-card {
  width: min(100%, 560px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.admin-guard-card h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.admin-guard-card p {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}
.admin-subtitle {
  color: var(--text-soft);
  margin-top: 8px;
}
.admin-top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.admin-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-stat-card span {
  color: var(--text-soft);
  font-size: 0.95rem;
}
.admin-stat-card strong {
  font-size: 2rem;
  line-height: 1;
}
.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.admin-list-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
}
.admin-list-card p {
  color: var(--text-soft);
  margin-top: 8px;
  line-height: 1.5;
}
.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-role,
.admin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4f4f4;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}
.chat-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.chat-msg {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  max-width: 80%;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg.user {
  background: #111;
  color: #fff;
  margin-left: auto;
}
.chat-msg.admin {
  background: #f1f1f1;
  color: #111;
}
.chat-meta {
  display: block;
  font-size: 0.75rem;
  margin-top: 6px;
  opacity: 0.7;
}
.admin-chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}
.admin-chat-threads {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: #fafafa;
  max-height: 700px;
  overflow: auto;
}
.admin-chat-thread {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}
.admin-chat-thread.active {
  border-color: #111;
}
.admin-chat-thread h4 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.admin-chat-thread p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}
.admin-chat-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 700px;
}
.admin-chat-messages {
  flex: 1;
  padding: 20px;
  overflow: auto;
  background: #fcfcfc;
  border-bottom: 1px solid var(--line);
}
.admin-chat-reply {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-chat-reply textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  resize: vertical;
  min-height: 110px;
}
.review-card {
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #fff;
}
.review-card.compact {
  padding: 10px 12px;
  margin-bottom: 8px;
}
.review-stars {
  margin: 6px 0;
}
.review-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-form select,
.review-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.review-send-btn {
  min-height: 44px;
}
.reviews-list {
  margin-top: 10px;
}
.compact-reviews {
  max-height: 260px;
  overflow: auto;
}
.small-empty {
  padding: 8px 0;
  font-size: 0.92rem;
}
.store-review-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.store-review-form {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 12px;
  margin-bottom: 20px;
}
.store-review-form select,
.store-review-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .category-card.tall {
    grid-row: auto;
    min-height: 320px;
  }
  .checkout-layout,
  .pay-layout {
    grid-template-columns: 1fr;
  }
  .checkout-summary,
  .pay-summary {
    position: static;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-chat-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    flex-wrap: wrap;
    gap: 16px;
  }
  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .section {
    padding: 60px 18px;
  }
  .hero-content {
    padding: 40px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .store-review-form {
    grid-template-columns: 1fr;
  }
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.trust-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.trust-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.trust-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* Banner Cookies JAIVA */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: none;
  justify-content: center;
}

.cookie-content {
  width: 100%;
  max-width: 720px;
  background: #111;
  color: #fff;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.cookie-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #e5e5e5;
}

.cookie-buttons {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-btn {
  border: none;
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.cookie-btn.primary {
  background: #fff;
  color: #111;
}

.cookie-btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-buttons {
    justify-content: stretch;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* Panel Configurar Cookies JAIVA */
.cookie-config-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-config-box {
  width: 100%;
  max-width: 560px;
  background: #fff;
  color: #111;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.cookie-config-box h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.cookie-config-box p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 18px;
}

.cookie-option {
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.cookie-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cookie-option small {
  display: block;
  color: #666;
  line-height: 1.5;
}

.cookie-config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cookie-config-box {
    padding: 22px;
  }

  .cookie-config-actions .cookie-btn {
    width: 100%;
  }
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-detail-image {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.product-detail-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.product-detail-info h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 16px;
}

.product-detail-price {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.product-detail-description {
  color: var(--text-soft);
  line-height: 1.7;
  margin: 24px 0;
}

.product-detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

/* Productos agotados JAIVA */
.product-card.out-stock .product-image {
  filter: grayscale(100%);
  opacity: 0.55;
}

.sold-out-badge {
  position: absolute;
  top: 56px;
  left: 14px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 20;
}

.stock-text {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 600;
}

.stock-text.stock-empty {
  color: #b00020;
}

.product-actions button:disabled,
.btn:disabled {
  background: #999;
  border-color: #999;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.75;
}

.product-card.out-stock {
  position: relative;
}

.payment-message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.payment-message.success {
  background: #e9f8ef;
  color: #146c2e;
  border: 1px solid #b7e4c7;
}

.payment-message.info {
  background: #f4f4f4;
  color: #111;
  border: 1px solid var(--line);
}

.payment-message.error {
  background: #fdecec;
  color: #b00020;
  border: 1px solid #f5b5b5;
}

.home-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  margin: 40px 0;
}

.home-type-card {
  position: relative;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.home-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.home-type-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.home-type-card:hover img {
  transform: scale(1.04);
}

.home-type-overlay {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.15));
  color: #fff;
}

.home-type-overlay h2 {
  font-size: 34px;
  margin: 0 0 8px;
}

.home-type-overlay p {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
}

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

  .home-type-card {
    height: 320px;
  }

  .home-type-overlay h2 {
    font-size: 28px;
  }
}

.category-type-tabs,
.category-gender-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 28px 0;
}

.category-type-tab,
.category-gender-tab {
  padding: 13px 22px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.category-type-tab:hover,
.category-type-tab.active,
.category-gender-tab:hover,
.category-gender-tab.active {
  background: #111;
  color: #fff;
}

.footer-cookie-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--text-soft);
  cursor: pointer;
  font-size: inherit;
  text-align: left;
}

.footer-cookie-btn:hover {
  color: #111;
}

/* Admin filters & pagination */
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}
.admin-filters input,
.admin-filters select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.9rem;
  min-width: 160px;
}
.admin-filters .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}
.admin-pagination-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 4px;
}
.admin-pagination-row .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}
.pagination-info {
  color: var(--text-soft);
  font-size: 0.9rem;
}
