/* ═══════════════════════ TINYTROADS - STYLES ═══════════════════════ */

:root {
  --color-candy: #FF1493;
  --color-sky: #00D4FF;
  --color-lime: #00FF41;
  --color-sun: #FFD700;
  --color-purple: #FF00FF;
  --color-orange: #FF6B00;
  --color-turquoise: #00FFFF;
  --color-gray-900: #111827;
  --color-gray-800: #1f2937;
  --color-gray-600: #4b5563;
  --color-gray-500: #6b7280;
  --color-gray-400: #9ca3af;
  --color-white: #ffffff;
  --transition-fast: 0.25s;
  --transition-normal: 0.35s;
}

/* ─────────────────────── GLOBAL ─────────────────────── */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--color-white);
  color: var(--color-gray-800);
  line-height: 1.5;
  letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6, .brand {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ─────────────────────── SCROLLBAR ─────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--color-candy);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c6005c;
}

/* ─────────────────────── ANIMATIONS ─────────────────────── */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-24px) rotate(8deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.7);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

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

@keyframes shimmer {
  from {
    background-position: -1000px 0;
  }
  to {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

.slide-in {
  animation: slideIn 0.5s ease both;
}

.pop {
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ─────────────────────── HERO BACKGROUND ─────────────────────── */
.hero-bg {
  background: linear-gradient(135deg, #FFF0FF 0%, #FFE0FF 25%, #E0F4FF 50%, #E0FFE0 75%, #FFFFE0 100%);
  position: relative;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.4));
}

/* ─────────────────────── NAVBAR ─────────────────────── */
nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(90deg, rgba(255, 250, 205, 0.95), rgba(255, 240, 245, 0.95), rgba(224, 244, 255, 0.95), rgba(224, 255, 224, 0.95));
  box-shadow: 0 4px 20px rgba(255, 20, 147, 0.15);
}

nav a:hover {
  color: var(--color-candy);
  transition: color 0.3s ease;
  text-shadow: 0 0 8px rgba(255, 20, 147, 0.3);
}

/* ─────────────────────── PRODUCT CARD ─────────────────────── */
.product-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--transition-fast), border-color 0.3s;
  background: var(--color-white);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 3px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
  transform: translateY(-12px) scale(1.025) rotate(1deg);
  box-shadow: 0 20px 50px rgba(255, 20, 147, 0.25);
  border-color: var(--color-sky);
}

.product-card img,
.product-card .product-image {
  width: 100%;
  height: 208px;
  object-fit: cover;
  background: linear-gradient(135deg, #FFD6E8 0%, #BBEAFF 25%, #CAFFBF 50%, #FFFACD 75%, #FFD6E8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}

.product-card .product-info {
  padding: 12px;
}

.product-card .product-name {
  font-weight: 700;
  color: var(--color-gray-800);
  font-size: 14px;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-price {
  color: var(--color-candy);
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

.product-card .product-old-price {
  color: var(--color-gray-400);
  font-size: 12px;
  text-decoration: line-through;
  font-weight: 600;
  margin-left: 8px;
}

.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
}

.product-card .product-rating .star {
  color: var(--color-sun);
}

/* ─────────────────────── BADGES ─────────────────────── */
.badge-sale {
  background: linear-gradient(135deg, var(--color-candy) 0%, #FF69B4 100%);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: bounce 2s infinite;
}

.badge-new {
  background: linear-gradient(135deg, var(--color-sky) 0%, #00FF41 100%);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: glow 2s ease-in-out infinite;
}

/* ─────────────────────── BUTTONS ─────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  gap: 8px;
  position: relative;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-candy) 0%, #FF69B4 100%);
  color: var(--color-white);
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 20, 147, 0.5);
  font-size: 15px;
  font-weight: 800;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF1493 0%, #FF1493 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 20, 147, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 255, 65, 0.15) 100%);
  color: var(--color-candy);
  border: 3px solid var(--color-sky);
  font-weight: 800;
}

.btn-secondary:hover {
  border-color: var(--color-candy);
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.15) 0%, rgba(255, 107, 180, 0.15) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.2);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1FA751 100%);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 800;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #1FA751 0%, #128C45 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp i {
  font-size: 16px;
}

/* ─────────────────────── CART DRAWER ─────────────────────── */
#cart-drawer {
  transition: transform var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(180deg, #FFFACD 0%, #FFE0FF 50%, #E0F4FF 100%);
}

#cart-overlay {
  transition: opacity var(--transition-normal);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 65, 0.1) 100%);
  padding: 12px;
  border-radius: 14px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
}

.cart-item:hover {
  border-color: var(--color-candy);
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  transform: translateX(4px);
}

.cart-item-emoji {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 255, 65, 0.2) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 2px solid var(--color-sky);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.cart-item-details {
  flex: 1;
  overflow: hidden;
}

.cart-item-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-gray-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-size {
  font-size: 12px;
  color: var(--color-gray-400);
  font-weight: 600;
  margin-top: 4px;
}

.cart-item-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-candy);
  margin-top: 4px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 65, 0.1) 100%);
  border: 2px solid var(--color-sky);
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.2);
}

.quantity-selector button {
  background: none;
  border: none;
  color: var(--color-sky);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.quantity-selector button:hover {
  color: var(--color-candy);
  background: rgba(255, 20, 147, 0.1);
  transform: scale(1.2);
}

.quantity-selector span {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-candy);
  width: 20px;
  text-align: center;
}

/* ─────────────────────── MODALS ─────────────────────── */
.modal-bg {
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
}

.modal-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--color-gray-400);
  font-weight: 500;
  margin-top: 8px;
}

/* ─────────────────────── SIZE CHIPS ─────────────────────── */
.size-chip {
  border: 3px solid var(--color-sky);
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-sky);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.2);
}

.size-chip:hover {
  border-color: var(--color-candy);
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
  color: var(--color-candy);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.size-chip.active {
  border-color: var(--color-candy);
  background: linear-gradient(135deg, var(--color-candy) 0%, #FF69B4 100%);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
  transform: scale(1.08);
}

/* ─────────────────────── TOAST ─────────────────────── */
#toast {
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: linear-gradient(135deg, var(--color-candy) 0%, #FF69B4 100%);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 800;
  padding: 16px 28px;
  border-radius: 9999px;
  box-shadow: 0 8px 30px rgba(255, 20, 147, 0.5);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#toast-icon {
  font-size: 16px;
}

/* ─────────────────────── FORMS ─────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  border: 3px solid var(--color-sky);
  border-radius: 14px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Nunito', sans-serif;
  background: rgba(0, 212, 255, 0.05);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-candy);
  box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.15), 0 4px 15px rgba(255, 20, 147, 0.3);
  background: rgba(255, 20, 147, 0.04);
  transform: scale(1.02);
}

textarea {
  resize: none;
}

/* ─────────────────────── CATEGORY CARDS ─────────────────────── */
.category-card {
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 65, 0.1) 100%);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.category-card:hover {
  transform: translateY(-8px) scale(1.05) rotate(-1deg);
  border-color: var(--color-candy);
  box-shadow: 0 12px 35px rgba(255, 20, 147, 0.3);
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
}

.category-icon {
  font-size: 56px;
  margin-bottom: 14px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover .category-icon {
  transform: scale(1.3) rotate(10deg);
}

.category-title {
  font-weight: 800;
  font-size: 16px;
  margin: 0;
  color: var(--color-gray-900);
}

.category-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  opacity: 0.8;
  color: var(--color-gray-600);
}

/* ─────────────────────── UTILITIES ─────────────────────── */
.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.text-center {
  text-align: center;
}

.text-gray-600 {
  color: var(--color-gray-600);
}

.text-gray-500 {
  color: var(--color-gray-500);
}

.text-gray-400 {
  color: var(--color-gray-400);
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* ─────────────────────── RESPONSIVE ─────────────────────── */
@media (max-width: 768px) {
  .hero-bg {
    min-height: auto;
  }

  .product-card .product-image {
    height: 160px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .modal-content {
    max-width: 90vw;
  }
}

@media (max-width: 640px) {
  #cart-drawer {
    max-width: 100%;
  }

  .product-card .product-image {
    height: 140px;
  }

  .product-card .product-name {
    font-size: 13px;
  }

  .product-card .product-price {
    font-size: 14px;
  }
}
