/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9fafb;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: relative;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: #4a6de5;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #4a6de5;
}


.cart-icon span {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #4a6de5;
  color: white;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon {
  display: none;
  cursor: pointer;
}


a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

a:hover {
  color: #4f46e5;
}

button {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4f46e5;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  font-weight: 500;
  position: relative;
}

nav a.active {
  color: #4f46e5;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #4f46e5;
}

.header-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.icon {
  position: relative;
  color: #6b7280;
  transition: color 0.3s ease;
}

.icon:hover {
  color: #4f46e5;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #4f46e5;
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content Styles */
main {
  padding: 40px 0;
}

.breadcrumb {
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #6b7280;
}

.breadcrumb a:hover {
  color: #4f46e5;
}

.breadcrumb span {
  color: #333;
}

/* Product Showcase Styles */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.thumbnail-images {
  display: flex;
  gap: 15px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 1;
}

.thumbnail.active {
  opacity: 1;
  border-color: #4f46e5;
}

.product-brand {
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

.product-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.stars {
  display: flex;
  margin-right: 10px;
}

.star {
  color: #d1d5db;
  font-size: 1.2rem;
}

.star.filled {
  color: #fbbf24;
}

.star.half {
  position: relative;
  color: #d1d5db;
}

.star.half::before {
  content: '★';
  position: absolute;
  color: #fbbf24;
  width: 50%;
  overflow: hidden;
}

.rating-count {
  color: #6b7280;
  font-size: 0.9rem;
}

.product-price {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.current-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin-right: 12px;
}

.original-price {
  font-size: 1.1rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 12px;
}

.discount {
  background-color: #fee2e2;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-description {
  margin-bottom: 25px;
  color: #4b5563;
  line-height: 1.7;
}

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
}

.feature svg {
  color: #4f46e5;
}

.product-colors {
  margin-bottom: 30px;
}

.product-colors h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.color-options {
  display: flex;
  gap: 15px;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #4f46e5;
  border-radius: 50%;
}

.color-option.black {
  background-color: #111827;
}

.color-option.silver {
  background-color: #e5e7eb;
}

.color-option.blue {
  background-color: #3b82f6;
}

.color-option.red {
  background-color: #ef4444;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

.quantity-btn {
  width: 40px;
  height: 48px;
  background-color: #f9fafb;
  border: none;
  font-size: 1.2rem;
  color: #4b5563;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.quantity-selector input {
  width: 50px;
  height: 48px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-cart-btn {
  flex: 1;
  height: 48px;
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
  background-color: #4338ca;
}

.wishlist-btn {
  width: 48px;
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: white;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.wishlist-btn:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  gap: 5px;
}

.label {
  color: #6b7280;
  font-weight: 500;
}

.value {
  color: #111827;
}

.shipping-info {
  background-color: #f3f4f6;
  border-radius: 8px;
  padding: 15px;
}

.shipping-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.shipping-item:last-child {
  margin-bottom: 0;
}

.shipping-item svg {
  color: #4f46e5;
}

/* Product Tabs Styles */
.product-tabs {
  margin-bottom: 60px;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 15px 25px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  color: #4f46e5;
}

.tab-btn.active {
  color: #4f46e5;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #4f46e5;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.tab-panel p {
  margin-bottom: 15px;
  color: #4b5563;
  line-height: 1.7;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid #e5e7eb;
}
/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  /* background-color: #333;
  color: white; */
  margin-bottom: 40px;
}
.footer-section ul li a{
  color: white;
  text-decoration: none;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 2px;
  background-color: #4a6de5;
}

.footer-section ul li {
  margin-bottom: 10px;
}
.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}
.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 12px 0;
}

.specs-table td:first-child {
  width: 40%;
  font-weight: 500;
  color: #6b7280;
}

.review-summary {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e5e7eb;
}

.average-rating {
  text-align: center;
}

.rating-number {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 10px;
}

.total-reviews {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 10px;
}
.bar {
  height: 100%;
  background-color: #4f46e5;
  border-radius: 4px;
}



.quick-add-btn {
  width: 100%;
  padding: 10px;
  background-color: #f3f4f6;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.3s ease;
}

.quick-add-btn:hover {
  background-color: #4f46e5;
  color: white;
}

/* Footer Styles */
footer {
  background-color: #1f2937;
  color: #e5e7eb;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo h2 {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.footer-column h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
}
/* Responsive Style */
@media (max-width: 1100px) {
  .product-grid {
      grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
  }
  
  .footer-column:first-child {
      grid-column: span 3;
  }
  
  .footer-column:last-child {
      grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .product-showcase {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
}

@media (max-width: 768px) {
  header .container {
      flex-wrap: wrap;
  }
  
  nav {
      order: 3;
      width: 100%;
      margin-top: 15px;
  }
  
  nav ul {
      justify-content: space-between;
      gap: 10px;
  }
  
  .product-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
      grid-template-columns: 1fr 1fr;
  }
  
  .footer-column:first-child {
      grid-column: span 2;
  }
  
  .footer-column:last-child {
      grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .product-grid {
      grid-template-columns: 1fr;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
  }
  
  .footer-column:first-child,
  .footer-column:last-child {
      grid-column: span 1;
  }
  
  .footer-bottom {
      flex-direction: column;
      gap: 20px;
      text-align: center;
  }
  
  .tabs-header {
      overflow-x: auto;
      white-space: nowrap;
      padding-bottom: 5px;
  }
  
}