/* ============================================================
   TEMU CATÓLICO - TIENDA LA LUZ
   Pixel-Perfect Temu Design System
   ============================================================ */

:root {
  --temu-orange: #fb5b03;
  --temu-orange-hover: #e04f00;
  --temu-orange-light: #fff3ec;
  --temu-black: #111111;
  --temu-dark: #222222;
  --temu-gray-dark: #555555;
  --temu-gray-muted: #767676;
  --temu-gray-light: #f6f6f6;
  --temu-border: #e5e5e5;
  --temu-green: #00a650;
  --temu-yellow: #ffb800;
  --temu-white: #ffffff;
  --temu-radius-sm: 4px;
  --temu-radius-md: 8px;
  --temu-radius-full: 9999px;
  --temu-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --temu-shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06);
  --temu-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
  --temu-shadow-dropdown: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--temu-font);
  background-color: var(--temu-bg);
  color: var(--temu-dark);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

input {
  font-family: inherit;
  outline: none;
}

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   1. TOP ANNOUNCEMENT BAR (Pitch Black)
   ============================================================ */
.top-bar {
  background-color: #000000;
  color: #ffffff;
  font-size: 13px;
  height: 38px;
  display: flex;
  align-items: center;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.top-bar-item:hover {
  opacity: 0.85;
}

.top-bar-item.green-truck svg {
  color: #00d068;
}

.top-bar-item.green-truck strong {
  color: #00d068;
  font-weight: 700;
}

.top-bar-item.yellow-returns svg {
  color: #ffcc00;
}

.top-bar-item.yellow-returns strong {
  color: #ffcc00;
  font-weight: 700;
}

.top-bar-item.app-download svg {
  color: #ff9900;
}

.top-bar-item.app-download strong {
  color: #ff9900;
  font-weight: 700;
}

/* ============================================================
   2. MAIN HEADER (Sticky White)
   ============================================================ */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  max-height: 52px;
}

.site-logo {
  height: 46px !important;
  max-height: 46px !important;
  width: auto !important;
  max-width: 150px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-container:hover .site-logo {
  transform: scale(1.03);
  opacity: 0.95;
}

.temu-badge {
  background: linear-gradient(135deg, #fb5b03 0%, #ff7300 100%);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(251, 91, 3, 0.3);
}

.badge-icons {
  display: flex;
  gap: 3px;
  font-size: 9px;
  line-height: 1;
  margin-bottom: 2px;
}

.badge-brand {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
}

.logo-subtext {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 15px;
  font-weight: 800;
  color: #111111;
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.logo-tagline {
  font-size: 11px;
  color: #fa6400;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Header Nav Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #222222;
  cursor: pointer;
  padding: 6px 4px;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}

.badge-star-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #111111;
  color: #ffffff;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
}

.nav-link:hover {
  color: var(--temu-orange);
}

.nav-link svg {
  width: 16px;
  height: 16px;
}

/* Categories Dropdown */
.categories-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  max-height: 480px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--temu-shadow-dropdown);
  padding: 12px;
  border: 1px solid #eaeaea;
  display: none;
  z-index: 1001;
}

.nav-link.has-dropdown:hover .categories-dropdown-menu,
.categories-dropdown-menu.is-active {
  display: block;
}

.dropdown-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  transition: background 0.15s, color 0.15s;
}

.dropdown-cat-item:hover {
  background: #fff4ec;
  color: var(--temu-orange);
  font-weight: 600;
}

.dropdown-cat-count {
  font-size: 11px;
  color: #888;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 9999px;
}

/* Search Bar (Temu Pill) */
.search-container {
  flex: 1;
  max-width: 620px;
  position: relative;
}

.search-pill {
  display: flex;
  align-items: center;
  border: 2px solid #111111;
  border-radius: var(--temu-radius-full);
  background-color: #ffffff;
  height: 44px;
  padding: 2px 4px 2px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-pill:focus-within {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #111111;
  padding-right: 12px;
}

.search-input::placeholder {
  color: #888888;
}

.search-clear-btn {
  display: none;
  color: #999;
  padding: 4px;
  cursor: pointer;
  margin-right: 6px;
}

.search-clear-btn:hover {
  color: #111;
}

.search-btn {
  background-color: #111111;
  color: #ffffff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.search-btn:hover {
  background-color: #333333;
  transform: scale(1.05);
}

/* ============================================================
   SEARCH POPULAR DROPDOWN (Temu Style "Popular ahora")
   ============================================================ */
.search-popular-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 480px;
  max-width: 95vw;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 18px 20px 20px 20px;
  border: 1px solid #e8e8e8;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.search-popular-dropdown.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Upward Caret pointing to search bar */
.search-popular-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 13px;
  height: 13px;
  background: #ffffff;
  border-left: 1px solid #e8e8e8;
  border-top: 1px solid #e8e8e8;
  border-top-left-radius: 2px;
}

.popular-header {
  margin-bottom: 14px;
}

.popular-title {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.2px;
}

.popular-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 12px;
}

.popular-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f6f6f8;
  border-radius: 9999px;
  padding: 5px 12px 5px 6px;
  cursor: pointer;
  font-size: 13px;
  color: #222222;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  user-select: none;
  border: 1px solid transparent;
  text-decoration: none;
}

.popular-chip:hover {
  background: #eaebee;
  color: #000000;
  transform: translateY(-1px);
  border-color: #dcdde1;
}

.popular-chip-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: block;
}

.popular-chip-fire {
  font-size: 13px;
  margin-right: 2px;
}

.popular-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #222222;
  transition: color 0.2s;
}

.action-item:hover {
  color: var(--temu-orange);
}

.action-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--temu-orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
}

.action-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.action-title {
  font-size: 12px;
  color: #767676;
}

.action-sub {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
}

/* ============================================================
   3. CATEGORY PILLS BAR (Scrollable Filter Carousel)
   ============================================================ */
.category-bar-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 72px;
  z-index: 990;
}

.category-bar-inner {
  display: flex;
  align-items: center;
  position: relative;
  padding: 10px 0;
}

.category-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 48px;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--temu-radius-full);
  border: 1px solid #e2e2e2;
  background-color: #ffffff;
  color: #222222;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chip-btn:hover {
  background-color: #f7f7f7;
  border-color: #cccccc;
}

.chip-btn.active {
  border-color: #111111;
  color: #111111;
  font-weight: 700;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.chip-scroll-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: -4px 0 10px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: #333333;
  transition: transform 0.2s, background 0.2s;
}

.chip-scroll-btn:hover {
  background: #f7f7f7;
  transform: translateY(-50%) scale(1.05);
}

/* ============================================================
   4. SORT & STATUS BAR
   ============================================================ */
.catalog-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
  padding: 0 4px;
}

.catalog-info {
  font-size: 13.5px;
  color: var(--temu-gray-muted);
}

.catalog-info strong {
  color: var(--temu-dark);
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--temu-gray-dark);
}

.sort-select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  background-color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  color: #222222;
  outline: none;
  cursor: pointer;
}

/* ============================================================
   5. PRODUCT GRID (5 columns exactly like Temu screenshot)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

/* Product Card */
.product-card {
  background-color: #ffffff;
  border-radius: var(--temu-radius-md);
  overflow: hidden;
  box-shadow: var(--temu-shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.22s;
  cursor: pointer;
  position: relative;
  border: 1px solid #f2f2f2;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--temu-shadow-hover);
  border-color: #e5e5e5;
}

/* Image Wrapper */
.card-image-box {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background-color: #f7f7f7;
  overflow: hidden;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

/* Discount Badge Overlay on image */
.card-badge-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(251, 91, 3, 0.95);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
  z-index: 2;
  text-transform: uppercase;
}

.card-badge-overlay.best {
  background: rgba(17, 17, 17, 0.85);
}

/* Card Content Body */
.card-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Title (2 lines clamp) */
.card-title {
  font-size: 13.5px;
  line-height: 1.35;
  color: #222222;
  font-weight: 400;
  height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

/* Price & Discount Row */
/* Temu Color Dots on Main Catalog Card */
.card-color-swatches-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.card-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px #dcdde1;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.card-color-dot:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 1.5px #fb5b03;
}

.card-color-more {
  font-size: 10.5px;
  font-weight: 700;
  color: #767676;
}

.card-color-label {
  font-size: 11px;
  font-weight: 600;
  color: #555555;
  margin-left: 3px;
}

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.card-price-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}

.currency-symbol {
  font-size: 12px;
  font-weight: 700;
  color: #111111;
}

.current-price {
  font-size: 17px;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.3px;
}

.original-price {
  font-size: 12px;
  color: #888888;
  text-decoration: line-through;
}

.sales-count {
  font-size: 11px;
  color: #767676;
}

.discount-badge {
  border: 1px solid #fa6400;
  color: #fa6400;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.1;
  display: inline-block;
}

/* Temu Add-to-Cart Circle Button */
.card-cart-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.2px solid #222222;
  background-color: #ffffff;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.card-cart-btn:hover {
  background-color: var(--temu-orange);
  border-color: var(--temu-orange);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(251, 91, 3, 0.35);
}

.card-cart-btn:active {
  transform: scale(0.92);
}

/* Rating Row & Star Icons (Hidden across entire site) */
.card-rating-row,
.star-icons,
.badge-star-icon,
.proof-rating,
.rev-stars-box {
  display: none !important;
}

/* ============================================================
   6. SKELETON LOADERS (While fetching next page)
   ============================================================ */
.skeleton-card {
  background: #ffffff;
  border-radius: var(--temu-radius-md);
  overflow: hidden;
  border: 1px solid #f2f2f2;
}

.skeleton-image {
  width: 100%;
  padding-top: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

.skeleton-content {
  padding: 12px;
}

.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.price {
  height: 20px;
  width: 45%;
  margin-top: 12px;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================================
   7. INFINITE SCROLL SENTINEL & FOOTER
   ============================================================ */
.infinite-scroll-sentinel {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 40px;
}

.loading-spinner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #767676;
  font-size: 14px;
  font-weight: 500;
}

.spinner-icon {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e5e5;
  border-top-color: var(--temu-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.end-catalog-message {
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: var(--temu-shadow-card);
  margin-bottom: 40px;
}

.end-catalog-message h3 {
  font-size: 18px;
  color: #111111;
  margin-bottom: 8px;
}

.end-catalog-message p {
  color: #767676;
  font-size: 14px;
  margin-bottom: 16px;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #111111;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--temu-radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.back-to-top-btn:hover {
  background-color: #333333;
}

/* ============================================================
   8. TEMU DOCKED CART SIDEBAR (Replicating Temu Image 1 & Image 2)
   - When cart has products: ALWAYS VISIBLE docked sidebar (Image 1)
   - When cart is empty: COMPLETELY HIDDEN, full width page (Image 2)
   - Position: Default Right side (as in Temu screenshots), also supports .cart-on-left
   ============================================================ */

/* Page layout adapts when docked cart is open */
@media (min-width: 992px) {
  body.has-docked-cart {
    padding-right: 140px;
    transition: padding-right 0.2s ease;
  }
  body.has-docked-cart .floating-dock {
    right: 155px;
    transition: right 0.2s ease;
  }

  /* Support if user ever sets cart on left */
  body.cart-on-left.has-docked-cart {
    padding-right: 0 !important;
    padding-left: 140px !important;
  }
  body.cart-on-left .temu-cart-floating-panel {
    right: auto !important;
    left: 0 !important;
    border-left: none !important;
    border-right: 1px solid #e0e0e0 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.07) !important;
  }
  body.cart-on-left.has-docked-cart .floating-dock {
    right: 18px !important;
  }
}

.temu-cart-floating-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 140px;
  height: 100vh;
  background-color: #ffffff;
  border-left: 1px solid #e0e0e0;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.07);
  z-index: 1050;
  display: none;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

.temu-cart-floating-panel.is-visible {
  display: flex !important;
}

/* Header - Dark Wine / Burgundy Red (Image 1) */
.cart-float-header {
  background-color: #380808;
  color: #ffffff;
  padding: 8px 10px;
  height: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-float-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.cart-float-close-btn {
  display: none; /* No close button on desktop docked bar (Temu style) */
}

/* Body */
.cart-float-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  background-color: #ffffff;
}

/* Subtotal Price Display */
.cart-float-price-display {
  padding: 8px 6px 3px 6px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 3px;
}

.subtotal-currency {
  font-size: 14px;
  font-weight: 800;
  color: #111111;
}

.cart-float-subtotal-price {
  font-size: 19px;
  font-weight: 900;
  color: #111111;
  letter-spacing: -0.3px;
}

/* Free shipping promo badge */
.cart-free-shipping-tag {
  background-color: #f2faf5;
  color: #0a8844;
  border: 1px solid #d4f2e1;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 2px 6px 7px 6px;
}

.cart-free-shipping-tag svg {
  flex-shrink: 0;
  stroke-width: 3;
}

/* Action buttons */
.cart-float-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 6px 7px 6px;
}

.btn-order-orange {
  background: #fa6300;
  color: #ffffff;
  border-radius: 9999px;
  padding: 7px 4px;
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 6px rgba(250, 99, 0, 0.3);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-order-orange:hover {
  background: #e05300;
  transform: translateY(-1px);
}

.urgency-subtext {
  display: none;
}

.main-order-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-cart-outline {
  background: #ffffff;
  color: #111111;
  border: 1px solid #767676;
  border-radius: 9999px;
  padding: 5px 4px;
  width: 100%;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: block;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s;
}

.btn-cart-outline:hover {
  background: #f7f7f7;
  border-color: #333333;
}

/* Checkbox Seleccionar todo */
.cart-select-all-row {
  padding: 5px 8px;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-checkbox-container {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #111111;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-container input {
  display: none;
}

.custom-checkbox-mark {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.15s;
}

.custom-checkbox-container input:not(:checked) + .custom-checkbox-mark {
  background-color: #ffffff;
  color: transparent;
  border: 1.5px solid #cccccc;
}

/* Scrollable Vertical List of Items */
.cart-float-items-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 6px 20px 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 transparent;
}

.cart-float-items-list::-webkit-scrollbar {
  width: 4px;
}
.cart-float-items-list::-webkit-scrollbar-thumb {
  background-color: #d0d0d0;
  border-radius: 4px;
}

/* Dock Item Card - Exact match to Image 1 */
.dock-cart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 10px;
  width: 100%;
}

.dock-item-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  padding: 0 4px;
}

.dock-checkbox-label {
  cursor: pointer;
  display: inline-flex;
}

.dock-checkbox-label input {
  display: none;
}

.dock-checkbox-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: bold;
  line-height: 1;
  transition: all 0.15s ease;
}

.dock-checkbox-label input:not(:checked) + .dock-checkbox-circle {
  background-color: #ffffff;
  color: transparent;
  border: 1.5px solid #cccccc;
}

.dock-item-delete {
  background: none;
  border: none;
  color: #aaaaaa;
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}

.dock-item-delete:hover {
  color: #d93025;
}

.dock-item-thumb-box {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f8f8f8;
  border: 1px solid #ececec;
  cursor: pointer;
}

.dock-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dock-item-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  padding: 1.5px 0;
  line-height: 1.2;
}

.dock-item-badge.badge-wholesale {
  background: #15803d;
}

.dock-item-price-box {
  margin-top: 4px;
  text-align: center;
}

.dock-item-price {
  color: #fa6300;
  font-size: 13px;
  font-weight: 800;
}

.dock-item-qty-row {
  margin-top: 3px;
  text-align: center;
}

.dock-qty-select {
  width: 64px;
  height: 23px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background-color: #ffffff;
  color: #222222;
  text-align: center;
  cursor: pointer;
  outline: none;
  padding: 1px 4px;
  appearance: auto;
  -webkit-appearance: auto;
}

.dock-qty-select:hover {
  border-color: #888888;
}

/* ============================================================
   9. FULL CART SLIDE-OVER DRAWER
   ============================================================ */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 90vw;
  background-color: #ffffff;
  z-index: 2001;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.is-active {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid #eeeeee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 18px;
  font-weight: 800;
  color: #111111;
}

.drawer-close-btn {
  font-size: 20px;
  color: #767676;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.drawer-close-btn:hover {
  color: #111111;
  background-color: #f0f0f0;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.drawer-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #767676;
}

.drawer-empty-state svg {
  width: 64px;
  height: 64px;
  color: #cccccc;
  margin-bottom: 16px;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.drawer-item-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #f7f7f7;
  border: 1px solid #eeeeee;
}

.drawer-item-details {
  flex: 1;
}

.drawer-item-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #222222;
  margin-bottom: 6px;
  line-height: 1.3;
}

.drawer-item-price {
  font-size: 15px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 8px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid #dcdcdc;
  background-color: #fbfbfb;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn:hover {
  background-color: #e5e5e5;
  border-color: #aaa;
}

.qty-value {
  font-size: 13.5px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.item-delete-btn {
  color: #999999;
  font-size: 12px;
  margin-left: auto;
  cursor: pointer;
  transition: color 0.2s;
}

.item-delete-btn:hover {
  color: #d93025;
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid #eeeeee;
  background-color: #fcfcfc;
}

.drawer-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
  color: #666666;
}

.drawer-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 800;
  color: #111111;
}

.whatsapp-order-btn {
  background: #25d366;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--temu-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: all 0.2s;
}

.whatsapp-order-btn:hover {
  background: #20ba59;
  transform: translateY(-1px);
}

/* ============================================================
   10. PRODUCT DETAIL MODAL (Quick View)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.product-modal {
  background-color: #ffffff;
  border-radius: 16px;
  width: 900px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active .product-modal {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #111;
  color: #fff;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
}

.modal-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-main-img-box {
  width: 100%;
  padding-top: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f7f7f7;
  border: 1px solid #eeeeee;
}

.modal-main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-thumbs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.modal-thumb-btn {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: #f7f7f7;
}

.modal-thumb-btn.active {
  border-color: var(--temu-orange);
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
}

.modal-category-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--temu-orange);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 12px;
  line-height: 1.25;
}

.modal-rating-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-price-box {
  background-color: #fff9f5;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-price-current {
  font-size: 26px;
  font-weight: 900;
  color: var(--temu-orange);
}

.modal-desc-box {
  font-size: 13.5px;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 24px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 8px;
}

.modal-desc-box ul {
  padding-left: 20px;
  margin-top: 6px;
}

.modal-desc-box li {
  margin-bottom: 4px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

/* ============================================================
   11. FLOATING BOTTOM TOOLS (WhatsApp, Back to top)
   ============================================================ */
.floating-dock {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #111111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  border: 1px solid #f0f0f0;
}

.dock-btn:hover {
  transform: scale(1.1);
  background-color: #111111;
  color: #ffffff;
}

.dock-btn.whatsapp-dock {
  background-color: #25d366;
  color: #ffffff;
  border: none;
}

.dock-btn.whatsapp-dock:hover {
  background-color: #1fa851;
}

.dock-btn.scroll-dock {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}

.dock-btn.scroll-dock.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   12. TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(17, 17, 17, 0.95);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--temu-radius-full);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: toastFadeInOut 3s ease forwards;
}

@keyframes toastFadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ============================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================================ */
@media (max-width: 1320px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .header-nav {
    display: none;
  }
  .search-container {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .search-popular-dropdown {
    width: 92vw;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px;
  }
  .popular-chips-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .top-bar-item.yellow-returns,
  .top-bar-item.app-download {
    display: none;
  }
  .top-bar-content {
    justify-content: center;
  }
  .action-text {
    display: none;
  }
  .modal-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .cart-drawer {
    width: 100%;
  }
  body.has-docked-cart {
    padding-right: 0 !important;
  }
  .temu-cart-floating-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    border-left: none;
    border-top: 1px solid #e0e0e0;
    transform: translateY(120%);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.22);
  }
  .temu-cart-floating-panel.is-visible {
    transform: translateY(0);
  }
  .temu-cart-floating-panel .cart-float-close-btn {
    display: block;
    position: absolute;
    right: 12px;
    top: 6px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    height: 40px;
    max-width: 130px;
  }
  .logo-title {
    display: none;
  }
  .logo-tagline {
    display: none;
  }
  .search-pill {
    height: 40px;
  }
  .search-btn span {
    display: none;
  }
}
