/* ================ Global Styles ================ */
:root {
  /* Color Palette */
  --primary-color: #2c5282; /* Deep blue */
  --primary-dark: #1a365d;
  --primary-light: #4299e1;
  --secondary-color: #e53e3e; /* Vibrant red */
  --secondary-dark: #c53030;
  --secondary-light: #fc8181;
  --accent-color: #38b2ac; /* Teal accent */
  --accent-dark: #2c7a7b;
  --accent-light: #81e6d9;
  --light-color: #f7fafc;
  --dark-color: #1a202c;
  --text-color: #2d3748;
  --text-light: #718096;
  --border-color: #e2e8f0;
  --success-color: #48bb78;
  --warning-color: #ed8936;
  --danger-color: #f56565;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;

  /* Typography */
  --font-main: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Montserrat', var(--font-main);
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--light-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

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

p {
  margin-bottom: var(--space-md);
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: var(--space-md) auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

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

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

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

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

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

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

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

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
}

/* ================ Header Styles ================ */
.top-bar {
  background-color: var(--dark-color);
  color: white;
  font-size: 0.9rem;
  padding: var(--space-sm) 0;
}

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

.contact-info span {
  margin-right: var(--space-lg);
  display: inline-flex;
  align-items: center;
}

.contact-info {
    background-color: transparent !important;
    color: #fff; /* or a color that contrasts with your site background */
}


.cta-button .btn {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.9rem;
}

.main-nav {
  background-color: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition);
}

.main-nav.scrolled {
  box-shadow: var(--shadow-lg);
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo a {
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

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

.logo img {
  height: 40px;
  margin-right: var(--space-sm);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: var(--space-lg);
  position: relative;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 600;
  padding: var(--space-sm) 0;
  position: relative;
}

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

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

.nav-links a.active {
  color: var(--primary-color);
}

.cart-count {
  background-color: var(--secondary-color);
  color: white;
  border-radius: var(--radius-full);
  padding: 1px 6px;
  font-size: 0.7rem;
  margin-left: var(--space-xs);
  position: relative;
  top: -1px;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* ================ Hero Section ================ */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('../images/hero-bg.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--light-color), transparent);
  z-index: 1;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1.5s ease-out;
}

.hero .btn {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================ Featured Products ================ */
.featured-products {
  padding: var(--space-3xl) 0;
  background-color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.product-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}

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

.product-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background-color: var(--secondary-color);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.product-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-details {
  padding: var(--space-lg);
}

.product-details h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-category {
  display: inline-block;
  background-color: var(--gray-100);
  color: var(--primary-color);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.product-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
}

.product-price .old-price {
  text-decoration: line-through;
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-left: var(--space-sm);
}

.product-actions {
  display: flex;
  justify-content: space-between;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.product-rating i {
  color: var(--warning-color);
  font-size: 0.9rem;
  margin-right: var(--space-xs);
}

.product-rating span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ================ Guarantees Section ================ */
.guarantees {
  background-color: var(--primary-color);
  color: white;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.guarantees::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern.png') repeat;
  opacity: 0.05;
  pointer-events: none;
}

.guarantees .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  position: relative;
}

.guarantee-item {
  text-align: center;
  padding: var(--space-lg);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  backdrop-filter: blur(5px);
}

.guarantee-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.guarantee-item i {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--accent-light);
  background-color: rgba(255, 255, 255, 0.1);
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.guarantee-item:hover i {
  transform: rotateY(180deg);
  background-color: var(--accent-color);
}

.guarantee-item h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

/* ================ Testimonials ================ */
.testimonials {
  padding: var(--space-3xl) 0;
  background-color: var(--gray-100);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.testimonial-slider::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-light);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial {
  text-align: center;
  padding: var(--space-lg);
}

.testimonial-content {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: var(--space-lg);
  position: relative;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.testimonial-rating {
  color: var(--warning-color);
  font-size: 0.9rem;
}

/* ================ Footer ================ */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: var(--space-3xl) 0 0;
  position: relative;
}

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

.footer-section {
  margin-bottom: var(--space-lg);
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-section p {
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

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

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul li a {
  color: var(--gray-400);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
}

.footer-section ul li a:hover {
  color: var(--accent-light);
  transform: translateX(5px);
}

.footer-section ul li a i {
  margin-right: var(--space-sm);
  width: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  margin-top: var(--space-md);
}

.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: var(--radius-full);
  margin-right: var(--space-sm);
  color: white;
  transition: all var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.copyright {
  background-color: rgba(0, 0, 0, 0.2);
  padding: var(--space-md) 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.legal-links {
  margin-top: var(--space-sm);
}

.legal-links a {
  color: var(--gray-400);
  margin: 0 var(--space-sm);
  font-size: 0.85rem;
}

.legal-links a:hover {
  color: var(--accent-light);
}

/* ================ Shop Page ================ */
.shop-page {
  padding: var(--space-2xl) 0;
}

.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
}

.page-header h1 {
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0;
  font-size: 0.9rem;
}

.breadcrumb li {
  margin-right: var(--space-sm);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-sm);
  color: var(--gray-400);
}

.breadcrumb a {
  color: var(--gray-200);
}

.breadcrumb a:hover {
  color: white;
}

.product-filters {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.filter-group {
  margin-bottom: var(--space-md);
}

.filter-group h4 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--gray-700);
}

.filter-options {
  list-style: none;
}

.filter-options li {
  margin-bottom: var(--space-xs);
}

.filter-options a {
  color: var(--gray-600);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.filter-options a:hover {
  color: var(--primary-color);
}

.filter-options a::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gray-400);
  border-radius: var(--radius-sm);
  margin-right: var(--space-sm);
  transition: all var(--transition-fast);
}

.filter-options a.active::before {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.filter-options a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.price-range {
  width: 100%;
  height: 4px;
  background-color: var(--gray-300);
  border-radius: var(--radius-full);
  margin: var(--space-md) 0;
  position: relative;
}

.price-range .progress {
  position: absolute;
  left: 25%;
  right: 25%;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
}

.price-range input {
  position: absolute;
  top: -5px;
  width: 100%;
  height: 5px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
  pointer-events: auto;
  -webkit-appearance: none;
}

.price-input {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-md);
}

.price-input .field {
  display: flex;
  align-items: center;
}

.field span {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-right: var(--space-xs);
}

.field input {
  width: 70px;
  padding: var(--space-xs);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}

/* ================ Product Page ================ */
.product-page {
  padding: var(--space-2xl) 0;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.product-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.main-image {
  grid-column: span 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: zoom-in;
}

.thumbnail {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity var(--transition);
}

.thumbnail:hover::after,
.thumbnail.active::after {
  opacity: 1;
}

.thumbnail.active {
  border: 2px solid var(--primary-color);
}

.thumbnail img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.product-meta {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.product-rating-large {
  display: flex;
  align-items: center;
  margin-right: var(--space-md);
}

.product-rating-large i {
  color: var(--warning-color);
  margin-right: var(--space-xs);
}

.product-rating-large span {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.product-sku {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.product-sku span {
  color: var(--gray-800);
  font-weight: 600;
}

.product-price-large {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: var(--space-md) 0;
}

.product-price-large .old-price {
  text-decoration: line-through;
  color: var(--gray-500);
  font-size: 1.25rem;
  margin-left: var(--space-sm);
}

.product-form {
  margin: var(--space-xl) 0;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
  outline: none;
}

.form-group textarea {
  min-height: 120px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  width: 120px;
}

.quantity-selector button {
  width: 40px;
  height: 40px;
  background-color: var(--gray-200);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.quantity-selector button:hover {
  background-color: var(--gray-300);
}

.quantity-selector input {
  flex: 1;
  text-align: center;
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.product-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.wishlist-btn {
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all var(--transition);
}

.wishlist-btn:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.wishlist-btn.active {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.product-tabs {
  margin-top: var(--space-2xl);
}

.tab-header {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-lg);
}

.tab-btn {
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  position: relative;
}

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

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.product-description p {
  margin-bottom: var(--space-md);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
  background-color: var(--gray-100);
}

.specs-table th,
.specs-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.specs-table th {
  width: 30%;
  color: var(--gray-700);
}

.related-products {
  margin-top: var(--space-3xl);
}

/* ================ Cart Page ================ */
.cart-page {
  padding: var(--space-2xl) 0;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-xl);
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cart-table th,
.cart-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.cart-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

.product-info {
  display: flex;
  align-items: center;
}

.product-info img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: var(--space-md);
  border-radius: var(--radius);
}

.product-info h4 {
  margin-bottom: var(--space-xs);
}

.product-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.quantity-selector {
  display: flex;
  align-items: center;
}

.quantity-selector button {
  width: 30px;
  height: 30px;
  background-color: var(--gray-200);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-selector input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  padding: var(--space-xs);
}

.remove-item {
  color: var(--danger-color);
  font-size: 1.2rem;
  transition: color var(--transition-fast);
}

.remove-item:hover {
  color: var(--secondary-dark);
}

.cart-totals {
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-left: auto;
  width: 350px;
}

.totals-table {
  width: 100%;
  margin-bottom: var(--space-lg);
}

.totals-table tr:not(:last-child) td {
  padding-bottom: var(--space-sm);
}

.totals-table td {
  padding: var(--space-xs) 0;
}

.totals-table td:last-child {
  text-align: right;
}

.grand-total td {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.checkout-btn {
  width: 100%;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
}

/* ================ Checkout Page ================ */
.checkout-page {
  padding: var(--space-2xl) 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-xl);
}

.checkout-form {
  background-color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.checkout-form h2 {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.payment-methods {
  margin: var(--space-xl) 0;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-method:hover {
  border-color: var(--primary-color);
}

.payment-method.active {
  border-color: var(--primary-color);
  background-color: rgba(66, 153, 225, 0.05);
}

.payment-method input {
  margin-right: var(--space-md);
}

.payment-method i {
  font-size: 1.5rem;
  margin-right: var(--space-md);
  color: var(--primary-color);
}

.payment-method .details {
  flex: 1;
}

.payment-method h4 {
  margin-bottom: var(--space-xs);
}

.payment-method p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.order-summary {
  background-color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
}

.order-summary h2 {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

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

.item-name {
  flex: 1;
}

.item-name span {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.item-qty {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.summary-total {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.grand-total {
  font-weight: 700;
  font-size: 1.1rem;
}

/* ================ Thank You Page ================ */
.thank-you-page {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.thank-you-content i {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: var(--space-lg);
}

.thank-you-content h1 {
  margin-bottom: var(--space-md);
}

.order-details {
  text-align: left;
  margin: var(--space-xl) 0;
  background-color: var(--gray-100);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ================ Responsive Styles ================ */
@media (max-width: 1024px) {
  .product-detail,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .checkout-grid {
    gap: var(--space-lg);
  }
  
  .order-summary {
    position: static;
    margin-top: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: var(--space-2xl) var(--space-lg);
    box-shadow: var(--shadow-xl);
    transition: left var(--transition);
    z-index: 1000;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: var(--space-sm) 0;
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
  
  .mobile-menu-btn.active i::before {
    content: '\f00d';
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  
  .overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .cart-table {
    display: block;
    overflow-x: auto;
  }
  
  .cart-totals {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .top-bar .container {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .contact-info {
    margin-bottom: var(--space-sm);
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .product-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .wishlist-btn {
    width: 100%;
  }
  
  .cart-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .cart-actions .btn {
    width: 100%;
    text-align: center;
  }
}
.contact-page .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-page .section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-form, .contact-info {
    flex: 1 1 45%;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-form h2,
.contact-info h2 {
    margin-bottom: 1rem;
    color: #333;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-primary {
    background-color: #6b46c1;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #553c9a;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #6b46c1;
    margin-right: 1rem;
}

.map-section {
    margin-top: 3rem;
}

.alert-success {
    background: #e6ffed;
    padding: 1rem;
    border-left: 5px solid #38a169;
    color: #2f855a;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.alert-error {
    background: #ffe6e6;
    padding: 1rem;
    border-left: 5px solid #e53e3e;
    color: #c53030;
    margin-bottom: 1rem;
    border-radius: 6px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-post {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    display: block;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.03);
}

.post-content {
    padding: 1.5rem;
}

.post-content h2 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: #333;
}

.post-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-content h2 a:hover {
    color: #0095ff;
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #0095ff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.read-more:hover {
    background: #007ad1;
}

.free-quote {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.quote-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.quote-form, .quote-benefits {
    flex: 1;
    min-width: 300px;
}

.quote-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.quote-form h2 {
    color: #2a6496;
    margin-bottom: 15px;
}

.quote-form p {
    margin-bottom: 25px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-benefits h3 {
    color: #2a6496;
    margin-bottom: 20px;
}

.quote-benefits ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.quote-benefits li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.quote-benefits i {
    color: #4CAF50;
    margin-right: 10px;
    font-size: 18px;
}

.quote-contact {
    background: #2a6496;
    color: white;
    padding: 20px;
    border-radius: 8px;
}

.quote-contact h4 {
    margin-top: 0;
    color: white;
}

.quote-contact a {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .quote-container {
        flex-direction: column;
    }
}

#quote-section:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { background-color: rgba(255, 255, 0, 0.1); }
    100% { background-color: rgba(255, 255, 0, 0); }
}
