@import url('account.css');

/* ==========================================================================
   TEEMUO MODERN DESIGN SYSTEM & PAGE STYLES (HOME, CATALOG, PRODUCT DETAIL)
   ========================================================================== */

/* Typography & Global Variables Override */
:root {
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-primary: #0F172A;
  --color-primary-soft: #334155;
  --color-accent: #E64545;
  --color-accent-hover: #D03434;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-bg-subtle: #F8FAFC;
  --color-card-bg: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-active: 0 20px 30px -6px rgba(15, 23, 42, 0.12);
}

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: #F8FAFC;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-logo,
.product-title,
.catalog-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   ELEVATED PRODUCT CARD
   ========================================================================== */
.product-card {
  position: relative;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  box-shadow: var(--shadow-subtle);
}

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

.product-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F1F5F9;
  overflow: hidden;
}

.product-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card Badges */
.card-badge-container {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.badge-sale {
  background: #DC2626;
  color: #FFFFFF;
}

.badge-hot {
  background: #EA580C;
  color: #FFFFFF;
}

.badge-new {
  background: #0284C7;
  color: #FFFFFF;
}

/* Floating Wishlist Heart Button */
.product-wishlist-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.product-wishlist-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-wishlist-btn:hover {
  transform: scale(1.12);
  background: #FFFFFF;
  color: #EF4444;
  border-color: #FCA5A5;
}

.product-wishlist-btn.is-liked {
  background: #FEE2E2;
  color: #EF4444;
  border-color: #F87171;
}

.product-wishlist-btn.is-liked svg {
  fill: #EF4444;
}

/* Card Body Info */
.product-card-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.5em;
  transition: color 0.15s ease;
}

.product-card-name:hover {
  color: var(--color-accent);
}

/* Ratings Row */
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.stars-row {
  display: flex;
  gap: 1px;
}

.stars-row svg {
  width: 13px;
  height: 13px;
  fill: #F59E0B;
}

.rating-score {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
}

.rating-count {
  font-size: 0.72rem;
  color: #94A3B8;
}

/* Pricing Row */
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.price-current {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.price-original {
  font-size: 0.78rem;
  color: #94A3B8;
  text-decoration: line-through;
}

.price-discount-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #DC2626;
  background: #FEE2E2;
  padding: 1px 5px;
  border-radius: var(--radius-xs);
}

/* Sold Bar Indicator */
.product-card-sold {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sold-bar-track {
  flex: 1;
  height: 5px;
  background: #F1F5F9;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.sold-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F97316, #EF4444);
  border-radius: var(--radius-pill);
}

.sold-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: #EA580C;
  white-space: nowrap;
}

/* ==========================================================================
   CATALOG / SHOP PAGE STYLING
   ========================================================================== */
.catalog-page-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

/* Breadcrumbs */
.catalog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #64748B;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cb-link {
  color: #64748B;
  transition: color 0.15s ease;
}

.cb-link:hover {
  color: var(--color-primary);
}

.cb-sep {
  color: #CBD5E1;
}

.cb-current {
  color: var(--color-primary);
  font-weight: 600;
}

/* Catalog Header */
.catalog-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  gap: 16px;
  flex-wrap: wrap;
}

.catalog-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  display: block;
  margin-bottom: 4px;
}

.catalog-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.catalog-count-badge {
  font-size: 0.85rem;
  color: #64748B;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}

.count-num {
  font-weight: 700;
  color: #0F172A;
}

/* Main 2-Col Layout */
.catalog-main-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: flex-start;
}

/* Sidebar Filters */
.catalog-filter-sidebar {
  position: sticky;
  top: 100px;
}

.filter-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.filter-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 18px;
}

.filter-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-reset-link {
  font-size: 0.75rem;
  color: #EF4444;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.filter-reset-link:hover {
  text-decoration: underline;
}

.filter-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-border-light);
}

.filter-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 10px;
}

.filter-brand-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-brand-list::-webkit-scrollbar {
  width: 4px;
}

.filter-brand-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.filter-radio-pill {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  border: 1px solid transparent;
  font-size: 0.82rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-radio-pill:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.filter-radio-pill.is-active {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 600;
}

.filter-radio-pill input[type="radio"] {
  display: none;
}

/* Price Inputs */
.filter-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input-wrapper {
  position: relative;
  flex: 1;
}

.currency-prefix {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 600;
}

.price-input-wrapper input {
  width: 100%;
  padding: 8px 10px 8px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: #F8FAFC;
  color: #0F172A;
  box-sizing: border-box;
}

.price-input-wrapper input:focus {
  outline: none;
  border-color: #0F172A;
  background: #FFFFFF;
}

.price-sep {
  color: #94A3B8;
  font-weight: 700;
}

/* Checkbox Item */
.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  user-select: none;
}

.filter-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #EF4444;
  cursor: pointer;
}

.btn-filter-apply {
  width: 100%;
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 16px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  border: none;
}

.btn-filter-apply:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

/* Toolbar */
.catalog-toolbar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-subtle);
}

.active-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.active-chip {
  font-size: 0.75rem;
  font-weight: 600;
  background: #F1F5F9;
  color: #334155;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.catalog-sort-form {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
}

.catalog-sort-select {
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
}

.catalog-sort-select:focus {
  outline: none;
  border-color: #0F172A;
}

/* Empty State */
.catalog-empty-state {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
}

.empty-icon-box {
  margin-bottom: 16px;
}

.catalog-empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.catalog-empty-state p {
  font-size: 0.9rem;
  color: #64748B;
}

/* Pagination */
.catalog-pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-num-btn,
.page-nav-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-subtle);
}

.page-num-btn:hover,
.page-nav-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.page-num-btn.is-active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.page-ellipsis {
  color: #94A3B8;
  font-size: 0.9rem;
  padding: 0 4px;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE STYLING (MODERN FLAGSHIP SHOWCASE)
   ========================================================================== */
.breadcrumb-bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 16px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748B;
  flex-wrap: wrap;
}

.bc-link {
  color: #64748B;
  transition: color 0.15s ease;
}

.bc-link:hover {
  color: #0F172A;
}

.bc-sep {
  width: 14px;
  height: 14px;
  fill: #CBD5E1;
}

.bc-current {
  color: #0F172A;
  font-weight: 600;
}

.product-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 16px 64px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}

/* Left: Gallery */
.product-gallery {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.gallery-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.gallery-nav:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev-btn {
  left: 12px;
}

.gallery-nav.next-btn {
  right: 12px;
}

.gallery-nav svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.gallery-zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.gallery-zoom-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Thumbnail Strip */
.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: #FFFFFF;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

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

.gallery-thumb:hover {
  border-color: #94A3B8;
}

.gallery-thumb.is-active {
  border-color: #0F172A;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.2);
}

/* Right: Product Info Panel */
.product-info-panel {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.product-brand-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0284C7;
  background: #E0F2FE;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.product-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 14px;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-stars svg.filled {
  width: 16px;
  height: 16px;
  fill: #F59E0B;
}

.rating-value {
  font-weight: 800;
  font-size: 0.9rem;
  color: #0F172A;
}

.review-count-link {
  font-size: 0.82rem;
  color: #64748B;
  transition: color 0.15s ease;
}

.review-count-link:hover {
  color: #0F172A;
  text-decoration: underline;
}

.sold-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: #D1FAE5;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Price Block */
.price-block {
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.price-block .price-current {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
}

.price-block .price-original {
  font-size: 1rem;
  color: #94A3B8;
  text-decoration: line-through;
}

.price-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #FFFFFF;
  background: #DC2626;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.price-note {
  font-size: 0.78rem;
  color: #64748B;
}

/* Stock Indicator */
.stock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.stock-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #047857;
}

.stock-count {
  font-size: 0.8rem;
  color: #64748B;
}

/* Variant Groups */
.variant-group {
  margin-bottom: 18px;
}

.variant-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.variant-selected-label {
  color: #0F172A;
  font-weight: 800;
}

.variant-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.is-active {
  box-shadow: 0 0 0 2px #0F172A, 0 0 0 4px rgba(15, 23, 42, 0.15);
}

.storage-chip {
  padding: 8px 16px;
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.storage-chip:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.storage-chip.is-active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

/* Quantity Row */
.quantity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.quantity-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: #0F172A;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: #F1F5F9;
}

.qty-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.qty-input {
  width: 44px;
  height: 36px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0F172A;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-max-note {
  font-size: 0.78rem;
  color: #94A3B8;
}

/* CTAs Buttons */
.product-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-add-cart,
.btn-buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-add-cart {
  background: #0F172A;
  color: #FFFFFF;
}

.btn-add-cart:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}

.btn-add-cart svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-buy-now {
  background: linear-gradient(135deg, #FF6B35, #E64545);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(230, 69, 69, 0.35);
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 69, 69, 0.45);
}

.btn-buy-now svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Secondary Actions */
.secondary-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-wishlist,
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748B;
  padding: 6px 12px;
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-wishlist:hover,
.btn-share:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

.btn-wishlist.is-liked {
  color: #EF4444;
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.btn-wishlist svg,
.btn-share svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  fill: #10B981;
  flex-shrink: 0;
}

/* ==========================================================================
   PRODUCT DETAILS TABS SECTION
   ========================================================================== */
.product-details-section {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
}

.details-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--color-border-light);
  padding-bottom: 0;
  margin-bottom: 28px;
  overflow-x: auto;
}

.details-tabs::-webkit-scrollbar {
  height: 0;
}

.details-tab {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748B;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.details-tab:hover {
  color: #0F172A;
}

.details-tab.is-active {
  color: #0F172A;
  border-bottom-color: #0F172A;
}

.details-panel {
  display: none;
}

.details-panel.is-active {
  display: block;
}

.mobile-accordion-header {
  display: none;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--color-border-light);
}

.specs-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
}

.specs-table td:first-child {
  width: 30%;
  font-weight: 700;
  color: #64748B;
  background: #F8FAFC;
}

.specs-table td:last-child {
  color: #0F172A;
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #334155;
}

.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Shipping Table */
.shipping-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.shipping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.shipping-method {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0F172A;
}

.shipping-time {
  font-size: 0.82rem;
  color: #64748B;
}

.shipping-cost {
  font-weight: 800;
  font-size: 0.88rem;
  color: #0F172A;
}

.free-chip {
  color: #059669;
  background: #D1FAE5;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.shipping-note {
  font-size: 0.82rem;
  color: #64748B;
}

/* Returns List */
.returns-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

/* Reviews Overview */
.reviews-overview {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.reviews-score-big {
  font-size: 3.5rem;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-display);
  line-height: 1;
}

.btn-write-review {
  background: #0F172A;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-write-review:hover {
  background: #1E293B;
}

/* Section Header (Related & Home sections) */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
}

.see-all-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748B;
  transition: color 0.15s ease, transform 0.15s ease;
}

.see-all-link:hover {
  color: #0F172A;
  transform: translateX(2px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLETS)
   ========================================================================== */
@media (max-width: 900px) {
  .catalog-main-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filter-sidebar {
    position: static;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-gallery {
    position: static;
  }

  .product-info-panel,
  .product-details-section {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .details-tabs {
    display: none;
  }

  .details-panel {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .mobile-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #F8FAFC;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0F172A;
    cursor: pointer;
  }

  .accordion-icon {
    width: 18px;
    height: 18px;
    fill: #64748B;
    transition: transform 0.2s ease;
  }

  .details-panel.is-active .accordion-icon {
    transform: rotate(180deg);
  }

  .panel-content {
    display: none;
    padding: 16px;
  }

  .details-panel.is-active .panel-content {
    display: block;
  }

  .product-ctas {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODERN HOMEPAGE 9-SECTION DESIGN SYSTEM
   ========================================================================== */

/* Modern Section Headers */
.modern-feed-section {
  margin: 36px 0;
  padding: 0 4px;
}

.section-header-modern {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 14px;
}

.section-header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  width: fit-content;
  color: #FFFFFF;
}

.badge-gradient-trending {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.28);
}

.badge-gradient-deals {
  background: linear-gradient(135deg, #E11D48, #F43F5E);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.28);
}

.badge-gradient-bestseller {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.28);
}

.badge-gradient-new {
  background: linear-gradient(135deg, #0284C7, #06B6D4);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.28);
}

.badge-gradient-hot {
  background: linear-gradient(135deg, #EA580C, #F97316);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.28);
}

.badge-gradient-budget {
  background: linear-gradient(135deg, #059669, #10B981);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.28);
}

.badge-gradient-essentials {
  background: linear-gradient(135deg, #475569, #64748B);
  box-shadow: 0 2px 8px rgba(71, 85, 105, 0.25);
}

.badge-gradient-clearance {
  background: linear-gradient(135deg, #9333EA, #C026D3);
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.28);
}

.section-main-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #64748B;
  margin: 0;
  font-weight: 500;
}

.section-see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.section-see-all-btn:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.section-see-all-btn svg {
  transition: transform 0.2s ease;
}

.section-see-all-btn:hover svg {
  transform: translateX(3px);
}

.section-see-all-btn.btn-clearance {
  border-color: #F43F5E;
  color: #E11D48;
}

.section-see-all-btn.btn-clearance:hover {
  background: #E11D48;
  border-color: #E11D48;
  color: #FFFFFF;
}

/* ==========================================================================
   FLASH DEALS ⚡ HIGHLIGHT SECTION
   ========================================================================== */
.flash-deal-highlight-section {
  background: linear-gradient(135deg, #1E1B4B 0%, #311042 50%, #180828 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 40px 0;
  box-shadow: 0 16px 36px -8px rgba(30, 27, 75, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.flash-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.flash-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flash-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.flash-main-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.flash-sub-heading {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.flash-countdown-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.countdown-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flash-timer-units {
  display: flex;
  align-items: center;
  gap: 4px;
}

.timer-box {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 6px;
}

.timer-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.timer-unit {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.timer-colon {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.timer-box-accent {
  background: rgba(239, 68, 68, 0.8);
}

.flash-all-link {
  color: #FDE047;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
}

.flash-all-link:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.flash-deal-highlight-section .product-card {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   MID-PAGE PROMOTIONAL STRIP
   ========================================================================== */
.home-promo-strip {
  margin: 44px 0;
}

.home-promo-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #FFFFFF;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18);
}

.home-promo-text {
  max-width: 540px;
  z-index: 2;
}

.home-promo-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.home-promo-text h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.home-promo-text p {
  font-size: 1rem;
  color: #94A3B8;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.home-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.home-promo-btn:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.home-promo-img {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.home-promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-promo-card:hover .home-promo-img img {
  transform: scale(1.08);
}

/* ==========================================================================
   HERO BANNER ENHANCEMENTS
   ========================================================================== */
.hero-headline {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 6px 0 14px 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.95);
  color: #0F172A;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: fit-content;
}

.hero-cta-btn:hover {
  background: #FFFFFF;
  color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Responsive adaptations for homepage modern elements */
@media (max-width: 768px) {
  .section-header-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .section-main-title {
    font-size: 1.3rem;
  }

  .flash-header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-promo-card {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }

  .home-promo-text {
    max-width: 100%;
  }

  .home-promo-btn {
    margin: 0 auto;
  }

  .home-promo-img {
    width: 160px;
    height: 160px;
  }

  /* Responsive 2-column native vertical grid on mobile (Temu / Amazon style) */
  .modern-feed-section .product-grid,
  .flash-deal-highlight-section .product-grid,
  .clearance-corner-section .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    flex-wrap: wrap !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .modern-feed-section .product-grid .product-card,
  .flash-deal-highlight-section .product-grid .product-card,
  .clearance-corner-section .product-grid .product-card {
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* Tablet responsiveness for promo ads */
@media (min-width: 769px) and (max-width: 1024px) {
  .home-promo-card {
    padding: 30px;
    gap: 20px;
  }
  .home-promo-text h3 {
    font-size: 1.5rem;
  }
  .home-promo-img {
    width: 180px;
    height: 180px;
  }
}

/* Prevent header overflow on very small screens */
@media (max-width: 600px) {
  .header-login-btn {
    display: none !important;
  }
  .header-top {
    padding: 8px 6px !important;
  }
  .header-left, .header-right {
    gap: 2px !important;
  }
  .brand-logo {
    font-size: 1.2rem !important;
  }
}

/* ============================================================
   FEATURED 320 MARKETPLACE TOOLBAR & FILTER CHIPS
   ============================================================ */
.catalog-marketplace-section {
  margin-bottom: 48px;
}

.catalog-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-live-counter {
  font-size: 0.88rem;
  font-weight: 700;
  color: #EA580C;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  white-space: nowrap;
}

.catalog-toolbar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 16px 0 24px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.catalog-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.catalog-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.catalog-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  pointer-events: none;
}

.catalog-search-box input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  padding: 0 38px 0 42px;
  font-size: 0.92rem;
  background: #F8FAFC;
  color: #0F172A;
  transition: all 0.2s ease;
  font-family: inherit;
}

.catalog-search-box input:focus {
  outline: none;
  border-color: #EA580C;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.catalog-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #E2E8F0;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #475569;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.catalog-sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-sort-box .sort-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
  white-space: nowrap;
}

.catalog-sort-select {
  height: 42px;
  padding: 0 30px 0 12px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background-color: #F8FAFC;
  font-weight: 600;
  font-size: 0.88rem;
  color: #0F172A;
  cursor: pointer;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.catalog-sort-select:focus {
  border-color: #EA580C;
}

.catalog-chips-wrapper {
  overflow: hidden;
  position: relative;
}

.catalog-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.catalog-chips-scroll::-webkit-scrollbar {
  display: none;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.catalog-chip:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

.catalog-chip.is-active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.catalog-chip .chip-count {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.07);
  font-weight: 700;
}

.catalog-chip.is-active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.catalog-empty-state {
  text-align: center;
  padding: 56px 20px;
  background: #F8FAFC;
  border-radius: 16px;
  border: 2px dashed #CBD5E1;
  margin: 24px 0;
}

.catalog-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.catalog-empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
}

.catalog-empty-state p {
  color: #64748B;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.catalog-reset-btn {
  padding: 9px 24px;
  border-radius: 8px;
  background: #EA580C;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.catalog-reset-btn:hover {
  background: #C2410C;
}

@media (max-width: 600px) {
  .catalog-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-search-box {
    min-width: 100%;
  }
  .catalog-sort-box {
    justify-content: space-between;
  }
}