/* Reset and Base Styles */
* {
  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: #333;
  /* Soft sky gradient to echo product photography */
  background: linear-gradient(180deg, #e8f2fb 0%, #f7fbff 40%, #ffffff 100%);
}

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

/* Header Styles */
.header {
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-img {
  height: 80px;
  width: auto;
  max-width: 300px;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #333;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

/* Main Content */
.main {
  padding: 3rem 0;
  min-height: calc(100vh - 200px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

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

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: #f8f9fa;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.product-category {
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  background: #e7f0ff;
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #cfe1ff;
  min-width: 5.25rem;
}

/* Footer Styles */
.footer {
  background-color: #f8f9fa;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Social icon buttons */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links li {
  margin: 0; /* override default spacing */
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-links a:hover {
  background: #007bff;
  color: #ffffff !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.currency-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.currency-selector select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.footer-left p {
  color: #666;
  font-size: 0.9rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.jm-logo {
  width: 24px;
  height: 24px;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .logo-img {
    height: 60px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .search-container {
    order: 2;
    width: 100%;
    max-width: none;
  }

  .user-actions {
    order: 1;
    align-self: flex-end;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 15px;
  }
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.1rem;
  color: #666;
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Product Detail Page Styles */
/* Contact Page */
.contact-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.contact-subtitle {
  color: #6b7280;
  margin-top: 0.25rem;
}

.contact-card {
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 0.75rem;
  max-width: 560px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.contact-item i {
  color: #007bff;
}

.contact-item a {
  color: #0f172a;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}
.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #999;
}

.product-detail {
  margin-top: 2rem;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-image-container {
  position: sticky;
  top: 2rem;
}

.product-detail-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.product-detail-info {
  padding: 1rem 0;
}

.product-detail-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-detail-category {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.product-detail-price {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2rem;
  background: #e7f0ff;
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #cfe1ff;
}

.product-description,
.product-features {
  margin-bottom: 2rem;
}

.product-description h3,
.product-features h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.product-description p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

.product-features ul {
  list-style: none;
  padding: 0;
}

.product-features li {
  padding: 0.5rem 0;
  color: #666;
  position: relative;
  padding-left: 1.5rem;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

.product-actions {
  margin-top: 2rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #0056b3;
  color: white;
}

.back-button i {
  font-size: 0.9rem;
}

/* Responsive Design for Product Detail */
@media (max-width: 768px) {
  .product-detail-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-image-container {
    position: static;
  }

  .product-detail-image {
    height: 300px;
  }

  .product-detail-name {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
  .product-detail-name {
    font-size: 1.8rem;
  }

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

  .back-button {
    width: 100%;
    justify-content: center;
  }
}
