/* SwiftWeight Storefront - Custom Design */
/* Color Scheme: Professional Fitness - Deep Blue + Energetic Orange */

:root {
  --primary: #1e40af;        /* Deep Blue - trust, professionalism */
  --primary-dark: #1e3a8a;   /* Darker blue for hover states */
  --accent: #f97316;         /* Orange - energy, motivation */
  --accent-dark: #ea580c;    /* Dark orange for hover */
  --success: #16a34a;        /* Green for success states */
  --text-dark: #1f2937;      /* Almost black for text */
  --text-gray: #6b7280;      /* Medium gray for secondary text */
  --bg-light: #f9fafb;       /* Very light gray background */
  --bg-white: #ffffff;
  --border: #e5e7eb;         /* Light border */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* Header */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.top-bar {
  background: var(--text-dark);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar a {
  color: white;
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
  color: var(--accent);
}

.shipping-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.main-header {
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: color 0.2s;
}

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

.header-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.search-form {
  position: relative;
}

.search-input {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  width: 200px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  width: 250px;
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 1.1rem;
}

.cart-link {
  position: relative;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  font-size: 1rem;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-block {
  display: block;
  width: 100%;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

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

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-light);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-info {
  padding: 1.25rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.product-title:hover {
  color: var(--accent);
}

.product-price {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

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

.compare-price {
  font-size: 1.1rem;
  color: var(--text-gray);
  text-decoration: line-through;
}

.savings {
  display: inline-block;
  background: var(--success);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Collection Cards */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.collection-card {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.collection-card:hover {
  transform: scale(1.02);
}

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

.collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.collection-title {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* About Us Section */
.about-section {
  padding: 4rem 0;
  background: var(--bg-light);
  text-align: center;
}
.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.about-section p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-gray);
}

/* Newsletter Section */
.newsletter-section {
  padding: 4rem 0;
  background: var(--primary);
  color: white;
  text-align: center;
}
.newsletter-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.newsletter-section p {
  margin-bottom: 1rem;
}
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter-input {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  min-width: 250px;
}
.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
}
.section-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* Features */
.features {
  background: var(--bg-light);
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.feature {
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

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

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
}

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

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
}

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

/* Product Page */
.product-page {
  padding: 2rem 0;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 3.5rem;
  margin-bottom: 3rem;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-width: 480px;
}

.main-image {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-light);
  max-height: 480px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  max-width: 480px;
}

.thumbnail {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  max-height: 80px;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary);
}

.product-details h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  color: var(--accent);
  font-size: 1.1rem;
}

.review-count {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.product-price-section {
  margin-bottom: 2rem;
}

.product-description {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.variant-selector {
  margin-bottom: 1.5rem;
}

.variant-selector label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.variant-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.variant-option {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.variant-option:hover {
  border-color: var(--primary);
}

.variant-option.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.quantity-selector {
  margin-bottom: 2rem;
}

.quantity-selector label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
}

.qty-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--bg-light);
}

.qty-input {
  border: none;
  width: 60px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.add-to-cart-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.features-list {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.features-list ul {
  list-style: none;
}

.features-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.features-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Reviews */
.reviews-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.review {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.reviewer-name {
  font-weight: 600;
}

.review-date {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.review-text {
  color: var(--text-gray);
  line-height: 1.6;
}

/* Cart Page */
.cart-page {
  padding: 3rem 0;
  min-height: 60vh;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cart-table th {
  background: var(--bg-light);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.cart-table td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

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

.cart-item-details {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cart-item-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.cart-item-variant {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.remove-btn {
  color: var(--text-gray);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.remove-btn:hover {
  color: var(--accent);
  background: var(--bg-light);
}

.cart-summary {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  position: sticky;
  top: 100px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1rem;
}

.empty-cart {
  text-align: center;
  padding: 4rem 0;
}

.empty-cart-icon {
  font-size: 5rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* Page Content */
.page-content {
  padding: 3rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.page-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.page-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-body ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.page-body li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .nav.active {
    display: flex;
  }

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

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

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-gallery {
    max-width: 100%;
    margin: 0 auto;
    position: static;
  }

  .main-image {
    max-height: 400px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-table {
    font-size: 0.9rem;
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
  }

  .search-input {
    width: 150px;
  }

  .search-input:focus {
    width: 180px;
  }

  .header-actions {
    gap: 1rem;
  }

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

  .add-to-cart-section {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .container {
    padding: 0 1rem;
  }

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

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Blog / Journal Section */
.blog-post {
  padding: 4rem 0;
  background: var(--bg-white);
}

.blog-post .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.blog-post-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.blog-grid {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 0 0 280px; /* fixed width */
  min-width: 280px;
}

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

.blog-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.blog-excerpt {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Contact Page Styles */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-info-card {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  height: fit-content;
}

.contact-info-card h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.contact-info-list {
  list-style: none;
  padding: 0;
}

.contact-info-list li {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
}

.contact-icon {
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-form-container {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form-container h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.contact-form-container p {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

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

.contact-success-message {
  display: none;
  background: rgba(22, 163, 74, 0.1);
  border: 1.5px solid var(--success);
  color: var(--success);
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: slideIn 0.3s ease-out;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-info-card, .contact-form-container {
    padding: 1.5rem;
  }
}
