/* Decor Product v2.1.4 – optimized */
.section.decor-show-section{padding:22px 0 4px;}
.decor-container{max-width:1240px;margin:0 auto;padding:0 12px;}
.decor-header{display:flex;align-items:center;gap:14px;margin-bottom:10px;}
.decor-title{font-size:36px;line-height:1.15;font-weight:700;margin:0;white-space:nowrap;}
.decor-divider{flex:1;border-top:1px solid #e9ecef;height:0;}
.decor-viewall{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#a21212;font-weight:700;text-decoration:none;white-space:nowrap;}
.decor-viewall::after{content:' \2192';margin-left:8px;}
.decor-viewall.desktop{display:inline-flex;}
.decor-mobile-viewall{display:none;text-align:center;margin-top:12px;}

/* subcats (scroll + drag via JS) */
.decor-subcats{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;gap:18px;padding:2px 0 6px;margin:0;cursor:grab;}
.decor-subcats.dragging{cursor:grabbing;user-select:none;}
.decor-subcats::-webkit-scrollbar{display:none;}
.decor-subcat{position:relative;flex:0 0 auto;font-size:14px;font-weight:700;color:#111;text-decoration:none;white-space:nowrap;padding:0 2px;}
.decor-subcat + .decor-subcat{padding-left:18px;}
.decor-subcat + .decor-subcat::before{content:'';position:absolute;left:0;top:50%;width:1px;height:16px;background:#dedede;transform:translateY(-50%);}

/* grid */
.decor-grid{display:grid;gap:28px;grid-template-columns:repeat(5,minmax(0,1fr));}
@media (max-width:1200px){.decor-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:768px){.decor-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
.decor-card{background:#fff;border-radius:12px;padding:4px 4px 10px;transition:box-shadow .2s,transform .2s; text-align:center;}
.decor-card:hover{box-shadow:0 10px 28px rgba(0,0,0,.06);transform:translateY(-2px);}
.decor-thumb-wrap{position:relative;display:block;aspect-ratio:1/1;background:#fff;border:1px solid #ececec;border-radius:8px;overflow:hidden;}
.decor-thumb{width:100%;height:100%;object-fit:contain;transition:opacity .25s ease;}

/* overlay excerpt on hover (desktop hover-capable only) */
@media (hover:hover){
  .decor-thumb-wrap .decor-overlay{position:absolute;inset:0;background:rgba(255,255,255,.92);opacity:0;transition:opacity .25s ease;display:flex;align-items:flex-end;}
  .decor-thumb-wrap:hover .decor-overlay{opacity:1;}
  .decor-thumb-wrap:hover .decor-thumb{opacity:.7;}
}
.decor-overlay-inner{padding:12px 12px 10px;font-size:14px;line-height:1.4;color:#111;text-align:left;}

/* name + price */
.decor-name{font-size:15px;font-weight:400;line-height:1.35;margin:8px 10px 4px;min-height:auto;}
.decor-name a{color:#111;text-decoration:none;}
.decor-price{font-size:13px;color:#d11;font-weight:500;margin-bottom:6px;}

/* rating */
.decor-rating .star-rating{float:none;margin:0 auto;}

@media (max-width:768px){
  .decor-header .decor-viewall.desktop{display:none;}
  .decor-mobile-viewall{display:block;}
}



/* Cong Decor - Box options (category, actions, equalize) */
.decor-cat{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#888;
  margin:6px 10px 2px;
}

.decor-actions{
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:center;
}

.decor-actions .button{
  font-size:12px;
  padding:6px 10px;
}

/* Equalize Items: dùng khi .decor-equalize trên grid */
.decor-grid.decor-equalize .decor-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.decor-grid.decor-equalize .decor-name{
  min-height:3.8em;
}
.decor-grid.decor-equalize .decor-price{
  margin-top:auto;
}



/* Cong Decor - Layout options */

/* Width */
.decor-container-full{
  max-width:100%;
  width:100%;
  padding-left:20px;
  padding-right:20px;
}

/* Column spacing (đã giảm khoảng cách để ảnh gần nhau hơn) */
.decor-grid.gap-small{ gap:10px; }
.decor-grid.gap-medium{ gap:16px; }
.decor-grid.gap-large{ gap:22px; }

/* Columns (desktop) */
.decor-grid.cols-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.decor-grid.cols-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.decor-grid.cols-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.decor-grid.cols-5{ grid-template-columns:repeat(5,minmax(0,1fr)); }
.decor-grid.cols-6{ grid-template-columns:repeat(6,minmax(0,1fr)); }

/* Masonry-ish layout: dense fill */
.decor-grid.type-masonry{
  grid-auto-flow:dense;
}

/* Animation */
@keyframes decorFadeUp{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}
.decor-grid.anim-fade .decor-card{
  opacity:0;
  animation:decorFadeUp .5s ease forwards;
}
.decor-grid.anim-fade .decor-card:nth-child(1){animation-delay:.05s;}
.decor-grid.anim-fade .decor-card:nth-child(2){animation-delay:.1s;}
.decor-grid.anim-fade .decor-card:nth-child(3){animation-delay:.15s;}
.decor-grid.anim-fade .decor-card:nth-child(4){animation-delay:.2s;}
.decor-grid.anim-fade .decor-card:nth-child(5){animation-delay:.25s;}
.decor-grid.anim-fade .decor-card:nth-child(6){animation-delay:.3s;}

/* Pagination */
.decor-pagination{
  margin-top:18px;
  text-align:center;
}
.decor-pagination .page-numbers{
  display:inline-block;
  margin:0 3px;
  padding:6px 10px;
  border:1px solid #e1e1e1;
  font-size:13px;
}
.decor-pagination .page-numbers.current{
  background:#111;
  color:#fff;
  border-color:#111;
}



/* --- FIX HIỂN THỊ MOBILE CHO CONGDECOR GRID --- */

/* Tablet: 3 cột, gap giữ mặc định (16px nếu gap-medium) */
@media (max-width: 1024px){
  .decor-grid{
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  }
}

/* Mobile: 2 cột, chữ dễ đọc hơn */
@media (max-width: 768px){
  .decor-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .decor-name{
    font-size:13px;
    line-height:1.35;
  }

  .decor-price{
    font-size:13px;
  }
}

/* Màn rất nhỏ: 2 cột, gap nhỏ hơn nữa */
@media (max-width: 480px){
  .decor-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
  }
}



/* --- MOBILE VIEW ALL BUTTON (Xem tất cả) --- */
@media (max-width: 768px){
  .decor-mobile-viewall{
    text-align:center;
    margin-top: 20px;
    margin-bottom: 25px;
  }

  .decor-mobile-viewall a{
    display: inline-block;
    background:#007bff;
    color:#fff !important;
    padding:10px 24px;
    border-radius: 26px;
    font-size:15px;
    font-weight:600;
    box-shadow:0 3px 10px rgba(0,0,0,0.12);
    text-decoration:none !important;
    transition: all .25s ease;
  }

  .decor-mobile-viewall a:hover{
    background:#005fcc;
    box-shadow:0 4px 14px rgba(0,0,0,0.18);
  }
}
/* ===== LUXURY HEADER V2 ===== */
.decor-header{
  position: relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 0 10px;
  margin-bottom:18px;
}

/* Line vàng chạy xuyên suốt */
.decor-header::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3px;
  background:linear-gradient(90deg,#c7a14a,#f5e7c2);
  opacity:0.9;
}

/* Tiêu đề */
.decor-title{
  margin:0;
  font-size:32px;
  line-height:1.1;
  font-weight:700;
  letter-spacing:.03em;
  color:#444;
}

/* Nút “Xem tất cả” desktop */
.decor-viewall.desktop{
  position:relative;          /* để nút nằm “trên” đường line */
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 20px;
  border-radius:999px;
  border:1px solid rgba(199,161,74,.55);
  background:linear-gradient(135deg,#ffffff,#faf4e4);
  color:#b51212;
  font-size:14px;
  font-weight:600;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  text-decoration:none;
  transition:all .22s ease;
}

.decor-viewall.desktop::after{
  margin-left:8px;
}

.decor-viewall.desktop:hover{
  background:linear-gradient(135deg,#f7e8c8,#f0dba7);
  transform:translateY(-1px);
  box-shadow:0 9px 24px rgba(0,0,0,.1);
}

/* Mobile: giữ nút riêng phía dưới, không dùng line dài cho đỡ rối */
@media (max-width:768px){
  .decor-header{
    padding-bottom:6px;
    margin-bottom:10px;
  }
  .decor-header::after{
    height:2px;
  }
  .decor-viewall.desktop{
    display:none;
  }
}