/* ========================================
   La Boutique - Static Catalog Styles
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-stone-50: #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-300: #d6d3d1;
  --color-stone-400: #a8a29e;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-700: #44403c;
  --color-stone-800: #292524;
  --color-stone-900: #1c1917;
  --color-rose-100: #ffe4e6;
  --color-rose-200: #fecdd3;
  --color-rose-400: #fb7185;
  --color-rose-500: #f43f5e;
  --color-rose-700: #be123c;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-green-700: #15803d;
  --color-amber-100: #fef3c7;
  --color-amber-500: #f59e0b;
  --color-amber-700: #b45309;
  --color-emerald-100: #d1fae5;
  --color-emerald-500: #10b981;
  --color-emerald-700: #047857;
  --color-sky-100: #e0f2fe;
  --color-sky-500: #0ea5e9;
  --color-sky-700: #0369a1;
  --color-violet-100: #ede9fe;
  --color-violet-500: #8b5cf6;
  --color-violet-700: #6d28d9;
  --color-pink-100: #fce7f3;
  --color-pink-500: #ec4899;
  --color-pink-700: #be185d;
  --color-orange-100: #ffedd5;
  --color-orange-500: #f97316;
  --color-orange-700: #c2410c;
  --color-teal-100: #ccfbf1;
  --color-teal-500: #14b8a6;
  --color-teal-700: #0f766e;
  --color-fuchsia-100: #fae8ff;
  --color-fuchsia-500: #d946ef;
  --color-fuchsia-700: #a21caf;
  --color-lime-100: #ecfccb;
  --color-lime-500: #84cc16;
  --color-lime-700: #4d7c0f;
  --color-gray-100: #f3f4f6;
  --color-gray-500: #6b7280;
  --color-gray-700: #374151;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, var(--color-stone-50), white);
  color: var(--color-stone-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden {
  display: none !important;
}

/* App Wrapper */
.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.6);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-stone-900);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  display: none;
}

@media (min-width: 640px) {
  .brand-text {
    display: block;
  }
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--color-stone-900);
}

.brand-sub {
  font-size: 0.625rem;
  color: var(--color-stone-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Search */
.search-container {
  flex: 1;
  position: relative;
  max-width: 28rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-stone-400);
  pointer-events: none;
}

.search-container input {
  width: 100%;
  height: 40px;
  padding: 0 2.25rem 0 2.25rem;
  background: rgba(245, 245, 244, 0.6);
  border: 1px solid var(--color-stone-200);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.search-container input:focus {
  background: white;
  border-color: var(--color-stone-400);
  box-shadow: 0 0 0 3px rgba(68, 64, 60, 0.1);
}

.search-container input::placeholder {
  color: var(--color-stone-400);
}

.clear-search-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-stone-400);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: color 0.2s;
}

.clear-search-btn:hover {
  color: var(--color-stone-600);
}

/* Cart Button */
.cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-stone-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.cart-btn:hover {
  background: var(--color-stone-100);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-rose-500);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badgePop 0.2s ease-out;
}

@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-stone-900);
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/boutique-banner.png');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,25,23,0.6), rgba(28,25,23,0.8), var(--color-stone-900));
}

.hero-content {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 4rem 1rem;
  }
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-rose-400);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-desc {
  color: var(--color-stone-300);
  font-size: 0.875rem;
  max-width: 32rem;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .hero-desc {
    font-size: 1rem;
  }
}

.hero-cta {
  margin-top: 0.5rem;
  padding: 0.625rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  background: transparent;
  color: white;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============ Main Content ============ */
.main-content {
  flex: 1;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 1rem;
}

/* Category Filters */
.category-filters {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-stone-100);
  color: var(--color-stone-600);
}

.category-btn:hover {
  background: var(--color-stone-200);
}

.category-btn.active {
  background: var(--color-stone-900);
  color: white;
  box-shadow: var(--shadow-md);
}

.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Results Info */
.results-info {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.results-info p {
  font-size: 0.875rem;
  color: var(--color-stone-500);
}

.results-info .highlight {
  font-weight: 500;
  color: var(--color-stone-700);
}

.clear-search-link {
  font-size: 0.75rem;
  color: var(--color-rose-500);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.clear-search-link:hover {
  color: var(--color-rose-700);
}

/* State Containers (loading, error, empty) */
.state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  gap: 0.75rem;
  text-align: center;
}

.state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-icon {
  background: var(--color-rose-100);
  color: var(--color-rose-500);
}

.empty-icon {
  background: var(--color-stone-100);
  color: var(--color-stone-400);
}

.state-title {
  font-weight: 500;
  color: var(--color-stone-700);
  font-size: 1rem;
}

.state-text {
  font-size: 0.875rem;
  color: var(--color-stone-500);
  max-width: 24rem;
}

.retry-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-stone-200);
  border-radius: 0.5rem;
  background: white;
  color: var(--color-stone-700);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-btn:hover {
  background: var(--color-stone-50);
  border-color: var(--color-stone-300);
}

/* Spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-stone-200);
  border-top-color: var(--color-stone-400);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ Product Grid ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--color-stone-100);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Product Image */
.product-image-container {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-stone-100);
  cursor: zoom-in;
}

.product-image-skeleton {
  position: absolute;
  inset: 0;
  background: var(--color-stone-200);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s;
}

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

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  pointer-events: none;
}

.product-card:hover .product-image-overlay {
  background: rgba(0, 0, 0, 0.1);
}

.zoom-icon {
  width: 32px;
  height: 32px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.product-card:hover .zoom-icon {
  opacity: 0.8;
}

/* Category Badge on Card */
.product-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
  backdrop-filter: blur(4px);
}

.product-category-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Quick Add Button */
.quick-add-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-lg);
  font-size: 20px;
  line-height: 1;
}

.quick-add-btn.default {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--color-stone-700);
  opacity: 0;
  transform: translateY(8px);
}

.product-card:hover .quick-add-btn.default {
  opacity: 1;
  transform: translateY(0);
}

.quick-add-btn.default:hover {
  background: var(--color-stone-900);
  color: white;
}

.quick-add-btn.in-cart {
  background: var(--color-rose-500);
  color: white;
  transform: scale(1.1);
}

/* Product Info */
.product-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

@media (min-width: 640px) {
  .product-info {
    padding: 1rem;
  }
}

.product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-stone-800);
  line-height: 1.375;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .product-name {
    font-size: 1rem;
  }
}

.product-desc {
  font-size: 0.75rem;
  color: var(--color-stone-400);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.25rem;
}

.product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-stone-900);
}

@media (min-width: 640px) {
  .product-price {
    font-size: 1.25rem;
  }
}

.add-to-cart-btn {
  height: 32px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: var(--color-stone-500);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.add-to-cart-btn:hover {
  color: var(--color-stone-900);
  background: var(--color-stone-100);
}

/* ============ Cart Sidebar ============ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 28rem;
  background: white;
  z-index: 51;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-stone-100);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.cart-header-content {
  flex: 1;
}

.cart-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.cart-header-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--color-stone-100);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-stone-700);
}

.cart-description {
  font-size: 0.875rem;
  color: var(--color-stone-500);
  margin-top: 2px;
}

.close-cart-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--color-stone-400);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-cart-btn:hover {
  background: var(--color-stone-100);
  color: var(--color-stone-600);
}

/* Cart Empty */
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.cart-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone-300);
}

.cart-empty-title {
  font-weight: 500;
  color: var(--color-stone-700);
}

.cart-empty-desc {
  font-size: 0.875rem;
  color: var(--color-stone-500);
}

/* Cart Items */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
}

.cart-items {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--color-stone-50);
  border-radius: 0.75rem;
}

.cart-item-image {
  width: 64px;
  height: 80px;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-stone-200);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-stone-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-category {
  font-size: 0.75rem;
  color: var(--color-stone-500);
}

.cart-item-remove {
  flex-shrink: 0;
  padding: 4px;
  background: none;
  border: none;
  color: var(--color-stone-400);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: var(--color-rose-500);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--color-stone-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-stone-600);
  transition: background 0.2s;
}

.quantity-btn:hover {
  background: var(--color-stone-100);
}

.quantity-display {
  width: 28px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.cart-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-stone-900);
}

/* Cart Footer */
.cart-footer {
  border-top: 1px solid var(--color-stone-100);
  padding: 1.25rem;
}

.cart-summary {
  margin-bottom: 0.75rem;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--color-stone-500);
}

.cart-summary-row.total {
  color: var(--color-stone-800);
  font-weight: 600;
}

.cart-summary-row.total span:last-child {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-stone-900);
}

.cart-divider {
  height: 1px;
  background: var(--color-stone-100);
  margin: 0.5rem 0;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.whatsapp-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 0.75rem;
  background: var(--color-green-600);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.whatsapp-btn:hover {
  background: var(--color-green-700);
}

.clear-cart-btn {
  width: 100%;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--color-stone-500);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.clear-cart-btn:hover {
  color: var(--color-rose-500);
}

/* ============ Image Zoom Modal ============ */
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.zoom-modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  max-height: 85vh;
  width: 95vw;
  max-width: 48rem;
}

.zoom-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.zoom-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.zoom-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ============ Floating Buttons ============ */
.floating-whatsapp {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.floating-whatsapp-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-green-500);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.4);
  transition: all 0.3s;
}

.floating-whatsapp-btn:hover {
  background: var(--color-green-600);
  transform: scale(1.1);
}

.floating-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-rose-500);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-label {
  display: none;
}

@media (min-width: 640px) {
  .floating-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-green-700);
    background: #f0fdf4;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
  }
}

.floating-cart-bar {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  z-index: 30;
}

.floating-cart-btn {
  height: 48px;
  padding: 0 1rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--color-stone-900);
  color: white;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 20px 40px -10px rgba(28, 25, 23, 0.3);
  transition: background 0.2s;
}

.floating-cart-btn:hover {
  background: var(--color-stone-800);
}

.floating-cart-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--color-rose-500);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============ Toast ============ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--color-stone-900);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
  font-size: 0.875rem;
  animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 1.7s forwards;
  pointer-events: auto;
  max-width: 20rem;
  text-align: center;
}

.toast-title {
  font-weight: 600;
}

.toast-desc {
  font-size: 0.75rem;
  color: var(--color-stone-300);
  margin-top: 2px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-1rem); }
}

/* ============ Footer ============ */
.footer {
  background: var(--color-stone-900);
  color: var(--color-stone-400);
  margin-top: auto;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 2.5rem 1rem;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.footer-brand-name {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.footer-brand-sub {
  font-size: 0.75rem;
}

.footer-info {
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-info {
    text-align: right;
  }
}

.footer-highlight {
  color: var(--color-stone-500);
}

/* ============ Placeholder Image ============ */
.placeholder-img {
  background: var(--color-stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-img::after {
  content: 'Imagen no disponible';
  color: var(--color-stone-400);
  font-size: 0.75rem;
  position: absolute;
}
