/* Apple Swiss Style - CSS Vanilla */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Apple Color System */
  --apple-white: #FFFFFF;
  --apple-gray-50: #FAFAFA;
  --apple-gray-100: #F5F5F7;
  --apple-gray-200: #E5E5EA;
  --apple-gray-300: #D2D2D7;
  --apple-gray-800: #1D1D1F;
  --apple-gray-900: #000000;
  --apple-blue: #007AFF;
  --apple-green: #30D158;
  --apple-orange: #FF9500;
  --apple-red: #FF3B30;
  
  /* Apple Typography Scale */
  --text-large-title: clamp(48px, 8vw, 96px);
  --text-title-1: clamp(36px, 6vw, 64px);
  --text-title-2: clamp(28px, 4vw, 48px);
  --text-title-3: clamp(24px, 3vw, 36px);
  --text-body: 17px;
  --text-caption: 15px;
  
  /* Apple Spacing System */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;
  --spacing-4xl: 128px;
  --spacing-5xl: 160px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-weight: 300;
  line-height: 1.47;
  color: var(--apple-gray-800);
  background-color: var(--apple-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Header */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(29, 29, 31, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 44px;
}

.global-nav .navbar {
  padding: 0;
  min-height: 44px;
}

.global-nav .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 22px;
}

.global-nav .navbar-brand {
  color: #f5f5f7;
  text-decoration: none;
  padding: 0;
  margin: 0;
}

.global-nav .navbar-brand:hover {
  color: #f5f5f7;
}

.global-nav .navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.global-nav .nav-link {
  color: #f5f5f7;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 0 21px;
  height: 44px;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
  border: none;
  background: none;
}

.global-nav .nav-link:hover {
  color: #f5f5f7;
  opacity: 0.8;
}

.global-nav .d-flex {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-search-btn,
.nav-cart-btn {
  background: none;
  border: none;
  color: #f5f5f7;
  padding: 0 8px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  text-decoration: none;
  position: relative;
}

.nav-search-btn:hover,
.nav-cart-btn:hover {
  opacity: 0.8;
  color: #f5f5f7;
}

.nav-cart-btn.active {
  color: #007AFF;
}

/* Mobile cart icon - always visible next to burger */
@media (max-width: 991px) {
  .global-nav .d-flex {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  
  .nav-search-btn {
    display: none; /* Hide search on mobile */
  }
  
  .nav-cart-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    order: 2; /* After burger menu */
  }
  
  .navbar-toggler {
    order: 1; /* Before cart icon */
  }
}

.navbar-toggler {
  border: none;
  padding: 0;
  width: 17px;
  height: 17px;
  position: relative;
  background: none;
}

.navbar-toggler span {
  display: block;
  width: 17px;
  height: 1px;
  background-color: #f5f5f7;
  margin: 3px 0;
  transition: 0.3s;
}

.cart-count {
  background-color: #ff3b30 !important;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
}

/* Responsive */
@media (max-width: 991px) {
  .global-nav .navbar-collapse {
    background-color: #1d1d1f;
    margin-top: 44px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .global-nav .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  
  .global-nav .nav-link {
    padding: 12px 0;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .global-nav .nav-link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .global-nav .container-fluid {
    padding: 0 16px;
  }
}

/* Adjust hero section for new header height */
.hero-section {
  padding-top: 44px;
}

/* Page Styles */
.page-title {
  font-size: var(--text-title-1);
  font-weight: 300;
  color: var(--apple-gray-800);
  margin-bottom: 32px;
  padding-top: 80px;
}

/* Products Section */
.products-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--apple-gray-50);
}

.filters-container {
  background-color: var(--apple-white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 48px;
}

/* Cart Page Styles */
.cart-section {
  padding: var(--spacing-4xl) 0;
  min-height: 80vh;
}

.cart-item-full {
  transition: all 0.3s ease;
}

.cart-item-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.quantity-controls-full {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-display {
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.price-info .current-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--apple-gray-800);
}

.price-info .original-price {
  font-size: 14px;
}

.item-total {
  font-size: 20px;
  color: var(--apple-blue);
}

.order-summary .card {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}

.order-summary .card-header {
  background-color: var(--apple-gray-50);
  border-bottom: 1px solid var(--apple-gray-200);
  border-radius: 16px 16px 0 0 !important;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: var(--text-body);
  color: var(--apple-gray-300);
}

.summary-line.total {
  font-size: var(--text-title-3);
  font-weight: 700;
  color: var(--apple-gray-800);
  padding-top: 12px;
  border-top: 1px solid var(--apple-gray-200);
  margin-top: 12px;
}

.shipping-info {
  background-color: var(--apple-gray-50);
  padding: 16px;
  border-radius: 12px;
}

/* Checkout Page Styles */
.checkout-section {
  padding: var(--spacing-4xl) 0;
  min-height: 80vh;
}

.checkout-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 100%;
  width: 48px;
  height: 2px;
  background-color: var(--apple-gray-200);
  z-index: -1;
}

.progress-step.active:not(:last-child)::after {
  background-color: var(--apple-blue);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--apple-gray-200);
  color: var(--apple-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background-color: var(--apple-blue);
  color: white;
}

.step-label {
  font-size: 14px;
  color: var(--apple-gray-300);
  font-weight: 500;
}

.progress-step.active .step-label {
  color: var(--apple-gray-800);
}

.checkout-section-card {
  background-color: var(--apple-white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.checkout-section-card .section-title {
  font-size: var(--text-title-3);
  font-weight: 600;
  color: var(--apple-gray-800);
  margin-bottom: 24px;
}

.shipping-options, .payment-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shipping-option, .payment-option {
  border: 2px solid var(--apple-gray-200);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.shipping-option:hover, .payment-option:hover {
  border-color: var(--apple-blue);
  background-color: rgba(0, 122, 255, 0.02);
}

.shipping-option .form-check-input:checked ~ .form-check-label,
.payment-option .form-check-input:checked ~ .form-check-label {
  color: var(--apple-blue);
}

.shipping-option .form-check-input:checked,
.payment-option .form-check-input:checked {
  background-color: var(--apple-blue);
  border-color: var(--apple-blue);
}

.form-check-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.shipping-info, .payment-info {
  flex: 1;
}

.shipping-name, .payment-name {
  font-weight: 600;
  color: var(--apple-gray-800);
  margin-bottom: 4px;
}

.shipping-desc, .payment-desc {
  font-size: 14px;
  color: var(--apple-gray-300);
}

.shipping-price {
  font-weight: 600;
  color: var(--apple-blue);
}

.payment-icons {
  display: flex;
  gap: 8px;
}

.order-summary-checkout .card {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  position: sticky;
  top: 100px;
}

.order-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--apple-gray-100);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-name {
  font-weight: 600;
  color: var(--apple-gray-800);
  font-size: 14px;
}

.order-item-specs, .order-item-quantity {
  font-size: 12px;
}

.order-item-price {
  font-weight: 600;
  color: var(--apple-blue);
  font-size: 14px;
}

.security-info {
  background-color: var(--apple-gray-50);
  padding: 16px;
  border-radius: 12px;
}

/* Form Styles */
.form-control, .form-select {
  padding: 12px 16px;
  border: 1px solid var(--apple-gray-200);
  border-radius: 8px;
  font-size: var(--text-body);
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-label {
  font-weight: 500;
  color: var(--apple-gray-800);
  margin-bottom: 8px;
}

/* Breadcrumb */
.breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 32px;
}

.breadcrumb-item a {
  color: var(--apple-blue);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--apple-gray-300);
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-progress {
    gap: 24px;
  }
  
  .progress-step:not(:last-child)::after {
    width: 24px;
  }
  
  .checkout-section-card {
    padding: 24px;
  }
  
  .order-summary-checkout .card {
    position: static;
  }
}

/* Confirmation Page Styles */
.confirmation-section {
  padding: var(--spacing-5xl) 0;
  min-height: 80vh;
}

.confirmation-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 80px;
}

.success-icon {
  display: inline-flex;
  padding: 24px;
  background-color: rgba(48, 209, 88, 0.1);
  border-radius: 50%;
  margin-bottom: 32px;
}

.confirmation-title {
  font-size: var(--text-title-1);
  font-weight: 300;
  color: var(--apple-gray-800);
  margin-bottom: 24px;
}

.confirmation-subtitle {
  font-size: var(--text-title-3);
  font-weight: 300;
  color: var(--apple-gray-300);
  margin-bottom: 48px;
}

.order-details-card {
  margin-bottom: 48px;
}

.order-details-card .card {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}

.order-details-card .card-header {
  background-color: var(--apple-gray-50);
  border-bottom: 1px solid var(--apple-gray-200);
  border-radius: 16px 16px 0 0 !important;
}

.order-item-confirmation {
  background-color: var(--apple-gray-50);
  transition: all 0.3s ease;
}

.order-item-confirmation:hover {
  background-color: var(--apple-gray-100);
}

.order-total-summary {
  background-color: var(--apple-gray-50);
  padding: 20px;
  border-radius: 12px;
}

.next-steps {
  margin-bottom: 48px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  background-color: var(--apple-white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.step-icon {
  display: inline-flex;
  padding: 16px;
  background-color: rgba(0, 122, 255, 0.1);
  border-radius: 50%;
}

.step-card h5 {
  font-weight: 600;
  color: var(--apple-gray-800);
  margin-bottom: 16px;
}

.action-buttons {
  margin-bottom: 48px;
}

.contact-info-confirmation {
  margin-bottom: 48px;
}

.contact-info-confirmation .card {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background-color: var(--apple-gray-800);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav,
  .search-container {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--apple-white);
  padding-top: 64px;
}

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

.hero-title {
  font-size: var(--text-large-title);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--apple-gray-800);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: var(--text-title-3);
  font-weight: 300;
  color: var(--apple-gray-300);
  margin-bottom: 64px;
}

.hero-image {
  margin: 64px 0;
}

.product-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

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

.hero-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 80px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: var(--apple-blue);
  color: var(--apple-white);
  border-radius: 20px;
  border: none;
  font-size: var(--text-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.btn-primary:hover {
  background-color: #0056CC;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: transparent;
  color: var(--apple-blue);
  border: 1px solid var(--apple-gray-200);
  border-radius: 20px;
  font-size: var(--text-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 8px;
}

.btn-secondary:hover {
  background-color: var(--apple-gray-50);
  border-color: var(--apple-blue);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 600px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: var(--text-title-1);
  font-weight: 300;
  color: var(--apple-gray-800);
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--text-caption);
  color: var(--apple-gray-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Sections */
.products-section,
.why-us-section,
.faq-section,
.contact-section {
  padding: var(--spacing-5xl) 0;
}

.products-section {
  background-color: var(--apple-gray-50);
}

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

.section-title {
  font-size: var(--text-title-1);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--apple-gray-800);
  margin-bottom: 32px;
}

.section-subtitle {
  font-size: var(--text-title-3);
  font-weight: 300;
  color: var(--apple-gray-300);
  max-width: 800px;
  margin: 0 auto;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 64px;
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  background-color: var(--apple-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image-container {
  position: relative;
  height: 320px;
  background-color: var(--apple-gray-50);
  overflow: hidden;
}

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

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

.product-badges {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-badge {
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.badge-discount {
  background-color: var(--apple-blue);
}

.badge-limited {
  background-color: var(--apple-orange);
}

.product-info {
  padding: 32px;
}

.product-header {
  display: flex;
  justify-content: between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.product-name {
  font-size: var(--text-title-3);
  font-weight: 600;
  color: var(--apple-gray-800);
  margin-bottom: 8px;
}

.product-specs {
  font-size: var(--text-body);
  color: var(--apple-gray-300);
  margin-bottom: 8px;
}

.product-condition {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--apple-gray-100);
  color: var(--apple-gray-300);
  font-size: 14px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  width: 16px;
  height: 16px;
  color: #FFD700;
}

.rating-text {
  font-size: var(--text-caption);
  color: var(--apple-gray-300);
}

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

.price-current {
  font-size: var(--text-title-2);
  font-weight: 700;
  color: var(--apple-gray-800);
  margin-right: 16px;
}

.price-original {
  font-size: var(--text-body);
  color: var(--apple-gray-300);
  text-decoration: line-through;
}

.price-savings {
  font-size: var(--text-caption);
  color: var(--apple-green);
  font-weight: 500;
  margin-top: 8px;
}

.add-to-cart {
  width: 100%;
  padding: 16px;
  background-color: var(--apple-blue);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: var(--text-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-to-cart:hover {
  background-color: #0056CC;
  transform: translateY(-2px);
}

.add-to-cart:disabled {
  background-color: var(--apple-gray-200);
  color: var(--apple-gray-300);
  cursor: not-allowed;
  transform: none;
}

/* Product Customization */
.product-customization {
  margin-bottom: 32px;
  padding: 24px;
  background-color: var(--apple-gray-50);
  border-radius: 16px;
}

.customization-group {
  margin-bottom: 24px;
}

.customization-group:last-child {
  margin-bottom: 0;
}

.customization-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--apple-gray-800);
  margin-bottom: 12px;
}

.storage-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.option-btn {
  padding: 12px 20px;
  border: 2px solid var(--apple-gray-200);
  background-color: var(--apple-white);
  color: var(--apple-gray-800);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-btn:hover {
  border-color: var(--apple-blue);
  background-color: rgba(0, 122, 255, 0.05);
}

.option-btn.active {
  border-color: var(--apple-blue);
  background-color: var(--apple-blue);
  color: white;
}

.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--apple-gray-200);
  background-color: var(--apple-white);
  color: var(--apple-gray-800);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-btn:hover {
  border-color: var(--apple-blue);
  background-color: rgba(0, 122, 255, 0.05);
}

.color-btn.active {
  border-color: var(--apple-blue);
  background-color: var(--apple-blue);
  color: white;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-btn.active .color-dot {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-buy-now,
.btn-add-cart {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 16px;
  font-size: var(--text-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-buy-now {
  background-color: var(--apple-blue);
  color: white;
}

.btn-buy-now:hover {
  background-color: #0056CC;
  transform: translateY(-2px);
}

.btn-add-cart {
  background-color: transparent;
  color: var(--apple-blue);
  border: 2px solid var(--apple-blue);
}

.btn-add-cart:hover {
  background-color: var(--apple-blue);
  color: white;
  transform: translateY(-2px);
}

.btn-buy-now:disabled,
.btn-add-cart:disabled {
  background-color: var(--apple-gray-200);
  color: var(--apple-gray-300);
  border-color: var(--apple-gray-200);
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .product-actions {
    flex-direction: column;
  }
  
  .storage-options,
  .color-options {
    justify-content: center;
  }
}
.stock-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--apple-orange);
  font-size: var(--text-caption);
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Why Us Section */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
  margin-bottom: var(--spacing-5xl);
}

.feature-section.reverse {
  direction: rtl;
}

.feature-section.reverse > * {
  direction: ltr;
}

.feature-image {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.feature-title {
  font-size: var(--text-title-1);
  font-weight: 300;
  color: var(--apple-gray-800);
  margin-bottom: 32px;
}

.feature-description {
  font-size: var(--text-title-3);
  font-weight: 300;
  color: var(--apple-gray-300);
  line-height: 1.4;
  margin-bottom: 48px;
}

.features-grid {
  margin-top: var(--spacing-5xl);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-3xl);
  margin-top: var(--spacing-4xl);
}

.feature {
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  padding: 24px;
  border-radius: 50%;
  margin-bottom: 32px;
  transition: transform 0.5s ease;
}

.feature:hover .feature-icon {
  transform: scale(1.1);
}

.feature-name {
  font-size: var(--text-title-3);
  font-weight: 300;
  color: var(--apple-gray-800);
  margin-bottom: 24px;
}

.feature-desc {
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--apple-gray-300);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .feature-section {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
}

/* Garantie Section */
.garantie-section {
  padding: var(--spacing-5xl) 0;
  background-color: var(--apple-gray-50);
}

.garantie-content {
  padding-right: 32px;
}

.garantie-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.garantie-item {
  display: flex;
  align-items: center;
  font-size: var(--text-body);
  color: var(--apple-gray-800);
}

.garantie-image img {
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .garantie-content {
    padding-right: 0;
    margin-bottom: 32px;
  }
}

/* FAQ Section */
.faq-section {
  background-color: var(--apple-gray-50);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--apple-white);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 32px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--apple-gray-800);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--apple-gray-300);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--apple-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 32px 32px;
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--apple-gray-300);
  line-height: 1.5;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--apple-blue) 0%, #5856D6 100%);
  padding: var(--spacing-4xl) 0;
}

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

.newsletter-icon {
  display: inline-flex;
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-bottom: 32px;
}

.newsletter-title {
  font-size: var(--text-title-1);
  font-weight: 300;
  color: white;
  margin-bottom: 24px;
}

.newsletter-subtitle {
  font-size: var(--text-title-3);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 48px;
}

.newsletter-form {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.newsletter-input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  font-size: var(--text-body);
  background-color: var(--apple-white);
  color: var(--apple-gray-800);
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
  padding: 16px 32px;
  background-color: var(--apple-white);
  color: var(--apple-blue);
  border: none;
  border-radius: 16px;
  font-size: var(--text-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background-color: var(--apple-gray-100);
}

.newsletter-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-body);
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-features {
    flex-direction: column;
    gap: 16px;
  }
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-3xl);
  margin-top: var(--spacing-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 24px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--apple-gray-800);
  margin-bottom: 8px;
}

.contact-item p {
  font-size: var(--text-body);
  color: var(--apple-gray-300);
  margin-bottom: 4px;
}

.contact-item span {
  font-size: var(--text-caption);
  color: var(--apple-gray-300);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 16px 20px;
  background-color: var(--apple-gray-50);
  border: 1px solid var(--apple-gray-200);
  border-radius: 12px;
  font-size: var(--text-body);
  color: var(--apple-gray-800);
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--apple-blue);
  background-color: var(--apple-white);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background-color: var(--apple-gray-900);
  color: white;
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
  font-size: var(--text-title-3);
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-section h4 {
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-section p {
  font-size: var(--text-body);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 24px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-body);
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 16px;
}

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

.social-links a:hover {
  background-color: var(--apple-blue);
  color: white;
}

.contact-info-footer p {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-caption);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 24px;
}

.authenticity-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(48, 209, 88, 0.2);
  color: var(--apple-green);
  border-radius: 16px;
  font-size: var(--text-caption);
  font-weight: 600;
}

.footer-badge p {
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* Floating Cart */
.floating-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 64px !important;
  height: 64px !important;
}

.floating-cart-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--apple-blue) 0%, #5856D6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 122, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: none;
  outline: none;
  z-index: 100000 !important;
  pointer-events: auto !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.floating-cart-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.4);
}

.floating-cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--apple-red);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
}

.floating-cart-count.show {
  opacity: 1;
  transform: scale(1);
}

.floating-cart-preview {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--apple-gray-200);
  overflow: hidden;
  z-index: 10002;
  pointer-events: auto;
}

.floating-cart:hover .floating-cart-preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cart-preview-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--apple-gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-preview-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--apple-gray-800);
  margin: 0;
}

.cart-preview-count {
  font-size: 14px;
  color: var(--apple-gray-300);
}

.cart-preview-items {
  max-height: 240px;
  overflow-y: auto;
  padding: 16px 0;
}

.cart-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  transition: background-color 0.2s ease;
}

.cart-preview-item:hover {
  background-color: var(--apple-gray-50);
}

.cart-preview-item-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background-color: var(--apple-gray-100);
}

.cart-preview-item-info {
  flex: 1;
  min-width: 0;
}

.cart-preview-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-gray-800);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-preview-item-specs {
  font-size: 12px;
  color: var(--apple-gray-300);
  margin-bottom: 2px;
}

.cart-preview-item-price {
  font-size: 12px;
  color: var(--apple-blue);
  font-weight: 600;
}

.cart-preview-item-quantity {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-gray-800);
  background-color: var(--apple-gray-100);
  padding: 4px 8px;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
}

.cart-preview-footer {
  border-top: 1px solid var(--apple-gray-100);
  padding: 20px 24px;
}

.cart-preview-total {
  text-align: center;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--apple-gray-800);
}

.cart-preview-actions {
  display: flex;
  gap: 12px;
}

.cart-preview-actions .btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.cart-preview-actions .btn-primary {
  background-color: var(--apple-blue);
  color: white;
  border: none;
}

.cart-preview-actions .btn-primary:hover {
  background-color: #0056CC;
  transform: translateY(-1px);
}

.cart-preview-actions .btn-outline-primary {
  background-color: transparent;
  color: var(--apple-blue);
  border: 1px solid var(--apple-blue);
}

.cart-preview-actions .btn-outline-primary:hover {
  background-color: var(--apple-blue);
  color: white;
  transform: translateY(-1px);
}

.cart-preview-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--apple-gray-300);
}

.cart-preview-empty svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .floating-cart {
    bottom: 20px;
    right: 20px;
    z-index: 9999;
  }
  
  .floating-cart-icon {
    width: 56px;
    height: 56px;
  }
  
  .floating-cart-preview {
    width: 320px;
    right: -120px;
  }
}

@media (max-width: 480px) {
  .floating-cart-preview {
    width: 280px;
    right: -100px;
  }
  
  .floating-cart {
    z-index: 9999;
  }
}

/* Cart Modal */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-modal.show {
  opacity: 1;
  visibility: visible;
}

.cart-content {
  background-color: var(--apple-white);
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-modal.show .cart-content {
  transform: translateX(0);
}

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

.cart-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-title-3);
  font-weight: 600;
  color: var(--apple-gray-800);
}

.close-cart {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--apple-gray-300);
  transition: color 0.3s ease;
}

.close-cart:hover {
  color: var(--apple-gray-800);
}

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

.empty-cart {
  text-align: center;
  padding: 48px 0;
  color: var(--apple-gray-300);
}

.empty-cart svg {
  margin-bottom: 24px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--apple-gray-50);
  border-radius: 16px;
  margin-bottom: 16px;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

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

.cart-item-name {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--apple-gray-800);
  margin-bottom: 4px;
}

.cart-item-specs {
  font-size: var(--text-caption);
  color: var(--apple-gray-300);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--apple-blue);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--apple-white);
  color: var(--apple-gray-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background-color: var(--apple-gray-100);
}

.quantity {
  font-size: var(--text-body);
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.remove-item {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--apple-red);
  transition: color 0.3s ease;
}

.remove-item:hover {
  color: #CC0000;
}

.cart-footer {
  border-top: 1px solid var(--apple-gray-100);
  padding: 32px;
}

.cart-total {
  margin-bottom: 24px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: var(--text-body);
  color: var(--apple-gray-300);
}

.total-line.total {
  font-size: var(--text-title-3);
  font-weight: 700;
  color: var(--apple-gray-800);
  padding-top: 12px;
  border-top: 1px solid var(--apple-gray-100);
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background-color: var(--apple-blue);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: var(--text-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  background-color: #0056CC;
}

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

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

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

.animate-fade-in-up {
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-scale-in {
  animation: scaleIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* Scroll animations */
.scroll-animate,
.scroll-animate-left,
.scroll-animate-right {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-left {
  transform: translateX(-80px);
}

.scroll-animate-right {
  transform: translateX(80px);
}

.scroll-animate.animate,
.scroll-animate-left.animate,
.scroll-animate-right.animate {
  opacity: 1;
  transform: translate(0, 0);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .cart-modal {
    padding: 0;
    align-items: flex-end;
  }
  
  .cart-content {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
  
  .cart-modal.show .cart-content {
    transform: translateY(0);
  }
}