/* ═══════════════════════════════════════════════════════════════
   CUTE STORE — Calm & Elegant Design System
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Cute';
  src: url('/fonts/cute.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

/* ─── CSS Variables ───────────────────────────────────────── */
:root {
  --bg-primary: #FFF9F5;
  --bg-secondary: #FFF0E8;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.72);

  --text-primary: #3D2C2E;
  --text-secondary: #7A6365;
  --text-muted: #B89A9D;
  --text-light: #FFFFFF;

  --accent: #E8A0BF;
  --accent-hover: #D98AAE;
  --accent-light: #FDE8F0;
  --accent-dark: #C67A9C;

  --rose: #F2C1D1;
  --peach: #FDDCBF;
  --lavender: #D5C4E0;
  --mint: #C8E6D5;
  --cream: #FFF5EB;

  --success: #8EC5A7;
  --warning: #F0D68C;
  --danger: #E89B9B;
  --info: #93BFD6;

  --shadow-sm: 0 1px 3px rgba(61, 44, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(61, 44, 46, 0.08);
  --shadow-lg: 0 8px 30px rgba(61, 44, 46, 0.1);
  --shadow-xl: 0 15px 50px rgba(61, 44, 46, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 50px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  --font-cute: 'Cute', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background decoration */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -30%;
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 191, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: -40%;
  left: -20%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 196, 224, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

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

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

/* ─── Utility Classes ──────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.cute-font {
  font-family: var(--font-cute);
}

/* ═══════════════════════════════════════════════════════════════
   STORE HEADER / NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 160, 191, 0.15);
  padding: 12px 0;
  transition: var(--transition);
}

.store-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--font-cute);
  font-size: 2rem;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.03);
}

.logo-icon {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-dark);
  background: var(--accent-light);
}

.search-box {
  position: relative;
  width: 220px;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 2px solid rgba(232, 160, 191, 0.2);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 160, 191, 0.15);
}

.search-box .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cart-btn {
  position: relative;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.cart-btn:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.08);
}

.cart-count {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 191, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-family: var(--font-cute);
  font-size: 3.2rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 span {
  color: var(--accent);
  position: relative;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 30px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(232, 160, 191, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 160, 191, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 34px;
  font-size: 1.05rem;
}

/* Decorative floating elements */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.floating-shape:nth-child(1) {
  width: 80px;
  height: 80px;
  background: var(--accent);
  top: 20%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(2) {
  width: 50px;
  height: 50px;
  background: var(--lavender);
  top: 60%;
  left: 8%;
  animation: float 8s ease-in-out infinite 1s;
}

.floating-shape:nth-child(3) {
  width: 35px;
  height: 35px;
  background: var(--peach);
  bottom: 20%;
  right: 25%;
  animation: float 7s ease-in-out infinite 2s;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY STRIP
   ═══════════════════════════════════════════════════════════════ */
.categories-strip {
  padding: 0 0 40px;
}

.section-title {
  font-family: var(--font-cute);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--lavender));
  margin: 10px auto 0;
  border-radius: 3px;
}

.categories-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.category-chip {
  padding: 10px 26px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid rgba(232, 160, 191, 0.15);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-chip:hover,
.category-chip.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-chip .chip-icon {
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCTS GRID
   ═══════════════════════════════════════════════════════════════ */
.products-section {
  padding: 20px 0 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

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

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary), var(--cream));
}

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

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

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}

.badge-sale {
  background: var(--danger);
  color: white;
}

.badge-new {
  background: var(--success);
  color: white;
}

.badge-out {
  background: var(--text-muted);
  color: white;
}

.product-wishlist {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  color: var(--text-muted);
}

.product-wishlist:hover {
  color: var(--danger);
  transform: scale(1.15);
}

.product-info {
  padding: 16px;
}

.product-category {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.product-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.82rem;
  padding: 8px 12px;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT DETAIL MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(61, 44, 46, 0.4);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  color: var(--text-primary);
}

.modal-close:hover {
  background: var(--danger);
  color: white;
}

.modal-images {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(135deg, var(--bg-secondary), var(--cream));
}

.modal-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 30px;
}

.modal-body .product-category {
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.modal-body .product-name {
  font-size: 1.4rem;
  margin-bottom: 12px;
  -webkit-line-clamp: unset;
}

.modal-body .product-price {
  margin-bottom: 16px;
}

.modal-body .current-price {
  font-size: 1.5rem;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-options {
  margin-bottom: 20px;
}

.option-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
}

.size-options, .color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.size-btn {
  padding: 6px 16px;
  border: 2px solid rgba(232, 160, 191, 0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
}

.size-btn:hover,
.size-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-dark);
}

.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.color-btn:hover,
.color-btn.selected {
  outline-color: var(--accent);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   CART SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 100vh;
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  z-index: 600;
  transform: translateX(-100%);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 599;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(232, 160, 191, 0.1);
}

.cart-header h3 {
  font-family: var(--font-cute);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.cart-close-btn:hover {
  color: var(--danger);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(232, 160, 191, 0.08);
  animation: fadeInUp 0.3s ease;
}

.cart-item-img {
  width: 65px;
  height: 85px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

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

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.cart-item-details {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  align-self: flex-start;
}

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

.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

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

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(232, 160, 191, 0.1);
  background: var(--bg-secondary);
}

.coupon-input {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.coupon-input input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid rgba(232, 160, 191, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.coupon-input input:focus {
  border-color: var(--accent);
}

.coupon-msg {
  font-size: 0.78rem;
  margin-bottom: 8px;
  padding: 4px 0;
}

.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--danger); }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-total .total-amount {
  color: var(--accent-dark);
  font-size: 1.3rem;
}

.discount-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--success);
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.store-footer {
  background: var(--text-primary);
  color: var(--text-light);
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand .logo {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-section h4 {
  font-family: var(--font-cute);
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-right: 4px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-primary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════
   LOADING / EMPTY STATES
   ═══════════════════════════════════════════════════════════════ */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-family: var(--font-cute);
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    padding: 10px 0;
    gap: 4px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .mobile-menu-btn {
    display: block;
  }

  .search-box {
    order: 2;
    width: 100%;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-info {
    padding: 10px;
  }

  .product-name {
    font-size: 0.85rem;
  }

  .current-price {
    font-size: 0.95rem;
  }

  .cart-sidebar {
    width: 100%;
  }

  .modal {
    margin: 10px;
    max-height: 95vh;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .categories-grid {
    gap: 8px;
  }

  .category-chip {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-actions {
    flex-direction: column;
  }

  .hero {
    padding: 40px 0 30px;
  }
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS 
   ═══════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  animation: slideInLeft 0.3s ease;
  min-width: 280px;
  font-size: 0.88rem;
}

.toast.success { border-right: 4px solid var(--success); }
.toast.error { border-right: 4px solid var(--danger); }
.toast.info { border-right: 4px solid var(--info); }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-icon {
  font-size: 1.2rem;
}

/* For no-image placeholder */
.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--cream));
  color: var(--text-muted);
  font-size: 2.5rem;
}

/* Image gallery dots */
.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-dot.active {
  background: white;
  width: 20px;
  border-radius: 4px;
}
