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

body {
  font-family: "Karla", sans-serif;
  background: #fff;
  min-height: 100vh;
}
#primary {
  margin: 0 auto;
  display: block;
  width: 100%;
  max-width: 1400px;
}

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

.product-hero {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 30px;
  align-items: center;
  background: white;
  border-radius: 0;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  width: 100%;
}

.product-images {
  position: relative;
  width: 100%;
}

.main-image {
  width: 100%;
  height: auto;
  background: #f6f6f6;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  min-height: 400px;
}

.main-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  max-height: 500px;
}

.main-image:hover {
  transform: scale(1.02);
}

.no-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  background: #f0f0f0;
  color: #666;
  font-size: 16px;
}

.thumbnail-grid {
  display: flex;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  padding: 0;
  max-width: 700px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: visible;
}

.thumbnail {
  background: #f6f6f6;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.thumbnail:hover,
.thumbnail.active {
  border-color: #425e9b;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.3s ease;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: #425e9b;
}

.lightbox-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 70vh;
  background: #fff;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  height: 500px;
  width: auto;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-nav:hover {
  background-color: #425e9b;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -100px;
}

.lightbox-next {
  right: -100px;
}

.lightbox-thumbnails {
  display: flex;
  gap: 10px;
  max-width: 900px;
  overflow-x: auto;
  padding: 0;
  width: 100%;
}

.lightbox-thumb {
  width: 100px;
  height: 100px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
  border-color: #425e9b;
}

.product-info {
  padding-left: 0;
}

.breadcrumb {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: left;
}

.product-hero .product-title {
  font-family: "Prata", serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: normal;
  text-align: left;
}

.product-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
  font-weight: 400;
  text-align: left;
}
.short-description {
  text-align: left;
}

.rating-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.stars {
  color: #ffc107;
  font-size: 20px;
}

.rating-text {
  color: #000;
  font-size: 16px;
  font-weight: 400;
}

.price-section {
  margin-bottom: 10px;
  text-align: left;
  display: flex;
  align-items: center;
}

.out-of-stock-badge {
    display: flex;
    text-align: center;
    border: 1px solid var(--e-global-color-primary);
    justify-content: start;
    width: max-content;
    padding: 0 10px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.current-price {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  display: inline-block;
}

.original-price {
  font-size: 22px;
  color: #999;
  text-decoration: line-through;
  margin-left: 15px;
}

.discount-badge {
  background: #425e9b;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 20px;
}

.product-options {
  margin-bottom: 40px;
}

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

.option-label {
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
  font-size: 16px;
  text-align: left;
}

.size-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.size-option {
  padding: 9px 20px;
  border: 1px solid #425e9b;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  background: white;
  box-shadow: none;
  font-size: 16px;
	display: flex;
    gap: 5px;
    align-items: center;
}

.size-option:hover,
.size-option.selected {
  border-color: #425e9b;
  background: #425e9b;
  color: white;
}

.radio-variants {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

select.variant-dropdown {
    padding: 13px 30px 13px 20px;
    border: 1px solid #425e9b;
    color:#425e9b;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background: white;
    box-shadow: none;
    font-size: 16px;
    font-family: Karla, sans-serif;
}


.dropdown-container {
    position: relative;
}
.dropdown-container::after{
    content:"›";
    display:block;
    font-size: 25px;
    color: #555;
    transform: rotate(-270deg);
    display: inline-block;
    margin-top: 5px;
    height: 15px;
    position:absolute;
    right: 0px;
    bottom: 15px;
}

.quantity-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.quantity-label {
  font-weight: 600;
  color: #2c3e50;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
  border-radius: 99px;
}

.product-hero .qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f8f9fa;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0;
  box-shadow: none;
  margin: 5px;
}

.qty-btn:hover {
  background: #425e9b;
  color: white;
}

.product-hero .qty-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 16px;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.action-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.btn {
  padding: 10px 15px;
  border: none;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 500;
  font-family: "Karla", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: none;
  margin: 0;
}

.product-hero .btn-primary {
  background-color: #425e9b !important;
  color: white !important;
  flex: 2;
  border: 1px solid #425e9b !important;
  box-shadow: none !important;
  border-radius: 99px !important;
}

.product-hero .btn-primary:hover {
  background-color: transparent !important;
  color: #425e9b !important;
  border: 1px solid #425e9b !important;
}

.product-hero .btn-secondary {
  background: white;
  border: 1px solid #425e9b;
  color: #425e9b;
  flex: 1;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #425e9b;
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
  border-radius: 0;
  text-align: center;
  backdrop-filter: blur(10px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: #425e9b;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #2c3e50;
}

.feature-desc {
  font-size: 14px;
  color: #666;
}

.tabs-section {
  background: white;
  border-radius: 0;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 16px;
    font-weight: 400;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 30px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

/* Specific styling for tab buttons to prevent override */
.tabs-section .tab-btn {
  padding: 15px 30px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  font-family: "Karla", sans-serif;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  border-radius: 0;
  text-decoration: none;
  display: inline-block;
  margin: 0;
}

.tabs-section .tab-btn.active {
  color: #425e9b;
  border-bottom-color: #425e9b;
  background: none;
}

.tabs-section .tab-btn:hover {
  color: #425e9b;
  background: none;
  border-bottom-color: rgba(66, 94, 155, 0.5);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
  text-align: left;
}

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

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

/* Specific font sizes for headings to prevent override */
.tabs-section h3 {
  font-family: "Prata", serif;
  font-size: 26px;
  font-weight: 600;
  color: #425e9b;
  margin-bottom: 20px;
  text-align: left;
  line-height: normal;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.ingredient-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 0;
}

.ingredient-name {
  font-family: "Prata", serif;
  font-weight: 600;
  color: #425e9b;
  margin-bottom: 8px;
}

.ingredient-benefit {
  font-family: "Karla", sans-serif;
  font-size: 16px;
  color: #666;
  font-weight: 400;
}

.reviews-section {
  margin-top: 20px;
}

.review-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 0;
  margin-bottom: 20px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  background: #425e9b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-family: "Prata", serif;
  font-weight: 600;
  color: #425e9b;
}

.review-date {
  font-family: "Karla", sans-serif;
  font-size: 14px;
  color: #000;
  font-weight: 400;
}

.review-rating {
  color: #ffc107;
}

.floating-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #425e9b;
  color: white;
  padding: 15px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.floating-cart:hover {
  transform: scale(1.1);
}


/* step by step section start*/
.header {
	text-align: center;
	margin-bottom: 60px;
}

.header h1 {
	font-size: 32px;
	font-weight: 300;
	letter-spacing: 3px;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.header p {
	font-size: 16px;
	color: #666;
	font-weight: 500;
}

.steps-grid {
	display: grid;
	gap: 50px;
}

.step-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding-bottom: 50px;
	border-bottom: 1px solid #e0e0e0;
}

.step-row:last-child {
	border-bottom: none;
}

.step-item {
	display: flex;
	gap: 30px;
	align-items: center;
}

.product-image {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	background-color: #f5f5f5;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.product-image img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
}

.step-content {
	flex: 1;
	text-align: left;
	line-height: normal;
}

.step-number {
	font-size: 14px;
	color: #484848;
	margin-bottom: 8px;
	font-weight: 400;
}

.product-name {
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 12px;
	text-decoration: underline;
	color: var(--e-global-color-primary);
	font-family: Prata, sans-serif;
}

.product-description {
	font-size: 15px;
	color: #666;
	line-height: normal;
	margin-bottom: 10px;
	font-weight: 400;
}

.product-details {
	font-size: 14px;
	color: #888;
	line-height: 1.5;
	font-weight: 400;
}

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

	.header h1 {
		font-size: 24px;
	}

	.product-image {
		width: 100px;
		height: 100px;
	}
}
/* step by step section end*/





/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .product-hero {
    grid-template-columns: 100%;
    padding: 20px;
    gap: 30px;
  }

  .tabs-section {
    padding: 20px;
  }

  .main-image {
    min-height: 300px;
  }

  .main-image img {
    height: auto;
  }

  .product-info {
    padding-left: 0;
  }

  .product-hero .product-title {
    font-size: 24px;
  }

  .product-subtitle {
    font-size: 16px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 100%;
  }

  .thumbnail-grid {
    justify-content: flex-start;
  }

  .thumbnail {
    width: 80px;
    height: 80px;
  }

  /* Lightbox mobile adjustments */
  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
    gap: 10px;
  }

  .lightbox-close {
    top: -40px;
    font-size: 30px;
    width: 30px;
    height: 30px;
  }

  .lightbox-image-container {
    max-height: 60vh;
    width: 100%;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .lightbox-prev {
    left: -50px;
  }

  .lightbox-next {
    right: -50px;
  }

  .lightbox-thumb {
    width: 50px;
    height: 50px;
  }

  .lightbox-thumbnails {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-nav {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
  }

  .lightbox-nav:hover {
    background-color: #425e9b;
  }
}
