:root {
  --primary: #d1b8ff; /* Soft Violet */
  --primary-dark: #b194ff;
  --secondary: #333;
  --accent: #ff7675;
  --bg-color: #f7f3f0; /* Creamy light grey */
  --text-color: #1a1a1a;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.85);
  --shadow: 0 10px 40px rgba(0,0,0,0.04);
  --border-radius-lg: 30px;
  --border-radius-md: 20px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pagination-container {
    display: flex; justify-content: center; gap: 10px; margin: 40px 0;
}
.page-btn {
    width: 45px; height: 45px; border-radius: 50%; border: 1px solid #eee;
    background: white; color: var(--secondary); font-weight: 700; cursor: pointer;
    transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.page-btn.active {
    background: var(--primary-dark); color: white; border-color: var(--primary-dark);
}
.page-btn:hover:not(.active) { border-color: var(--primary-dark); transform: translateY(-3px); }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body { background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 2rem 5%; }

/* Navbar */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 5%; background: var(--glass); backdrop-filter: blur(15px);
  position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.8rem; color: var(--secondary); }
.logo ion-icon { font-size: 2.2rem; color: var(--primary-dark); }
.logo span { color: var(--secondary); letter-spacing: -1px; }

.glass-btn {
  background: var(--white); border: 1px solid #eee; padding: 10px 20px;
  border-radius: 50px; display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--secondary); transition: var(--transition);
  cursor: pointer; box-shadow: var(--shadow);
}
.glass-btn ion-icon { font-size: 1.4rem; color: var(--primary-dark); }

#combo-count-badge {
  background: var(--accent); color: white; border-radius: 50%;
  width: 22px; height: 22px; display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 900;
}

/* Search Bar */
.search-container { padding: 10px 5%; }
.search-bar { 
  background: white; border-radius: 50px; padding: 12px 25px; 
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); border: 1px solid #eee;
}
.search-bar input { border: none; outline: none; width: 100%; font-size: 1rem; color: #888; }

/* Filter Pills */
.filter-wrapper { padding: 20px 5%; overflow-x: auto; white-space: nowrap; }
.filter-pills { display: flex; gap: 10px; }
.pill { 
  background: white; border: 1px solid #eee; padding: 8px 20px; 
  border-radius: 50px; font-weight: 600; display: flex; align-items: center; gap: 5px;
  cursor: pointer; transition: var(--transition);
}
.pill.active { background: #e9e2ff; border-color: var(--primary); }

.oferton-pill {
    background: #ffeb3b !important; border-color: #fbc02d !important; color: #d32f2f !important;
    animation: pulse-oferton 2s infinite; font-weight: 800 !important;
}

@keyframes pulse-oferton {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 192, 45, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(251, 192, 45, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 192, 45, 0); }
}

/* Trending Badge */
.trending-badge {
  position: absolute; top: 15px; left: 15px; background: white; color: #ee5253; /* Red text on white */
  padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 800;
  display: flex; align-items: center; gap: 5px; z-index: 5;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid #ee5253;
}
.trending-badge ion-icon { font-size: 1rem; color: #ee5253; } 

.solo-badge {
  position: absolute; top: 15px; right: 15px; background: rgba(51, 51, 51, 0.9); /* Dark theme for contrast */
  padding: 6px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 800;
  color: white; backdrop-filter: blur(5px); z-index: 5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Hero */
.hero { text-align: center; padding: 4rem 5% 2rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 1rem; color: var(--secondary); }
.hero p { font-size: 1.2rem; color: #666; font-weight: 500; }

/* Catalog */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }

.product-card {
  background: var(--white); border-radius: var(--border-radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); 
  position: relative; padding: 10px; margin-bottom: 30px;
}
.img-container { 
  border-radius: var(--border-radius-md); 
  overflow: hidden; 
  aspect-ratio: 3/4; /* Ensure all images look the same size */
  background: #f0f0f0;
}
.img-container img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}

.in-cart-msg {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff5f5;
  padding: 5px 10px;
  border-radius: 10px;
  margin: 5px 0;
}
.prod-info .collection { font-size: 0.85rem; color: #888; font-weight: 500; margin-bottom: 10px; }

.prod-row { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.price-tag { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }

.add-btn {
  background: var(--secondary); color: white; padding: 10px 20px; border: none;
  border-radius: 30px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.add-btn:hover { background: #000; transform: scale(1.05); }
.add-btn.reserved { background: #eee; color: #888; cursor: not-allowed; }

.badge-unique {
  position: absolute; top: 15px; left: 15px; background: var(--accent);
  color: white; padding: 5px 12px; border-radius: 50px; font-size: 0.7rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}

.prod-info { padding: 1.5rem; display: flex; flex-direction: column; gap: 8px; }
.prod-info h3 { font-size: 1.1rem; color: var(--secondary); font-weight: 700; }
.prod-info .price { font-size: 1.4rem; font-weight: 900; color: var(--primary-dark); }

.social-proof {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
  margin-top: 5px;
}

.social-proof ion-icon { color: var(--accent); }

.trending-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.add-btn {
  background: var(--secondary); color: white; padding: 12px; border: none;
  border-radius: 12px; font-weight: 700; cursor: pointer; transition: var(--transition);
  margin-top: 10px;
}
.add-btn:hover { background: #000; }
.add-btn.reserved { background: #eee; color: #888; cursor: not-allowed; }

/* Filter Bar */
.filter-bar { display: flex; gap: 10px; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn {
  background: white; border: 1px solid #eee; padding: 8px 18px; border-radius: 50px;
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Drawer */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(5px);
  z-index: 2000; display: none; justify-content: flex-end; opacity: 0; transition: opacity 0.3s ease;
}
.drawer-overlay.drawer-show { display: flex !important; opacity: 1; }

.combo-drawer {
  width: 100%; max-width: 450px; height: 100%; background: var(--white);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.4s ease-out;
}
.drawer-overlay.drawer-show .combo-drawer { transform: translateX(0); }

.drawer-header { padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f0f0f0; }
.close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--secondary); }

.timer-banner { background: var(--accent); color: white; padding: 10px; text-align: center; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }

.drawer-content { flex: 1; overflow-y: auto; padding: 1.5rem; }
.empty-state { text-align: center; padding: 4rem 1rem; color: #999; }
.empty-state ion-icon { font-size: 4rem; margin-bottom: 1rem; }

.drawer-footer { padding: 2rem; border-top: 1px solid #f0f0f0; box-shadow: 0 -10px 30px rgba(0,0,0,0.02); }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 500; }
.summary-line.total { font-size: 1.5rem; font-weight: 900; margin-top: 15px; padding-top: 15px; border-top: 2px solid #eee; }
.summary-line.discount { color: var(--accent); }

.whatsapp-btn {
  width: 100%; padding: 16px; background: #25D366; color: white; border: none;
  border-radius: 15px; font-weight: 800; font-size: 1.1rem; display: flex;
  align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  transition: var(--transition); margin-top: 20px;
}
.whatsapp-btn:hover { background: #1eb954; transform: scale(1.02); }

.scarcity-alert { text-align: center; font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-top: 10px; }

/* Skeletons */
.product-skeleton { height: 400px; background: #eee; border-radius: var(--border-radius); }

.hidden { display: none !important; }

/* Animations */
.fade-in { animation: fadeIn 0.8s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.product-popup {
  max-width: 900px !important; height: auto !important; margin: auto; border-radius: 30px; 
  padding: 40px; position: relative;
}

.close-btn-abs {
  position: absolute; top: 20px; right: 20px; background: white; border: none;
  font-size: 2rem; border-radius: 50%; width: 40px; height: 40px; 
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  cursor: pointer; z-index: 10;
}

.popup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.main-img-container { aspect-ratio: 3/4; border-radius: 20px; overflow: hidden; background: #eee; }
.main-img-container img { width: 100%; height: 100%; object-fit: cover; }

.thumbnails-row { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; padding-bottom: 5px; }
.thumb { width: 60px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.thumb.active { border-color: var(--primary); }

.badge-unique-alt { background: var(--accent); color: white; display: inline-block; padding: 4px 12px; border-radius: 50px; font-weight: 800; font-size: 0.7rem; margin-bottom: 10px; }

.popup-info h2 { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.size-tag { background: #f0f0f0; display: inline-block; padding: 5px 15px; border-radius: 10px; font-weight: 700; margin-bottom: 15px; }

.description-box { margin: 20px 0; padding: 20px; background: #fafafa; border-radius: 15px; }
.description-box h4 { margin-bottom: 10px; color: #888; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; }

@media (max-width: 768px) {
  .popup-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-popup { padding: 20px; max-width: 95% !important; }
}

.look-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.look-grid img { border: 2px solid var(--primary); }

.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 5px; margin-bottom: 15px; border-radius: 20px; }
  .img-container { border-radius: 15px; }
  .prod-info { padding: 10px; }
  .prod-info h3 { font-size: 0.9rem; }
  .price-tag { font-size: 1.2rem; }
  .add-btn { padding: 8px 12px; font-size: 0.8rem; border-radius: 10px; }
}
