/**
 * Custom WooCommerce styles
 * These styles override the default WooCommerce styles
 */

/* Global shop background */
.woocommerce-page #primary {
  min-height: 600px;
  padding-bottom: 3rem;
}

/* Shop Header */
.woocommerce-products-header {
  background-color: #0f172a !important; /* Dark blue consistent with site theme */
  color: white;
  padding: 2rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-products-header__title {
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.25rem;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
  margin: 0.5rem 0 1.5rem 0;
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.woocommerce .woocommerce-breadcrumb a {
  color: #60a5fa; /* Lighter blue for better visibility on dark background */
  text-decoration: none;
  font-weight: 500;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  text-decoration: underline;
  color: white;
}

/* Product Archive/Shop Page */
.woocommerce .woocommerce-result-count {
  margin: 0;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.woocommerce .woocommerce-ordering {
  margin: 0 0 1rem 0;
}

.woocommerce .woocommerce-ordering select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  min-width: 150px;
  transition: all 0.2s ease;
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1em 1em;
  cursor: pointer;
}

.woocommerce .woocommerce-ordering:after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid white;
  pointer-events: none;
}

.before-shop-loop {
  background-color: rgba(30, 41, 59, 0.7); /* Darker blue with transparency */
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Product Grid - Core Structural Styles */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  clear: both;
}

@media (min-width: 640px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Remove WooCommerce defaults that might interfere with our grid */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  margin: 0;
  padding: 0;
  width: 100%;
  clear: none;
}

/* Product Cards - Using BEM methodology */
.product-card,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.product-card:hover,
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 174, 65, 0.3);
  border-color: rgba(0, 174, 65, 0.3);
  z-index: 2;
}

/* Direct image approach */
.product-image-wrapper {
  position: relative;
  padding: 1.5rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.3);
  transition: all 0.3s ease;
}

.product-image-wrapper img.attachment-woocommerce_thumbnail {
  display: none !important; /* Hide any duplicated images */
}

.product-image-wrapper img.product-image {
  display: block !important;
  margin: 0 auto;
  transition: transform 0.3s ease;
  max-height: 200px;
  width: auto !important;
  object-fit: contain;
}

.product-image-wrapper:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
  pointer-events: none;
  z-index: 1;
}

.product-image {
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
}

li.product:hover .product-image {
  transform: scale(1.08);
}

/* Sale Badge */
.onsale,
.woocommerce span.onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background-color: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  line-height: 1.2;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
  margin: 0;
  min-height: auto;
  min-width: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Product Details */
.product-card__details,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  padding: 1.25rem;
  position: relative;
}

/* Product Title */
.product-card__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.75rem 0;
  padding: 0.25rem 0;
  line-height: 1.4;
  height: auto;
  color: #111827; /* Darker text color for better contrast */
  transition: color 0.2s;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title-link {
  display: block;
  padding: 0.75rem 1rem;
  margin: -0.5rem -0.5rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-title-link:hover {
  background-color: rgba(0, 174, 65, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 174, 65, 0.3);
  transform: translateY(-2px);
}

.product-title-link .product-name {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

.product-title-link:hover .product-name {
  color: rgba(0, 174, 65, 1);
}

.product-card__title a,
.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce ul.products li.product h2 a,
.woocommerce ul.products li.product h3 a {
  color: #111827; /* Ensure links maintain the darker color */
  text-decoration: none;
}

.product-card__title a:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover,
.woocommerce ul.products li.product h2 a:hover,
.woocommerce ul.products li.product h3 a:hover {
  color: #3b82f6;
}

/* Product SKU */
.product-card__sku,
.woocommerce ul.products li.product .product-sku {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.5rem;
  padding: 0;
  display: inline-block;
  background-color: #f1f5f9;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

/* Product Price */
.product-card__price,
.woocommerce ul.products li.product .price {
  margin: 1rem 0;
  padding: 0;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.product-card__price ins,
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: #00AE41;
  font-weight: 800;
}

.product-card__price del,
.woocommerce ul.products li.product .price del {
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

/* Savings badge */
.price-savings {
  display: inline-block;
  background: linear-gradient(135deg, #00AE41, #006028);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.75rem;
  vertical-align: middle;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 174, 65, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 174, 65, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 174, 65, 0);
  }
}

/* Product Actions */
.product-card__actions,
.woocommerce ul.products li.product .button-container {
  margin: 0.5rem 1.25rem 1.25rem;
  padding-top: 0;
}

/* Add to Cart Button */
.product-card__button,
.woocommerce ul.products li.product .button {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #00AE41, #006028);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.product-card__button:before,
.woocommerce ul.products li.product .button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.product-card__button:hover:before,
.woocommerce ul.products li.product .button:hover:before {
  left: 100%;
}

.product-card__button:hover,
.woocommerce ul.products li.product .button:hover {
  background: linear-gradient(135deg, #00c64b, #00AE41);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Rating stars */
.star-rating {
  color: #f59e0b !important;
}

/* Out of stock overlay */
.outofstock .product-image-wrapper:after {
  content: 'Agotado';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 5;
}

.outofstock .product-card__button,
.outofstock .woocommerce ul.products li.product .button {
  background-color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.outofstock .product-card__button:hover,
.outofstock .woocommerce ul.products li.product .button:hover {
  transform: none;
  box-shadow: none;
}

/* Additional product badges */
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background-color: #3b82f6;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-badge.new {
  background-color: #10b981;
}

.product-badge.hot {
  background-color: #f97316;
}

.product-badge.best-seller {
  background-color: #6366f1;
}

/* Single Product Page Styling */
.single-product div.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .single-product div.product {
    grid-template-columns: 1fr 1fr;
  }
}

/* Product Images */
.single-product div.product div.images {
  width: 100% !important;
  float: none !important;
  margin-bottom: 2rem;
}

.single-product div.product div.images .woocommerce-product-gallery__wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.single-product div.product div.images .woocommerce-product-gallery__wrapper:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.single-product div.product div.images img {
  border-radius: 8px;
  width: 100%;
  padding: 2rem;
  background-color: #ffffff;
  height: auto;
  display: block;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Product thumbnails */
.single-product div.product div.images .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.single-product div.product div.images .flex-control-thumbs li {
  width: 100%;
  float: none;
  padding: 0;
  margin: 0;
}

.single-product div.product div.images .flex-control-thumbs li img {
  border: 2px solid transparent;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0.7;
  padding: 0.5rem;
}

.single-product div.product div.images .flex-control-thumbs li img.flex-active,
.single-product div.product div.images .flex-control-thumbs li img:hover {
  border-color: #3b82f6;
  opacity: 1;
}

/* Product Summary */
.single-product div.product div.summary {
  width: 100% !important;
  float: none !important;
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Product Title */
.single-product div.product .product_title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Product Price */
.single-product div.product p.price,
.single-product div.product span.price {
  color: #111827;
  font-size: 2rem;
  font-weight: 800;
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.single-product div.product p.price ins,
.single-product div.product span.price ins {
  text-decoration: none;
  color: #ef4444;
  margin-right: 1rem;
}

.single-product div.product p.price del,
.single-product div.product span.price del {
  font-size: 1.25rem;
  opacity: 0.7;
  color: #94a3b8;
  font-weight: normal;
}

/* Product Description */
.single-product div.product .woocommerce-product-details__short-description {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.single-product div.product .woocommerce-product-details__short-description p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Add to Cart section */
.single-product div.product form.cart {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Quantity selector */
.single-product div.product form.cart div.quantity {
  float: none;
  margin: 0 0 1rem 0;
  width: 100%;
}

.single-product div.product form.cart div.quantity input {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  height: 3rem;
  width: 30%;
  text-align: center;
  font-weight: 600;
  color: #111827;
  background-color: #f9fafb;
}

/* Add to cart button */
.single-product div.product form.cart .button {
  float: none;
  width: 100%;
  padding: 1rem;
  background-color: #3b82f6;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.single-product div.product form.cart .button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.single-product div.product form.cart .button:hover:before {
  left: 100%;
}

.single-product div.product form.cart .button:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

/* Product meta */
.single-product div.product .product_meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.single-product div.product .product_meta > span {
  display: block;
  margin-bottom: 0.5rem;
}

.single-product div.product .product_meta a {
  color: #3b82f6;
  text-decoration: none;
}

.single-product div.product .product_meta a:hover {
  text-decoration: underline;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
  margin-top: 3rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 1rem 0;
  overflow: visible;
}

.woocommerce div.product .woocommerce-tabs ul.tabs:before {
  border-color: #e5e7eb;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border-radius: 8px 8px 0 0;
  background-color: #f9fafb;
  border-color: #e5e7eb;
  margin: 0 0.5rem 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:before,
.woocommerce div.product .woocommerce-tabs ul.tabs li:after {
  display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-weight: 600;
  color: #6b7280;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:hover a {
  color: #3b82f6;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background-color: white;
  border-bottom-color: white;
  z-index: 2;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #111827;
}

.woocommerce div.product .woocommerce-tabs .panel {
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  margin-top: -1px;
  background-color: white;
}

.woocommerce div.product .woocommerce-tabs .panel h2:first-of-type {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.woocommerce div.product .woocommerce-tabs .panel p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Related products */
.woocommerce .related.products {
  margin-top: 4rem;
}

.woocommerce .related.products > h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.75rem;
}

.woocommerce .related.products > h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #3b82f6;
  border-radius: 2px;
}

/* Add this at the bottom for dark mode support */
@media (prefers-color-scheme: dark) {
  .product-card,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  .single-product div.product div.summary,
  .single-product div.product div.images img,
  .woocommerce div.product .woocommerce-tabs .panel {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .product-image-wrapper {
    background-color: #0f172a;
  }
  
  .product-card__title a,
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product h2,
  .woocommerce ul.products li.product h3,
  .single-product div.product .product_title,
  .single-product div.product p.price,
  .single-product div.product span.price {
    color: #f3f4f6;
  }
  
  .product-card__price,
  .woocommerce ul.products li.product .price {
    color: #f3f4f6;
  }
  
  .product-card__price ins,
  .woocommerce ul.products li.product .price ins,
  .single-product div.product p.price ins,
  .single-product div.product span.price ins {
    color: #f87171;
  }
  
  .product-card__sku,
  .woocommerce ul.products li.product .product-sku {
    background-color: #334155;
    color: #cbd5e1;
  }
  
  .single-product div.product .woocommerce-product-details__short-description p,
  .woocommerce div.product .woocommerce-tabs .panel p {
    color: #d1d5db;
  }
  
  .single-product div.product .product_meta {
    color: #9ca3af;
    border-color: #334155;
  }
  
  .single-product div.product form.cart div.quantity input {
    background-color: #334155;
    border-color: #475569;
    color: #f3f4f6;
  }
  
  .single-product div.product .product_meta,
  .single-product div.product .woocommerce-product-details__short-description {
    border-color: #334155;
  }
  
  .woocommerce div.product .woocommerce-tabs ul.tabs:before {
    border-color: #334155;
  }
  
  .woocommerce div.product .woocommerce-tabs ul.tabs li {
    background-color: #1e293b;
    border-color: #334155;
  }
  
  .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #9ca3af;
  }
  
  .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color: #0f172a;
    border-bottom-color: #0f172a;
  }
  
  .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #f3f4f6;
  }
  
  .woocommerce div.product .woocommerce-tabs .panel {
    background-color: #0f172a;
    border-color: #334155;
  }
  
  .woocommerce div.product .woocommerce-tabs .panel h2:first-of-type {
    color: #f3f4f6;
  }
}

/* Responsive Adjustments - Foundation Styling */
@media (max-width: 768px) {
  .woocommerce ul.products[class*=columns-] li.product, 
  .woocommerce-page ul.products[class*=columns-] li.product {
    width: 100%;
    margin-right: 0;
  }
  
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
  margin-top: 2rem;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: inline-flex;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  margin: 0 0.25rem;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background-color: #f3f4f6;
  color: #1f2937;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background-color: #e5e7eb;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: #1e40af;
  color: white;
}

/* WooCommerce Wrapper */
.latinopack-woocommerce-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Stock status indicators */
.product-card__stock {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

.product-card__stock .stock-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.product-card__stock.in-stock {
  color: #10b981;
}

.product-card__stock.in-stock .stock-indicator {
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.product-card__stock.out-of-stock {
  color: #ef4444;
}

.product-card__stock.out-of-stock .stock-indicator {
  background-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Product ratings */
.product-card__rating {
  margin-bottom: 0.5rem;
}

.product-card__rating .star-rating {
  margin: 0 !important;
  float: none !important;
}

/* Disabled button */
.product-card__button.disabled,
.woocommerce ul.products li.product .button.disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

/* Promotional elements */
.product-promo-msg {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: #ef4444;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.product-promo-msg:before {
  content: "🔥";
  margin-right: 0.25rem;
}

/* Limited time offers */
.limited-offer {
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: 4px;
  padding: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ef4444;
  font-weight: 600;
}

.limited-offer-time {
  background-color: #ef4444;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-weight: 700;
}

/* Price comparison with competitors */
.price-comparison {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  text-decoration: line-through;
}

/* Add to cart button focus state */
.product-card__button:focus,
.woocommerce ul.products li.product .button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Improve mobile experience */
@media (max-width: 640px) {
  /* Adjust grid for mobile to make products larger */
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
  }
  
  /* Make products fill more of the screen */
  .product-card,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    max-width: 100%;
  }
  
  /* Larger add to cart button on mobile */
  .product-card__button,
  .woocommerce ul.products li.product .button {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  
  /* Single product layout improvement */
  .single-product div.product div.summary {
    padding: 1.5rem;
  }
  
  .single-product div.product .product_title {
    font-size: 1.5rem;
  }
  
  .single-product div.product p.price,
  .single-product div.product span.price {
    font-size: 1.5rem;
  }
}

/* Add quantity selector styling */
.quantity {
  display: flex;
  align-items: center;
}

.quantity .qty {
  -moz-appearance: textfield;
  width: 3rem !important;
  text-align: center;
  margin: 0 !important;
  padding: 0.5rem 0 !important;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  height: 100%;
}

.quantity .minus,
.quantity .plus {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  color: #4b5563;
}

.quantity .minus {
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.quantity .plus {
  border-radius: 0 4px 4px 0;
  border-left: none;
}

.quantity .minus:hover,
.quantity .plus:hover {
  background-color: #e5e7eb;
}

/* Enhanced Single Product Layout - Added for better UI */
.latinopack-single-product {
  margin-bottom: 3rem;
}

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

@media (min-width: 768px) {
  .latinopack-product-main {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.latinopack-product-gallery {
  position: relative;
}

.latinopack-product-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Improve tabs layout */
.latinopack-product-tabs .woocommerce-tabs {
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
}

.latinopack-product-tabs .wc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.5rem 0;
  list-style: none;
  border-bottom: 1px solid #e5e7eb;
}

.latinopack-product-tabs .wc-tabs li {
  margin: 0 0 -1px 0;
}

.latinopack-product-tabs .wc-tabs li a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  border: 1px solid transparent;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  transition: all 0.2s ease;
}

.latinopack-product-tabs .wc-tabs li.active a {
  color: #1f2937;
  background-color: #ffffff;
  border-color: #e5e7eb;
  border-bottom-color: #ffffff;
}

.latinopack-product-tabs .wc-tabs li a:hover {
  color: #3b82f6;
}

.latinopack-product-tabs .woocommerce-Tabs-panel {
  padding: 1.5rem 0;
}

.latinopack-product-tabs .woocommerce-Tabs-panel--description h2,
.latinopack-product-tabs .woocommerce-Tabs-panel--additional_information h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Related products styling */
.related.products > h2,
.upsells.products > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.related.products > h2:after,
.upsells.products > h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #3b82f6;
  border-radius: 3px;
}

/* Improve mobile responsiveness */
@media (max-width: 767px) {
  .latinopack-product-tabs .wc-tabs {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
  }

  .latinopack-product-tabs .wc-tabs li {
    margin: 0 0 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .latinopack-product-tabs .wc-tabs li a {
    display: block;
    border-radius: 0.375rem;
  }

  .latinopack-product-tabs .wc-tabs li.active a {
    border-bottom-color: #e5e7eb;
  }
}

/* WooCommerce Dark Theme Enhancements */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.product-card {
  position: relative;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 174, 65, 0.3);
  border-color: rgba(0, 174, 65, 0.3);
  z-index: 2;
}

.product-image-wrapper {
  position: relative;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.3);
  transition: all 0.3s ease;
  z-index: 1;
}

.product-image-wrapper:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
  pointer-events: none;
  z-index: 1;
}

.product-image {
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
}

/* Product Title Link Enhancement */
.product-title-link {
  display: block;
  padding: 0.75rem 1rem;
  margin: -0.5rem -0.5rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-title-link:hover {
  background-color: rgba(0, 174, 65, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 174, 65, 0.3);
  transform: translateY(-2px);
}

.product-title-link .product-name {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

.product-title-link:hover .product-name {
  color: rgba(0, 174, 65, 1);
}

/* Product Card Details */
.product-card__details {
  padding: 1.25rem;
  position: relative;
}

.product-card__title {
  margin-bottom: 0.75rem;
}

.product-card__price {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1rem 0;
}

.product-card__price ins {
  text-decoration: none;
  color: #00AE41;
  font-weight: 800;
}

.product-card__price del {
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

/* Enhanced Price Savings Tag */
.price-savings {
  display: inline-block;
  background: linear-gradient(135deg, #00AE41, #006028);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.75rem;
  vertical-align: middle;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 174, 65, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 174, 65, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 174, 65, 0);
  }
}

/* Sale Flash & Badges */
.onsale,
.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 3rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.onsale {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  right: 1rem;
  left: auto;
  transform: rotate(0);
  min-height: auto;
  min-width: auto;
  line-height: 1.5;
  animation: pulse-red 2s infinite;
}

.product-badge.new {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  right: auto;
  left: 1rem;
}

.product-badge.best-seller {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  right: auto;
  left: 1rem;
}

/* Stock Status Styling */
.product-card__stock {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.product-card__stock .stock-indicator {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.product-card__stock.in-stock {
  color: #10b981;
}

.product-card__stock.in-stock .stock-indicator {
  background-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.product-card__stock.out-of-stock {
  color: #ef4444;
}

.product-card__stock.out-of-stock .stock-indicator {
  background-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* WooCommerce Pagination */
.woocommerce nav.woocommerce-pagination {
  margin: 2rem 0;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: inline-flex;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  margin: 0 0.25rem;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  padding: 0.75rem 1rem;
  background-color: rgba(30, 41, 59, 0.8);
  color: white;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background-color: rgba(0, 174, 65, 0.2);
  color: #00AE41;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: #00AE41;
  color: white;
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 767px) {
  .latinopack-product-tabs .wc-tabs {
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: none;
  }

  .latinopack-product-tabs .wc-tabs li {
    margin: 0;
  }

  .latinopack-product-tabs .wc-tabs li a {
    display: block;
    text-align: center;
  }

  .product-card__price {
    font-size: 1.1rem;
  }
  
  .price-savings {
    display: block;
    margin: 0.5rem 0 0;
  }
}

/* Enhance the breadcrumbs styling */
.woocommerce .woocommerce-breadcrumb {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
}

.woocommerce .woocommerce-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: #00AE41;
}

/* Sidebar widget styling */
.woocommerce-page .widget {
  margin-bottom: 2rem;
}

.woocommerce-page .widget-title {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.woocommerce-page .widget-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #00AE41;
}

.woocommerce-page .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-page .widget li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
}

.woocommerce-page .widget li:last-child {
  border-bottom: none;
}

.woocommerce-page .widget a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.woocommerce-page .widget a:hover {
  color: #00AE41;
}

/* Price filter widget */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
  background-color: rgba(255, 255, 255, 0.1);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
  background-color: #00AE41;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  background-color: white;
  border: 2px solid #00AE41;
}

.woocommerce .widget_price_filter .price_slider_amount .button {
  background-color: #00AE41;
  color: white;
  transition: all 0.2s ease;
}

.woocommerce .widget_price_filter .price_slider_amount .button:hover {
  background-color: #009638;
}

/* Results count and ordering */
.woocommerce-result-count,
.woocommerce-ordering {
  margin-bottom: 2rem !important;
}

.woocommerce-ordering select:hover,
#category-filter:hover {
  border-color: rgba(0, 174, 65, 0.3);
  box-shadow: 0 0 0 1px rgba(0, 174, 65, 0.1);
}

.woocommerce-ordering select:focus,
#category-filter:focus {
  outline: none;
  border-color: #00AE41;
  box-shadow: 0 0 0 2px rgba(0, 174, 65, 0.2);
}

/* Add a highlight glow effect on hover to make products pop */
.product-card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(0, 174, 65, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.product-card:hover:before {
  opacity: 1;
}

/* Add to cart loading animation */
.product-card__button.loading:after,
.woocommerce ul.products li.product .button.loading:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Added to cart checkmark animation */
.product-card__button.added:after,
.woocommerce ul.products li.product .button.added:after {
  content: "✓";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
}

/* Enhanced filter and sorting controls */
.woocommerce-ordering select,
#category-filter {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  min-width: 150px;
  transition: all 0.2s ease;
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1em 1em;
  cursor: pointer;
}

.woocommerce-ordering select:hover,
#category-filter:hover {
  border-color: rgba(0, 174, 65, 0.3);
  box-shadow: 0 0 0 1px rgba(0, 174, 65, 0.1);
}

.woocommerce-ordering select:focus,
#category-filter:focus {
  outline: none;
  border-color: #00AE41;
  box-shadow: 0 0 0 2px rgba(0, 174, 65, 0.2);
}

.woocommerce-result-count {
  margin: 0 !important;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Fix for WooCommerce ordering select arrow */
.woocommerce .woocommerce-ordering {
  position: relative;
  margin: 0 !important;
}

.woocommerce .woocommerce-ordering:after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid white;
  pointer-events: none;
} 