/* =============================================================
   store.css  —  Shop page
   Mobile-first · CSS custom-property powered
   ============================================================= */

/* ── Animations ─────────────────────────────────────────────── */
@keyframes spin-anim {
  to {
    transform: rotate(360deg);
  }
}

@keyframes qty-bump {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.35);
  }
}

@keyframes feat-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes feat-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-7px);
  }
}

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

  100% {
    background-position: -200% 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.spin-icon {
  animation: spin-anim 0.7s linear infinite;
}

.size-checkbox {
  display: none !important;
}

/* =============================================================
   PAGE LAYOUT
   ============================================================= */
.product-container {
  width: 100%;
  max-width: var(--main-width, 1380px);
  margin: var(--spacing-xl, 28px) auto;
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: var(--spacing-2xl, 36px);
  padding: 0 var(--spacing-xl, 24px);
  align-items: start;
}

.all-products-section {
  width: 100%;
  min-width: 0;
}

.product-container:has(.empty-state.active) .products-shop-pagination {
  display: none !important;
}

/* =============================================================
   FILTER SIDEBAR
   ============================================================= */
#filter-section-main {
  position: sticky;
  top: var(--spacing-md, 12px);
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

#filter-section-main::-webkit-scrollbar {
  display: none;
}

.filter-section-title {
  font-size: 20px !important;
  font-weight: 700;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.filter-header span {
  font-size: 20px;
}

.filter-head {
  width: 100%;
  padding: 10px 0 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 10px;
  cursor: pointer;
}

.filter-head.active{
  margin-bottom: 0px;
  padding:14px 0;

}
.filter-section-title.filter-head {
  border-bottom: none;
  padding-bottom: 4px;
}

.filter-group {
  padding-bottom: 5px;
}

.filter-group:last-of-type {
  border-bottom: none;
}

/* Search inside filter */
.filter-wrap .search {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.filter-wrap .search:focus-within {
  border-color: var(--primary-color);
}

.filter-wrap .search input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.filter-wrap .search input::placeholder {
  color: var(--text-light);
}

.filter-wrap .search i {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Category checkboxes */
.filter-child {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
  padding: 7px 0;
  user-select: none;
}

.filter-child-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-item {
  user-select: none;
}

.filter-child label,
.filter-item-size label {
  flex: 1;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  padding-left: 30px;
  position: relative;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  text-transform: capitalize;
  line-height: 1.35;
}

[dir="rtl"] .filter-child label,
[dir="rtl"] .filter-item-size label {
  padding-left: 0;
  padding-right: 30px;
}

.filter-child label::before,
.filter-item-size label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-primary);
  transition: all 0.22s;
}

[dir="rtl"] .filter-child label::before,
[dir="rtl"] .filter-item-size label::before {
  left: auto;
  right: 0;
}

.filter-child label::after,
.filter-item-size label::after {
  content: "✓";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  transition: transform 0.15s;
}

[dir="rtl"] .filter-child label::after,
[dir="rtl"] .filter-item-size label::after {
  left: auto;
  right: 6px;
}

.filter-child-checkbox-input:checked+label::before,
.filter-item-size input:checked+label::before {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.filter-child-checkbox-input:checked+label::after,
.filter-item-size input:checked+label::after {
  transform: translateY(-50%) scale(1);
}

.filter-child-checkbox-input:checked+label,
.filter-item-size input:checked+label {
  color: var(--primary-color);
  font-weight: 600;
}

.filter-child:hover label::before,
.filter-item-size:hover label::before {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Price range slider */
.slider-container {
  position: relative;
  height: 6px;
  margin: 22px 0 12px;
}

[dir="rtl"] .slider-container {
  direction: ltr;
}

.slider-track {
  position: absolute;
  inset: 0;
  background: var(--border-light);
  border-radius: 6px;
}

.slider-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--primary-color);
  border-radius: 6px;
}

input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  background: var(--bg-primary);
  border: 2.5px solid var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 4px;
}

/* Animated collapse/expand container */
.filter-body-item {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.filter-body-item-static {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.filter-body-item.show {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* Inner keeps your original layout, and clips during animation */
.filter-body-item-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Optional: rotate the chevron when open */
.filter-head svg {
  transition: transform 0.3s ease;
}

.filter-head.show svg {
  transform: rotate(180deg);
}

.filter-item-size {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.filter-item-size input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  border-radius: 5px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-item-size input:checked {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.filter-item-size input:checked::after {
  content: "✓";
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* Color swatches */
.filter-body-item-color {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-item-colors {
  position: relative;
}

.filter-item-colors input[type="checkbox"] {
  display: none;
}

.filter-item-colors label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--border-light);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  user-select: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.filter-item-colors.checkbox-active label {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-more-light, #eef2ff);
}

.color-option-wrap {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  flex-shrink: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.filter-item-colors.checkbox-active .color-option-wrap {
  transform: scale(1.05);
  box-shadow: 0 0 0 1px var(--primary-color);
}

/* Filter action buttons */
.filter-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.filter-buttons button {
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition:
    opacity 0.15s,
    background 0.2s;
}

#apply-filter-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
}

#apply-filter-btn:hover {
  opacity: 0.87;
}

#reset-filter-btn {
  background: var(--bg-card, #f5f5f5);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-light);
}

/* Mobile drag handle */
.filter-drag-indicator {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
  cursor: grab;
  touch-action: pan-y;
}

.drag-line {
  width: 38px;
  height: 4px;
  background: var(--border-primary);
  border-radius: 2px;
}

/* =============================================================
   PRODUCT CONTROLS
   ============================================================= */
.product-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.product-controls-actions {
  gap: 12px;
  justify-content: center;
  display: flex;
  align-items: center;
}

.product-count {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  max-height: 38px !important;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.view-toggle-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.view-toggle-btn.active {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.view-toggle-btn.active:hover {
  background-color: var(--primary-hover);
}

/* List view layout override for the products grid */
#products-container.list-view {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

@media (max-width: 640px) {
  .view-toggle {
    display: none;
    /* grid-only on mobile, common pattern — drop this rule if you want it everywhere */
  }
}
.product-detail-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  transition: box-shadow var(--transition-normal),
              border-color var(--transition-normal);
}

.product-detail-card:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-medium);
}

/* ── Image ─────────────────────────────── */
.product-detail-image-wrap {
    position: relative;
    flex-shrink: 0;

    width: 150px;
    aspect-ratio: 1 / 1; /* Always square */

    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: var(--bg-hover); /* placeholder backdrop while image loads */
}

.product-detail-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Use 'cover' if you want it to fill the square */
    transition: transform var(--transition-normal);
}

.product-detail-card:hover .product-detail-image {
    transform: scale(1.04);
}

/* Badge — was unstyled, just flowed as inline text above the <a> */
.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    z-index: 2;
    padding: 3px var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-sale {
    background-color: var(--error-color);
}

/* ── Info ──────────────────────────────── */
.product-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.product-detail-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-detail-title:hover {
  color: var(--primary-color);
}

.product-detail-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--font-size-base);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Wrapper for attribute rows + stock row — was previously unstyled,
   so rows had no consistent spacing/wrap behavior */
.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: var(--spacing-xs);
  column-gap: var(--spacing-lg);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-base);
}

.meta-label {
  color: var(--text-primary);
  font-weight: 600;
}

.meta-value {
  color: var(--text-muted);
}

.color-swatches {
  display: flex;
  gap: var(--spacing-xs);
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-primary);
  cursor: pointer;
}

.color-swatch.active {
  border-color: var(--primary-color);
}

.meta-pill {
  padding: 2px var(--spacing-md);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.stock-dot.in-stock {
  background-color: var(--green-color);
}

.stock-dot.low-stock {
  background-color: var(--warning-color, #f0ad4e);
}

.stock-dot.out-stock {
  background-color: var(--text-light);
}

.stock-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.stock-dot.in-stock + .stock-label {
  color: var(--green-color);
}

.stock-dot.low-stock + .stock-label {
  color: var(--warning-color, #f0ad4e);
}

.stock-dot.out-stock + .stock-label {
  color: var(--text-light);
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

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

.rating-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

.rating-count {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ── Purchase panel ────────────────────── */
.product-detail-purchase {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding-left: 20px;
  border-left: 1px solid var(--border-light);
}

.product-detail-action-bottom{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.product-detail-action-bottom .btn-qty-control{
  min-height: 38px !important;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.price-old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-discount-badge {
  padding: 2px var(--spacing-sm);
  background-color: var(--danger-color-light);
  color: var(--error-color);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  border: none;
  border-radius: var(--radius-md);
  background-color: var(--primary-color);
  color: var(--text-white);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-add-to-cart:hover {
  background-color: var(--primary-hover);
}

.btn-add-to-cart .cart-icon svg,
.btn-add-to-cart .cart-spinner svg {
  width: 16px;
  height: 16px;
}

.btn-add-to-cart--out,
.btn-add-to-cart:disabled {
  background-color: var(--bg-hover);
  color: var(--text-light);
  cursor: not-allowed;
}

.btn-add-to-cart--out:hover {
  background-color: var(--bg-hover);
}
.product-detail-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.btn-view-details-list {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-md);
  background-color: transparent;
  color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  gap: 6px;
}

.btn-view-details-list:hover {
  background-color: var(--primary-more-light);
}

.btn-add-to-wishlist {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-add-to-wishlist:hover,
.btn-add-to-wishlist.active {
  border-color: var(--error-color);
  color: var(--error-color);
}

/* Label is used for a11y/context but the action row is icon-only in list view */
.wishlist-button-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
/* Row wrapper for all attribute chips */
.product-attrs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Single "Color: Red" chip */
.product-attr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

/* Optional color dot, only rendered when color_hex is present */
.product-attr-swatch {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  flex-shrink: 0;
}

/* The label itself — e.g. "Color:" / "Material:" */
.product-attr-label {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* The value — e.g. "Red" / "Cotton" */
.product-attr-value {
  color: var(--text-primary);
  font-weight: 600;
}
@media (max-width: 768px) {
  .product-detail-card {
    flex-direction: column;
  }

  .product-detail-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .product-detail-purchase {
    width: 100%;
    padding-left: 0;
    border-left: none;
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-light);
  }
}

@media (max-width: 480px) {
  .product-detail-card {
    padding: var(--spacing-lg);
    gap: var(--spacing-lg);
  }

  .product-detail-title {
    font-size: var(--font-size-xl);
  }

  .price-current {
    font-size: var(--font-size-2xl);
  }
}
#toggle-filters {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

#toggle-filters:hover {
  opacity: 0.87;
}

/* Sort */
.sort-options {
  position: relative;
}

.sort-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-wrap {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  font-size: 14px;
}

.option-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1.5px solid var(--border-light);
  padding: 9px 14px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s;
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
  background: var(--bg-card);
}

.option-selected:hover {
  border-color: var(--primary-color);
}

#sorting-state {
  white-space: nowrap;
  max-width: 140px;
}

.search-for-mobile {
  display: none;
}

@media (max-width: 768px) {
  .search-for-mobile {
    display: flex;
  }

  .search-wrapper {
    display: flex;
  }
}

.search-wrapper {
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
  margin-bottom: var(--spacing-xl);
  border-radius: 8px;
  padding: 3px 0px;
  border: 1px solid var(--border-light) !important;
}

.search-wrapper {
  border: 1.5px solid transparent;
  transition: var(--transition-fast);
}

.search-wrapper:focus-within {
  border: 1.5px solid var(--primary-color);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: var(--transition-main);
}

.filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}


.filter-btn.state-close {
  background: var(--primary-more-light);
}

.filter-btn.state-close:hover {
  background: var(--primary-light);
}

.filter-btn.state-loading {
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

.filter-btn.state-loading .spinner {
  animation: spin 0.8s linear infinite;
}

.filter-btn.state-clear:hover svg {
  stroke: var(--danger-color);
}

.icon-default {
  display: flex;
  align-items: center;
  juctify-content: center;
}

/* Spinner animation */
#search-action-btn .icon-loading svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 0.7s linear infinite;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  width: 100%;
  font-family: "DM Sans", sans-serif;
}

.search-bar input::placeholder {
  color: var(--text-placeholder-light);
  font-weight: 500;
}

.filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border-light);
  padding: 6px 8px;
}

.angle-right-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#angle-right {
  display: inline-flex;
  transition: transform 0.3s;
}

#angle-right.rotate {
  transform: rotate(-180deg);
}

.sort-options .list-Sort {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  list-style: none;
  padding: 6px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: var(--z-dropdown, 500);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
}

[dir="rtl"] .sort-options .list-Sort {
  right: auto;
  left: 0;
}

.sort-options .list-Sort.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#list-sort .option {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-transform: capitalize;
  white-space: nowrap;
}

#list-sort .option svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

#list-sort .option.selected svg,
#list-sort .option:hover svg {
  color: var(--primary-color);
}

.list-Sort .option {
  padding: 9px 14px;
  cursor: pointer;
  border-radius: 8px;
  transition:
    background 0.15s,
    color 0.15s;
  user-select: none;
  color: var(--text-primary);
  font-size: 14px;
}

.list-Sort .option:hover {
  background: var(--bg-hover);
}

.list-Sort .option.selected {
  color: var(--primary-color);
  background: var(--primary-more-light, #eef2ff);
  font-weight: 600;
}

/* =============================================================
   ACTIVE FILTER TAGS
   ============================================================= */
.filter-x3 {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.filter-active-x-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  overflow: hidden;
}

.filters-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters-container::-webkit-scrollbar {
  display: none;
}

.filter-ele {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-color);
  padding: 5px 10px;
  border-radius: 50px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
}

.filter-ele .close-ele {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.15s;
  padding: 0;
  flex-shrink: 0;
}

.filter-ele .close-ele:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.clear-all {
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
  user-select: none;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

/* =============================================================
   PRODUCT GRID
   ============================================================= */
#products-container,
.product-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--spacing-xl, 22px);
  width: 100%;
  overflow: hidden !important;
}

.product-section.view-list {
  grid-template-columns: 1fr !important;
}

/* =============================================================
   PRODUCT CARD
   ============================================================= */
.product-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    box-shadow 0.28s ease,
    transform 0.28s ease;
  animation: card-in 0.35s ease-out both;
}

/* Image area */
.product-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  justify-content: center;
  background: var(--bg-secondary, #f8fafc);
}

.product-img-link {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

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

/* Badges */
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  z-index: 2;
  pointer-events: none;
}

.badge-new {
  background: var(--primary-color);
  color: #fff;
}

.badge-sale {
  background: #ef4444;
  color: #fff;
}

.badge-best {
  background: #f59e0b;
  color: #fff;
}

.badge-featured {
  background: #f97316;
  color: #fff;
}

.badge-out {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.badge-limited {
  background: #ef4444;
  color: #fff;
}

.badge-popular {
  background: #3b82f6;
  color: #fff;
}

.badge-top {
  background: #10b981;
  color: #fff;
}

.badge-default {
  background: var(--text-secondary);
  color: #fff;
}

/* Discount pill on image */
.img-discount-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
}

/* Hover action buttons */
.product-img-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 7px;
  z-index: 3;
  width: 100%;
  height: 100%;
}

.product-img-btn {
  width: fit-content;
  border-radius: 20px;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.22s,
    transform 0.22s,
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.product-img-btn span {
  line-height: 1;
}

.product-card:hover .product-img-btn {
  opacity: 1;
  transform: translateY(0);
}

.wishlist-button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-light);
  color: var(--text-light) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.wishlist-button.active {
  color: var(--error-color) !important;
}

.product-container .wishlist-button.active svg{
  fill: var(--error-color);
}

.product-img-btn:hover {
  background: var(--bg-hover);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.product-img-btn svg {
  width: 16px;
  height: 16px;
}

/* =============================================================
   CARD BODY
   ============================================================= */
.product-card-body {
  padding: 12px 2px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--bg-card);
  gap: 4px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.18s;
}

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

.product-short-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.2;
  font-weight: 400;
  margin: 0;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
/* Rating */
.product-reviews {
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-rev-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.rev-count {
  color: var(--text-light);
  font-weight: 400;
}

/* Attributes */
.variant-attrs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 20px;
}

.attr-row {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
}

.attr-key {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.attr-values {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.attr-swatch {
  display: inline-block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  cursor: default;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  text-transform: lowercase;
}

.attr-swatch:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px var(--primary-color);
}

.attr-swatch-more {
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 17px;
  padding: 0 5px;
  border-radius: 20px;
  background: var(--bg-secondary, #f1f5f9);
  border: 1.5px solid var(--border-light);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}

.attr-pill {
  font-size: 11px;
  color: var(--text-muted);
}

.attr-pill--more {
  font-weight: 600;
  text-transform: lowercase;
  white-space: nowrap;
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: var(--primary-more-light, #eef2ff);
}

/* Price row */
.product-price-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.product-offer-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: var(--font-size-xs);
  color: var(--primary-color);
  font-weight: 500;
}

.product-offer-label svg {
  flex-shrink: 0;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.product-old-price {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 400;
}

.product-discount-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--error-bg-2);
  color: var(--error-border);
  white-space: nowrap;
  align-self: center;
}

/* =============================================================
   FEATURE SLIDER
   ============================================================= */
.product-features-slider {
  position: relative;
  height: 18px;
  /* fixed height prevents layout jump */
  overflow: hidden;
}

.feature-item {
  position: absolute;
  inset: 0;
  display: flex;
  /* always rendered, never toggled */
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(7px);
  pointer-events: none;
}

.feature-item.is-visible {
  animation: feat-in 0.35s ease forwards !important;
  pointer-events: auto !important;
}

.feature-item.is-leaving {
  animation: feat-out 0.35s ease forwards !important;
  pointer-events: none !important;
}

.feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-color);
  flex-shrink: 0;
}

.feature-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================================
   CARD FOOTER ACTIONS
   ============================================================= */
.product-actions-row {
  display: flex;
  gap: 7px;
  align-items: stretch;
  min-height: 40px;
  margin-top: auto;
  padding-top: 2px;
}

.btn-cart {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--primary-color);
  color: #fff;
  transition:
    opacity 0.15s,
    transform 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.btn-cart:hover:not(:disabled) {
  opacity: 0.88;
}

.btn-cart:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-cart:disabled {
  cursor: not-allowed;
}

.btn-cart--out {
  background: var(--bg-hover, #e2e8f0);
  color: var(--text-light);
}

.btn-cart.in-cart {
  background: #16a34a;
}

.cart-icon,
.cart-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-details {
  width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.btn-details:hover {
  background: var(--bg-hover);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-details svg {
  width: 17px;
  height: 17px;
}

[dir="ltr"] .btn-details i {
  transform: rotate(180deg);
}

.btn-details-tip {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 99;
  font-size: 12px;
}

[dir="rtl"] .btn-details-tip {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.btn-details:hover .btn-details-tip {
  opacity: 1;
}

/* =============================================================
   QTY CONTROL
   ============================================================= */
.btn-qty-control {
  flex: 1;
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  min-width: 0;
  max-height: 38px;
}

.qty-btn {
  width: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  transition: background 0.15s;
  padding: 0;
}

.qty-dec {
  border-right: 1px solid var(--border-light);
}

.qty-inc {
  border-left: 1px solid var(--border-light);
}

.qty-val {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  min-width: 0;
}

.qty-val.qty-bump {
  animation: qty-bump 0.22s ease;
}

/* =============================================================
   SKELETON
   ============================================================= */
.skeleton-shimmer {
  background: linear-gradient(90deg,
      var(--bg-hover) 25%,
      var(--border-light) 50%,
      var(--bg-hover) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

.product-skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--bg-card);
  overflow: hidden;
}

.product-skeleton .image-skeleton {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  margin-bottom: 10px;
  position: relative;
}

.sk-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 52px;
  height: 22px;
  border-radius: 20px;
}

.sk-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sk-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.sk-body {
  padding: 0 2px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk-name {
  height: 14px;
  width: 85%;
}

.sk-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sk-star {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.sk-rev {
  width: 38px;
  height: 11px;
  margin-left: 4px;
}

.sk-attrs {
  display: flex;
  gap: 5px;
}

.sk-attr {
  width: 36px;
  height: 17px;
  border-radius: 20px;
}

.sk-price {
  height: 20px;
  width: 72px;
}

.sk-feat {
  height: 26px;
  border-radius: 8px;
}

.sk-actions-row {
  display: flex;
  gap: 7px;
}

.sk-btn {
  flex: 1;
  height: 40px;
  border-radius: 10px;
}

.sk-btn-sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* =============================================================
   EMPTY / ERROR STATE
   ============================================================= */
.no-products,
.pc-no-products {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  gap: 16px;
  animation: fadeInUp 0.35s ease-out;
}

.no-products-icon {
  opacity: 0.3;
  color: var(--text-secondary);
  display: flex;
}

.no-products p,
.pc-no-products p {
  font-size: 15px;
  color: var(--text-secondary);
}

.no-products.error .no-products-icon {
  color: #ef4444;
  opacity: 0.7;
}

.no-products button,
.pc-no-products button,
.main-btn-effect {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.no-products button:hover,
.main-btn-effect:hover {
  opacity: 0.87;
}

/* =============================================================
   PAGINATION
   ============================================================= */
#products-shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  gap: 6px;
}

/* =============================================================
   RESPONSIVE — 900px
   ============================================================= */
@media (max-width: 900px) {
  .product-container {
    grid-template-columns: 230px 1fr;
    gap: 18px;
    padding: 0 18px;
  }
}

/* =============================================================
   RESPONSIVE — 768px  (mobile filter panel)
   ============================================================= */
@media (max-width: 768px) {
  .product-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 14px;
  }

  .filter-section {
    display: none;
  }

  #toggle-filters {
    display: flex;
  }

  .product-count {
    display: none;
  }

  /* Mobile overlay */
  .filter-gry-section {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
  }

  .filter-gry-section.active {
    display: flex;
  }

  #filter-section-main {
    position: fixed !important;
    inset: auto 0 0 0;
    top: auto !important;
    background: var(--bg-primary);
    max-height: 88vh;
    z-index: 3000;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding: 6px 14px 28px;
    touch-action: pan-y;
    transform: translateY(110%);
    opacity: 0;
    transition:
      transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1),
      opacity 0.32s;
    scrollbar-width: none;
    display: block;
  }

  #filter-section-main.show {
    transform: translateY(0);
    opacity: 1;
  }

  #filter-section-main::-webkit-scrollbar {
    display: none;
  }

  .filter-drag-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    height: 22px;
    z-index: 10;
  }

  .filter-drag-indicator::before {
    content: "";
    width: 100%;
    height: 12px;
    background: var(--bg-primary);
    position: absolute;
    top: -8px;
  }

  #products-container,
  .product-section {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .product-name {
    font-size: 13px;
  }

  .product-price {
    font-size: 16px;
  }

  .btn-details {
    width: 36px;
  }

  .product-actions-row {
    min-height: 36px;
  }

  .qty-btn {
    width: 30px;
  }
}

/* =============================================================
   RESPONSIVE — 480px
   ============================================================= */
@media (max-width: 480px) {

  #products-container,
  .product-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card-body {
    padding: 10px 2px 4px;
  }

  .btn-cart {
    font-size: 12px;
    padding: 9px 10px;
  }

  .product-price {
    font-size: 15px;
  }

  .product-container {
    padding: 0 10px;
  }

  .btn-details {
    width: 34px;
  }

  .product-features-slider {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Shop — Loading Overlay & Empty States
   ═══════════════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────────────── */
.products-area-wrap {
  position: relative;
}

/* ── Loading Overlay ─────────────────────────────────────────── */
.products-loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: var(--z-dropdown);
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 60%);
  pointer-events: none;
}

.products-loading-overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
}

/* Fade the grid behind the overlay */
#products-container.is-loading {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

/* Spinner */
.products-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.loader-ring {
  display: block;
  width: 38px;
  height: 38px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary-color);
  border-radius: var(--radius-full);
  animation: shop-spin 0.7s linear infinite;
  box-shadow: 0 0 12px var(--primary-light);
}

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

/* ── Empty States ────────────────────────────────────────────── */
.empty-state {
  display: none;
  padding: var(--spacing-4xl) var(--spacing-xl);
  text-align: center;
}

.empty-state.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.empty-state-inner {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Icon container */
.empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  color: var(--text-primary);
  margin-bottom: var(--spacing-2xl);
}

.empty-state-icon svg {
  opacity: 0.7;
}

/* Text */
.empty-state-title {
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.empty-state-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Action buttons */
.empty-state-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.empty-state-actions .main-btn-effect::before {
  display: none;
}

.empty-state-actions .main-btn-effect {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px var(--spacing-xl) !important;
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-main);
}

.empty-state-actions .main-btn-effect:hover {
  opacity: 0.85;
}

.empty-state-actions .main-btn-effect:active {
  opacity: 0.7;
  transform: scale(0.98);
}