/* --- TIENDA FRIKI OFFICIAL BRAND LOOK & FEEL --- */
:root {
  --brand-red: #e50914;
  --brand-red-bright: #ff1a1a;
  --brand-red-glow: rgba(229, 9, 20, 0.4);
  --brand-black: #000000;
  --brand-white: #ffffff;
  
  --bg-dark: #0d0e12;
  --bg-card: #151720;
  --bg-card-hover: #1c1f2b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #272a38;
  
  --accent-green: #22c55e;
  --accent-green-hover: #16a34a;
  
  --font-logo: 'Silkscreen', cursive, monospace;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

.container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
}

.red-text {
  color: var(--brand-red-bright);
}

/* Top Announcement Bar (Rojo Oficial) */
.top-bar {
  background: var(--brand-red);
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 3px solid #000;
}

/* Header & Brand Logo */
.header {
  background: rgba(13, 14, 18, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-color);
  padding: 20px 0 28px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 3D Blocky Logo replicating the official logo */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  background: var(--brand-red);
  padding: 8px 16px;
  border-radius: 8px;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
}

.logo-sub {
  font-family: var(--font-logo);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #000;
}

.logo-main {
  font-family: var(--font-logo);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000;
}

.badge-tag {
  background: rgba(229, 9, 20, 0.15);
  color: var(--brand-red-bright);
  border: 1.5px solid var(--brand-red);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: 0 0 15px var(--brand-red-glow);
}

/* Hero Search */
.hero-search-wrapper {
  text-align: center;
  max-width: 800px;
}

.search-headline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 4px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.search-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--brand-red);
  border-radius: 50px;
  padding: 6px 18px 6px 22px;
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-box:focus-within {
  border-color: var(--brand-red-bright);
  box-shadow: 0 0 30px var(--brand-red-glow);
}

.search-icon {
  color: var(--brand-red-bright);
  margin-right: 12px;
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.search-box input::placeholder {
  color: #64748b;
}

.clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

.clear-btn:hover {
  color: #fff;
}

/* Quick Tags */
.quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tag-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-chip:hover, .tag-chip.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: 0 0 12px var(--brand-red-glow);
}

/* Catalog Section */
.catalog-section {
  padding: 36px 0;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.speed-badge {
  font-size: 0.75rem;
  color: var(--brand-red-bright);
  background: rgba(229, 9, 20, 0.12);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  font-weight: 700;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

/* Product Card - Square 1:1 Photo Focus with Red Brand Touch */
.product-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-red);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--brand-red-glow);
}

.img-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Perfect Square 1:1 Aspect Ratio (900x900) */
  background: #090a0e;
  overflow: hidden;
}

.img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .img-container img {
  transform: scale(1.06);
}

/* Price Badge en Rojo Oficial */
.price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--brand-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-h1 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--accent-green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-whatsapp:hover {
  background: var(--accent-green-hover);
  transform: scale(1.02);
}

/* Floating WA */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent-green);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
  z-index: 99;
  transition: transform 0.25s ease;
}

.float-wa:hover {
  transform: scale(1.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  max-width: 500px;
  margin: 20px auto;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Admin Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: var(--bg-card);
  border: 2px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px var(--brand-red-glow);
}

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

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
}

.modal-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  background: #0d0e14;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus {
  border-color: var(--brand-red);
}

.btn-primary {
  width: 100%;
  background: var(--brand-red);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--brand-red-bright);
}

.footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 40px;
}

@media (max-width: 640px) {
  .logo-main { font-size: 1.4rem; }
  .logo-sub { font-size: 0.65rem; }
  .search-box input { font-size: 0.95rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px; }
  .product-h1 { font-size: 0.82rem; margin-bottom: 10px; }
  .btn-whatsapp { font-size: 0.78rem; padding: 9px 6px; }
}
