/* ==========================================================================
   EasySlim - LIPO KETONIC Product & Checkout Stylesheet
   ========================================================================== */

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 991px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

.product-gallery-wrapper {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #F5FAF7 0%, #E6EFEA 100%);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.product-bottle-img {
  max-height: 480px;
  margin: 0 auto;
  filter: drop-shadow(0 15px 25px rgba(30, 63, 32, 0.15));
  transition: transform 0.4s ease;
}

.product-bottle-img:hover {
  transform: scale(1.03) rotate(-1deg);
}

.product-badge-float {
  position: absolute;
  top: 24px;
  left: 24px;
}

.product-badge-float img {
  width: 75px;
  height: 75px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.product-capsule-tag {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background-color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Product Info Right Column */
.product-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.product-rating-row .stars {
  color: #F5A623;
}

.rating-count {
  color: var(--text-muted);
}

.stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #216E43;
  font-size: 0.88rem;
  font-weight: 700;
}

.stock-dot {
  width: 10px;
  height: 10px;
  background-color: #2ECC71;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.product-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.product-bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.bullet-icon {
  color: var(--accent);
  font-size: 1.1rem;
}

/* Bundle Selection Cards */
.bundle-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 15px 0;
}

.bundle-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.bundle-card:hover {
  border-color: #A3C9B0;
}

.bundle-card.active {
  border-color: var(--primary);
  background-color: var(--bg-mint);
  box-shadow: 0 4px 15px rgba(30, 63, 32, 0.08);
}

.bundle-ribbon {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(90deg, var(--accent) 0%, #FF7A59 100%);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(229, 88, 54, 0.3);
}

.bundle-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bundle-radio-indicator {
  width: 22px;
  height: 22px;
  border: 2px solid #A6B8AE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bundle-card.active .bundle-radio-indicator {
  border-color: var(--primary);
}

.bundle-card.active .bundle-radio-indicator::after {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--primary);
  border-radius: 50%;
}

.bundle-text h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.bundle-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bundle-price-wrap {
  text-align: right;
}

.bundle-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
}

.bundle-save-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}

.bundle-tag-wrap {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.bundle-tag-pill {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  display: inline-block;
  white-space: nowrap;
}

.bundle-tag-pill.accent {
  background: var(--accent);
}

.bundle-tag-pill.gold {
  background: linear-gradient(135deg, #1E3F20, #2D5B33);
}

.bundle-tag-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: #216E43;
}

/* Ingredients Grid */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .ingredients-grid {
    grid-template-columns: 1fr;
  }
}

.ingredient-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
}

.ingredient-icon {
  font-size: 2rem;
  background-color: var(--bg-subtle);
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ingredient-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.ingredient-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Checkout Section & Form */
.checkout-section {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 50px 40px;
  margin-top: 60px;
}

@media (max-width: 768px) {
  .checkout-section {
    padding: 30px 20px;
  }
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 35px;
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-group-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
}

.form-input {
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 63, 32, 0.1);
}

/* Delivery & Payment Radio Options */
.radio-select-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.radio-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
}

.radio-box:hover {
  border-color: #A3C9B0;
}

.radio-box input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

/* Order Summary Box */
.order-summary-box {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: fit-content;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-row.total {
  border-top: 2px solid var(--border-light);
  padding-top: 14px;
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
}

.trust-badges-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--bg-mint);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Checkout Cart Items List */
.checkout-cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 6px;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkout-item-thumb {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.checkout-item-details {
  flex: 1;
}

.checkout-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.checkout-item-qty {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Thank You Page Styles */
.thankyou-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.thankyou-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

@media (max-width: 600px) {
  .thankyou-card {
    padding: 28px 18px;
  }
}

.thankyou-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, var(--primary) 0%, #2ECC71 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

.tracking-box {
  background-color: var(--bg-subtle);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  flex-wrap: wrap;
  gap: 12px;
}

.tracking-code-pill {
  background-color: var(--primary);
  color: #FFFFFF;
  font-family: monospace;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

/* Tracking Stepper */
.tracking-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 30px 0 20px;
  text-align: center;
  position: relative;
}

@media (max-width: 640px) {
  .tracking-stepper {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 16px;
  }
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

@media (max-width: 640px) {
  .step-item {
    flex-direction: row;
    gap: 14px;
    align-items: center;
  }
}

.step-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  z-index: 2;
}

.step-item.completed .step-bubble {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.step-item.active .step-bubble {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(229, 88, 54, 0.2);
}

.step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.order-receipt-table {
  width: 100%;
  margin: 25px 0;
  border-collapse: collapse;
  text-align: left;
}

.order-receipt-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.order-receipt-table td:first-child {
  font-weight: 700;
  color: var(--primary);
  width: 38%;
}

.trainer-tip-card {
  background: linear-gradient(135deg, #F5FAF7 0%, #E6EFEA 100%);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid #A3C9B0;
  margin: 30px 0;
  text-align: left;
  display: flex;
  gap: 18px;
  align-items: center;
}

@media (max-width: 600px) {
  .trainer-tip-card {
    flex-direction: column;
    text-align: center;
  }
}

.trainer-tip-card img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .order-receipt-table tr {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
  }
  .order-receipt-table td {
    width: 100% !important;
    padding: 3px 0 !important;
    border-bottom: none !important;
  }
}
