/* =======================================================
   COLLECTION PAGE (Trang danh mục)
======================================================== */
:root {
  --h-header-pc: 200px;
  --h-header-mb: 0px;
}

.sobie-collection-layout {
  padding-bottom: 80px;
  background: #fff;
}

.luxe-header-spacer {
  height: var(--h-header-pc);
  display: block;
  width: 100%;
}

.luxe-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  padding: 0 40px;
  gap: 50px;
}

/* ----- Sidebar ----- */
.luxe-sidebar { flex: 0 0 180px; }
.sidebar-sticky {
  position: sticky;
  top: 100px;
}
.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 25px;
}
.sidebar-nav a {
  display: block;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  color: #777;
  margin-bottom: 18px;
  transition: 0.3s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active { color: #000; }
.sidebar-nav a.nav-sale { color: #ff4444; }

.sidebar-nav .ajax-link.is-active {
  color: #111;
  font-weight: 700;
  padding-left: 5px;
}

.nav-sub {
  margin-left: 10px;
  margin-bottom: 15px;
  border-left: 1px solid #eee;
  padding-left: 15px;
}
.nav-sub a {
  font-size: 10px;
  color: #999;
  margin-bottom: 8px;
  font-weight: 500;
}

/* ----- Main grid ----- */
.luxe-main {
  flex: 1;
  min-width: 0;
  transition: opacity 0.3s ease;
}
.luxe-main.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

.collection-header-info { margin-bottom: 40px; }
.collection-title {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 3px;
  margin: 0;
}
.collection-meta {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  margin-top: 5px;
}

.luxe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
}

/* ----- Editorial banner ----- */
.luxe-editorial-banner {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.75;
}
.banner-inner,
.banner-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-text {
  position: absolute;
  bottom: 30px; left: 30px;
  color: #ffffff;
}
.banner-text h2 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 5px 0;
}
.banner-text a {
  font-size: 11px;
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

/* =======================================================
   RESPONSIVE
======================================================== */
@media (max-width: 1024px) {
  .luxe-grid { grid-template-columns: repeat(3, 1fr); }
  .luxe-editorial-banner { grid-column: span 2; }
}

@media (max-width: 768px) {
  .luxe-header-spacer { height: var(--h-header-mb); }
  .sobie-collection-layout { margin-top: var(--h-header-mb) !important; }
  .luxe-wrapper {
    flex-direction: column;
    padding: 0 20px;
    gap: 30px;
  }
  .luxe-sidebar { display: none; }
  .luxe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 15px;
  }
  .luxe-editorial-banner {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }
}

/* =======================================================
   PAGINATION (Phân trang)
======================================================== */
.sobie-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 70px !important;
  margin-bottom: 40px !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  padding: 0 !important;
}

.page-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 48px !important;
  height: 48px !important;
  padding: 0 16px !important;
  border: 1.5px solid #ccc !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #333 !important;
  text-decoration: none !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: 'Mulish', sans-serif !important;
  line-height: 1 !important;
  letter-spacing: 0.3px !important;
  box-sizing: border-box !important;
}

.page-btn:hover {
  border-color: #111 !important;
  color: #111 !important;
  background: #f5f5f5 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1) !important;
}

.page-btn.active {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
  pointer-events: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.page-btn.ellipsis {
  border-color: transparent !important;
  background: transparent !important;
  cursor: default !important;
  pointer-events: none !important;
  color: #999 !important;
  min-width: 32px !important;
  box-shadow: none !important;
}

.page-btn.prev-btn,
.page-btn.next-btn {
  font-size: 22px !important;
  font-weight: 400 !important;
  min-width: 52px !important;
  color: #555 !important;
  border-color: #ddd !important;
}
.page-btn.prev-btn:hover,
.page-btn.next-btn:hover {
  color: #111 !important;
  border-color: #111 !important;
}
.page-btn.prev-btn.ellipsis,
.page-btn.next-btn.ellipsis {
  color: #ccc !important;
  border-color: transparent !important;
}

@media (max-width: 768px) {
  .sobie-pagination {
    margin-top: 30px !important;
    margin-bottom: 20px !important;
    gap: 5px !important; /* Thu hẹp khoảng cách giữa các nút */
  }
  
  .page-btn {
    /* Chỉnh 2 chỉ số này để thay đổi độ lớn của ô */
    min-width: 35px !important;  /* Đang là 44px, hạ xuống 35px hoặc tùy ý */
    height: 35px !important;     /* Đang là 44px, hạ xuống 35px */
    
    font-size: 12px !important;  /* Chữ nhỏ lại xíu */
    padding: 0 8px !important;
    border-radius: 4px !important;
  }
  
  .page-btn.prev-btn,
  .page-btn.next-btn {
    font-size: 16px !important; /* Thu nhỏ icon mũi tên */
    min-width: 35px !important;
  }

  .page-btn.ellipsis {
    min-width: 20px !important; /* Thu nhỏ khoảng cách dấu ... */
  }
}
