/*
Theme Name: Joyeria Rodriguez
Theme URI: https://github.com/CeciliaRodr/joyeria_e-commerce
Author: Joyeria Rodriguez
Description: Tema personalizado para e-commerce de joyería
Version: 1.0
*/

/* ===================== RESET Y BASE ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background-color: #fdf6f9;
  color: #333;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===================== COOKIE NOTICE ===================== */
.cookie-notice {
  background-color: #fff0f5;
  color: #555;
  text-align: center;
  padding: 7px 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #f8c8d8;
}

.cookie-notice button {
  background-color: #e75480;
  color: white;
  border: none;
  padding: 4px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
}

/* ===================== TOP BAR ===================== */
.top-bar {
  background: #e75480;
  color: white;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 6px 20px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* ===================== HEADER ===================== */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(231, 84, 128, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 65px;
}

.header-main {
  display: contents;
}

/* ── LOGO ── */
.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #c0396a;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-sub {
  font-size: 9px;
  color: #e75480;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

/* ── SEARCH ── */
.search-wrapper {
  flex: 1;
  max-width: 350px;
  display: flex;
  border: 1.5px solid #f8c8d8;
  border-radius: 25px;
  overflow: hidden;
}

.search-input {
  width: 100%;
  padding: 7px 16px;
  border: none;
  outline: none;
  font-size: 0.85rem;
  background: #fff8fb;
}

/* ── ACTIONS ── */
.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #555;
  font-size: 0.85rem;
  padding: 6px 12px;
  border: 1.5px solid #f8c8d8;
  border-radius: 20px;
  transition: all 0.2s;
}

.action-btn:hover {
  border-color: #e75480;
  color: #e75480;
}

.cart-btn {
  background: #e75480;
  color: white !important;
  border-color: #e75480;
}

.cart-btn:hover {
  background: #c0396a;
  border-color: #c0396a;
}

/* ── NAVEGACION ── */
.main-navigation {
  background: #fff8fb;
  border-top: 1px solid #ffe0ec;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: row;
  gap: 0;
}

.main-navigation a {
  font-size: 0.82rem;
  font-weight: 500;
  color: #555;
  padding: 10px 14px;
  display: block;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.main-navigation a:hover {
  color: #e75480;
  border-bottom: 2px solid #e75480;
}

/* ===================== PROMO BANNER ===================== */
.promo-banner {
  background: linear-gradient(135deg, #c0396a, #e75480, #ff8fab);
  color: white;
  padding: 10px 20px;
}

.promo-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.promo-title {
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.countdown { display: flex; align-items: center; gap: 5px; }
.countdown-item { text-align: center; line-height: 1.2; }
.countdown-number { font-size: 1.2rem; font-weight: 700; }
.countdown-label { font-size: 0.65rem; opacity: 0.8; }
.countdown-separator { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }

.promo-cta {
  background-color: white;
  color: #e75480;
  border: none;
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.promo-cta:hover {
  background-color: #fff0f5;
  color: #c0396a;
}

/* ===================== CONTENIDO PRINCIPAL ===================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #c0396a;
}

.filter-btn {
  background: none;
  border: 1.5px solid #f8c8d8;
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #e75480;
  color: #e75480;
}

/* ===================== GRID DE PRODUCTOS ===================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .top-bar { gap: 15px; font-size: 10px; }
  .nav-container { overflow-x: auto; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===================== CARD DE PRODUCTO ===================== */
.product-card {
  border: 1px solid #ffe0ec;
  border-radius: 12px;
  background-color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(231, 84, 128, 0.15);
}

.product-image-wrapper { position: relative; }

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #e75480;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-info {
  padding: 15px;
  text-align: center;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.product-pricing {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-price {
  font-size: 0.9rem;
  color: #aaa;
  text-decoration: line-through;
}

.product-price-transfer {
  font-size: 1rem;
  font-weight: 700;
  color: #c0396a;
}

.product-installments {
  font-size: 0.8rem;
  color: #e75480;
  font-weight: 500;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: linear-gradient(135deg, #c0396a, #8b1a3a);
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: 60px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-list a:hover {
  opacity: 1;
  color: #ffd6e7;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.payment-badge {
  background-color: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.2);
}

.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 10px;
}