/* ----- Main Layout ----- */
.collection-section {
    padding: 100px 0 80px;
    min-height: 100vh;
    background: #fff;
}

.page-title {
    font-size: 40px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    color: #000;
    border-bottom: 3px solid #000;
    padding-bottom: 15px;
}

/* ----- Filter Bar ----- */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #000;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #000;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-group {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #000;
    font-size: 14px;
    border-radius: 4px;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
}

/* Product Count */
.product-count {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

/* ----- Products Grid ----- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px,1fr));
    gap: 38px;
    max-width: 1400px;
    margin: 40px auto 80px auto;
    padding: 0 18px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 20px #eee;
    padding: 30px 22px 36px 22px;
    text-align: center;
    border: 2px solid #000;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ----- PRODUCT IMAGE SLIDER ----- */
.product-image-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #FFFFFF;
    position: relative;
    cursor: pointer;
    border-radius: 0px;
}

.product-slider {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 320px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
    box-shadow: 0 1px 10px #f5f5f5;
    cursor: pointer;
}

.slider-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    display: block;
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    background: #d2d2d2;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    transition: background .13s;
    border: 1px solid #bbb;
}
.dot.active {
    background: #333;
    border: 1px solid #222;
}
.slider-prev, .slider-next {
    position: absolute;
    top: 50%; 
    transform: translateY(-50%);
    background: #fff;
    color: #222;
    border: 1px solid #aaa;
    font-size: 17px;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    opacity: .85; 
    z-index: 5;
}
.slider-prev { left:13px;}
.slider-next { right:13px;}

/* Category badge on product card */
.product-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Product Info & Features */
.product-info {
    margin-top:12px;
}

.product-name {
    font-weight:700;
    font-size:1.35em;
    color:#1a1a1a;
    letter-spacing:.3px;
    margin-bottom: 8px;
}

.product-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-features {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.feature-tag {
    font-size: 12px;
    padding: 6px 18px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 12px;
    color: #333;
}

/* Enquiry Button */
.enquiry-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
    display: block;
}

.enquiry-btn:hover {
    background: #fff;
    color: #000;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results p {
    font-size: 18px;
    font-weight: 500;
}

/* ----- FULLSCREEN IMAGE POPUP ----- */
#image-popup {
    display: none;
    position: fixed;
    left:0; top:0; right:0; bottom:0;
    background: rgba(11,11,11,0.97);
    z-index: 999;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

#image-popup img {
    max-width: 85vw;
    max-height: 78vh;
    border-radius: 16px;
    box-shadow: 0 3px 44px #222;
    display: block;
    margin: auto;
}

#close-popup, #popup-prev, #popup-next {
    position: absolute;
    top: 27px;
    background: #fff;
    color: #222;
    border-radius: 20px;
    font-size: 2rem;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 1002;
    box-shadow: 0 2px 12px #232;
}

#close-popup { right: 38px; }
#popup-prev { left: 38px;}
#popup-next { right: 100px;}

@media (max-width: 650px) {
    .products-grid { grid-template-columns: 1fr; }
    #image-popup img { max-width: 96vw; max-height: 62vh;}
    #close-popup, #popup-prev, #popup-next { width: 36px; height: 36px; font-size:1.4em; }
}

.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    font-size: 18px;
}
.scroll-top-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
}
.scroll-top-btn.show {
    display: flex;
}

/* Responsive Filters */
@media (max-width: 768px) {
    .filter-bar { flex-direction: column; align-items: stretch;}
    .filter-group, .search-group { width: 100%; max-width: 100%; }
    .page-title { font-size: 28px; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr;}
}
