
/* ===== Single Product Optimizations ===== */

/* Benefits Grid */
.product-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.3;
  color: #ddd;
}

.benefit-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Star Rating */
.woocommerce-product-rating {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.star-rating {
  color: var(--premium);
}

/* Sticky Add to Cart Bar */
.sticky-atc-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1a1a1a;
  border-top: 1px solid var(--premium);
  padding: 12px 0;
  z-index: 9999;
  transform: translateY(110%);
  transition: transform 0.3s ease, visibility 0.3s;
  visibility: hidden;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.sticky-atc-wrapper.visible {
  transform: translateY(0);
  visibility: visible;
}

.sticky-atc-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sticky-product-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sticky-product-info img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #333;
}

.sticky-product-details {
  display: flex;
  flex-direction: column;
}

.sticky-product-title {
  font-weight: bold;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.sticky-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Sticky Quantity */
.sticky-qty {
  display: flex;
  align-items: center;
  background: #000;
  border: 1px solid #333;
  border-radius: 4px;
}

.sticky-qty .qty-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 30px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticky-qty .qty-btn:hover {
  background: #222;
  color: var(--premium);
}

.sticky-qty input.qty {
  width: 40px;
  height: 36px;
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  font-weight: bold;
  -moz-appearance: textfield;
}
.sticky-qty input.qty::-webkit-outer-spin-button,
.sticky-qty input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Sticky Button */
.sticky-atc-btn {
  background: var(--premium);
  color: #000;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-atc-btn:hover {
  background: #fff;
  color: #000;
}

.sticky-btn-icon {
  display: none;
}

@media (max-width: 768px) {
  .sticky-atc-wrapper {
      padding: 10px 0;
  }
  
  .sticky-product-info {
     display: none; /* Hide product info on mobile to save space */
  }

  .sticky-atc-inner {
      justify-content: space-between; /* Space out qty and btn */
      width: 100%;
  }

  .sticky-actions {
      width: 100%;
      justify-content: space-between;
      gap: 10px;
  }
  
  .sticky-qty {
      flex: 0 0 auto;
  }

  .sticky-atc-btn { 
      flex: 1; /* Button takes remaining space */
      padding: 10px; 
      min-width: 50px; /* Ensure icon fits */
  }

  .sticky-btn-text {
      display: none; /* Hide text on mobile */
  }
  
  .sticky-btn-icon {
      display: flex;
  }
}
