.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  height: 100%;
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

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

.product-card-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

.product-card-quick {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-base);
}

.product-card:hover .product-card-quick {
  opacity: 1;
  transform: translateY(0);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--space-5) var(--space-5) var(--space-6);
  text-align: left;
}

.product-card-category {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

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

.product-card-stars {
  color: var(--color-accent);
  font-size: calc(var(--text-md) - 2px);
  letter-spacing: 1px;
  line-height: 1;
}

.product-card-stars .star.empty {
  color: var(--color-border);
}

.product-card-review-count {
  color: var(--color-text-light);
  font-size: var(--text-xs);
  font-weight: 500;
}

.product-card-description {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
  line-height: var(--leading-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
}

.product-card-price-old {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: var(--space-2);
  font-weight: 400;
  font-family: var(--font-body);
}

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

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  
  .product-grid .product-card-description {
    display: none;
  }

  .product-grid .product-card-body {
    padding: var(--space-4);
  }

  .product-grid .product-card-title {
    font-size: var(--text-base);
  }

  .product-grid .product-card-price {
    font-size: var(--text-base);
  }

  
  .featured-products .product-grid {
    grid-template-columns: 1fr;
  }

  .featured-products .product-grid .product-card-description {
    display: -webkit-box;
  }

  .featured-products .product-grid .product-card-body {
    padding: var(--space-5) var(--space-5) var(--space-6);
  }

  .featured-products .product-grid .product-card-title,
  .featured-products .product-grid .product-card-price {
    font-size: var(--text-lg);
  }
}

.featured-products {
  text-align: center;
}

.featured-products .section-label,
.featured-products .heading-2 {
  text-align: center;
}

.featured-products .heading-2 {
  margin-bottom: var(--space-3);
}

.featured-products .subtitle {
  max-width: 550px;
  margin: 0 auto var(--space-10);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.product-gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background-color: var(--color-bg-alt);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-fade {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  will-change: opacity, transform;
  transition: opacity 450ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.product-gallery-fade.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-fade {
    transform: none;
    transition: opacity 180ms linear;
  }
  .product-gallery-fade.is-visible {
    transform: none;
  }
}

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-3);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.product-thumb {
  width: 80px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-base);
  flex-shrink: 0;
}

.product-thumb.active,
.product-thumb:hover {
  border-color: var(--color-primary);
}

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

.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-top: var(--space-4);
  min-width: 0;
}

.product-info-category {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
}

.product-info-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.product-info-price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-primary-dark);
}

.wc-price-history-lowest-inner {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.product-info-description {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-light);
}

.product-info-description p+p {
  margin-top: var(--space-4);
}

.product-info-line {
  height: 1px;
  background-color: var(--color-border);
  border: none;
}

.product-full-description .post-content {
  max-width: none;
  padding-bottom: 0;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.product-feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-success);
  flex-shrink: 0;
}

.product-add .cart {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}

.product-add .quantity {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 48px;
  background-color: var(--color-surface);
}

.product-add .quantity .qty-btn {
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.product-add .quantity .qty-btn:hover {
  background-color: var(--color-bg-alt);
}

.product-add .quantity .qty-btn:disabled {
  color: var(--color-text-muted);
  cursor: default;
  opacity: 0.35;
}

.product-add .quantity .qty-btn:disabled:hover {
  background-color: transparent;
}

.product-add .quantity input[type=number]::-webkit-inner-spin-button,
.product-add .quantity input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-add .quantity input[type=number] {
  -moz-appearance: textfield;
}

.product-add .quantity .qty {
  width: 50px;
  text-align: center;
  border: none;
  font-size: var(--text-md);
  font-family: var(--font-body);
  color: var(--color-text);
  background: none;
  outline: none;
  padding: 0;
  height: 100%;
}

.product-add .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-primary);
  background-color: var(--color-primary);
  color: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.product-add .single_add_to_cart_button::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.product-add .single_add_to_cart_button:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-lg);
}

.product-add .availability,
.product-add .stock {
  display: none !important;
}

.price-from {
  font-family: var(--font-body);
  font-size: 0.7em;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-right: 0.35em;
  text-transform: none;
  letter-spacing: 0;
}

.product-info-price del {
  color: var(--color-text-muted);
  font-weight: 400;
  margin-right: var(--space-2);
}

.product-info-price ins {
  text-decoration: none;
}

.product-add--variable form.variations_form {
  display: block;
  margin: 0;
}

.product-add--variable .variations {
  width: 100%;
  border: none;
  border-collapse: collapse;
  margin: 0 0 var(--space-5);
}

.product-add--variable .variations tbody tr {
  display: block;
  margin-bottom: var(--space-5);
}

.product-add--variable .variations tbody tr:last-child {
  margin-bottom: 0;
}

.product-add--variable .variations th.label,
.product-add--variable .variations td.value {
  display: block;
  padding: 0;
  border: none;
  text-align: left;
}

.product-add--variable .variations th.label {
  margin-bottom: var(--space-3);
}

.product-add--variable .variations th.label label {
  display: inline;
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.product-add--variable .variation-current-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dark);
  text-transform: none;
  letter-spacing: 0;
}

.product-add--variable .variations select.variation-select--enhanced {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.product-add--variable .variation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center; 
}

.product-add--variable .variation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-base), background-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.product-add--variable .variation-pill:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.product-add--variable .variation-pill:focus-visible {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(123, 107, 164, 0.12);
}

.product-add--variable .variation-pill.is-selected {
  border-color: var(--color-primary);
  background-color: rgba(123, 107, 164, 0.08);
  color: var(--color-primary-dark);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.product-add--variable .variation-pill.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
  border-style: dashed;
}

.product-add--variable .variation-pill--image {
  width: 64px;
  height: 64px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.product-add--variable .variation-pill-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.product-add--variable .variation-pill--image.is-selected {
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.product-add--variable .variation-pills.has-error .variation-pill:not(.is-disabled) {
  border-color: var(--color-error);
}

.product-add--variable .variation-hint {
  margin: calc(var(--space-3) * -1) 0 var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-error);
}

.product-add--variable .variation-hint[hidden] {
  display: none;
}

.product-add--variable .woocommerce-variation-price,
.product-add--variable .woocommerce-variation-availability {
  display: none !important;
}

.product-add--variable .single_variation_wrap {
  margin: 0;
}

.product-add--variable .woocommerce-variation-description {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-light);
}

.product-add--variable .woocommerce-variation-description:not(:empty) {
  margin-bottom: var(--space-4);
}

.product-add--variable .woocommerce-variation-add-to-cart {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}

.product-add--variable .single_add_to_cart_button.disabled,
.product-add--variable .single_add_to_cart_button.wc-variation-selection-needed,
.product-add--variable .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button {
  opacity: 1;
  cursor: pointer;
}

.product-add--variable .wc-no-matching-variations {
  font-size: var(--text-sm);
  color: var(--color-error);
  font-weight: 500;
  margin: var(--space-2) 0 0;
}

.product-reviews {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-10);
}

.product-reviews h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.product-reviews .woocommerce-Reviews {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.product-reviews .commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-reviews .commentlist li {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}

.product-reviews .comment_container {
  display: flex;
  gap: var(--space-4);
}

.product-reviews img.avatar {
  display: none !important;
}

.product-reviews .comment-text {
  flex: 1;
  min-width: 0;
}

.product-reviews .star-rating {
  overflow: hidden;
  position: relative;
  height: 1em;
  line-height: 1;
  font-size: var(--text-sm);
  width: 5.6em; 
  display: block;
  font-family: Arial, sans-serif; 
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.product-reviews .star-rating::before {
  content: "\2606\2606\2606\2606\2606";
  opacity: 0.25;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}

.product-reviews .star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}

.product-reviews .star-rating span::before {
  content: "\2605\2605\2605\2605\2605";
  top: 0;
  position: absolute;
  left: 0;
}

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

.product-reviews .woocommerce-review__author {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-dark);
}

.product-reviews .woocommerce-review__dash {
  
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.product-reviews .woocommerce-review__published-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.product-reviews .description p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-light);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.product-reviews #review_form_wrapper {
  background-color: var(--color-bg-alt);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  margin-top: var(--space-10);
}

.product-reviews #reply-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.product-reviews .comment-form-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-6) !important;
}

.product-reviews .comment-form-rating label {
  font-weight: 500;
  color: var(--color-text);
}

.product-reviews .stars {
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.product-reviews .stars span {
  display: flex;
  align-items: center;
}

.product-reviews .stars a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: transparent;
  width: 32px;
  height: 32px;
  position: relative;
}

.product-reviews .stars a::before {
  content: "★";
  color: var(--color-text-muted);
  
  font-size: 28px;
  line-height: 1;
  position: absolute;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.product-reviews .stars a:hover::before {
  transform: scale(1.1);
}

.product-reviews .stars span:hover a::before {
  color: var(--color-accent);
}

.product-reviews .stars span a:hover~a::before {
  color: var(--color-text-muted);
}

.product-reviews .stars.selected span a::before {
  color: var(--color-accent);
}

.product-reviews .stars.selected span a.active~a::before {
  color: var(--color-text-muted);
}

.product-reviews .comment-form p {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-reviews .comment-form label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
}

.product-reviews .comment-form input[type="text"],
.product-reviews .comment-form input[type="email"],
.product-reviews .comment-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background-color: var(--color-surface);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.product-reviews .comment-form input:focus,
.product-reviews .comment-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(121, 85, 158, 0.1);
}

.product-reviews .comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.product-reviews .comment-form .form-submit {
  margin-top: var(--space-6);
}

.product-reviews .comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  transition: all var(--transition-base);
  align-self: flex-start;
}

.product-reviews .comment-form .submit:hover {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.product-stock {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.product-stock-label {
  font-size: var(--text-sm);
  font-weight: 500;
}

.product-stock-label.in-stock {
  color: var(--color-success);
}

.product-stock-label.out-of-stock {
  color: var(--color-error);
}

.countdown-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

.countdown-items {
  display: inline-flex;
  gap: var(--space-6);
  padding: var(--space-4);
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 40px;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .product-info-title {
    font-size: var(--text-2xl);
  }

  .product-gallery-thumbs {
    overflow-x: auto;
    padding-bottom: var(--space-2);
  }
}

@media (max-width: 480px) {
  .featured-products .btn {
    width: 100%;
  }
}