/* Icons */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon svg,
.icon use {
  width: 100%;
  height: 100%;
}
.icon--sm { width: 1rem; height: 1rem; }
.icon--md { width: 1.25rem; height: 1.25rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }
.icon svg { color: inherit; }
.product-card__action-btn .icon { color: inherit; }

/* UI Components - Buttons, Cards, Forms */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: white;
  background: var(--gradient-btn);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(255, 79, 163, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 79, 163, 0.45);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--soft-pink);
  background: rgba(255, 79, 163, 0.06);
}
.btn-outline:active { transform: scale(0.98); }

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.product-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 79, 163, 0.08);
}
[data-theme="dark"] .product-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 79, 163, 0.15);
}

.product-card:hover {
  box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--light-beige, #f5f0e8);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-card__image-wrap.loading .product-card__image { opacity: 0; }
.product-card__image-wrap .img-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--border-color) 25%, rgba(255,255,255,0.5) 50%, var(--border-color) 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.2s ease-in-out infinite;
}
.product-card__image-wrap.loaded .img-skeleton { display: none; }
@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-card:hover .product-card__image {
  transform: scale(1.08);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 12px;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.product-card__badge--new {
  background: var(--gradient-btn);
  color: white;
}

.product-card__badge--sale {
  background: #1a1a1a;
  color: white;
}
.product-card__badge--percent {
  background: var(--gradient-btn);
  color: white;
}
[data-theme="dark"] .product-card__badge {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.product-card__actions {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.35s ease;
  z-index: 2;
}

.product-card:hover .product-card__actions {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-card__action-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.product-card__action-btn:hover {
  transform: scale(1.1);
  background: var(--soft-pink);
  color: white;
}

.product-card__body {
  padding: 1.25rem 1rem;
}

.product-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  font-weight: 600;
  color: var(--text-accent);
}

.product-card__price--old {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.product-card__rating {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.product-card__rating .icon--star { color: var(--soft-pink); }

.product-card--out-of-stock .product-card__image-wrap { opacity: 0.85; }
.product-card--out-of-stock .product-card__image { filter: grayscale(0.3); }
.product-card__badge--out { background: var(--text-secondary); color: white; }

.input-field {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus,
.input-field:focus-visible {
  outline: none;
  border-color: var(--soft-pink);
  box-shadow: 0 0 0 3px rgba(255, 79, 163, 0.15);
}
textarea.input-field { resize: vertical; min-height: 120px; }

button:disabled,
.btn-primary:disabled,
.btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 998;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  transition: color 0.2s ease;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item.active {
  color: var(--soft-pink);
}

.mobile-bottom-nav__item svg {
  width: 24px;
  height: 24px;
}
