/* ===================================
   TEXTURE GALLERY  (gallery.php, product-detail.php, products.php)
   Uses the site theme: #ff5f6d / #ffc371 / #ff7a18
=================================== */

/* ---------- Category intro cards ---------- */
.tx-cats{ padding:70px 0 10px; background:#fff; }
.tx-cat-card{
  position:relative; background:#fff; border-radius:22px; padding:26px 22px;
  border:1px solid rgba(255,122,24,.15); box-shadow:0 10px 30px rgba(0,0,0,.05);
  height:100%; overflow:hidden; cursor:pointer; text-align:left; width:100%;
  transition:all .4s cubic-bezier(.23,1,.32,1);
}
.tx-cat-card::before{
  content:""; position:absolute; top:-40px; right:-40px; width:110px; height:110px; border-radius:50%;
  background:radial-gradient(circle,#ff7a18,#ff5f6d); opacity:.12; transition:.4s;
}
.tx-cat-card:hover,.tx-cat-card.active{ transform:translateY(-8px); box-shadow:0 22px 50px rgba(255,122,24,.22); border-color:rgba(255,122,24,.5); }
.tx-cat-card:hover::before,.tx-cat-card.active::before{ transform:scale(1.7); opacity:.2; }
.tx-cat-icon{ font-size:30px; display:block; margin-bottom:10px; }
.tx-cat-card h5{ font-family:'Poppins',sans-serif; font-weight:700; font-size:17px; margin:0 0 6px; color:#1a1a1a; }
.tx-cat-card p{ font-size:13px; color:#777; margin:0 0 10px; line-height:1.55; }
.tx-cat-count{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:#ff7a18; }

/* ---------- Filter bar ---------- */
.tx-filter{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; padding:34px 0 10px; }
.tx-filter button{
  font-family:'DM Sans','Inter',sans-serif; font-size:14px; font-weight:600; padding:9px 22px; border-radius:50px;
  border:2px solid #eee; background:#fff; color:#555; cursor:pointer; transition:all .3s ease;
}
.tx-filter button:hover,.tx-filter button.active{
  background:linear-gradient(90deg,#ff5f6d,#ffc371,#ff7a18); border-color:transparent; color:#fff;
  transform:translateY(-2px); box-shadow:0 8px 20px rgba(255,122,24,.35);
}

/* ---------- Masonry grid (handles mixed photo shapes) ---------- */
.tx-section{ padding:30px 0 90px; background:#fff; position:relative; }
.tx-masonry{ column-count:4; column-gap:18px; }
@media (max-width:1199px){ .tx-masonry{ column-count:3; } }
@media (max-width:767px){  .tx-masonry{ column-count:2; column-gap:12px; } }
@media (max-width:420px){  .tx-masonry{ column-count:1; } }

.tx-item{
  position:relative; break-inside:avoid; margin-bottom:18px; border-radius:18px; overflow:hidden;
  cursor:zoom-in; background:#f3eee9; box-shadow:0 10px 28px rgba(0,0,0,.09);
  opacity:0; transform:translateY(40px); transition:opacity .7s ease, transform .7s ease, box-shadow .4s ease;
}
.tx-item.visible{ opacity:1; transform:none; }
.tx-item:hover{ box-shadow:0 22px 50px rgba(255,95,109,.28); }
.tx-item img{ width:100%; display:block; transition:transform .6s cubic-bezier(.23,1,.32,1); }
.tx-item:hover img{ transform:scale(1.08); }
.tx-item::after{ /* paint-strip accent */
  content:""; position:absolute; left:0; bottom:0; height:4px; width:0;
  background:linear-gradient(90deg,#ff5f6d,#ffc371,#ff7a18); transition:width .5s ease;
}
.tx-item:hover::after{ width:100%; }
.tx-cap{
  position:absolute; inset:auto 0 0 0; padding:40px 16px 14px; color:#fff;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.78));
  transform:translateY(100%); transition:transform .45s ease;
}
.tx-item:hover .tx-cap{ transform:none; }
.tx-cap strong{ display:block; font-family:'Poppins',sans-serif; font-size:15px; }
.tx-cap span{ font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:#ffc371; font-weight:600; }
@media (hover:none){ .tx-cap{ transform:none; padding-top:30px; } } /* always show caption on touch */

/* ---------- Lightbox ---------- */
.tx-lightbox{
  position:fixed; inset:0; z-index:2000; display:none; align-items:center; justify-content:center;
  background:rgba(15,15,15,.93); padding:20px; animation:txFade .3s ease;
}
.tx-lightbox.open{ display:flex; }
@keyframes txFade{ from{opacity:0} to{opacity:1} }
.tx-lb-inner{ position:relative; max-width:min(92vw,1100px); max-height:90vh; text-align:center; }
.tx-lb-inner img{ max-width:100%; max-height:78vh; border-radius:14px; box-shadow:0 30px 80px rgba(0,0,0,.6); animation:txZoom .35s ease; }
@keyframes txZoom{ from{opacity:0; transform:scale(.94)} to{opacity:1; transform:none} }
.tx-lb-title{ color:#fff; font-family:'Poppins',sans-serif; font-weight:600; margin-top:14px; font-size:17px; }
.tx-lb-cat{ color:#ffc371; font-size:12px; letter-spacing:2px; text-transform:uppercase; font-weight:600; }
.tx-lb-btn{
  position:absolute; background:rgba(255,255,255,.12); border:1.5px solid rgba(255,255,255,.35); color:#fff;
  width:46px; height:46px; border-radius:50%; font-size:20px; cursor:pointer; transition:all .3s;
  display:flex; align-items:center; justify-content:center; z-index:3;
}
.tx-lb-btn:hover{ background:linear-gradient(135deg,#ff5f6d,#ff7a18); border-color:transparent; transform:scale(1.1); }
.tx-lb-close{ top:18px; right:18px; position:fixed; }
.tx-lb-prev{ left:18px; top:50%; position:fixed; transform:translateY(-50%); }
.tx-lb-next{ right:18px; top:50%; position:fixed; transform:translateY(-50%); }
.tx-lb-prev:hover,.tx-lb-next:hover{ transform:translateY(-50%) scale(1.1); }
@media (max-width:576px){
  .tx-lb-prev,.tx-lb-next{ top:auto; bottom:22px; transform:none; }
  .tx-lb-prev:hover,.tx-lb-next:hover{ transform:scale(1.1); }
  .tx-lb-prev{ left:calc(50% - 56px); } .tx-lb-next{ right:calc(50% - 56px); }
}

/* ---------- Product-detail "finish gallery" strip & products teaser ---------- */
.tx-strip{ padding:70px 0; background:linear-gradient(135deg,#fff8f3,#ffe9d9); position:relative; overflow:hidden; }
.tx-strip::before{ content:""; position:absolute; width:320px; height:320px; border-radius:50%; background:#ff7a18; opacity:.1; filter:blur(70px); top:-100px; left:-80px; }
.tx-strip .container{ position:relative; z-index:2; }
.tx-strip-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; margin-top:34px; }
.tx-strip-grid .tx-item{ margin:0; opacity:1; transform:none; aspect-ratio:1/1; }
.tx-strip-grid .tx-item img{ height:100%; object-fit:cover; }
@media (max-width:991px){ .tx-strip-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:480px){ .tx-strip-grid{ grid-template-columns:repeat(2,1fr); gap:10px; } }

/* ---------- Gallery hero helper ---------- */
.tx-hero-note{ font-size:14px; color:#777; max-width:560px; margin:14px auto 0; }
