/* ===== ROSEVIA BUTIK - STYLE SYSTEM ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Dancing+Script:wght@400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  /* Primary Colors - Rose Gold Theme */
  --primary: #c5956b;
  --primary-light: #ddb89a;
  --primary-dark: #a87749;
  --primary-glow: rgba(197, 149, 107, 0.3);

  /* Accent Colors */
  --accent: #8b5e3c;
  --accent-light: #b88b6e;
  --accent-rose: #d4a0a0;
  --accent-blush: #f0d5d5;

  /* Neutral Colors */
  --bg-primary: #faf7f4;
  --bg-secondary: #f5f0eb;
  --bg-card: #ffffff;
  --bg-dark: #1a1a1a;
  --bg-dark-secondary: #2a2a2a;

  --text-primary: #2c2c2c;
  --text-secondary: #6b6b6b;
  --text-muted: #999999;
  --text-light: #ffffff;

  /* Borders & Shadows */
  --border: #e8e0d8;
  --border-light: #f0ebe6;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 20px rgba(197, 149, 107, 0.2);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Font */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-script: 'Dancing Script', cursive;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
}

ul {
  list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
}

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

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

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

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

@keyframes cartBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
  color: var(--text-light);
  text-align: center;
  padding: 10px var(--space-md);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

.announcement-bar span {
  position: relative;
  z-index: 1;
}

/* ===== HEADER / NAVBAR ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

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

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}

.logo-tagline {
  font-family: var(--font-script);
  font-size: 0.85rem;
  color: var(--primary);
  letter-spacing: 1px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: var(--space-2xl);
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  position: relative;
  padding: var(--space-xs) 0;
  transition: var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-icon-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition-smooth);
  padding: 8px;
  border-radius: var(--radius-full);
}

.nav-icon-btn:hover {
  color: var(--primary-dark);
  background: var(--primary-glow);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition-spring);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.cart-badge.bounce {
  animation: cartBounce 0.5s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.65) 0%,
    rgba(26, 26, 26, 0.35) 50%,
    rgba(26, 26, 26, 0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--primary-light);
  margin-bottom: var(--space-md);
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.hero-title span {
  color: var(--primary-light);
  font-style: italic;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-xl);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(197, 149, 107, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 149, 107, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.btn-outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--bg-dark);
  color: white;
}

.btn-dark:hover {
  background: var(--bg-dark-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* ===== FEATURES BAR ===== */
.features-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-xl) 0;
}

.features-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon {
  background: var(--primary-glow);
  transform: scale(1.05);
}

.feature-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== SECTION STYLES ===== */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--bg-secondary);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  z-index: 1;
  transition: var(--transition-smooth);
}

.category-card:hover::before {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  z-index: 2;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.category-card:hover .category-info {
  transform: translateY(0);
}

.category-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: white;
  margin-bottom: 4px;
}

.category-info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* ===== PRODUCT GRID ===== */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.filter-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.sort-select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* ===== SKELETON LOADING ===== */
.skeleton-card {
  position: relative;
  overflow: hidden;
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: #e2e5e7;
  animation: shimmer 1.5s infinite linear;
  background: linear-gradient(to right, #e2e5e7 4%, #f1f3f4 25%, #e2e5e7 36%);
  background-size: 1000px 100%;
}

.skeleton-text {
  height: 12px;
  background: #e2e5e7;
  border-radius: 4px;
  margin-bottom: 8px;
  animation: shimmer 1.5s infinite linear;
  background: linear-gradient(to right, #e2e5e7 4%, #f1f3f4 25%, #e2e5e7 36%);
  background-size: 1000px 100%;
}

.skeleton-category { width: 40%; }
.skeleton-title { width: 80%; height: 16px; margin-bottom: 12px; }
.skeleton-price { width: 30%; height: 16px; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  border: 1px solid var(--border-light);
}

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

.product-image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

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

.badge-sale {
  background: #e74c3c;
  color: white;
}

.badge-bestseller {
  background: var(--bg-dark);
  color: white;
}

.badge-limited {
  background: #9b59b6;
  color: white;
}

.product-quick-actions {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  display: flex;
  gap: var(--space-xs);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: 0.2s;
  z-index: 5;
  filter: grayscale(100%) opacity(0.6);
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active {
  filter: grayscale(0%) opacity(1);
  color: #e74c3c;
}

.product-card:hover .product-quick-actions {
  opacity: 1;
  transform: translateX(0);
}

.quick-action-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.quick-action-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.product-add-cart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: var(--transition-smooth);
  z-index: 2;
}

.product-card:hover .product-add-cart {
  transform: translateY(0);
}

.add-to-cart-btn {
  width: 100%;
  padding: 11px;
  background: var(--bg-dark);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.add-to-cart-btn:hover {
  background: var(--primary-dark);
}

.product-info {
  padding: var(--space-lg);
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

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

.product-sizes {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.size-option {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-option:hover,
.size-option.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(197, 149, 107, 0.08);
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-card);
  z-index: 2001;
  transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.cart-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.cart-header .close-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.cart-header .close-btn:hover {
  background: #fce4e4;
  color: #e74c3c;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.3;
}

.cart-empty h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.cart-empty p {
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  margin-bottom: var(--space-md);
  animation: slideInRight 0.3s ease-out;
}

.cart-item-image {
  width: 80px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: auto;
}

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

.cart-item-price {
  font-weight: 700;
  color: var(--primary-dark);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: var(--primary);
  color: white;
}

.qty-value {
  width: 30px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: #e74c3c;
}

.cart-footer {
  border-top: 1px solid var(--border-light);
  padding: var(--space-xl);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cart-summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-top: var(--space-md);
}

.cart-footer .btn {
  margin-top: var(--space-md);
}

/* ===== CHECKOUT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(6px);
  padding: var(--space-md);
}

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

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

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: #fce4e4;
  color: #e74c3c;
}

.modal-body {
  padding: var(--space-xl);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Payment Options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.payment-option:hover {
  border-color: var(--primary-light);
  background: rgba(197, 149, 107, 0.04);
}

.payment-option.selected {
  border-color: var(--primary);
  background: rgba(197, 149, 107, 0.08);
}

.payment-option input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.payment-option-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.payment-option-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.bank-details {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
  font-size: 0.85rem;
  display: none;
}

.bank-details.visible {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.bank-details p {
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.bank-details strong {
  color: var(--text-primary);
}

/* ===== SUCCESS MODAL ===== */
.success-content {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin: 0 auto var(--space-xl);
  animation: scaleIn 0.5s ease-out;
}

.success-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.success-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.order-number {
  display: inline-block;
  background: var(--bg-secondary);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin: var(--space-md) 0;
  letter-spacing: 1px;
}

/* ===== PRODUCT DETAIL MODAL ===== */
.product-detail-modal .modal {
  max-width: 900px;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.product-detail-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
}

.product-detail-info .product-category {
  margin-bottom: var(--space-sm);
}

.product-detail-info .product-name {
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
}

.product-detail-info .product-price-row {
  margin-bottom: var(--space-xl);
}

.product-detail-info .product-price {
  font-size: 1.5rem;
}

.product-detail-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.detail-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.detail-sizes {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-xl);
}

.detail-size-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.detail-size-btn:hover,
.detail-size-btn.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(197, 149, 107, 0.08);
}

.detail-actions {
  margin-top: auto;
  display: flex;
  gap: var(--space-md);
}

/* ===== INSTAGRAM SECTION ===== */
.instagram-section {
  background: var(--bg-secondary);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.instagram-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.instagram-item::after {
  content: '📷';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: var(--transition-smooth);
}

.instagram-item:hover img {
  transform: scale(1.1);
}

.instagram-item:hover::after {
  opacity: 1;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
  padding: var(--space-3xl) 0;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.newsletter-content p {
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.newsletter-form .form-input {
  flex: 1;
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: white;
}

.newsletter-form .form-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-form .form-input:focus {
  border-color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  padding: var(--space-3xl) 0 var(--space-xl);
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo-name {
  color: var(--primary-light);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.footer-brand .logo-tagline {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-column h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-smooth);
}

.footer-column ul li a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: slideInRight 0.3s ease-out;
  border-left: 4px solid var(--primary);
  min-width: 300px;
}

.toast-success {
  border-left-color: #27ae60;
}

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

.toast-message {
  font-size: 0.85rem;
  font-weight: 500;
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  transition: var(--transition-smooth);
  animation: float 3s ease-in-out infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* =========================================
   FLOATING WHATSAPP
   ========================================= */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }
  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}  display: inline-block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-detail-content {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 350px;
    aspect-ratio: auto;
  }

  .product-detail-info {
    padding: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 247, 244, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.2rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .filter-buttons {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
  }

  .products-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .cart-sidebar {
    width: 100vw;
    right: -100vw;
  }

  .newsletter-form {
    flex-direction: column;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .product-add-cart,
  .product-quick-actions {
    display: none !important;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .product-info {
    padding: var(--space-md);
  }

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

  .product-sizes {
    display: none;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    left: 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }

  /* Mobile modal fixes */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .product-detail-modal .modal {
    height: 100vh;
    max-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    margin: 0;
    padding-bottom: 80px; /* Space for add to cart button if needed, or just let it scroll */
  }

  .product-detail-image {
    width: 100%;
    max-height: 450px;
    aspect-ratio: 3/4;
  }

  .product-detail-info {
    padding: var(--space-lg);
  }

  .product-detail-info .product-name {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
  }

  .product-detail-info .product-price {
    font-size: 1.3rem;
  }

  .product-detail-info .product-price-row {
    margin-bottom: var(--space-md);
  }

  .product-detail-description {
    margin-bottom: var(--space-md);
    font-size: 0.85rem;
  }

  .detail-sizes {
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
  }

  .detail-size-btn {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .detail-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .detail-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== OUT OF STOCK / SOLD OUT ===== */

/* Out of stock size */
.size-option.out-of-stock,
.detail-size-btn.out-of-stock {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
  background: #f0f0f0;
}

/* Product sold out overlay */
.product-card.sold-out .product-image-wrapper::after {
  content: 'TÜKENDİ';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  letter-spacing: 3px;
  z-index: 3;
}

.product-card.sold-out .product-add-cart,
.product-card.sold-out .product-quick-actions {
  display: none;
}

.product-card.sold-out {
  opacity: 0.7;
}

.product-card.sold-out:hover {
  transform: none;
  box-shadow: none;
}

/* Search Panel (Top Dropdown) */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 0 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.search-overlay.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-close:hover {
  color: var(--primary-color);
}

.search-container {
  width: 90%;
  max-width: 800px;
  position: relative;
}

.search-input {
  width: 100%;
  font-size: 1.5rem;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid #eee;
  background: transparent;
  color: var(--text-color);
  outline: none;
  font-family: var(--font-heading);
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-bottom-color: var(--primary-color);
}

.search-input::placeholder {
  color: #bbb;
  font-size: 1.2rem;
}

.search-results {
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

/* Custom Scrollbar for Search Results */
.search-results::-webkit-scrollbar {
  width: 4px;
}
.search-results::-webkit-scrollbar-track {
  background: transparent;
}
.search-results::-webkit-scrollbar-thumb {
  background: #eee;
  border-radius: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.search-result-img {
  width: 50px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.search-result-info {
  flex: 1;
}

.search-result-info h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
}

.search-result-info p {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}
