/* ==========================================================================
   TRENDSPICK PREMIUM MOBILE-FIRST STOREFRONT STYLESHEET
   Horizontal Category Strip, Touch Product Carousels, Deals of the Day,
   Customer Review Carousel, Filter Bottom Sheets, Collapsible Footer
   ========================================================================== */

/* ==================== 1. MOBILE HORIZONTAL CATEGORY NAVIGATION STRIP ==================== */
.tp-mobile-cat-strip {
  background-color: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

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

.tp-mobile-cat-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--space-4);
  white-space: nowrap;
}

.tp-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #F1F5F9;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  flex-shrink: 0;
}

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

.tp-cat-chip i {
  width: 14px;
  height: 14px;
}

/* ==================== 2. DEDICATED MOBILE HERO BANNER ==================== */
.tp-hero {
  padding: var(--space-3) 0 var(--space-5) 0;
}

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

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

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

.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: 6px;
  background: rgba(255, 90, 0, 0.18);
  border: 1px solid rgba(255, 90, 0, 0.45);
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  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.65rem, 5vw, 2.75rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
}

.tp-hero-desc {
  font-size: clamp(0.85rem, 2.2vw, 1.02rem);
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

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

.tp-hero-img {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s ease;
}

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

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

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

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

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

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

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

/* ==================== 4. SHOP BY CATEGORY ==================== */
.tp-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

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

.tp-cat-card {
  background-color: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-2);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tp-cat-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tp-cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: #FFF7ED;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.tp-cat-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-dark);
  word-break: break-word;
}

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

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

.tp-product-carousel {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

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

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

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

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

/* ==================== 6. PRODUCT CARD (1:1 RATIO & LINE CLAMPING) ==================== */
.tp-product-card {
  background-color: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
  height: 100%;
}

.tp-product-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
  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.65rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: var(--radius-xs);
}

.tp-card-media {
  aspect-ratio: 1 / 1;
  background-color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid #F1F5F9;
}

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

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

.tp-product-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.tp-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-2);
}

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

.tp-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

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

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

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

.tp-card-btn {
  font-size: 0.75rem !important;
  padding: 0 6px !important;
  height: 36px !important;
  width: 100% !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-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

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

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

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

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

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

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

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

@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);
  text-align: center;
}

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

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

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

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

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

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

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

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

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

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

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

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

@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: 12px;
  }
}

/* ==================== 12. MOBILE FILTER & SORT BOTTOM SHEET ==================== */
.tp-mobile-filter-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--brand-surface);
  border-top: 1.5px solid var(--brand-border);
  padding: 8px 16px;
  display: flex;
  gap: 10px;
  z-index: 90;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .tp-mobile-filter-bar {
    display: none;
  }
}

.tp-filter-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.tp-filter-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tp-filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--brand-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-5);
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-filter-sheet.active {
  transform: translateY(0);
}
