/* ===================================================================
   Thawe Flipkart WooCommerce — Frontend Styles
   Color palette derived from thawe.in brand identity:
     Primary   : #F97316 (warm orange)
     Secondary : #1E3A5F (deep navy)
     Accent    : #EF4444 (sale red)
     Gold      : #F59E0B (ratings/star)
     Light bg  : #FFF7ED
     Grey      : #6B7280
   =================================================================== */

:root {
  --tfw-primary:     #F97316;
  --tfw-primary-dk:  #EA6B0A;
  --tfw-secondary:   #1E3A5F;
  --tfw-accent:      #EF4444;
  --tfw-gold:        #F59E0B;
  --tfw-bg-light:    #FFF7ED;
  --tfw-bg-white:    #FFFFFF;
  --tfw-text:        #111827;
  --tfw-text-muted:  #6B7280;
  --tfw-border:      #E5E7EB;
  --tfw-radius:      8px;
  --tfw-radius-lg:   12px;
  --tfw-shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --tfw-shadow-md:   0 4px 12px rgba(0,0,0,.12);
  --tfw-shadow-lg:   0 8px 24px rgba(0,0,0,.15);
  --tfw-transition:  all .2s ease;
}

/* ── Dynamic colour override (set via Settings page) ── */
body.tfw-custom-colors {
  --tfw-primary:   var(--tfw-primary-override, #F97316);
  --tfw-secondary: var(--tfw-secondary-override, #1E3A5F);
  --tfw-accent:    var(--tfw-accent-override, #EF4444);
}

/* ================================================================
   PRODUCT CARDS (loop)
   ================================================================ */
.woocommerce ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--tfw-bg-white);
  border: 1px solid var(--tfw-border);
  border-radius: var(--tfw-radius-lg);
  overflow: hidden;
  transition: var(--tfw-transition);
  box-shadow: var(--tfw-shadow-sm);
}
.woocommerce ul.products li.product:hover {
  box-shadow: var(--tfw-shadow-lg);
  transform: translateY(-3px);
  border-color: var(--tfw-primary);
}

/* Image wrapper */
.tfw-product-image-wrap {
  position: relative;
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 1 / 1;
}
.tfw-product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .35s ease;
}
.woocommerce ul.products li.product:hover .tfw-product-image-wrap img {
  transform: scale(1.06);
}

/* Action buttons (wishlist + quick view) */
.tfw-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--tfw-bg-white);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--tfw-shadow-sm);
  color: var(--tfw-text-muted);
  font-size: 15px;
  transition: var(--tfw-transition);
  z-index: 5;
}
.tfw-wishlist-btn:hover,
.tfw-wishlist-btn.active {
  color: var(--tfw-accent);
  transform: scale(1.15);
}
.tfw-wishlist-btn.active i { font-weight: 900; }

.tfw-quick-view-btn {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: var(--tfw-secondary);
  color: #fff;
  border: none;
  border-radius: var(--tfw-radius) var(--tfw-radius) 0 0;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s ease, background .2s;
  z-index: 5;
  letter-spacing: .3px;
}
.woocommerce ul.products li.product:hover .tfw-quick-view-btn {
  transform: translateX(-50%) translateY(0);
}
.tfw-quick-view-btn:hover { background: var(--tfw-primary); }

/* Product info block */
.tfw-product-info {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

/* Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tfw-text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rating row */
.tfw-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.tfw-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #22C55E;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: .2px;
}
.tfw-rating-pill .fa { font-size: 10px; }
.tfw-review-count { font-size: 11.5px; color: var(--tfw-text-muted); }

/* Price */
.woocommerce ul.products li.product .price {
  font-size: 15px;
  font-weight: 700;
  color: var(--tfw-text);
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 0;
}
.woocommerce ul.products li.product .price del {
  color: var(--tfw-text-muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: var(--tfw-text);
}

.tfw-discount-text {
  font-size: 12px;
  color: #22C55E;
  font-weight: 600;
}

/* Badges */
.tfw-badges-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}
.tfw-badges-wrap--single {
  position: static;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tfw-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: .4px;
  text-transform: uppercase;
  line-height: 1;
}
.tfw-badge-sale      { background: var(--tfw-accent); color: #fff; }
.tfw-badge-new       { background: #8B5CF6; color: #fff; }
.tfw-badge-top-rated { background: var(--tfw-gold); color: #fff; }
.tfw-badge-bestseller{ background: var(--tfw-secondary); color: #fff; }
.tfw-badge-featured  { background: var(--tfw-primary); color: #fff; }
.tfw-badge-custom    { background: #0EA5E9; color: #fff; }
.tfw-badge-outofstock{ background: #9CA3AF; color: #fff; }

/* Add to cart button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
  background: var(--tfw-primary);
  color: #fff;
  border: none;
  border-radius: var(--tfw-radius);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  width: 100%;
  text-align: center;
  margin-top: auto;
  transition: background .2s;
  letter-spacing: .3px;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--tfw-primary-dk);
  color: #fff;
}

/* ================================================================
   FLASH SALE BAR
   ================================================================ */
.tfw-flash-sale-bar {
  background: linear-gradient(135deg, var(--tfw-secondary) 0%, #2d4f7c 100%);
  border-radius: var(--tfw-radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: var(--tfw-shadow-md);
}
.tfw-flash-sale-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.tfw-flash-sale-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tfw-gold);
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .5px;
  flex: 1;
}
.tfw-flash-sale-title .fa { font-size: 22px; }
.tfw-flash-sale-title span { color: #fff; }

.tfw-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.tfw-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.tfw-cd-num {
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  min-width: 46px;
  text-align: center;
  padding: 5px 8px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  font-family: monospace;
}
.tfw-countdown-unit small {
  color: rgba(255,255,255,.7);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.tfw-cd-sep { color: var(--tfw-gold); font-size: 22px; font-weight: 800; margin-bottom: 12px; }

.tfw-btn-sale {
  background: var(--tfw-primary);
  color: #fff !important;
  text-decoration: none !important;
  padding: 10px 20px;
  border-radius: var(--tfw-radius);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: background .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tfw-btn-sale:hover { background: var(--tfw-primary-dk); }

/* ================================================================
   DEALS SECTION
   ================================================================ */
.tfw-deals-section { margin: 30px 0; }
.tfw-deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--tfw-primary);
  padding-bottom: 10px;
}
.tfw-deals-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--tfw-secondary);
  position: relative;
}
.tfw-deals-header h2::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--tfw-primary);
  border-radius: 2px;
}

/* ================================================================
   AJAX SEARCH
   ================================================================ */
.tfw-search-wrap { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.tfw-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--tfw-radius);
  box-shadow: var(--tfw-shadow-md);
  overflow: hidden;
  border: 2px solid var(--tfw-primary);
}
.tfw-search-icon { padding: 0 12px; color: var(--tfw-text-muted); font-size: 15px; }
.tfw-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--tfw-text);
  background: transparent;
  padding: 10px 0;
}
.tfw-search-submit {
  background: var(--tfw-primary);
  color: #fff;
  border: none;
  padding: 0 22px;
  height: 42px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: background .2s;
  flex-shrink: 0;
}
.tfw-search-submit:hover { background: var(--tfw-primary-dk); }

.tfw-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--tfw-radius);
  box-shadow: var(--tfw-shadow-lg);
  border: 1px solid var(--tfw-border);
  z-index: 9999;
  max-height: 420px;
  overflow-y: auto;
}
.tfw-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none !important;
  color: var(--tfw-text) !important;
  border-bottom: 1px solid var(--tfw-border);
  transition: background .15s;
}
.tfw-search-result-item:last-child { border-bottom: none; }
.tfw-search-result-item:hover { background: var(--tfw-bg-light); }
.tfw-search-result-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--tfw-border);
  flex-shrink: 0;
}
.tfw-search-result-info { flex: 1; min-width: 0; }
.tfw-search-result-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tfw-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.tfw-search-result-cat { font-size: 11px; color: var(--tfw-text-muted); margin-top: 2px; display: block; }
.tfw-search-result-price { font-size: 13px; font-weight: 700; color: var(--tfw-primary); flex-shrink: 0; }
.tfw-search-no-results { padding: 18px; text-align: center; color: var(--tfw-text-muted); font-size: 14px; }

/* ================================================================
   QUICK VIEW MODAL
   ================================================================ */
.tfw-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.tfw-modal-overlay.open { display: flex; }

.tfw-modal {
  background: #fff;
  border-radius: var(--tfw-radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--tfw-shadow-lg);
  position: relative;
  animation: tfwModalIn .25s ease;
}
@keyframes tfwModalIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.tfw-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--tfw-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--tfw-text);
  transition: background .15s;
  z-index: 2;
}
.tfw-modal-close:hover { background: var(--tfw-accent); color: #fff; }

.tfw-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.tfw-modal-gallery {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--tfw-border);
}
.tfw-modal-main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--tfw-radius);
  border: 1px solid var(--tfw-border);
  background: #fafafa;
}
.tfw-modal-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tfw-qv-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s;
}
.tfw-qv-thumb.active,
.tfw-qv-thumb:hover { border-color: var(--tfw-primary); }
.tfw-qv-thumb img { width: 100%; height: 100%; object-fit: contain; }

.tfw-modal-details {
  padding: 24px 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tfw-modal-title { font-size: 19px; font-weight: 800; color: var(--tfw-text); margin: 0; line-height: 1.3; }
.tfw-modal-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tfw-modal-price { font-size: 22px; font-weight: 800; color: var(--tfw-text); }
.tfw-modal-price del { font-size: 14px; color: var(--tfw-text-muted); font-weight: 400; margin-left: 6px; }
.tfw-modal-price ins { text-decoration: none; }
.tfw-qv-discount { font-size: 13px; color: #22C55E; font-weight: 700; margin-left: 4px; }
.tfw-modal-stock { font-size: 13px; }
.tfw-stock--in  { color: #16A34A; }
.tfw-stock--out { color: var(--tfw-accent); }
.tfw-modal-desc { font-size: 13.5px; color: var(--tfw-text-muted); line-height: 1.6; }
.tfw-modal-view-link {
  color: var(--tfw-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.tfw-modal-view-link:hover { text-decoration: underline; }

.tfw-modal-details .quantity { margin: 4px 0; }
.tfw-modal-details .quantity input { border: 1px solid var(--tfw-border); border-radius: var(--tfw-radius); padding: 8px 12px; width: 70px; }
.tfw-modal-details .button,
.tfw-modal-details a.button {
  background: var(--tfw-primary);
  color: #fff;
  border: none;
  border-radius: var(--tfw-radius);
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  margin-top: 4px;
}
.tfw-modal-details .button:hover { background: var(--tfw-primary-dk); color: #fff; }

/* ================================================================
   CATEGORY STRIP
   ================================================================ */
.tfw-category-strip {
  margin: 20px 0 28px;
  padding: 14px 0;
  border-top: 1px solid var(--tfw-border);
  border-bottom: 1px solid var(--tfw-border);
  background: var(--tfw-bg-white);
}
.tfw-category-strip-inner {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4px;
}
.tfw-category-strip-inner::-webkit-scrollbar { display: none; }
.tfw-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: var(--tfw-transition);
}
.tfw-category-item:hover { transform: translateY(-3px); }
.tfw-category-img-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tfw-bg-light);
  border: 2px solid var(--tfw-border);
  transition: border-color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tfw-category-item:hover .tfw-category-img-wrap { border-color: var(--tfw-primary); }
.tfw-category-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.tfw-category-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--tfw-text);
  text-align: center;
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================================================================
   HERO BANNER
   ================================================================ */
.tfw-hero-banner {
  background: linear-gradient(135deg, var(--tfw-bg-light) 0%, #FEE2E2 100%);
  border-radius: var(--tfw-radius-lg);
  padding: 40px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  box-shadow: var(--tfw-shadow-sm);
}
.tfw-hero-content { flex: 1; }
.tfw-hero-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--tfw-secondary);
  margin: 0 0 8px;
  line-height: 1.2;
}
.tfw-hero-subtitle {
  font-size: 15px;
  color: var(--tfw-text-muted);
  margin: 0 0 20px;
}
.tfw-hero-image { flex-shrink: 0; max-width: 260px; }
.tfw-hero-image img { width: 100%; border-radius: var(--tfw-radius); }

.tfw-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tfw-primary);
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 28px;
  border-radius: var(--tfw-radius);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.tfw-btn-primary:hover { background: var(--tfw-primary-dk); }

/* ================================================================
   PRODUCT CAROUSEL
   ================================================================ */
.tfw-carousel-section { margin: 30px 0; }
.tfw-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--tfw-primary);
  margin-bottom: 16px;
}
.tfw-carousel-header h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--tfw-secondary); }
.tfw-carousel-track-wrap { position: relative; }
.tfw-carousel-track {
  overflow: hidden;
}
.tfw-carousel-track ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  transition: transform .35s ease;
}
.tfw-carousel-track ul.products li.product {
  min-width: calc(25% - 12px);
  width: calc(25% - 12px);
}

.tfw-carousel-prev,
.tfw-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--tfw-bg-white);
  border: 2px solid var(--tfw-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--tfw-shadow-sm);
  transition: var(--tfw-transition);
  color: var(--tfw-secondary);
}
.tfw-carousel-prev { left: -20px; }
.tfw-carousel-next { right: -20px; }
.tfw-carousel-prev:hover,
.tfw-carousel-next:hover { background: var(--tfw-primary); color: #fff; border-color: var(--tfw-primary); }

/* ================================================================
   WISHLIST SINGLE BUTTON
   ================================================================ */
.tfw-wishlist-btn--single {
  position: static;
  width: auto;
  height: auto;
  border-radius: var(--tfw-radius);
  border: 2px solid var(--tfw-primary);
  color: var(--tfw-primary);
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  background: transparent;
  margin-top: 8px;
  display: inline-flex;
  gap: 6px;
}
.tfw-wishlist-btn--single.active {
  background: var(--tfw-primary);
  color: #fff;
}

/* ================================================================
   EMPTY / NOTICE STATES
   ================================================================ */
.tfw-empty-wishlist {
  text-align: center;
  padding: 50px 20px;
  color: var(--tfw-text-muted);
}
.tfw-empty-wishlist .fa-heart { color: var(--tfw-accent); margin-bottom: 16px; display: block; }
.tfw-empty-wishlist p { font-size: 16px; margin-bottom: 20px; }
.tfw-notice { font-size: 14px; color: var(--tfw-text-muted); }

/* ================================================================
   TOAST NOTIFICATION
   ================================================================ */
.tfw-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--tfw-secondary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--tfw-radius);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--tfw-shadow-lg);
  z-index: 999999;
  transition: transform .3s ease;
  white-space: nowrap;
  pointer-events: none;
}
.tfw-toast.show { transform: translateX(-50%) translateY(0); }
.tfw-toast.success { background: #16A34A; }
.tfw-toast.error   { background: var(--tfw-accent); }

/* ================================================================
   SINGLE PRODUCT PAGE
   ================================================================ */
.woocommerce div.product .tfw-badges-wrap--single { margin-bottom: 10px; }
.woocommerce div.product p.price { font-size: 22px !important; font-weight: 800 !important; }
.woocommerce div.product p.price del { font-size: 15px !important; }

/* ── Buy Now button ─────────────────────────────────────── */
.tfw-buy-now-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tfw-buy-now-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--tfw-secondary);
  color: #fff;
  border: none;
  border-radius: var(--tfw-radius);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: .4px;
  position: relative;
  overflow: hidden;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(30,58,95,.25);
}

/* Shimmer sweep on hover */
.tfw-buy-now-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left .5s ease;
  pointer-events: none;
}
.tfw-buy-now-btn:hover::before { left: 130%; }

.tfw-buy-now-btn:hover {
  background: var(--tfw-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249,115,22,.35);
  color: #fff;
}
.tfw-buy-now-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.tfw-buy-now-btn:disabled {
  opacity: .75;
  cursor: not-allowed;
  transform: none;
}
.tfw-buy-now-btn .fa { font-size: 14px; }

/* Subtle hint text below the button */
.tfw-buy-now-hint {
  font-size: 11.5px;
  color: var(--tfw-text-muted);
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.tfw-buy-now-hint::before {
  content: '\f023';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  color: #22C55E;
}

/* ── Single-product action row (Add to Cart + Buy Now side-by-side on desktop) ── */
@media ( min-width: 600px ) {
  .woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100%;
  }
}

/* ── Loop card Buy Now (shown on hover, smaller) ─── */
.tfw-loop-buy-now-btn {
  display: none;
  width: 100%;
  background: var(--tfw-secondary);
  color: #fff;
  border: none;
  border-radius: 0 0 var(--tfw-radius-lg) var(--tfw-radius-lg);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.woocommerce ul.products li.product:hover .tfw-loop-buy-now-btn {
  display: flex;
}
.tfw-loop-buy-now-btn:hover { background: var(--tfw-primary); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media ( max-width: 768px ) {
  .tfw-modal-inner { grid-template-columns: 1fr; }
  .tfw-modal-gallery { border-right: none; border-bottom: 1px solid var(--tfw-border); }
  .tfw-flash-sale-inner { flex-direction: column; text-align: center; }
  .tfw-carousel-track ul.products li.product { min-width: calc(50% - 8px); }
  .tfw-hero-banner { flex-direction: column; text-align: center; padding: 28px 20px; }
  .tfw-hero-image { max-width: 180px; }
  .woocommerce ul.products li.product { font-size: 12px; }
  .tfw-carousel-prev { left: -10px; }
  .tfw-carousel-next { right: -10px; }
}
@media ( max-width: 480px ) {
  .tfw-carousel-track ul.products li.product { min-width: calc(100% - 0px); }
  .tfw-hero-title { font-size: 22px; }
}
