/* =============================================
   COLLECTION PAGE — BRAND COLOR DESIGN
   Brand: #5c3e98 (purple)
   ============================================= */

:root {
  --col-primary: #5c3e98;
  --col-primary-dark: #4b327d;
  --col-accent: #f5f1fc;
  --col-shadow: 0 8px 28px rgba(92, 62, 152, 0.14);
}


/* ---- Breadcrumb — match header-top gradient ---- */
.breadcrumb-nav {
  background: url('../header-top.png') center center / cover no-repeat;
  border-bottom: none;
  margin-bottom: 0;
}

.breadcrumb-nav .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.breadcrumb-nav .breadcrumb-item,
.breadcrumb-nav .breadcrumb-item a,
.breadcrumb-nav .breadcrumb-item.active {
  color: #fff !important;
}

.breadcrumb-nav .breadcrumb-item a:hover,
.breadcrumb-nav .breadcrumb-item a:focus {
  color: rgba(255, 255, 255, 0.75) !important;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ---- Toolbox bar ---- */
.toolbox {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(92, 62, 152, 0.07);
  margin-bottom: 2.4rem;
}

.toolbox-info span {
  font-weight: 600;
  color: var(--col-primary);
}

.sidebar-toggler {
  color: var(--col-primary) !important;
  font-weight: 500;
}

.sidebar-toggler:hover {
  color: var(--col-primary-dark) !important;
}

/* Sort dropdown brand accent */
#sortby:focus {
  border-color: var(--col-primary);
  box-shadow: 0 0 0 2px rgba(92, 62, 152, 0.15);
  outline: none;
}

/* ---- Product cards ---- */
.products .product {
  background: #fff;
  /* border-radius: 10px; */
  overflow: hidden;
  /* box-shadow: 0 2px 10px rgba(92, 62, 152, 0.06); */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin-bottom: 2rem;
}

.products .product:hover {
  box-shadow: var(--col-shadow);
  transform: translateY(-3px);
}

/* ---- Product image uniform height ---- */
.products .product-media {
  background: #ede8f8;
  /* height: 220px; */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.products .product-image {
  width: 100%;
  /* height: 220px; */
  object-fit: contain;
  padding: 10px;
}

/* ---- Hover action bar ---- */
.products .product-action {
  background: rgba(92, 62, 152, 0.92);
  /* border-radius: 0 0 10px 10px; */
}

.products .product-action .btn-product {
  color: #fff;
}

.products .product-action .btn-product span {
  color: rgba(255, 255, 255, 0.9);
}

.products .product-action .btn-product:hover span,
.products .product-action .btn-product:focus span {
  color: #fff;
  box-shadow: 0 1px 0 0 #fff;
}

.products .product-action .btn-product + .btn-product {
  border-left-color: rgba(255, 255, 255, 0.2);
}

/* ---- Vertical action icons (wishlist) ---- */
.products .btn-product-icon {
  color: var(--col-primary);
  background: #fff;
  box-shadow: 0 2px 8px rgba(92, 62, 152, 0.15);
}

.products .btn-product-icon:hover,
.products .btn-product-icon:focus {
  background: var(--col-primary);
  color: #fff;
}

/* ---- Product body ---- */
.products .product-body {
  background: #fff;
  padding: 1.4rem 1.6rem 1.2rem;
}

/* ---- Product title ---- */
.products .product-title {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.products .product-title a {
  color: #2f2a33;
}

.products .product-title a:hover,
.products .product-title a:focus {
  color: var(--col-primary) !important;
}

/* ---- Price ---- */
.products .product-price {
  color: var(--col-primary);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.products .new-price {
  color: #d94b4b;
  margin-right: 0.6rem;
}

.products .old-price {
  color: #aaa;
  font-size: 1.2rem;
  font-weight: 400;
}

/* ---- Ratings ---- */
.products .ratings-val {
  color: #f5a623;
}

.products .ratings-text {
  color: #aaa;
  font-size: 1.2rem;
}

/* ---- Load more button ---- */
.load-more-container {
  margin-top: 3rem;
}

.btn-load-more {
  color: var(--col-primary) !important;
  border-color: var(--col-primary) !important;
  border-radius: 25px;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.btn-load-more:hover,
.btn-load-more:focus {
  background: var(--col-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(92, 62, 152, 0.3);
}

.btn-load-more i {
  margin-left: 0.6rem;
}

/* ---- Sidebar filter ---- */
.sidebar-shop .widget-title > a {
  color: var(--col-primary) !important;
}

.sidebar-shop .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--col-primary);
  border-color: var(--col-primary);
}

.sidebar-shop .item-count {
  color: var(--col-primary);
  font-weight: 600;
}

.sidebar-shop .sidebar-filter-clear {
  color: var(--col-primary) !important;
}

/* ---- Product label ---- */
.products .product-label {
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.products .product-label.label-new {
  background-color: var(--col-primary);
}

/* ---- Card Variant Selector ---- */
.card-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 0 2px;
  justify-content: center;
}

.cv-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border: 1.5px solid #d0c3ef;
  background: #fff;
  color: #5c3e98;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
  line-height: 1.6;
}

.cv-btn:hover {
  border-color: #5c3e98;
  background: #f5f1fc;
}

.cv-btn.active {
  background: #5c3e98;
  color: #fff;
  border-color: #5c3e98;
}

/* Image fade on switch */
.product-image.cv-switching {
  opacity: 0.4;
  transition: opacity 0.15s ease;
}
.product-image {
  transition: opacity 0.15s ease;
}
