/**
* Product Template
*/
.nubecom-product {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.woocommerce div.product.nubecom-product {
  display: block;
}

.product-template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.product-images .main-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/**
* PRODUCT DETAILS
*/
.product-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.entry-title {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.25;
  color: #2c3e50;
  margin: 0 0 1rem 0;
}

.woocommerce div.product.nubecom-product .summary,
.woocommerce div.product.nubecom-product .woocommerce-product-gallery,
.woocommerce div.product.nubecom-product .images {
  float: none !important;
  width: auto !important;
  clear: none !important;
  max-width: 100% !important;
}

.product-images {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

.gallery-additional {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-additional img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #ddd;
  cursor: pointer;
}

.gallery-additional img:hover {
  border-color: #bbb;
}

.product-details h1 {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.25;
  color: #2c3e50;
  margin: 0 0 1rem 0;
}

.product-details .price {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.25;
  color: #2c3e50;
  margin: 0 0 1rem 0;
}

.product-details .description,
.product-details .woocommerce-product-details__short-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Product meta (categories with icon) */
.product-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #999;
  font-size: 13px;
}

.product-meta .meta-icon {
  display: inline-flex;
  color: #999;
}

.product-meta .meta-categories a {
  color: #999;
  text-decoration: none;
}

.product-meta .meta-categories a:hover {
  text-decoration: underline;
}

/* Quantity controls + remove link */
.quantity-wrapper {
  margin-top: 1rem;
}

.remove-from-cart-link {
  margin-top: 0.5rem;
  display: inline-block;
  color: #777;
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.remove-from-cart-link:hover {
  color: #444;
  text-decoration: underline;
}

/* Add to cart button styling (Woo and custom) */
.single_add_to_cart_button {
  background-color: #2c3e50;
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.single_add_to_cart_button:hover {
  background-color: #1f2d3a;
}

.single_add_to_cart_button:disabled,
.single_add_to_cart_button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .product-template-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .product-images {
    position: static;
  }
}
