/* ========================================
   PRODUCTS PAGE - COMPLETE STYLES
   Version: 3.4 (Fully Fixed & Enhanced)
   ======================================== */

/* ===== 1. PRODUCTS HERO ===== */
.products-hero {
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.products-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(231, 76, 60, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-title {
  font-size: var(--font-3xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero-title i {
  color: var(--primary);
  font-size: var(--font-2xl);
}

.hero-subtitle {
  font-size: var(--font-lg);
  color: var(--text-secondary);
  margin: 0;
}

.hero-stats {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats .stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  text-align: center;
  min-width: 100px;
  transition: var(--transition-base);
}

.hero-stats .stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-primary);
}

.hero-stats .stat-card i {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
  font-style: normal;
  font-size: var(--font-xl);
  color: var(--primary);
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  margin-bottom: var(--space-xs);
}

.shopping-benefits {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.shopping-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.benefit-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(22, 22, 22, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.benefit-chip i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.18), rgba(52, 152, 219, 0.18));
  color: var(--primary-color);
}

.benefit-chip span {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.benefit-chip-link {
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.benefit-chip-link:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 76, 60, 0.4);
}

@media (max-width: 991px) {
  .shopping-benefits-grid {
    grid-template-columns: 1fr;
  }
}

.hero-stats .stat-value {
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.hero-stats .stat-label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

/* ===== 2. CONTROLS ===== */
.controls-section {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-md) 0;
  position: sticky;
  top: 72px;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
  .controls-section {
    top: 64px;
  }
}

.controls-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Search */
.search-container {
  flex: 1;
  min-width: 200px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box .search-icon {
  position: absolute;
  right: var(--space-md);
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-base);
}

.search-box:focus-within .search-icon {
  color: var(--primary);
}

.search-input {
  width: 100%;
  padding: 10px 44px 10px 44px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: var(--font-sm);
  color: var(--text-primary);
  transition: var(--transition-base);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  position: absolute;
  left: var(--space-sm);
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.search-clear:hover {
  color: var(--danger);
  background: rgba(231, 76, 60, 0.1);
}

/* Sort */
.sort-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.sort-label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  font-weight: 600;
}

.sort-buttons {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.sort-btn {
  padding: 6px 14px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: var(--font-xs);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  white-space: nowrap;
}

.sort-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(231, 76, 60, 0.08);
}

.sort-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.sort-btn i {
  font-size: var(--font-xs);
}

/* Filter */
.filter-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-toggle:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(231, 76, 60, 0.08);
}

.filter-toggle.active {
  background: rgba(231, 76, 60, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

/* Category Filter */
.category-filter {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.category-filter-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--text-primary);
  font-size: var(--font-sm);
  font-weight: 800;
  white-space: nowrap;
}

.category-filter-title i {
  color: var(--primary);
}

.category-filter-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
}

.category-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: var(--font-xs);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-base);
}

.category-filter-btn i {
  color: var(--primary);
  font-size: 10px;
}

.category-filter-btn b {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  place-items: center;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: 10px;
}

.category-filter-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.category-filter-btn.active {
  border-color: var(--primary);
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.category-filter-btn.active i,
.category-filter-btn.active b {
  color: #fff;
}

.category-filter-btn.active b {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 576px) {
  .category-filter {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .category-filter-list {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .category-filter-btn {
    flex: 0 0 auto;
  }
}

/* Filter Panel */
.filter-panel {
  margin-top: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: none;
  animation: slideDown 0.3s ease;
}

.filter-panel.show {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.filter-panel-header h3 {
  font-size: var(--font-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
}

.filter-panel-header h3 i {
  color: var(--primary);
}

.filter-panel-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.filter-panel-close:hover {
  color: var(--danger);
  background: rgba(231, 76, 60, 0.1);
}

.price-range-inputs {
  display: flex;
  align-items: flex-end;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.price-input-group {
  flex: 1;
  min-width: 140px;
}

.price-input-group label {
  display: block;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.price-input-wrapper {
  position: relative;
}

.price-input {
  width: 100%;
  padding: 8px 44px 8px 12px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  color: var(--text-primary);
  transition: var(--transition-base);
}

.price-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.price-currency {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-weight: 600;
  pointer-events: none;
}

.price-separator {
  display: flex;
  align-items: center;
  padding-bottom: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

.filter-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-actions .btn {
  padding: 8px 20px;
  font-size: var(--font-sm);
}

/* ===== 3. PRODUCTS GRID ===== */
.products-section {
  padding: var(--space-2xl) 0;
  min-height: 400px;
}

.products-grid-wrapper {
  position: relative;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-lg);
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }
}

@media (max-width: 400px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition-bounce);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.product-card .product-image-container {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-card .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* Badges */
.product-card .discount-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: linear-gradient(135deg, var(--success), #2ecc71);
  color: #fff;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 700;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.product-card .instagram-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.product-card .sold-out-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-weight: 700;
  z-index: 2;
  border: 1px solid var(--border-color);
}

/* Favorite Button */
.product-card .favorite-btn {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  z-index: 2;
}

.product-card .favorite-btn:hover {
  transform: scale(1.1);
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.product-card .favorite-btn.active {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.product-card .favorite-btn i {
  font-size: var(--font-base);
}

/* Product Info */
.product-card .product-info {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-card .product-name {
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  line-height: 1.4;
}

.product-card .product-description {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  line-height: 1.5;
}

.product-card .product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--border-color);
}

.product-card .product-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.product-card .old-price {
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card .current-price {
  font-size: var(--font-lg);
  font-weight: 800;
  color: var(--text-primary);
}

.product-card .current-price.sale-price {
  color: var(--primary);
}

.product-card .product-actions {
  display: flex;
  gap: var(--space-xs);
}

.product-card .product-actions button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.product-card .product-actions button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(231, 76, 60, 0.08);
  transform: translateY(-2px);
}

.product-card .product-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Stock */
.product-card .stock {
  display: inline-block;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
  margin-top: var(--space-xs);
  align-self: flex-start;
}

.product-card .stock.in-stock {
  background: rgba(39, 174, 96, 0.12);
  color: var(--success);
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.product-card .stock.low-stock {
  background: rgba(243, 156, 18, 0.12);
  color: var(--warning);
  border: 1px solid rgba(243, 156, 18, 0.2);
}

.product-card .stock.out-of-stock {
  background: rgba(231, 76, 60, 0.12);
  color: var(--danger);
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ===== 4. LOADING & EMPTY ===== */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  gap: var(--space-lg);
  color: var(--text-secondary);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: var(--font-xl);
  color: var(--text-primary);
  margin: 0;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0;
}

.empty-state .btn {
  margin-top: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
}

/* ===== 5. PAGINATION ===== */
.pagination-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-top: var(--space-2xl);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.pagination-info i {
  color: var(--primary);
}

.pagination-info span {
  color: var(--text-primary);
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.pagination-btn {
  width: 38px;
  height: 38px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(231, 76, 60, 0.08);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: var(--space-xs);
}

.page-number {
  width: 38px;
  height: 38px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-sm);
  font-weight: 500;
  transition: var(--transition-base);
}

.page-number:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(231, 76, 60, 0.08);
}

.page-number.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.page-dots {
  color: var(--text-muted);
  padding: 0 var(--space-xs);
  display: flex;
  align-items: center;
}

.items-per-page {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.items-per-page label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.items-select {
  padding: 6px 12px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-sm);
  cursor: pointer;
  transition: var(--transition-base);
}

.items-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== 6. INSTAGRAM SECTION ===== */
.product-instagram-section {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--border-color);
}

.product-instagram-section.visible {
  display: block !important;
}

@keyframes instaFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-instagram-section.animated {
  animation: instaFadeIn 0.45s ease forwards;
}

.instagram-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.instagram-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  opacity: 0.8;
}

.instagram-card:hover {
  border-color: #e1306c;
  box-shadow: 0 8px 32px rgba(225, 48, 108, 0.12);
  transform: translateY(-2px);
}

.instagram-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.instagram-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.instagram-card-title h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px 0;
}

.instagram-card-title p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.instagram-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.instagram-post-link:hover {
  border-color: #e1306c;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(225, 48, 108, 0.15);
}

.instagram-post-preview {
  display: flex;
  align-items: stretch;
  background: var(--bg-secondary);
}

.instagram-post-image-wrapper {
  position: relative;
  width: 120px;
  min-height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-primary);
}

.instagram-post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.instagram-post-link:hover .instagram-post-thumbnail {
  transform: scale(1.05);
}

.instagram-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 35px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.instagram-post-link:hover .instagram-play-overlay {
  opacity: 1;
}

.instagram-post-info {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.instagram-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.instagram-username::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23e4405f' d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.instagram-post-text {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.instagram-post-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #e74c3c;
  margin-top: 5px;
  transition: all 0.3s ease;
}

.instagram-post-link:hover .instagram-post-cta {
  gap: 10px;
  color: #e1306c;
}

.instagram-post-link:hover .instagram-post-cta i {
  transform: translateX(-4px);
}

.instagram-footer-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.instagram-profile-btn,
.instagram-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Cairo', sans-serif;
  text-decoration: none;
}

.instagram-profile-btn {
  background: radial-gradient(circle at 30% 107%, #fdf497, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  flex: 1;
  justify-content: center;
}

.instagram-profile-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(225, 48, 108, 0.5);
  color: #fff;
}

.instagram-share-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  flex: 1;
  justify-content: center;
}

.instagram-share-btn:hover {
  border-color: #e74c3c;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
  transform: translateY(-3px);
}

/* ===== 7. RESPONSIVE ===== */
@media (max-width: 768px) {
  .instagram-post-preview {
    flex-direction: column;
  }
  
  .instagram-post-image-wrapper {
    width: 100%;
    min-height: 180px;
    max-height: 220px;
  }
  
  .instagram-footer-actions {
    flex-direction: column;
  }
  
  .instagram-profile-btn,
  .instagram-share-btn {
    width: 100%;
  }
  
  .products-hero .hero-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }
  
  .products-hero .hero-title {
    justify-content: center;
  }
  
  .products-hero .hero-stats {
    justify-content: center;
  }
  
  .controls-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }
  
  .pagination-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .instagram-card {
    padding: 15px;
  }
  
  .instagram-post-image-wrapper {
    min-height: 150px;
    max-height: 180px;
  }
  
  .instagram-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .instagram-card-title h4 {
    font-size: 14px;
  }
  
  .instagram-username {
    font-size: 12px;
  }
  
  .instagram-post-text {
    font-size: 11px;
  }
  
  .hero-title {
    font-size: var(--font-2xl);
  }
}

/* ===== 8. DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  .instagram-card {
    background: #1e1e1e;
    border-color: #333;
  }
  
  .instagram-post-preview {
    background: #2a2a2a;
  }
  
  .instagram-post-image-wrapper {
    background: #1a1a1a;
  }
  
  .instagram-card-title h4 {
    color: #e0e0e0;
  }
  
  .instagram-card-title p {
    color: #999;
  }
  
  .instagram-username {
    color: #e0e0e0;
  }
  
  .instagram-post-text {
    color: #aaa;
  }
  
  .instagram-post-link {
    border-color: #333;
  }
  
  .instagram-share-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #aaa;
  }
  
  .instagram-share-btn:hover {
    background: #3a1a1a;
    border-color: #e74c3c;
    color: #e74c3c;
  }
}

/* ===== 9. REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .instagram-card,
  .instagram-post-link,
  .instagram-post-thumbnail {
    animation: none !important;
    transition: none !important;
  }
  
  .product-card:hover {
    transform: none !important;
  }
  
  .product-card:hover .product-image {
    transform: none !important;
  }
  
  .instagram-post-link:hover {
    transform: none !important;
  }
}
/* ===== Reviews Header ===== */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.reviews-header h4 {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
}

.reviews-header h4 i {
    color: var(--primary);
}

.add-review-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-sm);
}

/* ===== Review Form ===== */
.review-form {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    margin-top: var(--space-md);
    animation: slideDown 0.3s ease;
}

.review-form h5 {
    font-size: var(--font-base);
    font-weight: 700;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.review-form h5 i {
    color: var(--primary);
}

.rating-input {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.rating-input label {
    font-weight: 600;
    color: var(--text-secondary);
}

.stars-selector {
    display: flex;
    gap: var(--space-xs);
    font-size: var(--font-2xl);
    color: #ddd;
    cursor: pointer;
    direction: ltr;
}

.stars-selector span {
    transition: var(--transition-base);
    cursor: pointer;
    user-select: none;
}

.stars-selector span:hover,
.stars-selector span.active {
    color: #f1c40f;
    transform: scale(1.1);
}

.submit-review-btn {
    margin-top: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .reviews-header {
        flex-direction: column;
        align-items: stretch;
    }

    .rating-input {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .stars-selector {
        font-size: var(--font-xl);
    }
}

.product-card .product-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-block: 2px 4px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border-color));
  border-radius: 13px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent), color-mix(in srgb, var(--bg-card) 88%, transparent));
}

.product-card .product-category-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.product-card .product-category-label i {
  color: var(--primary);
  font-size: 12px;
}

.product-card .product-category-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.product-card .product-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--primary) 27%, var(--border-color));
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--primary);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 2px 5px color-mix(in srgb, var(--primary) 9%, transparent);
}

.product-card .product-category-chip i {
  font-size: 9px;
}

.product-card:hover .product-categories {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border-color));
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, transparent), color-mix(in srgb, var(--bg-card) 88%, transparent));
}

@media (max-width: 480px) {
  .product-card .product-categories {
    align-items: flex-start;
  }

  .product-card .product-category-label {
    padding-block: 4px;
  }
}
