/* =========================================================
   KALAASIDDHI — COLLECTIONS / CATALOG PAGE
   Full, consolidated, and responsive CSS
   (v2 — renamed only to force a fresh fetch past any stale
   CDN/browser cache of the old collections.css filename.
   Content below is otherwise identical.)
========================================================= */

/* ---------- Filter bar ---------- */

.catalog-filters{
    max-width:var(--container);
    margin:0 auto;
    padding:10px 6% 0;
}

.filter-bar{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
}

.filter-btn{
    font-family:var(--font-body);
    font-size:14px;
    font-weight:600;
    padding:10px 22px;
    border-radius:50px;
    border:1.5px solid rgba(34,31,26,.14);
    background:var(--white);
    color:var(--text-dark);
    cursor:pointer;
    transition:background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}

.filter-btn:hover{
    transform:translateY(-2px);
    border-color:var(--gold);
}

.filter-btn.is-active{
    background:linear-gradient(100deg,var(--kalaa-blue),var(--siddhi-green));
    border-color:transparent;
    color:var(--white);
}

/* ---------- Product grid ---------- */

.catalog{
    max-width:var(--container);
    margin:0 auto;
    padding:36px 6% 120px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 26px;
}

.catalog-loading,
.catalog-empty{
    text-align:center;
    padding:80px 20px;
    color:var(--text-muted);
    font-size:16px;
}

/* ---------- Product card ---------- */

.product-card{
    display:flex;
    flex-direction:column;
    background:var(--white);
    border-radius:var(--radius-lg);
    overflow:hidden;
    box-shadow:0 14px 30px rgba(34,31,26,.10);
    cursor:pointer;
    opacity:0;
    transform:translateY(18px);
    transition:opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s ease;
    animation:cardIn .6s var(--ease) forwards;
}

@keyframes cardIn{
    to{ opacity:1; transform:translateY(0); }
}

.product-card:hover{
    box-shadow:0 22px 44px rgba(34,31,26,.16);
    transform: translateY(-5px);
}

.product-card-media{
    position:relative;
    aspect-ratio:1/1;
    overflow:hidden;
    background:var(--ivory-dark);
}

.product-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .6s var(--ease);
}

.product-card:hover .product-card-media img{
    transform:scale(1.06);
}

.product-card-badge{
    position:absolute;
    top:12px;
    left:12px;
    font-size:11px;
    font-weight:700;
    letter-spacing:.5px;
    text-transform:uppercase;
    padding:5px 12px;
    border-radius:50px;
    background:rgba(255,255,255,.92);
    color:var(--kalaa-blue);
    backdrop-filter:blur(4px);
}

.product-card-count{
    position:absolute;
    bottom:12px;
    right:12px;
    font-size:11.5px;
    font-weight:600;
    padding:4px 10px;
    border-radius:50px;
    background:rgba(34,31,26,.6);
    color:var(--white);
    backdrop-filter:blur(4px);
}

.product-card-body{
    padding:18px 18px 20px;
    display:flex;
    flex-direction:column;
    gap:6px;
    flex:1;
}

.product-card-body h3{
    font-size:16.5px;
    font-weight:700;
    color:var(--text-dark);
    line-height:1.3;
}

.product-card-body p{
    font-size:13.5px;
    color:var(--text-muted);
}

.product-card-cta{
    margin-top:10px;
    font-size:13.5px;
    font-weight:600;
    color:var(--siddhi-green);
    display:inline-flex;
    align-items:center;
    gap:6px;
}

/* ---------- Lightbox ----------
   position:fixed + inset:0 + flex centering means the image
   and info block are always centered in the viewport on every
   screen size, with the dimmed backdrop behind them. */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 18, 15, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* FIX: explicit width/height as a belt-and-braces measure
       against any stale/cascading rule elsewhere that might
       otherwise leave inset:0 without an effective box size. */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.lightbox.is-active{
    opacity:1;
    pointer-events:auto;
}

.lightbox-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.lightbox-body img {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background: var(--ivory-dark);
    /* FIX: reset any inherited position from a stale/legacy rule */
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
}

.lightbox-info {
    color: var(--white);
    text-align: center;
    width: 100%;
}

.lightbox-info h3{
    font-size:24px;
    font-weight:700;
    margin-bottom:8px;
}

.lightbox-info p{
    color:rgba(245,241,234,.75);
    font-size:14.5px;
    margin-bottom:20px;
}

.lightbox-close{
    position:absolute;
    top:22px;
    right:26px;
    font-size:36px;
    line-height:1;
    background:none;
    border:none;
    color:var(--white);
    cursor:pointer;
    opacity:.8;
    transition:opacity .25s ease, transform .25s ease;
}

.lightbox-close:hover{
    opacity:1;
    transform:rotate(90deg);
}

.lightbox-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:48px;
    height:48px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    border:none;
    color:var(--white);
    font-size:28px;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .25s ease, transform .25s ease;
}

.lightbox-nav:hover{
    background:rgba(255,255,255,.24);
}

.lightbox-prev{ left:20px; }
.lightbox-next{ right:20px; }

.lightbox-dots{
    position:absolute;
    bottom:28px;
    left:0;
    right:0;
    display:flex;
    justify-content:center;
    gap:8px;
}

.lightbox-dots span{
    width:7px;
    height:7px;
    border-radius:50%;
    background:rgba(255,255,255,.35);
    cursor:pointer;
    transition:background .25s ease, transform .25s ease;
}

.lightbox-dots span.is-active{
    background:var(--white);
    transform:scale(1.3);
}

/* ---------- Responsive ---------- */

@media (max-width:1100px){
    .catalog-grid{ grid-template-columns:repeat(3,1fr); }
}

@media (max-width:900px){
    .catalog-grid{ grid-template-columns:repeat(2,1fr); gap:18px; }
    .filter-bar{ gap:8px; }
    .filter-btn{ font-size:13px; padding:9px 16px; }
}

@media (max-width:560px){
    .catalog{ padding:24px 5% 90px; }
    .catalog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-card-body { padding: 10px; }
    .product-card-body h3{ font-size:14px; }
    .product-card-body p{ font-size:12px; }
    .product-card-cta{ font-size:12px; }
    .lightbox{ padding: 20px; }
    .lightbox-body img{ max-height: 50vh; }
    .lightbox-close { top: 15px; right: 15px; font-size: 28px; }
    .lightbox-body { gap: 15px; }
}