/* Desktop only */
@media (min-width: 992px) {
  #shopFilter {
    width: 300px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-height: 100vh;
    margin-bottom: 1rem;
  }

  #shopFilter .accordion-item {
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  #shopFilter .accordion-item:not(:last-child) {
    border-bottom: 1px solid #f1f1f1;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  #shopFilter .accordion-button {
    background: #f9e0e0 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 1px;
    color: #222;
    text-transform: uppercase;
    padding: 12px !important;
    border-radius: 10px;
  }

  #shopFilter .accordion-button:not(.collapsed) {
    background: transparent;
    color: #000;
  }

  #shopFilter .accordion-body {
    padding-top: 12px !important;
  }

  #shopFilter ul {
    padding-right: 5px;
  }

  #shopFilter {
    overflow-y: auto;
  }

  #shopFilter::-webkit-scrollbar {
    width: 4px;
  }

  #shopFilter::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }

  #shopFilter .list-item {
    display: block;
    margin-bottom: 4px;
  }

  #shopFilter .menu-link {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.25s ease;
    font-size: 14px;
  }

  #shopFilter .menu-link:hover {
    background: #f8f8f8;
    color: #000;
    padding-left: 16px;
  }

  #shopFilter .menu-link.active {
    background: #788daf;
    color: #fff;
    border-radius: 5px;
  }

  #shopFilter .accordion-button__icon {
    width: 12px;
    height: 12px;
    margin-left: auto;
    transition: 0.3s;
  }

  #shopFilter .accordion-button:not(.collapsed) .accordion-button__icon {
    transform: rotate(180deg);
  }
}

/* ===================================
               SHOP HEADER
            =================================== */

.shop-list {
  margin-bottom: 1.5rem;
}

.breadcrumb {
  font-size: 13px;
  color: #888;
}

.breadcrumb .menu-link {
  color: #666;
  transition: 0.3s;
}

.breadcrumb .menu-link:hover {
  color: #000;
}

/* ===================================
               VIEW SWITCHER
            =================================== */

.col-size button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #fff;
  transition: all 0.25s ease;
}

.col-size button:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ===================================
               PRODUCT GRID
            =================================== */

.products-grid {
  row-gap: 24px;
}

/* ===================================
               PRODUCT CARD
            =================================== */

.product-card {
  background: #fff;
  border: 1px solid #b3c0d6 !important;
  border-radius: 18px !important;
  overflow: hidden;
  transition: all 0.35s ease;
  height: 100%;
  position: relative;
  max-height: 400px;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: #ddd !important;
}

/* ===================================
               IMAGE
            =================================== */

.pc__img-wrapper {
  background: #fafafa;
  overflow: hidden;
}

.pc__img {
  width: 100%;
  object-fit: cover;
  transition: 0.5s;
  padding: 6px;
}

.pc__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pc__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;

  color: #0b0f19;
  text-decoration: none;
  padding: 0;
}

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

/* ===================================
               QUICK ACTION BUTTON
            =================================== */

.anim_appear-bottom {
  bottom: 15px;
  opacity: 0;
  transition: 0.35s;
}

.product-card:hover .anim_appear-bottom {
  opacity: 1;
}

.anim_appear-bottom .btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #667897;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
               RATING
            =================================== */

.reviews-group {
  align-items: center;
}

.fa-star,
.fa-star-half-o {
  color: #ffc107;
  font-size: 13px;
}

.fa-star-o {
  color: #ddd;
  font-size: 13px;
}

.reviews-note {
  font-size: 13px;
}

/* ===================================
               PRICE
            =================================== */

.product-card__price {
  margin-top: 8px;
  align-items: center;
  gap: 10px;
}

.product-card__price span:first-child {
  font-size: 20px !important;
  font-weight: 700;
  color: #000;
}

.product-card__price span:last-child {
  font-size: 14px !important;
  color: #999;
  text-decoration: line-through;
}

/* ===================================
               SALE BADGE (OPTIONAL)
            =================================== */

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: #e53935;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===================================
               DESKTOP
            =================================== */

@media (min-width: 992px) {
  .products-grid.row-cols-xl-4 > * {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-card-wrapper {
    margin-bottom: 0 !important;
  }
}

.shop-toolbar {
  padding: 8px 0;
}

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

.breadcrumb .menu-link {
  color: #555;
  text-decoration: none;
  font-size: 13px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s;
}

.filter-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

@media (max-width: 991.98px) {
  .shop-toolbar {
    width: 100%;
  }

  .shop-toolbar .toolbar-content {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
  }

  .shop-toolbar .breadcrumb-wrap {
    flex: 1;
    max-width: 200px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 10px;
    overflow: hidden;
  }

  .shop-toolbar .menu-link,
  .shop-toolbar .category-name {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
  }

  .shop-toolbar .menu-link {
    text-decoration: none;
    white-space: nowrap;
  }

  .shop-toolbar .category-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shop-toolbar .separator {
    color: #999;
    flex-shrink: 0;
  }

  .shop-toolbar .filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .shop-toolbar .filter-btn:active {
    transform: scale(0.97);
  }

  .shop-toolbar .filter-btn i {
    font-size: 14px;
  }
}

/* Sidebar */
.shop-sidebar {
  padding: 20px;
  background: #ffffff;
}

/* Header */
.shop-sidebar .aside-header {
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e7edf5;
}

.shop-sidebar .aside-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: #374151;
}

/* Accordion Card */
.shop-sidebar .accordion-item {
  border: 1px solid #e7edf5;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: none;
  margin-bottom: 14px !important;
}

/* Accordion Header */
.shop-sidebar .accordion-button {
  background: #f4f7fb;
  padding: 14px 16px !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #374151;
  box-shadow: none !important;
}

.shop-sidebar .accordion-button:not(.collapsed) {
  background: #fff4f6;
  color: #111827;
}

/* Arrow */
.shop-sidebar .accordion-button__icon {
  width: 11px;
  height: 11px;
  margin-left: auto;
  transition: 0.25s ease;
}

.shop-sidebar .accordion-button:not(.collapsed) .accordion-button__icon {
  transform: rotate(180deg);
}

/* Desktop */
@media (min-width: 992px) {
  .shop-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .shop-sidebar::-webkit-scrollbar {
    width: 5px;
  }

  .shop-sidebar::-webkit-scrollbar-thumb {
    background: #d9e2ec;
    border-radius: 20px;
  }
}

/* Mobile */
@media (max-width: 991.98px) {
  .shop-sidebar {
    padding: 0;
    background: #fafcff;
  }

  .shop-sidebar .accordion-button {
    padding: 15px !important;
  }

  .shop-sidebar .list {
    display: block;
  }

  .shop-sidebar .list-item {
    margin-bottom: 8px;
  }

  .shop-sidebar .list-item .menu-link {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: left;
  }
}
