/* ========== Protección Solar - Category Page ========== */

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: 14px; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--color-executive-navy); opacity: 0.6; text-decoration: none; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb-sep { width: 14px; height: 14px; opacity: 0.4; }
.breadcrumb span { color: var(--color-executive-navy); font-weight: 600; }

/* Category Hero */
.cat-hero {
  position: relative;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 253, 246, 0.2) 0%,
    rgba(255, 253, 246, 0.35) 50%,
    rgba(255, 253, 246, 0.5) 100%
  ), url('/images/proteccionsolar.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 85px 0;
  text-align: center;
  overflow: hidden;
}
.cat-hero::before {
  display: none;
}
.cat-hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-executive-navy);
  box-shadow: 0 2px 10px rgba(17, 26, 53, 0.05);
}
.cat-hero h1 {
  font-family: var(--font-headings);
  font-size: 3.2rem;
  color: var(--color-executive-navy);
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(255, 253, 246, 0.95);
}
.cat-hero h1 strong {
  color: #E67E22;
  text-shadow: 0 2px 12px rgba(255, 253, 246, 0.95);
}
.cat-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--color-ink-charcoal);
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(255, 253, 246, 0.95);
}

/* ========== Filters + Search Panel ========== */
.filters-section { padding: 24px 0 8px; }

.filters-section > .container {
  background: linear-gradient(135deg, rgba(255,255,255,0.82) 0%, rgba(255,253,246,0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(17,26,53,0.06);
  border-radius: 24px;
  padding: 22px 28px 18px;
  box-shadow: 0 4px 24px rgba(17,26,53,0.035);
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filters-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-family: var(--font-headings);
  color: var(--color-executive-navy);
  font-size: 14px;
  white-space: nowrap;
  opacity: 0.7;
}
.filters-label svg { width: 16px; height: 16px; }
.filter-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 18px;
  border-radius: 30px;
  border: 1.5px solid rgba(17,26,53,0.13);
  background: rgba(255,255,255,0.6);
  color: var(--color-executive-navy);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-btn:hover {
  background: var(--color-blush-pink);
  border-color: var(--color-blush-pink);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(255,183,178,0.3);
}
.filter-btn.active {
  background: var(--color-executive-navy);
  border-color: var(--color-executive-navy);
  color: #fff;
  box-shadow: 0 3px 12px rgba(17,26,53,0.2);
  transform: translateY(-1px);
}

/* Search Bar */
.cat-search-bar {
  margin-top: 14px;
  position: relative;
}
.cat-search-bar input {
  width: 100%;
  padding: 11px 44px 11px 42px;
  border: 1.5px solid rgba(17,26,53,0.08);
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #111A35;
  background: rgba(255,255,255,0.7);
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.cat-search-bar input:focus {
  border-color: var(--color-blush-pink);
  box-shadow: 0 0 0 3px rgba(255,183,178,0.15);
  background: #fff;
}
.cat-search-bar input::placeholder { color: rgba(17,26,53,0.35); font-weight: 400; }
.cat-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: rgba(17,26,53,0.3); pointer-events: none; }
.cat-search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: rgba(17,26,53,0.06); border: none; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; display: none; align-items: center; justify-content: center; transition: all 0.2s; padding: 0; }
.cat-search-clear:hover { background: rgba(17,26,53,0.12); }
.cat-search-clear svg { width: 13px; height: 13px; color: #111A35; }
.cat-search-clear.visible { display: flex; }

/* Results Count */
.results-count {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(17,26,53,0.4);
  padding-left: 4px;
  font-weight: 500;
}
.results-count strong { color: var(--color-executive-navy); }

/* No Results */
.cat-no-results { text-align: center; padding: 48px 20px; color: rgba(17,26,53,0.4); font-size: 15px; display: none; grid-column: 1 / -1; }
.cat-no-results.visible { display: block; }
.cat-no-results svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.25; display: block; margin-left: auto; margin-right: auto; }

/* Products Grid */
.spf-products { padding: 20px 0 60px; }
.spf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.spf-card {
  background: #fff;
  border-radius: var(--border-radius-ui);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.spf-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.spf-card.hidden { display: none; }
.spf-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.spf-img-wrap {
  position: relative;
  background: #fafafa;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.spf-img-wrap img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.spf-card:hover .spf-img-wrap img { transform: scale(1.08); }
.spf-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-headings);
  z-index: 2;
}
.badge-best { background: var(--color-mochi-yellow); color: var(--color-executive-navy); }
.badge-mochi { background: #E8F5E9; color: #2E7D32; }
.badge-new { background: var(--color-blush-pink); color: var(--color-executive-navy); }

.spf-info { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.spf-brand {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-executive-navy);
  opacity: 0.5;
  font-weight: 600;
  margin-bottom: 4px;
}
.spf-name {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-executive-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.spf-short {
  font-size: 14px;
  color: var(--color-ink-charcoal);
  line-height: 1.5;
  margin-bottom: 12px;
  opacity: 0.8;
}
.spf-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.skin-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--color-glow-cream);
  color: var(--color-executive-navy);
  border: 1px solid rgba(17,26,53,0.1);
}
.spf-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--color-ink-charcoal);
  opacity: 0.6;
}
.spf-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.spf-price {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-executive-navy);
}
.spf-cta-inline {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-executive-navy);
  opacity: 0.7;
  transition: opacity 0.3s;
}
.spf-card:hover .spf-cta-inline { opacity: 1; color: #E67E22; }

/* SPF Guide */
.spf-guide {
  padding: 60px 0;
  background: var(--color-glow-cream);
}
.spf-guide h2 {
  font-family: var(--font-headings);
  text-align: center;
  color: var(--color-executive-navy);
  margin-bottom: 36px;
  font-size: 1.8rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.guide-card {
  background: #fff;
  border-radius: var(--border-radius-ui);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.3s ease;
}
.guide-card:hover { transform: translateY(-4px); }
.guide-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF5E1, #FFECD2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.guide-icon svg { width: 24px; height: 24px; color: #E67E22; }
.guide-card h3 {
  font-family: var(--font-headings);
  color: var(--color-executive-navy);
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.guide-card p {
  font-size: 14px;
  color: var(--color-ink-charcoal);
  line-height: 1.5;
  margin-bottom: 12px;
}
.guide-reco {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #E67E22;
  font-family: var(--font-headings);
}

/* Product Detail Page */
.product-detail { padding: 40px 0 60px; }
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.pd-gallery {
  background: #fff;
  border-radius: var(--border-radius-ui);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: var(--shadow-soft);
  min-height: 450px;
}
.pd-gallery-main {
  width: 100%;
  max-width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
.pd-gallery-main img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pd-gallery-thumbnails {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 10px;
}
.pd-thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 2px solid #e8e6e1;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.pd-thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.pd-thumb-btn:hover {
  border-color: rgba(17, 26, 53, 0.3);
  transform: translateY(-2px);
}
.pd-thumb-btn:hover img {
  transform: scale(1.05);
}
.pd-thumb-btn.active {
  border-color: var(--color-executive-navy);
  box-shadow: 0 0 0 2px rgba(17, 26, 53, 0.1);
  transform: scale(1.05);
  background: var(--color-glow-cream);
}

/* Stock Indicators */
.pd-stock-indicator {
  margin-bottom: 8px;
}
.pd-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-headings);
}
.pd-stock-available {
  background-color: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}
.pd-stock-available svg {
  color: #059669;
}
.pd-stock-low {
  background-color: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
  animation: pulse-border 2s infinite;
}
.pd-stock-low svg {
  color: #D97706;
}
.pd-stock-out {
  background-color: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}
.pd-stock-out svg {
  color: #DC2626;
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.2);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(217, 119, 6, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
  }
}
.pd-info { display: flex; flex-direction: column; gap: 16px; }
.pd-brand {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-executive-navy);
  opacity: 0.5;
  font-weight: 600;
}
.pd-title {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  color: var(--color-executive-navy);
  line-height: 1.2;
}
.pd-rating { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pd-stars { color: #F59E0B; }
.pd-price-block { display: flex; align-items: baseline; gap: 12px; }
.pd-price {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-executive-navy);
}
.pd-skin-types { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-skin-tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--color-glow-cream);
  color: var(--color-executive-navy);
  border: 1px solid rgba(17,26,53,0.1);
}
.pd-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink-charcoal);
}
.pd-benefits { padding: 0; list-style: none; }
.pd-benefits li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.pd-benefits li svg { width: 18px; height: 18px; color: #22C55E; flex-shrink: 0; }
.pd-actions { display: flex; gap: 12px; margin-top: 8px; }
.pd-actions .btn { flex: 1; text-align: center; padding: 14px 24px; font-size: 16px; }
.pd-specs {
  background: #fff;
  border-radius: var(--border-radius-ui);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  margin-top: 40px;
}
.pd-specs h3 {
  font-family: var(--font-headings);
  color: var(--color-executive-navy);
  margin-bottom: 16px;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 14px;
}
.spec-label { color: var(--color-ink-charcoal); opacity: 0.6; }
.spec-value { font-weight: 600; color: var(--color-executive-navy); }

@media (max-width: 1024px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .spf-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .cat-hero { padding: 50px 0; }
  .cat-hero h1 { font-size: 2.2rem; }
  .spf-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .guide-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .pd-actions { flex-direction: column; }
}

/* Out of Stock */
.spf-out-of-stock { opacity: 0.7; position: relative; }
.spf-out-of-stock .spf-img-wrap::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.3); z-index: 1; }
.badge-oos { background: #EF4444 !important; color: #fff !important; }
.spf-oos-text { color: #EF4444 !important; font-weight: 700 !important; opacity: 1 !important; }
.pd-oos-btn { background: #9CA3AF !important; cursor: not-allowed !important; opacity: 0.7; }
.pd-oos-btn:hover { background: #9CA3AF !important; transform: none !important; }
.pd-oos-notice { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 12px; padding: 12px 20px; color: #DC2626; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pd-oos-notice svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Brand Modal */
.brand-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(4px); }
.brand-modal-overlay.active { opacity: 1; }
.brand-modal { background: #fff; border-radius: 20px; width: 90%; max-width: 500px; max-height: 80vh; overflow: hidden; transform: translateY(20px) scale(0.95); transition: transform 0.3s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.brand-modal-overlay.active .brand-modal { transform: translateY(0) scale(1); }
.brand-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.brand-modal-header h3 { font-family: var(--font-headings); font-size: 1.1rem; color: var(--color-executive-navy); margin: 0; }
.brand-modal-close { border: none; background: none; cursor: pointer; padding: 6px; border-radius: 8px; transition: background 0.2s; }
.brand-modal-close:hover { background: rgba(0,0,0,0.05); }
.brand-modal-close svg { width: 20px; height: 20px; }
.brand-modal-body { padding: 16px; overflow-y: auto; max-height: 60vh; }
.brand-modal-product { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 14px; text-decoration: none; color: inherit; transition: background 0.2s; }
.brand-modal-product:hover { background: var(--color-glow-cream); }
.bmp-img { width: 70px; height: 70px; border-radius: 12px; background: #f8f8f8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.bmp-img img { width: 60px; height: 60px; object-fit: contain; }
.bmp-info { flex: 1; }
.bmp-name { font-family: var(--font-headings); font-size: 14px; font-weight: 600; color: var(--color-executive-navy); margin: 0 0 4px; line-height: 1.3; }
.bmp-price { font-family: var(--font-headings); font-weight: 700; color: var(--color-executive-navy); font-size: 15px; }
.bmp-oos-tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 10px; background: #FEE2E2; color: #DC2626; font-size: 11px; font-weight: 700; }
.bmp-oos { opacity: 0.6; }
