/* MicMic Store - Elegant Styles */

/* CSS Variables */
:root {
  --color-primary: #d4a574;
  --color-primary-dark: #b8956a;
  --color-secondary: #f5ebe0;
  --color-accent: #e8d5b7;
  --color-dark: #2c2c2c;
  --color-text: #4a4a4a;
  --color-text-light: #7a7a7a;
  --color-white: #ffffff;
  --color-bg: #faf8f5;
  --color-border: #e8e4de;
  
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;
  
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-dark);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-dark);
}

.logo-icon {
  color: var(--color-primary);
  font-size: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-light);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem;
}

.cart-icon {
  font-size: 1.25rem;
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-bg) 50%, #f0e8dd 100%);
  overflow: hidden;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 72px;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  font-size: 24px;
  color: var(--color-primary);
  opacity: 0.4;
  animation: sparkle 3s ease-in-out infinite;
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 1s;
}

.sparkle:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-large {
  padding: 18px 48px;
  font-size: 13px;
}

/* Section Styles */
.section-title {
  font-size: 42px;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
}

/* Categories Section */
.categories-section {
  padding: 80px 0;
  background: var(--color-white);
}

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

.category-card {
  display: block;
  padding: 40px 24px;
  background: var(--color-bg);
  border-radius: var(--radius-large);
  text-align: center;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  background: var(--color-white);
}

.category-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.category-image {
  width: 100%;
  height: 120px;
  margin-bottom: 20px;
  border-radius: var(--radius-medium);
  overflow: hidden;
}

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

.category-name {
  font-size: 22px;
  margin-bottom: 8px;
}

.category-description {
  font-size: 13px;
  color: var(--color-text-light);
}

/* Products Section */
.products-section {
  padding: 80px 0;
}

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

.product-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius-medium);
  overflow: hidden;
  transition: var(--transition);
}

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

.product-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.product-img-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-large);
}

.product-placeholder {
  font-size: 64px;
  opacity: 0.6;
}

.product-placeholder-large {
  font-size: 120px;
  opacity: 0.6;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius-small);
}

.product-badge.sold-out {
  background: #999;
}

.product-badge.low-stock {
  background: var(--color-primary);
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  display: block;
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

/* Features Section */
.features-section {
  padding: 60px 0;
  background: var(--color-dark);
  color: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.feature-icon {
  color: var(--color-primary);
  font-size: 24px;
  margin-bottom: 16px;
  display: block;
}

.feature h3 {
  font-size: 18px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.feature p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Category Hero */
.category-hero {
  padding: 60px 0 40px;
  background: var(--color-secondary);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.breadcrumb a:hover {
  color: var(--color-dark);
}

.category-hero-content {
  text-align: center;
}

.category-icon-large {
  font-size: 64px;
  margin-bottom: 16px;
}

.category-hero-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.category-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-title {
  font-size: 48px;
  margin-bottom: 12px;
}

.category-desc {
  font-size: 16px;
  color: var(--color-text-light);
}

.category-products {
  padding: 60px 0;
}

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

.products-header h2 {
  font-size: 28px;
}

.product-count {
  font-size: 14px;
  color: var(--color-text-light);
}

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

.empty-state p {
  margin-bottom: 24px;
  color: var(--color-text-light);
}

/* Product Detail */
.product-detail {
  padding: 40px 0 60px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 32px;
}

.product-main-image {
  aspect-ratio: 1;
  background: var(--color-secondary);
  border-radius: var(--radius-large);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-category-tag {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  display: block;
  margin-bottom: 8px;
}

.product-title {
  font-size: 40px;
  margin-bottom: 16px;
}

.product-price-large {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.product-description {
  margin-bottom: 24px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.product-stock {
  margin-bottom: 32px;
}

.stock-status {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-small);
}

.stock-status.in-stock {
  background: #e8f5e9;
  color: #2e7d32;
}

.stock-status.low-stock {
  background: #fff3e0;
  color: #e65100;
}

.stock-status.out-of-stock {
  background: #ffebee;
  color: #c62828;
}

.product-actions {
  margin-bottom: 32px;
}

.product-actions .btn {
  width: 100%;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-light);
}

.feature-item .feature-icon {
  font-size: 14px;
  margin-bottom: 0;
}

/* Image Zoom */
.product-main-image--zoomable {
  cursor: zoom-in;
  position: relative;
}

.zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.85);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-main-image--zoomable:hover .zoom-hint,
.product-main-image--zoomable:focus .zoom-hint {
  opacity: 1;
}

.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

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

.zoom-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-medium);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.zoom-overlay.active .zoom-image {
  transform: scale(1);
}

.zoom-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 36px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  z-index: 1001;
}

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

/* Related Products */
.related-products {
  padding: 60px 0;
  background: var(--color-white);
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 24px;
}

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

.footer-content:has(.footer-social) {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--color-white);
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

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

.footer-contact p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-facebook:hover {
  background: #1877f2;
  color: #fff;
}

.social-instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.social-twitter:hover {
  background: #000;
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* Error Page */
.error-page {
  padding: 100px 0;
  text-align: center;
}

.error-icon {
  font-size: 64px;
  color: var(--color-primary);
  display: block;
  margin-bottom: 24px;
}

.error-title {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-message {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 992px) {
  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .social-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .categories-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

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

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

.product-card {
  animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }
