﻿/* SHOP PAGE SPECIFIC STYLES */

.shop-page-wrapper {
  padding-bottom: 60px;
}

/* Breadcrumbs */
.shop-breadcrumbs {
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-nav a {
  color: var(--muted);
  transition: color 0.2s;
}

.breadcrumbs-nav a:hover {
  color: var(--primary);
}

.breadcrumbs-nav .separator {
  color: #ccc;
  font-size: 11px;
}

.breadcrumbs-nav .current {
  color: var(--text);
  font-weight: 600;
}

/* Shop Header */
.shop-header {
  padding: 24px 0 32px;
  text-align: center;
}

.shop-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.shop-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Shop Layout Grid */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

/* Sidebar Filters */
.shop-sidebar {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(242, 216, 226, 0.95);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 24px rgba(146, 127, 187, 0.04);
  backdrop-filter: blur(10px);
}

.filter-group {
  margin-bottom: 28px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(146, 127, 187, 0.15);
  position: relative;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

/* Categories List */
.sidebar-categories {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 0;
}

.sidebar-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  direction: rtl;
}

.sidebar-categories a:hover {
  background: rgba(146, 127, 187, 0.05);
  color: var(--primary);
  transform: translateX(-4px);
}

.sidebar-categories a.active {
  background: linear-gradient(135deg, rgba(146, 127, 187, 0.1) 0%, rgba(156, 39, 176, 0.05) 100%);
  color: var(--primary);
  font-weight: 700;
  border-color: rgba(146, 127, 187, 0.25);
  box-shadow: 0 4px 12px rgba(146, 127, 187, 0.05);
}

.cat-count {
  font-size: 11px;
  color: var(--muted);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 99px;
  transition: all 0.2s;
}

.sidebar-categories a:hover .cat-count,
.sidebar-categories a.active .cat-count {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Active Tags */
.active-filters-summary {
  background: #fff;
  border: 1px solid rgba(146, 127, 187, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sidebar-title-row h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
}

.clear-all-link {
  font-size: 12px;
  color: #e53e3e;
  font-weight: 600;
  text-decoration: underline;
}

.active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 0;
}

.active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  background: #fff5f8;
  color: var(--primary);
  border: 1px solid rgba(146, 127, 187, 0.25);
  padding: 6px 10px;
  border-radius: 99px;
  font-weight: 600;
  direction: rtl;
}

.active-tag a {
  color: #777;
  font-size: 10px;
  display: inline-block;
  line-height: 1;
  transition: color 0.2s;
}

.active-tag a:hover {
  color: #e53e3e;
}

/* Price Range Form */
.price-range-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.price-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0 10px;
  transition: border-color 0.2s;
  direction: rtl;
}

.price-input-wrapper:focus-within {
  border-color: var(--primary);
}

.currency-label {
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
}

.price-input-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 13px;
  padding: 10px 0;
  font-weight: 600;
  color: var(--text);
  background: transparent;
}

.btn-filter-submit {
  width: 100%;
  padding: 10px;
  border: none;
  outline: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(146, 127, 187, 0.2);
  transition: all 0.2s;
}

.btn-filter-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Shop Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(242, 216, 226, 0.95);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(146, 127, 187, 0.02);
  flex-wrap: wrap;
}

.products-count-info {
  font-size: 13px;
  color: var(--muted);
}

.products-count-info strong {
  color: var(--text);
}

.sort-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-selector-wrapper label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.sort-dropdown {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  outline: none;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-dropdown:focus {
  border-color: var(--primary);
}

/* Products Grid */
.shop-main .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

@media (min-width: 1200px) {
  .shop-main .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Empty State */
.shop-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  padding: 60px 40px;
  box-shadow: 0 10px 30px rgba(146, 127, 187, 0.04);
  border: 1px solid rgba(146, 127, 187, 0.08);
  max-width: 600px;
  margin: 40px auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
}

.shop-empty-state h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.shop-empty-state p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
}

/* Pagination container */
.shop-pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Pagination Buttons styling */
.custom-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-right: 0;
}

.custom-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.custom-pagination .page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(146, 127, 187, 0.04);
  transform: translateY(-1px);
}

.custom-pagination .page-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(146, 127, 187, 0.25);
  cursor: default;
}

.custom-pagination .page-btn.disabled {
  color: #ccc;
  border-color: #f5f5f5;
  background: #fdfdfd;
  cursor: not-allowed;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 991px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .shop-sidebar {
    position: relative;
    top: 0 !important;
  }
}

@media (max-width: 768px) {
  .shop-header {
    padding: 16px 0 24px;
  }
  
  .shop-title {
    font-size: 22px;
  }
  
  .shop-subtitle {
    font-size: 13px;
  }

  .shop-sidebar {
    padding: 16px;
  }
  
  .filter-group {
    margin-bottom: 20px;
  }
  
  .shop-toolbar {
    padding: 10px 14px;
    font-size: 12px;
    gap: 12px;
  }
  
  .products-count-info {
    font-size: 12px;
    width: 100%;
    text-align: center;
  }
  
  .sort-selector-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  
  .sort-dropdown {
    width: 60%;
    padding: 6px 10px;
  }
  
  .shop-main .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .shop-main .product-card {
    padding: 8px !important;
  }
  
  .shop-main .product-name {
    font-size: 11px !important;
    height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3 !important;
  }
  
  .shop-main .product-meta {
    font-size: 9px !important;
    gap: 2px !important;
    margin-bottom: 4px !important;
  }
  
  .shop-main .product-colors {
    margin-bottom: 6px !important;
    gap: 4px !important;
  }
  
  .shop-main .product-colors-label {
    font-size: 9px !important;
  }
  
  .shop-main .color-dot {
    width: 9px !important;
    height: 9px !important;
  }
  
  .shop-main .product-price {
    font-size: 11px !important;
  }
  
  .shop-main .product-action-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
  
  .shop-main .btn-add-cart,
  .shop-main .btn-fav {
    width: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
    line-height: 26px !important;
    padding: 0 !important;
  }
}
