/* ===========================================================
   COSENTINO-STYLE COLLECTION (Architectural Material Catalog)
   + Studio Light Sweep Effect
   -----------------------------------------------------------
   - Neutral off-white tone for luxury minimalism
   - Equal-height cards for consistency
   - Soft gradient sweep overlay (subtle motion on scroll)
=========================================================== */

/* ===== Section Base ===== */
.collection {
  background-color: #f3f2f0;
  padding: 8rem 6rem 6rem;
  color: #1a1a1a;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient fade from hero above */
.collection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0));
  z-index: 1;
}

/* ===== Studio Light Sweep Effect ===== */
.collection::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 80%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0) 70%
  );
  animation: lightSweep 14s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

@keyframes lightSweep {
  0% { transform: translateX(-30%) translateY(0); }
  50% { transform: translateX(30%) translateY(0); }
  100% { transform: translateX(-30%) translateY(0); }
}

/* ===== Section Heading ===== */
.collection .sub-heading {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 5rem;
  position: relative;
  z-index: 2;
}
.collection .sub-heading h2 {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 1.2rem;
}
.collection .sub-heading p {
  color: #3a3a3a;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ===== Primary Tabs ===== */
.collections-tabs-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.collections-tab-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 1rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}
.collections-tab-btn.active,
.collections-tab-btn:hover {
  color: #1a1a1a;
}
.collections-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
}

/* ===== Secondary Tabs ===== */
#collections-levelB-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}
.collections-tab-btn.borderbg {
  background: transparent;
  border: none;
  color: #777;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.collections-tab-btn.borderbg.active,
.collections-tab-btn.borderbg:hover {
  color: #1a1a1a;
}
.collections-tab-btn.borderbg.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: #1a1a1a;
  opacity: 0.7;
}

/* ===== Tab Content ===== */
.collections-tab-content {
  display: none;
  max-width: 1320px;
  margin: 4rem auto 0;
  padding: 0 2rem;
  animation: fadeUp 0.8s ease forwards;
}
.collections-tab-content.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Product Cards ===== */
.collections-slider .text-center {
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Card container */
.image-container.product-page {
  background: #fdfdfc;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 340px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}
.image-container.product-page:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.1);
}

/* Slab image */
.image-container.product-page img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.98) contrast(1.02);
}
.image-container.product-page:hover img {
  transform: scale(1.02);
}

/* Product title */
.product-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: #1a1a1a;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-align: center;
  padding: 0.8rem 0.6rem;
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  min-height: 80px;
  font-family: "Montserrat", "Poppins", sans-serif;
}

/* ===== Slider Arrows ===== */
.collection .slick-prev,
.collection .slick-next {
  top: 44%;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  z-index: 9;
}
.collection .slick-prev:hover,
.collection .slick-next:hover {
  background: #1a1a1a;
  color: #fff;
}
.collection .slick-prev { left: -25px !important; }
.collection .slick-next { right: -25px !important; }

/* ===== Harmonize Collection with Hero Section ===== */

/* Create a soft top transition (like the hero’s shadow overlap) */
.collection {
  background: linear-gradient(to bottom, #111 0%, #f3f2f0 12%);
  position: relative;
  overflow: hidden;
}

/* Add thin left accent line to heading, mirroring hero h1 */
.collection .sub-heading h2 {
  border-left: 4px solid #111;
  padding-left: 1rem;
  display: inline-block;
  background: linear-gradient(to right, rgba(0,0,0,0.08), transparent);
  border-radius: 4px;
}

/* Subtle frosted glass feel (same as hero-content blur) */
.image-container.product-page {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

/* Adjust shadow to match hero tone */
.image-container.product-page:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Optional: keep a fine horizontal line under primary tabs */
.collections-tabs-wrapper {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
}



/* ===== Responsive Refinements ===== */
@media (max-width:1200px){
  .collection { padding: 6rem 3rem; }
  .image-container.product-page { height: 310px; }
  .image-container.product-page img { height: 220px; }
}
@media (max-width:992px){
  .collection { padding: 5rem 2rem; }
  .collection .sub-heading h2 { font-size: 2rem; }
}
@media (max-width:768px){
  .collection { padding: 4rem 1.5rem; }
  .collection .sub-heading h2 { font-size: 1.7rem; }
  .image-container.product-page img { height: 200px; }
  .product-title { font-size: 0.85rem; }
}
@media (max-width:480px){
  .collection { padding: 3rem 1rem; }
  .image-container.product-page img { height: 180px; }
  .product-title { font-size: 0.8rem; letter-spacing: 0.6px; }
}