/* ==========================================================================
   TRENDSPICK ENTERPRISE MOBILE-FIRST STOREFRONT STYLESHEET
   Marketplace-Style UI: Category Carousel, 2-Column Product Grid,
   Wishlist Heart Actions, Filter Bottom Sheets, Delivery Location Bar
   ========================================================================== */

/* ==================== 1. HORIZONTAL CATEGORY CAROUSEL (CIRCULAR BUBBLES) ==================== */
.tp-cat-carousel-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
  padding: 12px 0 10px 0;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.tp-cat-carousel-container {
  width: 100%;
  max-width: var(--container-max-width, 1320px);
  margin-inline: auto;
  padding-inline: var(--space-4);
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 768px) {
  .tp-cat-carousel-container {
    padding-inline: var(--space-6);
  }
}

@media (min-width: 1200px) {
  .tp-cat-carousel-container {
    padding-inline: var(--space-8);
  }
}

.tp-cat-carousel {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px 2px;
  box-sizing: border-box;
  scroll-snap-type: x mandatory;
}

.tp-cat-carousel::-webkit-scrollbar {
  display: none;
}

.tp-cat-bubble {
  flex: 0 0 76px;
  max-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  scroll-snap-align: start;
  user-select: none;
  transition: transform 0.15s ease;
  box-sizing: border-box;
}

.tp-cat-bubble:hover {
  transform: translateY(-2px);
}

.tp-cat-bubble-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1.5px solid #FED7AA;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 6px rgba(255, 90, 0, 0.08);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tp-cat-bubble:hover .tp-cat-bubble-avatar,
.tp-cat-bubble.active .tp-cat-bubble-avatar {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2.5px rgba(255, 90, 0, 0.3);
  transform: scale(1.05);
}

.tp-cat-bubble-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-cat-bubble-icon {
  color: var(--brand-primary);
  width: 22px;
  height: 22px;
}

.tp-cat-bubble-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 6px;
  line-height: 1.2;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.tp-cat-bubble.active .tp-cat-bubble-name {
  color: var(--brand-primary);
  font-weight: 800;
}

/* ==================== 2. MOBILE PROMOTIONAL HERO BANNER (16:7 / 4:2 RATIO) ==================== */
.tp-hero {
  padding: var(--space-3) 0 var(--space-4) 0;
}

@media (min-width: 992px) {
  .tp-hero {
    padding: var(--space-6) 0;
  }
}

.tp-hero-card {
  background: radial-gradient(circle at top right, #2C333D 0%, #15181C 100%);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .tp-hero-card {
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-6);
  }
}

@media (min-width: 992px) {
  .tp-hero-card {
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-10);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: var(--space-8);
    min-height: 380px;
  }
}

.tp-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.tp-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 90, 0, 0.2);
  border: 1px solid rgba(255, 90, 0, 0.45);
  color: var(--brand-primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tp-hero-title {
  font-family: var(--font-family-display);
  font-size: clamp(1.4rem, 4.5vw, 2.4rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.tp-hero-desc {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: #94A3B8;
  line-height: 1.45;
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 992px) {
  .tp-hero-desc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

.tp-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.tp-hero-img {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .tp-hero-img {
    max-height: 240px;
  }
}

@media (min-width: 992px) {
  .tp-hero-img {
    max-height: 300px;
  }
}

/* ==================== 3. SECTION HEADERS ==================== */
.tp-section {
  padding: var(--space-4) 0;
}

@media (min-width: 768px) {
  .tp-section {
    padding: var(--space-6) 0;
  }
}

.tp-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--brand-border);
}

.tp-section-title {
  font-family: var(--font-family-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .tp-section-title {
    font-size: 1.35rem;
  }
}

.tp-section-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.tp-link-btn {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

/* ==================== 4. SHOP BY CATEGORY (RESPONSIVE HORIZONTAL CAROUSEL) ==================== */
.tp-cat-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.tp-cat-carousel-track,
.tp-cat-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 10px 2px;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tp-cat-carousel-track::-webkit-scrollbar,
.tp-cat-grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Mobile Default (< 480px): Exactly 2 - 2.5 cards visible at a time */
.tp-cat-carousel-card,
.tp-cat-card {
  flex: 0 0 calc((100% - 12px) / 2.3);
  min-width: 125px;
  max-width: 175px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  background-color: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 14px 10px 12px 10px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: var(--shadow-xs);
}

.tp-cat-carousel-card:hover,
.tp-cat-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.tp-cat-carousel-card:active,
.tp-cat-card:active {
  transform: scale(0.98);
}

/* Large Mobile / Small Tablet (480px - 767px): ~3.3 cards visible */
@media (min-width: 480px) {
  .tp-cat-carousel-track,
  .tp-cat-grid {
    gap: 14px;
  }
  .tp-cat-carousel-card,
  .tp-cat-card {
    flex: 0 0 calc((100% - 28px) / 3.35);
    min-width: 135px;
    max-width: 190px;
  }
}

/* Tablet (768px - 1023px): Clean horizontal layout with 5 cards */
@media (min-width: 768px) {
  .tp-cat-carousel-track,
  .tp-cat-grid {
    gap: 14px;
    padding: 6px 2px 12px 2px;
  }
  .tp-cat-carousel-card,
  .tp-cat-card {
    flex: 0 0 calc((100% - 56px) / 5);
    min-width: 135px;
    max-width: 210px;
  }
}

/* Desktop (>= 1024px): Clean horizontal layout with 6 cards */
@media (min-width: 1024px) {
  .tp-cat-carousel-track,
  .tp-cat-grid {
    gap: 16px;
  }
  .tp-cat-carousel-card,
  .tp-cat-card {
    flex: 0 0 calc((100% - 80px) / 6);
    min-width: 140px;
    max-width: 220px;
  }
}

/* Category Card Icon & Image */
.tp-cat-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1px solid rgba(255, 90, 0, 0.12);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tp-cat-carousel-card:hover .tp-cat-icon-wrap,
.tp-cat-card:hover .tp-cat-icon-wrap {
  transform: scale(1.06);
}

.tp-cat-icon-wrap img,
.tp-cat-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tp-cat-icon-wrap i {
  width: 22px;
  height: 22px;
}

.tp-cat-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.25;
  margin-bottom: 2px;
}

.tp-cat-count {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Desktop Navigation Arrows */
.tp-cat-carousel-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--brand-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.tp-cat-carousel-nav:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFF;
  box-shadow: 0 6px 16px rgba(255, 90, 0, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.tp-cat-nav-prev {
  left: -14px;
}

.tp-cat-nav-next {
  right: -14px;
}

@media (min-width: 768px) {
  .tp-cat-carousel-nav {
    display: flex;
  }
}

/* ==================== 5. HORIZONTAL SWIPEABLE PRODUCT CAROUSEL ==================== */
.tp-carousel-wrapper {
  position: relative;
  width: 100%;
}

.tp-product-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.tp-product-carousel::-webkit-scrollbar {
  display: none;
}

.tp-carousel-item {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

@media (min-width: 480px) {
  .tp-carousel-item {
    flex: 0 0 190px;
  }
}

@media (min-width: 768px) {
  .tp-carousel-item {
    flex: 0 0 220px;
  }
}

/* ==================== 6. MARKETPLACE 2-COLUMN PRODUCT GRID & CARD ==================== */
.tp-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 640px) {
  .tp-shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 992px) {
  .tp-shop-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

.tp-product-card {
  background-color: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.15s ease;
  height: 100%;
}

.tp-product-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}

.tp-card-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

.tp-discount-pill {
  background-color: var(--color-success);
  color: var(--text-white);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: var(--radius-xs);
  line-height: 1.2;
}

/* Wishlist Button in Top-Right of Card */
.tp-card-wishlist-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  z-index: 6;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tp-card-wishlist-btn:hover {
  color: #DC2626;
  transform: scale(1.1);
}

.tp-card-wishlist-btn.active {
  color: #DC2626;
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.tp-card-wishlist-btn.active i {
  fill: #DC2626;
}

/* Product Media Thumbnail (1:1 Ratio Strict Contain) */
.tp-card-media {
  aspect-ratio: 1 / 1;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid #F1F5F9;
}

.tp-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.tp-product-card:hover .tp-card-img {
  transform: scale(1.03);
}

/* Product Card Body */
.tp-product-body {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tp-product-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.3;
  margin-bottom: 4px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.tp-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.tp-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background-color: #16A34A;
  color: var(--text-white);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-xs);
}

.tp-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: auto;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tp-selling-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--brand-dark);
}

.tp-mrp {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.tp-card-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-card-btn {
  font-size: 0.74rem !important;
  padding: 0 6px !important;
  height: 34px !important;
  width: 100% !important;
  border-radius: var(--radius-sm) !important;
}

/* ==================== 7. DEALS OF THE DAY SECTION ==================== */
.tp-deal-card {
  background: linear-gradient(135deg, #FFF0E6 0%, #FFE4D6 100%);
  border: 1.5px solid #FED7AA;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .tp-deal-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
  }
}

.tp-deal-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--brand-primary);
  color: var(--text-white);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.tp-deal-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1.2;
  margin-bottom: 4px;
}

.tp-deal-desc {
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: var(--space-3);
}

/* ==================== 8. CUSTOMER REVIEWS CAROUSEL ==================== */
.tp-reviews-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.tp-reviews-carousel::-webkit-scrollbar {
  display: none;
}

.tp-review-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background-color: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-review-stars {
  color: #F59E0B;
  display: flex;
  gap: 2px;
  font-size: 0.85rem;
}

.tp-review-text {
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.45;
  font-style: italic;
}

.tp-review-author {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.tp-verified-badge {
  color: #16A34A;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ==================== 9. TRUST & BENEFITS SECTION ==================== */
.tp-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .tp-trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

.tp-trust-card {
  background-color: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) 8px;
  text-align: center;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #FFF0EB;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px auto;
}

.tp-trust-card h4 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 2px;
}

.tp-trust-card p {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* ==================== 10. NEWSLETTER SECTION ==================== */
.tp-newsletter-card {
  background-color: var(--brand-dark);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tp-newsletter-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.tp-newsletter-sub {
  font-size: 0.78rem;
  color: #94A3B8;
  margin-bottom: var(--space-3);
}

.tp-newsletter-form {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 400px;
}

/* ==================== 11. COLLAPSIBLE MOBILE FOOTER ACCORDIONS ==================== */
.tp-footer-accordion {
  border-bottom: 1px solid var(--brand-dark-border);
  padding: 10px 0;
}

.tp-footer-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-white);
}

.tp-footer-accordion-content {
  display: none;
  padding-top: 8px;
}

.tp-footer-accordion.open .tp-footer-accordion-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-footer-accordion-content a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .tp-footer-accordion {
    border-bottom: none;
    padding: 0;
  }
  .tp-footer-accordion-header i {
    display: none;
  }
  .tp-footer-accordion-content {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
  }
}

/* ==================== 12. STICKY MOBILE FILTER & SORT BAR ==================== */
.tp-sticky-filter-bar {
  position: sticky;
  top: 140px;
  z-index: 80;
  background-color: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
  .tp-sticky-filter-bar {
    display: none !important;
  }
}

.tp-filter-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background-color: #F1F5F9;
  border: 1px solid var(--brand-border);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.tp-filter-chip-btn:hover, .tp-filter-chip-btn.active {
  background-color: #FFF7ED;
  color: var(--brand-primary);
  border-color: rgba(255, 90, 0, 0.4);
}

/* ==================== 13. DEDICATED SHOP CATALOG VIEW ==================== */
.tp-shop-page {
  padding-bottom: var(--space-8);
}

.tp-shop-header-wrap {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--brand-border);
  padding: var(--space-3) 0 var(--space-4);
  margin-bottom: var(--space-4);
}

.tp-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.tp-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tp-breadcrumbs a:hover {
  color: var(--brand-primary);
}

.tp-breadcrumb-sep {
  color: #CBD5E1;
}

.tp-breadcrumb-current {
  color: var(--brand-dark);
  font-weight: 600;
}

.tp-shop-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.tp-shop-title {
  font-family: var(--font-family-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-dark);
  margin: 0 0 2px 0;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .tp-shop-title {
    font-size: 1.8rem;
  }
}

.tp-shop-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.tp-shop-count-pill {
  display: inline-flex;
  align-items: center;
  background-color: #F1F5F9;
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #E2E8F0;
}

/* Desktop Shop Toolbar (≥ 992px) */
.tp-shop-toolbar {
  display: none;
  margin-bottom: var(--space-6);
}

@media (min-width: 992px) {
  .tp-shop-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tp-shop-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tp-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.tp-pill-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.tp-pill-btn.active {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 90, 0, 0.25);
}

.tp-shop-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tp-stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.tp-stock-toggle input {
  display: none;
}

.tp-toggle-slider {
  width: 34px;
  height: 18px;
  background-color: #CBD5E1;
  border-radius: var(--radius-full);
  position: relative;
  transition: background-color 0.2s ease;
}

.tp-toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.tp-stock-toggle input:checked + .tp-toggle-slider {
  background-color: #16A34A;
}

.tp-stock-toggle input:checked + .tp-toggle-slider::before {
  transform: translateX(16px);
}

.tp-toggle-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.tp-sort-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tp-sort-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tp-sort-select {
  padding: 6px 12px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.tp-sort-select:focus {
  border-color: var(--brand-primary);
}

/* Empty State */
.tp-empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  background-color: #FFFFFF;
  border: 1px dashed var(--brand-border);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
}

.tp-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #FFF7ED;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.tp-empty-icon i {
  width: 28px;
  height: 28px;
}

.tp-empty-state h3 {
  font-family: var(--font-family-display);
  font-size: 1.15rem;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.tp-empty-state p {
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 380px;
  margin: 0 auto var(--space-4);
}

/* Pagination */
.tp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--brand-border);
  flex-wrap: wrap;
}

.tp-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tp-page-btn:hover:not(:disabled) {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.tp-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tp-page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tp-page-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tp-page-num:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.tp-page-num.active {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
}

/* ==================== 14. DEDICATED WISHLIST VIEW ==================== */
.tp-wishlist-header {
  margin-bottom: var(--space-4);
}

.tp-wishlist-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==================== 15. DEDICATED CATEGORIES DIRECTORY VIEW ==================== */
.tp-categories-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .tp-categories-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tp-cat-directory-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-4);
  transition: all 0.15s ease;
}

.tp-cat-directory-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.tp-cat-directory-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: #FFF7ED;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tp-cat-directory-info {
  flex: 1;
}

.tp-cat-directory-sublist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tp-subcat-badge {
  background: #F1F5F9;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.12s;
}

.tp-subcat-badge:hover {
  background: #FFF7ED;
  color: var(--brand-primary);
}

/* ==================== 16. DELIVERY LOCATION MODAL & PINCODE SEARCH ==================== */
.tp-pincode-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.tp-delivery-saved-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-3);
}

.tp-delivery-saved-item {
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.tp-delivery-saved-item:hover, .tp-delivery-saved-item.active {
  border-color: var(--brand-primary);
  background-color: #FFF7ED;
}

.tp-delivery-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.tp-delivery-item-address {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==================== 17. GLOBAL TOAST NOTIFICATIONS ==================== */
.tp-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 40px);
}

.tp-toast-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--brand-border);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tp-toast-card.active {
  transform: translateX(0);
  opacity: 1;
}

.tp-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tp-toast-icon i {
  width: 18px;
  height: 18px;
}

.tp-toast-success .tp-toast-icon { background: #ECFDF5; color: #10B981; }
.tp-toast-error .tp-toast-icon { background: #FEF2F2; color: #EF4444; }
.tp-toast-warning .tp-toast-icon { background: #FFFBEB; color: #F59E0B; }
.tp-toast-info .tp-toast-icon { background: #FFF7ED; color: var(--brand-primary); }

.tp-toast-content {
  flex: 1;
}

.tp-toast-msg {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.4;
}

.tp-toast-close {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.tp-toast-close:hover {
  color: var(--brand-dark);
}

.tp-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--brand-primary);
  animation: toastProgress linear forwards;
}

.tp-toast-success .tp-toast-progress { background: #10B981; }
.tp-toast-error .tp-toast-progress { background: #EF4444; }

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==================== 18. FLOATING WHATSAPP VIP CONCIERGE ==================== */
.tp-whatsapp-widget {
  position: fixed;
  bottom: 74px;
  right: 16px;
  z-index: 850;
}

@media (min-width: 992px) {
  .tp-whatsapp-widget {
    bottom: 24px;
    right: 24px;
  }
}

.tp-whatsapp-trigger-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-whatsapp-trigger-btn:hover {
  transform: scale(1.08);
}

.tp-whatsapp-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #25D366;
  border-radius: 50%;
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* WhatsApp Popup */
.tp-whatsapp-popup {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 300px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--brand-border);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-whatsapp-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tp-whatsapp-popup-header {
  background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
  color: #FFFFFF;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-whatsapp-agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tp-whatsapp-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: #25D366;
  border: 1.5px solid #075E54;
  border-radius: 50%;
}

.tp-whatsapp-agent-name {
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0 0 2px 0;
}

.tp-whatsapp-agent-status {
  font-size: 0.65rem;
  opacity: 0.85;
}

.tp-whatsapp-close-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-left: auto;
  cursor: pointer;
  opacity: 0.8;
}

.tp-whatsapp-popup-body {
  padding: 12px 14px;
  background: #ECE5DD;
}

.tp-whatsapp-greeting {
  font-size: 0.78rem;
  color: #1F2937;
  background: #FFFFFF;
  padding: 8px 10px;
  border-radius: 8px 8px 8px 0;
  margin: 0 0 10px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tp-whatsapp-quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tp-whatsapp-prompt-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-dark);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.tp-whatsapp-prompt-btn:hover {
  background: #F8FAFC;
  border-color: #25D366;
  color: #075E54;
}

.tp-whatsapp-popup-footer {
  padding: 10px 14px;
  background: #FFFFFF;
  border-top: 1px solid var(--brand-border);
}

.tp-whatsapp-start-chat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  padding: 9px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tp-whatsapp-start-chat-btn:hover {
  background: #20BA5A;
}
