/* ============================================================
   WanjaMall — WooCommerce CSS
   Single Product (Jumia-style) | Shop/Archive | Product Cards
============================================================ */

/* ---------------------------------------------------------------
   Shared container
--------------------------------------------------------------- */
.sp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) { .sp-container { padding: 0 14px; } }

/* ---------------------------------------------------------------
   BREADCRUMB BAR
--------------------------------------------------------------- */
.sp-breadcrumb-bar {
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
}
.sp-breadcrumb,
.woocommerce-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: .8rem;
  color: #6b7280;
  list-style: none;
  margin: 0; padding: 0;
}
.sp-breadcrumb a,
.woocommerce-breadcrumb a { color: #6b7280; transition: color .18s; }
.sp-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover { color: #FE9900; }
.bc-sep { color: #d1d5db; font-size: .65rem; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------
   SINGLE PRODUCT LAYOUT
--------------------------------------------------------------- */
.sp-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 28px;
  padding: 24px 0;
  align-items: start;
}

/* ---------------------------------------------------------------
   GALLERY COLUMN
--------------------------------------------------------------- */
.sp-gallery-col { position: sticky; top: 90px; }

.sp-main-image-wrap {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
}
.sp-main-slides {
  display: flex;
  height: 100%;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.sp-slide {
  flex-shrink: 0;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sp-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

/* Arrows */
.sp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: rgba(255,255,255,.96);
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: #374151;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: all .18s;
}
.sp-arrow:hover { background: #FE9900; color: #fff; border-color: #FE9900; }
.sp-arrow-prev { left: 10px; }
.sp-arrow-next { right: 10px; }

/* Discount badge on image */
.sp-img-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: #ef4444;
  color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  z-index: 6;
  letter-spacing: .3px;
}

/* Thumbnails */
.sp-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.sp-thumb {
  width: 72px; height: 72px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  padding: 0;
  transition: border-color .18s;
  flex-shrink: 0;
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb.active,
.sp-thumb:hover { border-color: #FE9900; }

/* Actions strip */
.sp-gallery-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.sp-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
}
.sp-action-btn:hover { border-color: #FE9900; color: #FE9900; }
.sp-action-btn.sp-wishlist-btn.active { color: #ef4444; border-color: #ef4444; }

/* ---------------------------------------------------------------
   DETAILS COLUMN
--------------------------------------------------------------- */
.sp-details-col {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Categories */
.sp-categories { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-cat-link {
  display: inline-block;
  background: #fff8ed;
  color: #FE9900;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .4px;
  border: 1px solid #fed7aa;
  transition: all .18s;
}
.sp-cat-link:hover { background: #FE9900; color: #fff; border-color: #FE9900; }

/* Title */
.sp-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.45;
  margin: 0;
}

/* Rating row */
.sp-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: .82rem;
}
.sp-stars { display: flex; gap: 2px; color: #f59e0b; font-size: .85rem; }
.sp-stars .far { color: #d1d5db; }
.sp-review-count { color: #3b82f6; text-decoration: underline; }
.sp-sold-count { color: #6b7280; }
.sp-sold-count .fa { color: #ef4444; margin-right: 3px; }
.sp-sku { color: #9ca3af; font-size: .75rem; }

/* Price block */
.sp-price-block {
  background: #fff8ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 16px 20px;
}
.sp-price-main-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sp-price-now {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}
.sp-price-now .woocommerce-Price-amount { font-size: inherit; color: inherit; }
.sp-discount-badge {
  background: #ef4444;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: .3px;
}
.sp-price-was-row { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.sp-price-was { color: #9ca3af; text-decoration: line-through; }
.sp-saving { color: #10b981; font-weight: 600; font-size: .8rem; }

/* Stock */
.sp-stock-row { display: flex; align-items: center; }
.sp-stock-ok  { display: flex; align-items: center; gap: 7px; color: #10b981; font-weight: 700; font-size: .88rem; }
.sp-stock-low { display: flex; align-items: center; gap: 7px; color: #f59e0b; font-weight: 700; font-size: .88rem; }
.sp-stock-none{ display: flex; align-items: center; gap: 7px; color: #ef4444; font-weight: 700; font-size: .88rem; }
.sp-stock-ok .fa  { color: #10b981; }
.sp-stock-low .fa { color: #f59e0b; }
.sp-stock-none .fa{ color: #ef4444; }

/* Delivery box */
.sp-delivery-box {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.sp-delivery-title {
  background: #f8f9fa;
  padding: 11px 16px;
  font-size: .82rem;
  font-weight: 700;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sp-delivery-title .fa { color: #FE9900; }
.sp-delivery-options { padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.sp-delivery-opt { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.sp-delivery-opt input[type="radio"] { margin-top: 4px; accent-color: #FE9900; flex-shrink: 0; }
.sp-delivery-opt-inner { flex: 1; }
.sp-delivery-opt-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
}
.sp-delivery-opt-name .fa { color: #FE9900; }
.sp-delivery-price { color: #FE9900; margin-left: auto; font-weight: 700; }
.sp-delivery-date { font-size: .75rem; color: #6b7280; margin-top: 2px; padding-left: 22px; }
.sp-city-select {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: none;
  border-top: 1px solid #e5e7eb;
  background: #f8f9fa;
  font-size: .83rem;
  color: #374151;
  cursor: pointer;
  outline: none;
}
.sp-city-select:focus { background: #fff8ed; }

/* Qty + Add to Cart */
.sp-purchase-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sp-qty-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.sp-qty-btn {
  width: 40px; height: 48px;
  background: #f8f9fa;
  border: none;
  font-size: .85rem;
  color: #374151;
  cursor: pointer;
  transition: all .18s;
  display: flex; align-items: center; justify-content: center;
}
.sp-qty-btn:hover { background: #FE9900; color: #fff; }
.sp-qty-input {
  width: 52px; height: 48px;
  text-align: center;
  border: none;
  border-left: 2px solid #e5e7eb;
  border-right: 2px solid #e5e7eb;
  font-size: 1rem; font-weight: 700;
  color: #111827;
  background: #fff;
}
.sp-qty-input:focus { outline: none; background: #fff8ed; }

.sp-add-to-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: #FE9900;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid #FE9900;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}
.sp-add-to-cart:hover { background: #e08500; border-color: #e08500; color: #fff; }
.sp-add-to-cart.loading { opacity: .7; pointer-events: none; }
.sp-add-to-cart.added { background: #10b981; border-color: #10b981; }

/* WhatsApp + Call row */
.sp-buy-now-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.sp-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: #25d366;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid #25d366;
  transition: all .18s;
  text-decoration: none;
}
.sp-whatsapp-btn:hover { background: #1aab52; border-color: #1aab52; color: #fff; }
.sp-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 18px;
  background: #111827;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid #111827;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}
.sp-call-btn:hover { background: #1f2937; color: #fff; }

/* Out of stock */
.sp-outofstock-msg {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: .9rem;
  color: #ef4444;
}
.sp-notify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25d366;
  font-weight: 700;
  text-decoration: none;
}

/* Seller card */
.sp-seller-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.sp-seller-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
}
.sp-seller-avatar {
  width: 44px; height: 44px;
  background: #FE9900;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  flex-shrink: 0;
}
.sp-seller-info { flex: 1; min-width: 0; }
.sp-seller-name { font-weight: 700; color: #111827; font-size: .9rem; }
.sp-seller-score { font-size: .76rem; color: #6b7280; margin-top: 2px; }
.sp-score-badge {
  display: inline-block;
  background: #10b981;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 2px;
}
.sp-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: #25d366;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: all .18s;
  flex-shrink: 0;
}
.sp-follow-btn:hover { background: #1aab52; color: #fff; }
.sp-seller-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 16px;
  gap: 8px;
}
.sp-seller-stat { text-align: center; }
.sp-stat-val { display: block; font-size: .95rem; font-weight: 700; color: #111827; }
.sp-stat-lbl { display: block; font-size: .72rem; color: #6b7280; margin-top: 1px; }

/* Return policy */
.sp-return-policy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  font-size: .84rem;
  color: #374151;
}
.sp-return-policy .fa { color: #10b981; font-size: 1.2rem; margin-top: 1px; flex-shrink: 0; }
.sp-return-policy strong { display: block; color: #111827; margin-bottom: 3px; font-size: .88rem; }
.sp-return-policy p { margin: 0; color: #6b7280; }

/* ---------------------------------------------------------------
   PRODUCT TABS
--------------------------------------------------------------- */
.sp-tabs-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin: 24px 0;
  overflow: hidden;
}
.sp-tabs-nav {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: #f8f9fa;
  overflow-x: auto;
  scrollbar-width: none;
}
.sp-tabs-nav::-webkit-scrollbar { display: none; }
.sp-tab {
  padding: 16px 24px;
  font-size: .875rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sp-tab:hover { color: #FE9900; }
.sp-tab.active { color: #FE9900; border-bottom-color: #FE9900; background: #fff; }
.sp-tab-badge {
  background: #FE9900;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}
.sp-tab-panels { }
.sp-tab-panel { display: none; padding: 28px; }
.sp-tab-panel.active { display: block; }

/* Description content */
.sp-description-content h2,
.sp-description-content h3 { font-size: 1rem; font-weight: 700; color: #111827; margin: 1.3em 0 .5em; }
.sp-description-content p { margin-bottom: .9em; line-height: 1.8; color: #374151; font-size: .9rem; }
.sp-description-content ul,
.sp-description-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.sp-description-content li { margin-bottom: .4em; font-size: .9rem; line-height: 1.7; }
.sp-no-desc { color: #9ca3af; font-style: italic; font-size: .9rem; }

/* Specs */
.sp-specs-table { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.sp-spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #f3f4f6;
  font-size: .875rem;
}
.sp-spec-row:last-child { border-bottom: none; }
.sp-spec-key {
  padding: 12px 16px;
  background: #f8f9fa;
  color: #6b7280;
  font-weight: 600;
  border-right: 1px solid #f3f4f6;
}
.sp-spec-val { padding: 12px 16px; color: #374151; }
.sp-spec-val a { color: #3b82f6; }

/* Rating summary */
.sp-rating-summary {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sp-rating-big { text-align: center; flex-shrink: 0; }
.sp-big-score { display: block; font-size: 3.5rem; font-weight: 800; color: #111827; line-height: 1; }
.sp-big-stars { color: #f59e0b; font-size: 1rem; margin: 6px 0; display: flex; justify-content: center; gap: 2px; }
.sp-big-count { font-size: .78rem; color: #6b7280; }
.sp-rating-bars { flex: 1; min-width: 200px; }
.sp-rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .8rem; }
.sp-rating-bar-row > span:first-child { min-width: 28px; color: #374151; font-weight: 600; display: flex; align-items: center; gap: 2px; }
.sp-rating-bar-row .fas.fa-star { color: #f59e0b; font-size: .72rem; }
.sp-rating-bar-track { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.sp-rating-bar-fill { height: 100%; background: #f59e0b; border-radius: 4px; }
.sp-bar-pct { min-width: 32px; color: #6b7280; text-align: right; }

/* Delivery details */
.sp-delivery-details { display: flex; flex-direction: column; gap: 16px; }
.sp-delivery-detail-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 10px;
  align-items: flex-start;
}
.sp-dd-icon {
  width: 44px; height: 44px;
  background: #fff8ed;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #FE9900;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.sp-dd-text h4 { font-size: .9rem; font-weight: 700; color: #111827; margin-bottom: 4px; }
.sp-dd-text p  { font-size: .84rem; color: #6b7280; margin: 0; line-height: 1.6; }

/* WooCommerce comments/reviews */
.sp-reviews-list .woocommerce-Reviews-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: #111827; }
.sp-reviews-list #comments { margin: 0; }
.sp-reviews-list .comment-form input,
.sp-reviews-list .comment-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .875rem;
  margin-bottom: 12px;
}
.sp-reviews-list .comment-form input:focus,
.sp-reviews-list .comment-form textarea:focus { outline: none; border-color: #FE9900; }
.sp-reviews-list .comment-form .submit {
  background: #FE9900;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
  transition: background .18s;
}
.sp-reviews-list .comment-form .submit:hover { background: #e08500; }

/* ---------------------------------------------------------------
   RELATED PRODUCTS SLIDER
--------------------------------------------------------------- */
.sp-related-section {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 32px 0 48px;
}
.sp-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.sp-related-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
}
.sp-related-title span {
  position: relative;
  padding-left: 14px;
}
.sp-related-title span::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 80%;
  background: #FE9900;
  border-radius: 4px;
}
.sp-slider-nav { display: flex; gap: 8px; }
.sp-slider-btn {
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem;
  color: #374151;
  cursor: pointer;
  transition: all .18s;
}
.sp-slider-btn:hover { background: #FE9900; color: #fff; border-color: #FE9900; }
.sp-slider-btn:disabled { opacity: .35; cursor: default; }
.sp-slider-vp { overflow: hidden; }
.sp-slider-track {
  display: flex;
  gap: 14px;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.sp-rel-item { flex: 0 0 calc(20% - 12px); min-width: 0; }

/* Related product card */
.sp-rel-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: all .2s;
  text-decoration: none;
  height: 100%;
}
.sp-rel-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: #FE9900; transform: translateY(-3px); }
.sp-rel-img-wrap { position: relative; aspect-ratio: 1; background: #f8f9fa; overflow: hidden; }
.sp-rel-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sp-rel-card:hover .sp-rel-img { transform: scale(1.05); }
.sp-rel-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #ef4444;
  color: #fff;
  font-size: .65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
  z-index: 2;
}
.sp-rel-info { padding: 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.sp-rel-name {
  font-size: .8rem; font-weight: 600; color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin: 0;
}
.sp-rel-stars { color: #f59e0b; font-size: .7rem; display: flex; gap: 1px; }
.sp-rel-stars .far { color: #d1d5db; }
.sp-rel-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.sp-rel-price-now { font-size: .88rem; font-weight: 700; color: #111827; }
.sp-rel-price-was { font-size: .75rem; color: #9ca3af; text-decoration: line-through; }

/* ---------------------------------------------------------------
   STICKY MOBILE BUY BAR
--------------------------------------------------------------- */
.sp-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid #FE9900;
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  z-index: 1060;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.sp-sticky-info { flex: 1; min-width: 0; }
.sp-sticky-name {
  display: block;
  font-size: .75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-sticky-price { display: block; font-size: 1.05rem; font-weight: 800; color: #111827; }
.sp-sticky-btns { display: flex; gap: 8px; flex-shrink: 0; }
.sp-sticky-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #FE9900;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s;
}
.sp-sticky-cart:hover { background: #e08500; color: #fff; }
.sp-sticky-wa {
  width: 44px; height: 44px;
  background: #25d366;
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background .18s;
}
.sp-sticky-wa:hover { background: #1aab52; color: #fff; }

/* ============================================================
   SHOP / ARCHIVE PAGE
============================================================ */

/* Category hero */
.cat-hero {
  background: linear-gradient(120deg, #FE9900 0%, #ff6b00 50%, #cc4400 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 48px 0 36px;
}
.cat-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.6), rgba(0,0,0,.2));
}
.cat-hero-inner {
  position: relative; z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.cat-hero-text { flex: 1; }
.cat-hero .woocommerce-breadcrumb { color: rgba(255,255,255,.7); font-size: .78rem; margin-bottom: 10px; }
.cat-hero .woocommerce-breadcrumb a { color: rgba(255,255,255,.85); }
.cat-hero-title { font-size: 2rem; font-weight: 800; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.cat-hero-desc { color: rgba(255,255,255,.85); font-size: .9rem; max-width: 500px; margin: 0; }
.cat-hero-count {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 10px 22px;
  border-radius: 40px;
  font-size: .95rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

/* Shop layout */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 28px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Mobile filter toggle */
.mobile-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  margin-bottom: 0;
  transition: all .18s;
}
.mobile-filter-toggle:hover { background: #FE9900; color: #fff; border-color: #FE9900; }
.filter-count-badge {
  background: #ef4444; color: #fff;
  font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1099;
}
.sidebar-overlay.active { display: block; }

/* Sidebar */
.shop-sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb #fff;
}
.shop-sidebar::-webkit-scrollbar { width: 4px; }
.shop-sidebar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #111827;
  color: #fff;
  position: sticky; top: 0; z-index: 2;
}
.sidebar-header h3 { font-size: .95rem; font-weight: 700; margin: 0; }
.sidebar-close-btn { color: #9ca3af; font-size: 1.1rem; display: none; cursor: pointer; border: none; background: none; }

/* Filter widgets */
.filter-widget { border-bottom: 1px solid #f3f4f6; }
.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  color: #374151;
  margin: 0;
  user-select: none;
  transition: color .18s;
}
.filter-title:hover { color: #FE9900; }
.filter-title .fa-chevron-down { font-size: .7rem; transition: transform .22s; }
.filter-title.collapsed-title .fa-chevron-down { transform: rotate(-90deg); }
.filter-body { padding: 0 20px 14px; }
.filter-body.hidden { display: none; }
.filter-list { list-style: none; }
.filter-list li { margin-bottom: 2px; }
.filter-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: .84rem;
  color: #374151;
  transition: all .18s;
}
.filter-list li a:hover,
.filter-list li.active a { background: #fff8ed; color: #FE9900; font-weight: 600; }
.filter-count { font-size: .73rem; color: #9ca3af; }
.price-range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.price-input-wrap label { display: block; font-size: .73rem; color: #6b7280; margin-bottom: 4px; font-weight: 600; }
.price-input-wrap input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: .84rem;
}
.price-input-wrap input:focus { outline: none; border-color: #FE9900; }
.clear-filter-link { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: #ef4444; margin-top: 6px; }
.sidebar-cta {
  padding: 20px;
  background: linear-gradient(135deg, #fff8ed, #fff);
  border-top: 1px solid #f3f4f6;
  text-align: center;
}
.sidebar-cta-icon { font-size: 2.2rem; color: #25d366; display: block; margin-bottom: 8px; }
.sidebar-cta p { font-size: .84rem; font-weight: 600; color: #374151; margin-bottom: 12px; }
.sidebar-cta .btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 11px; }

/* Shop main */
.shop-main { min-width: 0; }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.result-info { font-size: .82rem; color: #6b7280; }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.woocommerce-ordering select {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: .84rem;
  background: #fff;
  cursor: pointer;
}
.woocommerce-ordering select:focus { outline: none; border-color: #FE9900; }
.grid-view-toggle { display: flex; gap: 4px; }
.grid-view-btn {
  width: 32px; height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: .8rem;
  color: #6b7280;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.grid-view-btn.active,
.grid-view-btn:hover { background: #FE9900; color: #fff; border-color: #FE9900; }

/* Product grid */
.wm-products-grid { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.wm-grid-4 { grid-template-columns: repeat(4, 1fr); }
.wm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.wm-grid-1 { grid-template-columns: 1fr; }
.wm-grid-1 .wm-product-card { flex-direction: row; max-height: 180px; }
.wm-grid-1 .wm-card-img-link { flex: 0 0 180px; aspect-ratio: auto; height: 100%; }
.wm-grid-1 .wm-card-info { flex: 1; }

/* Product card */
.wm-product-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wm-product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); border-color: #FE9900; transform: translateY(-3px); }

/* Card badges */
.wm-card-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 3; pointer-events: none;
}
.wm-badge {
  display: inline-block;
  font-size: .65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .3px;
}
.wm-badge-sale     { background: #ef4444; color: #fff; }
.wm-badge-featured { background: #3b82f6; color: #fff; }
.wm-badge-hot      { background: #FE9900; color: #fff; }
.wm-badge-new      { background: #10b981; color: #fff; }

/* Wishlist */
.wm-wishlist-btn {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.9);
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; color: #9ca3af;
  z-index: 3; cursor: pointer;
  transition: all .18s;
}
.wm-wishlist-btn:hover,
.wm-wishlist-btn.active { color: #ef4444; border-color: #ef4444; background: #fff; }

/* Card image */
.wm-card-img-link {
  display: block; overflow: hidden;
  aspect-ratio: 1; background: #f8f9fa;
  position: relative;
}
.wm-card-img,
.wm-card-img-hover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .38s, opacity .3s;
}
.wm-card-img-hover { opacity: 0; }
.wm-product-card:hover .wm-card-img { transform: scale(1.06); opacity: 0; }
.wm-product-card:hover .wm-card-img-hover { opacity: 1; transform: scale(1.06); }

/* Card info */
.wm-card-info { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.wm-card-cat { font-size: .7rem; font-weight: 700; color: #FE9900; text-transform: uppercase; letter-spacing: .3px; }
.wm-card-name {
  font-size: .84rem; font-weight: 600; color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.45;
  transition: color .18s;
}
.wm-card-name:hover { color: #FE9900; }
.wm-card-stars { display: flex; align-items: center; gap: 2px; font-size: .73rem; color: #f59e0b; }
.wm-card-stars .far { color: #d1d5db; }
.wm-card-rcount { font-size: .7rem; color: #9ca3af; margin-left: 3px; }
.wm-card-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 2px; }
.wm-price-current { font-size: 1rem; font-weight: 700; color: #111827; }
.wm-price-old { font-size: .75rem; color: #9ca3af; text-decoration: line-through; }
.wm-stock-bar { display: flex; align-items: center; gap: 8px; }
.wm-stock-track { flex: 1; height: 4px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.wm-stock-fill { height: 100%; background: #ef4444; border-radius: 4px; }
.wm-stock-text { font-size: .7rem; color: #ef4444; font-weight: 700; white-space: nowrap; }
.wm-card-actions { display: flex; gap: 7px; margin-top: auto; padding-top: 8px; border-top: 1px solid #f3f4f6; }
.wm-view-btn {
  flex: 1; justify-content: center;
  display: inline-flex; align-items: center;
  padding: 7px; font-size: .78rem; font-weight: 700;
  border: 1.5px solid #e5e7eb; border-radius: 6px;
  color: #374151; background: #fff;
  transition: all .18s;
  text-decoration: none;
}
.wm-view-btn:hover { border-color: #FE9900; color: #FE9900; }
.wm-cart-btn {
  flex: 2; justify-content: center;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 10px; font-size: .78rem; font-weight: 700;
  background: #FE9900; color: #fff; border-radius: 6px;
  border: 1.5px solid #FE9900;
  transition: all .18s; text-decoration: none;
}
.wm-cart-btn:hover { background: #e08500; border-color: #e08500; color: #fff; }
.wm-cart-btn.added { background: #10b981; border-color: #10b981; }
.wm-out-of-stock { font-size: .75rem; color: #9ca3af; font-style: italic; margin-top: auto; }

/* Pagination */
.shop-pagination { margin-top: 28px; }
.woocommerce-pagination ul { display: flex; gap: 6px; list-style: none; justify-content: center; flex-wrap: wrap; padding: 0; margin: 0; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  border: 1px solid #e5e7eb; border-radius: 6px;
  font-size: .875rem; font-weight: 600; color: #374151;
  padding: 0 8px;
  transition: all .18s;
}
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current { background: #FE9900; color: #fff; border-color: #FE9900; }

/* No products */
.no-products-found { padding: 60px 20px; text-align: center; background: #fff; border-radius: 10px; }

/* Shop CTA strip */
.shop-cta-strip { background: #111827; padding: 44px 0; }
.shop-cta-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.shop-cta-text h3 { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.shop-cta-text p  { color: #9ca3af; font-size: .88rem; margin: 0; }
.shop-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline-dark {
  background: transparent; border: 2px solid #4b5563; color: #d1d5db;
  padding: 12px 22px; border-radius: 8px; font-weight: 700;
  transition: all .18s; text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.btn-outline-dark:hover { border-color: #FE9900; color: #FE9900; }

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1200px) {
  .sp-layout { grid-template-columns: 420px 1fr; }
  .shop-layout { grid-template-columns: 230px 1fr; }
  .wm-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .sp-rel-item { flex: 0 0 calc(25% - 11px); }
}

@media (max-width: 1024px) {
  .sp-layout { grid-template-columns: 360px 1fr; gap: 20px; }
  .wm-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sp-rel-item { flex: 0 0 calc(33.333% - 10px); }
  .sp-thumb { width: 62px; height: 62px; }
}

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 0; padding: 16px; }
  .mobile-filter-toggle { display: flex; margin-bottom: 12px; }
  .shop-sidebar {
    position: fixed;
    left: -290px; top: 0; bottom: 0;
    width: 280px;
    z-index: 1100;
    transition: left .28s ease;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: 0 0 40px rgba(0,0,0,.15);
    max-height: 100vh;
  }
  .shop-sidebar.open { left: 0; }
  .sidebar-close-btn { display: flex; }
}

@media (max-width: 768px) {
  /* Stack product layout */
  .sp-layout { grid-template-columns: 1fr; gap: 16px; padding: 16px 0; }
  .sp-gallery-col { position: static; }
  .sp-main-image-wrap { max-width: 420px; margin: 0 auto; }

  /* Show sticky bar */
  .sp-sticky-bar { display: flex; }
  .sp-related-section { padding-bottom: 76px; }

  /* Related slider 3 items */
  .sp-rel-item { flex: 0 0 calc(33.333% - 10px); }

  /* Specs */
  .sp-spec-row { grid-template-columns: 140px 1fr; }

  /* Tab buttons smaller */
  .sp-tab { padding: 12px 16px; font-size: .82rem; }

  /* Cat hero */
  .cat-hero { padding: 32px 0 24px; }
  .cat-hero-title { font-size: 1.5rem; }
  .cat-hero-inner { flex-direction: column; gap: 14px; }

  /* Shop toolbar */
  .shop-toolbar { padding: 10px 14px; gap: 8px; }
  .grid-view-toggle { display: none; }
}

@media (max-width: 600px) {
  .sp-buy-now-row { grid-template-columns: 1fr 1fr; }
  .sp-details-col { padding: 18px; gap: 14px; }
  .sp-price-now { font-size: 1.6rem; }
  .sp-rating-summary { flex-direction: column; gap: 16px; text-align: center; }
  .sp-rel-item { flex: 0 0 calc(50% - 7px); }
  .sp-delivery-opts { gap: 8px; }
  .sp-thumbs { gap: 6px; }
  .sp-thumb { width: 56px; height: 56px; }
  .wm-products-grid { gap: 10px; }
  .wm-card-info { padding: 9px; }
  .wm-card-actions { gap: 5px; }
  .shop-cta-inner { flex-direction: column; text-align: center; }
  .shop-cta-actions { justify-content: center; }
}

@media (max-width: 400px) {
  .sp-purchase-row { flex-direction: column; }
  .sp-add-to-cart { width: 100%; }
  .sp-buy-now-row { grid-template-columns: 1fr; }
  .sp-call-btn { display: none; }
  .sp-title { font-size: 1.1rem; }
  .wm-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sp-spec-row { grid-template-columns: 1fr; }
  .sp-spec-key { border-right: none; border-bottom: 1px solid #f3f4f6; }
}
