/* ============================================================
   e_cat — assets/css/product.css
   Single product page — complete redesign
   ============================================================ */

/* ---- Breadcrumb ------------------------------------------ */
.breadcrumb-wrap { padding-top: 6rem; padding-bottom: 1rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--color-green); }
.breadcrumb span { color: var(--color-black); font-weight: 500; }

/* ---- Product layout -------------------------------------- */
.product-wrap { padding-bottom: 5rem; }

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

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---- Gallery --------------------------------------------- */
.product-gallery { display: flex; flex-direction: column; gap: 1rem; }

.gallery-main {
  background: var(--color-beige);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
}
.thumb {
  background: var(--color-beige);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--transition), opacity var(--transition);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.8; }
.thumb.active { border-color: var(--color-green); box-shadow: 0 0 0 3px rgba(107,124,90,0.15); }

/* ---- Product info column --------------------------------- */
.product-info { display: flex; flex-direction: column; gap: 0; }

.product-category {
  font-size: var(--text-xs);
  color: var(--color-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
}

/* Title — reasonable size, not 3rem */
.product-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.3;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.stars { display: flex; align-items: center; gap: 2px; }
.stars i { color: var(--color-orange); font-size: 1rem; }
.rating-count { font-size: var(--text-sm); color: var(--color-gray-text); }

/* Price */
.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-beige-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-green);
}
.price-amount {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-green);
  line-height: 1;
}
.price-amount .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }
.price-ttc { font-size: var(--text-xs); color: var(--color-gray-text); }

/* Stock */
.product-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: #16a34a;
  font-weight: 500;
  margin-bottom: 1rem;
}
.product-stock i { font-size: 1.1rem; }

/* CJ badge */
.cj-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.875rem;
  background: rgba(107,124,90,0.08);
  border: 1px solid rgba(107,124,90,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-green);
  font-weight: 500;
  margin-bottom: 1.25rem;
  width: fit-content;
}

/* Short description — clean up Slate/CJ markup */
/* product-desc styles moved to bottom toggle section */

/* Hide all slate/CJ junk nodes */
.product-desc [data-slate-node],
.product-desc [data-slate-leaf],
.product-desc [data-slate-fragment],
.product-desc .w-full,
.product-desc table {
  all: revert;
}
.product-desc h3 { font-size: var(--text-sm); font-weight: 600; margin: 0.5rem 0 0; }
.product-desc table { display: none; } /* specs table in desc — hidden, shown below */

/* ---- Variations ------------------------------------------ */
.variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}
.variations tr { border: none; }
.variations th.label {
  padding: 0 1rem 0.75rem 0;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  width: 6rem;
}
.variations th.label label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-black);
}
.variations td.value { padding: 0 0 0.75rem; vertical-align: middle; }

.variations td.value select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border: 1.5px solid var(--color-gray-border);
  border-radius: var(--radius-full);
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  font-size: var(--text-sm);
  font-family: var(--font-family);
  color: var(--color-black);
  cursor: pointer;
  min-width: 11rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.variations td.value select:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(107,124,90,0.12);
}

.reset_variations {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.625rem;
  font-size: var(--text-xs);
  color: var(--color-gray-text);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.625rem;
  transition: color var(--transition), border-color var(--transition);
}
.reset_variations:hover { color: #ef4444; border-color: #fca5a5; }

/* Variation price update */
.woocommerce-variation-price { margin-bottom: 0.75rem; }
.woocommerce-variation-price .price,
.woocommerce-variation-price .amount {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-green);
}

/* ---- WC native qty — hidden (replaced by custom UI) ------ */
form.cart .quantity,
.ecat-qty-hidden { display: none !important; }

/* ---- Custom quantity control ----------------------------- */
.quantity-section { margin-bottom: 1.25rem; }
.quantity-section > label,
.quantity-section label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 0.625rem;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0;
}

.qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: white;
  border: 1.5px solid var(--color-gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-black);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.qty-btn:hover:not(:disabled) { background: var(--color-green); border-color: var(--color-green); color: white; }
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.qty-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-black);
  min-width: 3rem;
  text-align: center;
}

/* ---- Add to cart button ---------------------------------- */
form.cart .single_add_to_cart_button,
.single_add_to_cart_button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--color-green);
  color: white !important;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
  margin-bottom: 1rem;
  text-align: center;
}
form.cart .single_add_to_cart_button:hover { background: var(--color-green-dark); transform: scale(1.01); }
form.cart .single_add_to_cart_button.disabled,
form.cart .single_add_to_cart_button:disabled {
  background: var(--color-gray-light);
  cursor: not-allowed;
  transform: none;
}
form.cart .single_add_to_cart_button.wc-variation-selection-needed::before {
  content: '\f00d';
}

/* ---- Features box ---------------------------------------- */
.features-box {
  background: var(--color-beige-light);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}
.features-box:empty { display: none; }

.features-box h3,
.specs-section h3,
.composition-section h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--color-gray-border);
}

.features-list { display: flex; flex-direction: column; gap: 0.625rem; }
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--text-sm);
  color: #374151;
}
.features-list i { color: var(--color-green); font-size: 1rem; margin-top: 0.15rem; flex-shrink: 0; }

/* ---- Specs section --------------------------------------- */
.specs-section {
  border-top: 1px solid var(--color-gray-border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}
.specs-table { display: flex; flex-direction: column; }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid #f3f4f6;
}
.spec-row:last-child { border-bottom: none; }
.spec-row span { color: var(--color-gray-text); }
.spec-row strong { color: var(--color-black); font-weight: 600; }

/* ---- Description section (below grid) -------------------- */
.composition-section {
  background: white;
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}
.composition-section > * { font-size: var(--text-sm); color: #374151; line-height: 1.7; }
.composition-section h3 { font-size: var(--text-lg); font-weight: 700; color: var(--color-black); border: none; }
.composition-section table { display: none; } /* hide duplicate CJ spec tables */

/* ---- WooCommerce notices --------------------------------- */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  list-style: none;
}
.woocommerce-message { background: #dcfce7; color: #16a34a; border-left: 3px solid #16a34a; }
.woocommerce-error   { background: #fee2e2; color: #dc2626; border-left: 3px solid #dc2626; }
.woocommerce-info    { background: #dbeafe; color: #2563eb; border-left: 3px solid #2563eb; }
.woocommerce-error li { list-style: none; }

/* ---- Reviews section ------------------------------------- */
.reviews-section {
  background: white;
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

#reviews h2,
#reviews h3#reply-title { 
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--color-gray-border);
}

/* Review list */
#comments ol.commentlist {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#comments ol.commentlist li.comment {
  background: var(--color-beige-light);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  list-style: none;
}

#comments ol.commentlist li.comment .comment-text {
  border: none;
  padding: 0;
  margin: 0;
}

#comments ol.commentlist .meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem 1rem;
  margin-bottom: 0.75rem;
}

.woocommerce-review__author {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-black);
}

.woocommerce-review__dash { display: none; }

.woocommerce-review__published-date {
  font-size: var(--text-xs);
  color: var(--color-gray-light);
}

/* Star rating in reviews */
.star-rating {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  height: 1rem;
  font-size: 0.8rem;
  color: var(--color-orange);
}
.star-rating::before {
  content: 'sssss';
  letter-spacing: 2px;
  color: var(--color-gray-border);
}
.star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  padding-top: 1.5em;
}
.star-rating span::before {
  content: 'sssss';
  letter-spacing: 2px;
  color: var(--color-orange);
  top: 0;
  position: absolute;
}

#comments ol.commentlist p.description {
  font-size: var(--text-sm);
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.woocommerce-noreviews {
  padding: 2rem;
  text-align: center;
  color: var(--color-gray-text);
  background: var(--color-beige-light);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

/* Review form */
#review_form_wrapper { margin-top: 2rem; }

#review_form_wrapper #reply-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-gray-border);
  color: var(--color-black);
}

.comment-form-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  background: var(--color-beige-light);
  border-radius: var(--radius-sm);
}
.comment-form-rating label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-black);
  margin: 0;
  white-space: nowrap;
}

/* WC star selector */
.comment-form-rating .stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.comment-form-rating .stars a {
  font-size: 1.5rem;
  color: var(--color-gray-border);
  line-height: 1;
  text-decoration: none;
  transition: color var(--transition);
}
.comment-form-rating .stars a:hover,
.comment-form-rating .stars a.active,
.comment-form-rating .stars.selected a.active { color: var(--color-orange); }

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

#review_form label,
.comment-form label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-black);
  display: block;
}

#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-family: var(--font-family);
  background: #fafafa;
  color: var(--color-black);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
#review_form input:focus,
#review_form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(107,124,90,0.12);
  background: white;
}
#review_form textarea,
.comment-form textarea { min-height: 7rem; }

.form-submit { margin-top: 0.75rem; }

#review_form input[type="submit"],
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--color-green);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: background var(--transition);
}
#review_form input[type="submit"]:hover,
.comment-form input[type="submit"]:hover { background: var(--color-green-dark); }

/* 2-column review meta fields */
@media (min-width: 640px) {
  .comment-form .comment-form-author,
  .comment-form .comment-form-email { width: 48%; display: inline-flex; }
  .comment-form .comment-form-author { margin-right: 4%; }
}

/* ---- Woo single variation add to cart layout ------------- */
.woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---- Stripe express checkout — keep clean ---------------- */
#wc-stripe-express-checkout-element { margin-top: 0.75rem; }

/* ============================================================
   CUSTOM STAR RATING WIDGET
   ============================================================ */

/* Hide the WC native <p class="stars"> */
.comment-form-rating p.stars,
.comment-form-rating .stars { display: none !important; }

.comment-form-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  background: var(--color-beige-light);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.comment-form-rating label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-black);
  margin: 0;
  white-space: nowrap;
}

.ecat-star-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.esw-star {
  cursor: pointer;
  line-height: 1;
  padding: 0.15rem;
  transition: transform 0.12s ease;
}

.esw-star:hover { transform: scale(1.2); }

.esw-star i {
  font-size: 1.75rem;
  color: var(--color-gray-border);
  transition: color 0.12s ease;
  display: block;
}

.esw-star.filled i,
.esw-star i.ri-star-fill { color: var(--color-orange); }

.esw-label {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  font-weight: 500;
  margin-left: 0.5rem;
  min-width: 5rem;
}

/* ============================================================
   CUSTOM SELECT  (ecat-select-wrap)
   ============================================================ */

.ecat-select-wrap {
  position: relative;
  display: inline-block;
  min-width: 11rem;
  user-select: none;
}

/* Hide native select visually but keep for form submission */
.ecat-select-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
}

/* Trigger button */
.ecat-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: white;
  border: 1.5px solid var(--color-gray-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-family: var(--font-family);
  color: var(--color-black);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  overflow: hidden;
}

.ecat-select-trigger:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(107,124,90,0.12);
}

.ecat-select-wrap.open .ecat-select-trigger {
  border-color: var(--color-green);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.ecat-sel-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecat-sel-text.placeholder { color: var(--color-gray-light); }

.ecat-sel-arrow {
  font-size: 1.1rem;
  color: var(--color-gray-text);
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.ecat-select-wrap.open .ecat-sel-arrow { transform: rotate(180deg); }

/* Dropdown list */
.ecat-select-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  background: white;
  border: 1.5px solid var(--color-green);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  list-style: none;
  padding: 0.375rem 0;
  margin: 0;
  max-height: 14rem;
  overflow-y: auto;

  /* Hidden by default */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ecat-select-wrap.open .ecat-select-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.ecat-sel-option {
  padding: 0.6rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-black);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.ecat-sel-option:hover { background: var(--color-beige-light); color: var(--color-green); }

.ecat-sel-option.active {
  background: rgba(107,124,90,0.08);
  color: var(--color-green);
  font-weight: 600;
}

.ecat-sel-option.ecat-sel-placeholder {
  color: var(--color-gray-light);
  font-style: italic;
}

.ecat-sel-option.ecat-sel-disabled {
  color: var(--color-gray-border);
  pointer-events: none;
  text-decoration: line-through;
}

/* Scrollbar in list */
.ecat-select-list::-webkit-scrollbar { width: 4px; }
.ecat-select-list::-webkit-scrollbar-track { background: transparent; }
.ecat-select-list::-webkit-scrollbar-thumb { background: var(--color-gray-border); border-radius: 2px; }

/* ============================================================
   PRICE — hide old/sale crossed price globally
   ============================================================ */

/* Hide <del> (old price) everywhere in the theme */
.price del,
.price ins,
.woocommerce-Price-amount del,
.product-price del,
.card .price del,
.price > del { display: none !important; }

/* Remove the <ins> wrapper decoration — show price clean */
.price ins {
  text-decoration: none !important;
  font-weight: inherit;
  color: inherit;
}

/* ============================================================
   STOCK — hide WooCommerce default .in-stock badge
   ============================================================ */

p.stock.in-stock,
.woocommerce-product-details__short-description .stock,
.stock.in-stock { display: none !important; }

/* Out of stock — styled */
.product-stock--out {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: #dc2626;
  font-weight: 500;
  margin-bottom: 1rem;
}
.product-stock--out i { font-size: 1.1rem; }

/* ============================================================
   GALLERY THUMBS — always 3 columns
   ============================================================ */

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

/* ============================================================
   RATING — stars always shown, 0-star style
   ============================================================ */

.ecat-stars i.ri-star-line { color: #d1d5db; }
.ecat-stars i.ri-star-fill  { color: var(--color-orange); }
.ecat-stars i.ri-star-half-fill { color: var(--color-orange); }

.rating-count a {
  color: var(--color-gray-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.rating-count a:hover {
  color: var(--color-green);
  text-decoration-color: var(--color-green);
}

.rating-count--empty a {
  font-size: var(--text-xs);
  color: var(--color-green);
}

/* ============================================================
   DESCRIPTION TOGGLE
   ============================================================ */

.product-desc {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--color-gray-border);
  padding: 1rem 1.25rem;
  font-size: var(--text-sm);
  color: #374151;
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

.product-desc.desc-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3rem;
  background: linear-gradient(transparent, white);
  pointer-events: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.desc-toggle-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  color: var(--color-green);
  font-weight: 500;
  cursor: pointer;
  padding: 0.375rem 0 1rem;
  transition: color var(--transition);
  user-select: none;
}
.desc-toggle-hint:hover { color: var(--color-green-dark); }
.desc-toggle-hint i { font-size: 1rem; transition: transform 0.3s ease; }

/* Remove old ::after from product-desc since we have toggle */
.product-desc[data-expanded="true"]::after { display: none; }

/* ============================================================
   VARIATION SELECTS — Custom select inside .variations table
   ============================================================ */

/* Hide the native select inside variation td */
.variations td.value select.ecat-select-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Override generic .variations td.value select styles when wrapped */
.variations td.value .ecat-select-wrap { display: inline-block; min-width: 12rem; }

.variations td.value .ecat-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: white;
  border: 1.5px solid var(--color-gray-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-family: var(--font-family);
  color: var(--color-black);
  cursor: pointer;
  white-space: nowrap;
  min-width: 12rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-align: left;
}

.variations td.value .ecat-select-trigger:focus,
.variations td.value .ecat-select-wrap.open .ecat-select-trigger {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(107,124,90,0.12);
}

.variations td.value .ecat-select-wrap.open .ecat-select-trigger {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.variations td.value .ecat-sel-text.placeholder { color: var(--color-gray-light); font-style: italic; }

.variations td.value .ecat-sel-arrow {
  font-size: 1.15rem;
  color: var(--color-gray-text);
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.variations td.value .ecat-select-wrap.open .ecat-sel-arrow { transform: rotate(180deg); }

/* Dropdown list for variations */
.variations td.value .ecat-select-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 500;
  background: white;
  border: 1.5px solid var(--color-green);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
  padding: 0.25rem 0;
  margin: 0;
  max-height: 13rem;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.variations td.value .ecat-select-wrap.open .ecat-select-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.variations td.value .ecat-sel-option {
  padding: 0.6rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-black);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition), color var(--transition);
}
.variations td.value .ecat-sel-option:hover { background: var(--color-beige-light); color: var(--color-green); }
.variations td.value .ecat-sel-option.active {
  background: rgba(107,124,90,0.08);
  color: var(--color-green);
  font-weight: 600;
}
.variations td.value .ecat-sel-option.ecat-sel-placeholder {
  color: var(--color-gray-light);
  font-style: italic;
}
.variations td.value .ecat-sel-option.ecat-sel-disabled {
  color: var(--color-gray-border);
  pointer-events: none;
  text-decoration: line-through;
}
