/* ================================
   MOBILE COMPATIBLE CSS VERSION
   ================================ */

/* Shared Layout */
.singleproduct-checkout-container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 30px 20px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}
.singleproduct-checkout-main {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

/* Gallery */
.singleproduct-checkout-gallery { flex: 1 1 45%; }
.singleproduct-thumbnail-list {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.singleproduct-thumbnail {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.singleproduct-thumbnail:hover { transform: scale(1.05); }
.singleproduct-thumbnail.active { border-color: #2b7a78; }

.singleproduct-main-image {
  position: relative;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.singleproduct-main-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  background: #fafafa;
}
.singleproduct-image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  background: rgba(255,255,255,0.9);
  color: #2b7a78;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
}
.singleproduct-main-image:hover .singleproduct-image-arrow {
  opacity: 1;
  pointer-events: auto;
}
.singleproduct-image-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}
.singleproduct-left { left: 20px; }
.singleproduct-right { right: 20px; }

/* Info */
.singleproduct-checkout-info { flex: 1 1 45%; }
.singleproduct-product-category {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.singleproduct-product-category a {
  display: inline-block;
  padding: 6px 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: 0.3s ease;
  font-size: 13px;
}
.singleproduct-product-category a:nth-child(4n+1) { background-color: #42a5f5; }
.singleproduct-product-category a:nth-child(4n+2) { background-color: #ffb74d; color: #212121; }
.singleproduct-product-category a:nth-child(4n+3) { background-color: #26a69a; }
.singleproduct-product-category a:nth-child(4n) { background-color: #ec407a; }
.singleproduct-product-category a:hover {
  filter: brightness(110%);
  transform: scale(1.03);
}
.singleproduct-product-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
}
.singleproduct-product-subtitle {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 22px;
}
.singleproduct-product-price {
  font-size: 26px;
  color: #2b7a78;
  font-weight: 700;
  margin: 0;
  text-decoration: none !important;
}
.singleproduct-product-price ins { text-decoration: none !important; }
.singleproduct-product-price del { text-decoration: line-through !important; }
.singleproduct-price-reviews {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.singleproduct-price-block {
  display: flex;
  flex-direction: column;
}
.price-tax-note {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}
.singleproduct-rating {
  font-size: 14px;
  color: #f39c12;
  text-align: right;
  min-width: 130px;
}

/* Offers */
.singleproduct-offers {
  margin-top: 25px;
  padding: 18px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: linear-gradient(135deg,#f9f9f9,#ffffff);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.offer-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: #111;
}
.copy-btn {
  background: #2b7a78;
  color: #fff;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background .3s, transform .2s;
}
.copy-btn:hover {
  background: #205e5c;
  transform: translateY(-1px);
}

/* Benefits */
.singleproduct-benefits-section { margin-top: 30px; }
.singleproduct-benefits-section h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #2b7a78;
}
.accordion .accordion-header {
  width: 100%;
  background: #f7f7f7;
  border: none;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 6px;
  text-align: left;
  transition: background .3s;
}
.accordion .accordion-header:hover { background: #f0f0f0; }
.accordion .accordion-body {
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
  margin-bottom: 12px;
  font-size: 14px;
}

/* Meta / Tags / Description */
.singleproduct-meta,
.singleproduct-attributes,
.singleproduct-full-description {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.singleproduct-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.singleproduct-tags span {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: 0.3s ease;
}
.singleproduct-tags span:nth-child(4n+1) { background-color: #ef5350; }
.singleproduct-tags span:nth-child(4n+2) { background-color: #66bb6a; }
.singleproduct-tags span:nth-child(4n+3) { background-color: #ffca28; color: #212121; }
.singleproduct-tags span:nth-child(4n) { background-color: #ab47bc; }
.singleproduct-meta p { font-size: 14px; margin: 6px 0; }
.singleproduct-meta .in-stock { color: #27ae60; font-weight: 600; }
.singleproduct-meta .out-of-stock { color: #e74c3c; font-weight: 600; }
.singleproduct-full-description h3,
.singleproduct-attributes h3 {
  font-size: 20px;
  color: #2b7a78;
  margin-bottom: 14px;
}

/* Reviews */
.singleproduct-customer-reviews {
  margin-top: 60px;
  background: #ffffff;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
}
.singleproduct-customer-reviews h2,
.singleproduct-customer-reviews h3,
.singleproduct-customer-reviews #reply-title {
  font-size: 22px;
  color: #2b7a78;
  margin-bottom: 18px;
  font-weight: 700;
}
.woocommerce-Reviews .woocommerce-noreviews {
  font-style: italic;
  color: #888;
  margin-bottom: 20px;
}
.singleproduct-customer-reviews .comment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.singleproduct-customer-reviews .comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.singleproduct-customer-reviews .comment-form input[type="text"],
.singleproduct-customer-reviews .comment-form input[type="email"],
.singleproduct-customer-reviews .comment-form textarea,
.singleproduct-customer-reviews .comment-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s;
}
.singleproduct-customer-reviews .comment-form input:focus,
.singleproduct-customer-reviews .comment-form textarea:focus,
.singleproduct-customer-reviews .comment-form select:focus {
  border-color: #2b7a78;
  outline: none;
}
.singleproduct-customer-reviews .stars {
  display: flex;
  gap: 5px;
  font-size: 20px;
}
.singleproduct-customer-reviews .stars a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}
.singleproduct-customer-reviews .stars a:hover,
.singleproduct-customer-reviews .stars a:focus,
.singleproduct-customer-reviews .stars a:active {
  color: #f39c12;
}
.singleproduct-customer-reviews .form-submit input[type="submit"] {
  background: #2b7a78;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.singleproduct-customer-reviews .form-submit input[type="submit"]:hover {
  background: #205e5c;
}
.singleproduct-customer-reviews .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #444;
}

/* Sticky Bar */
.singleproduct-sticky-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.08);
  z-index: 999;
  gap: 20px;
}

.singleproduct-sticky-bar-left{
	display: flex;
flex-direction: row;
gap: 10px;
}

.singleproduct-sticky-thumbnail img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}
.singleproduct-sticky-info { flex-grow: 1; }
.singleproduct-sticky-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #222;
}
.singleproduct-sticky-price {
  font-size: 15px;
  font-weight: 700;
  color: #2b7a78;
  margin: 2px 0 0;
}
.singleproduct-inline-cart {
  display: flex;
  align-items: center;
  gap: 12px;
}
.singleproduct-inline-cart .quantity {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: visible;
}
.singleproduct-inline-cart .quantity input {
  width: 50px;
  border: none;
  text-align: center;
}
.singleproduct-inline-cart .qty-btn {
  background: #f0f0f0;
  border: none;
  font-size: 18px;
  padding: 6px 20px;
  cursor: pointer;
}
body.woocommerce .singleproduct-inline-cart .single_add_to_cart_button.button.alt {
  background-color: #2b7a78;
  color: #fff;
  padding: 8px 160px;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 600;
}
.singleproduct-inline-cart .single_add_to_cart_button:hover {
  background: #205e5c;
}

/* ==============
   Responsive Fixes
   ============== */
	@media (max-width: 768px) {
	  .singleproduct-checkout-main {
		display: flex;
		flex-direction: column;
	  }

	  .singleproduct-checkout-gallery,
	  .singleproduct-checkout-info {
		flex: 1 1 100%;
	  }

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

	  .singleproduct-price-reviews {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	  }

	  .singleproduct-rating {
		text-align: left;
		margin-top: 10px;
	  }

	  /* Sticky Bar Mobile Layout */
	  .singleproduct-sticky-bar {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px;
	  }

	  .singleproduct-sticky-bar-left {
		display: flex;
		align-items: center;
		gap: 16px;
		width: 100%;
	  }

	  .singleproduct-sticky-thumbnail img {
		width: 40px;
		height: 40px;
		object-fit: contain;
	  }

	  .singleproduct-sticky-info {
		display: flex;
		flex-direction: column;
		flex: 1;
	  }

	  .singleproduct-sticky-title {
		font-size: 14px;
		line-height: 1.2;
		margin: 0;
	  }

	  .singleproduct-sticky-price {
		font-size: 13px;
		color: #666;
		margin-top: 2px;
	  }

	  .singleproduct-inline-cart {
		width: 100%;
		display: flex;
		flex-direction: row !important;
		align-items: center;
		justify-content: space-between;
		flex-wrap: nowrap;
		gap: 6px;
	  }

	  .singleproduct-inline-cart .quantity input.qty {
		width: 40px;
	  }

	  body.woocommerce .singleproduct-inline-cart .single_add_to_cart_button.button.alt {
		padding: 10px 0px;
		width: 100%;
		font-size: 16px;
		margin-top: 10px;
		text-align: center;
	  }
	}


#mainImage {
  touch-action: pan-y; /* Allow vertical scroll, prevent horizontal interference */
  user-select: none;
}

/* Horizontal Scroll for Related/Upsells */
.singleproduct-related-upsells {
  margin-top: 60px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.related > h2 {
  padding: 0 28px;
  position: sticky;
}

.woocommerce-loop-product__title {
  font-size: 16px;
  line-height: 1.4;
  margin: 10px 0 6px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* show 2 lines max */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 3.2em; /* for two lines with line-height: 1.6 */
  word-break: break-word;
}


.singleproduct-related-upsells ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  white-space: nowrap;
}

.singleproduct-related-upsells ul.products li.product {
  min-width: 220px;
  max-width: 240px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.singleproduct-related-upsells ul.products li.product img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.singleproduct-related-upsells::-webkit-scrollbar {
  height: 6px;
}
.singleproduct-related-upsells::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}


