/* ===== GLOBAL ===== */
.jf-wrap * {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif
}

.jf-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px
}

/* ===== GRID ===== */
.jf-hero {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 30px
}

/* ===== GALLERY ===== */
.jf-main-img img {
  width: 100%;
  border-radius: 4px
}

.jf-thumbs {
  display: flex;
  justify-content: space-evenly;
  margin-top: 10px;
  padding: 0 5px;
}

.jf-thumbs img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out;
}

.jf-thumbs img:hover {
  border-color: #999;
}

.jf-thumbs img.active {
  border-color: #e60000
}

/* ===== TITLE ===== */
.jf-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3
}

/* ===== PRICE ===== */
.jf-price {
  font-size: 24px;
  font-weight: 700;
  color: #e60000;
  margin: 10px 0
}

/* ===== COUPON ===== */
.jf-coupon {
  border: 1px dashed #ccc;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
}

.jf-coupon a {
  color: #0071e3;
  cursor: pointer;
  text-decoration: underline
}

/* ===== TIMER ===== */
.jf-timer {
  border: 1px solid #ffb3b3;
  background: #fff5f5;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  color: #e60000;
  font-weight: 600;
}

/* ===== OFFER LIST ===== */
.jf-offer-title {
  font-size: 22px;
  font-weight: 800;
  margin: 15px 0
}

.jf-offer-list {
  list-style: none;
  padding: 0
}

.jf-offer-list li {
  margin-bottom: 8px;
  font-size: 16px
}

.jf-offer-list span {
  background: #1fbf00;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 8px
}

/* ===== CONFIRM ===== */
.jf-confirm,
.jf-showroom {
  font-size: 22px;
  font-weight: 800;
  margin: 15px 0
}

/* ===== BUY BUTTON ===== */
.jf-buy-row {
  margin-top: 15px
}

.jf-buy-btn {
  width: 100%;
  background: #e60000;
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 15px 0;
  border-radius: 4px;
}

/* ===== CHECKOUT SECTION ===== */
.jf-checkout-wrap {
  margin-top: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.jf-checkout-container {
  padding: 20px;
}

.jf-checkout-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.jf-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.jf-customer-info h3,
.jf-order-summary h3 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.jf-form-row {
  margin-bottom: 15px;
}

.jf-form-row label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.jf-form-row input,
.jf-form-row textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.jf-delivery-options {
  display: flex;
  gap: 15px;
}

.jf-radio-label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

.jf-radio-label input {
  width: auto;
  margin-right: 5px;
}

.jf-submit-btn {
  background: #e60000;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.jf-submit-btn:hover {
  background: #cc0000;
}

.jf-product-summary {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.jf-product-info {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.jf-product-info img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.jf-product-info h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.jf-product-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.jf-pricing {
  margin-top: 15px;
}

.jf-price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.jf-price-row.jf-total-row {
  font-weight: 600;
  font-size: 16px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.jf-discount-value {
  color: #e60000;
}

.jf-total-value {
  color: #e60000;
  font-weight: 700;
}

.jf-payment-options h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.jf-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jf-order-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  display: none;
}

.jf-order-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.jf-order-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.jf-discount-row {
  display: none;
  /* Hidden by default, shown when coupon is applied */
}

/* Coupon Success Message */
.coupon-success-message {
  color: #28a745 !important;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  display: none;
}

/* Variation Selector */
.jf-variation-selector {
  margin: 15px 0;
  padding: 15px;
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
}

.jf-attribute-row h4 {
  font-size: 14px;
  margin: 0 0 10px 0;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.attribute-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.attribute-options label {
  background: #fff;
  border: 2px solid #ddd;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  position: relative;
}

.attribute-options label:hover {
  border-color: #999;
}

.attribute-options input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.attribute-options label:has(input:checked) {
  border-color: #e60000;
  background: #fff5f5;
  color: #e60000;
  font-weight: 600;
}

/* Trust Badges */
.jf-trust-row {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  padding-top: 15px;
  border-top: 1px solid #eee;
  justify-content: center;
}

.jf-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: #777;
}

.jf-trust-item span {
  font-size: 20px;
  margin-bottom: 5px;
}

/* Thank You Screen */
.jf-thank-you {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jf-success-icon {
  width: 80px;
  height: 80px;
  background: #28a745;
  color: #fff;
  font-size: 40px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jf-thank-you h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
}

.jf-order-details {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.jf-thank-you-product {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dotted #ccc;
}

.jf-thank-you-product img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.jf-thank-you-product h4 {
  margin: 0;
  font-size: 16px;
}

.jf-next-step {
  font-style: italic;
  color: #666;
  margin-bottom: 25px;
}

.jf-back-btn {
  background: #333;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.jf-back-btn:hover {
  background: #000;
}

/* Pulse Animation */
.jf-buy-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(230, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(230, 0, 0, 0);
  }
}

/* Highlight Effect */
.jf-checkout-wrap.highlight {
  box-shadow: 0 0 20px rgba(230, 0, 0, 0.6);
  transform: scale(1.01);
  transition: all 0.4s ease-in-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media(max-width: 768px) {
  .jf-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .jf-container {
    padding: 15px;
  }

  .jf-title {
    font-size: 22px;
  }

  .jf-price {
    font-size: 20px;
  }

  .jf-thumbs img {
    width: 80px;
    height: 80px;
  }

  .jf-checkout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .jf-delivery-options {
    flex-direction: column;
    gap: 8px;
  }
}

@media(max-width: 480px) {
  .jf-container {
    padding: 10px;
  }

  .jf-title {
    font-size: 20px;
  }

  .jf-price {
    font-size: 18px;
  }

  .jf-thumbs {
    justify-content: space-around;
    padding: 0;
  }

  .jf-thumbs img {
    width: 60px;
    height: 60px;
    border-width: 1px;
  }

  .jf-coupon {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .jf-offer-title {
    font-size: 18px;
  }

  .jf-offer-list li {
    font-size: 14px;
  }

  .jf-confirm,
  .jf-showroom {
    font-size: 18px;
  }

  .color-options label {
    display: block;
    margin-bottom: 5px;
  }

  .jf-checkout-container {
    padding: 15px;
  }

  .jf-checkout-title {
    font-size: 20px;
  }

  .jf-product-info {
    flex-direction: column;
    gap: 10px;
  }

  .jf-product-info img {
    width: 100%;
    height: auto;
  }

  .jf-trust-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .jf-trust-item {
    width: calc(50% - 10px);
  }

  .attribute-options label {
    padding: 10px 12px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }

  .jf-thank-you h2 {
    font-size: 22px;
  }
}