/* Enhanced Categories Wrapper */
.categories-wrapper {
    padding: 40px 0;
    margin-bottom: 50px;
    /*background: linear-gradient(to right, rgba(255,255,255,0.8) 0%, rgba(255,249,240,0.8) 100%);*/
    border-radius: 20px;
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.05);*/
    position: relative;
    overflow: hidden;
}

/* Enhanced Product Categories List */
.product-categories {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 30px;
    list-style: none;
    padding: 0 40px;
    margin: 0;
    min-width: min-content;
    position: relative;
}

/* Enhanced Category Item */
.cat-item {
    flex: 0 0 auto;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Enhanced Category Link */
.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0; /* Remove padding */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220,53,69,0.1), rgba(212,175,55,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-link:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(220,53,69,0.3);
    box-shadow: 0 15px 30px rgba(220,53,69,0.15);
}

.category-link:hover::before {
    opacity: 1;
}

/* Enhanced Category Icon */
.category-icon {
    width: 100%;
    height: 100%;
    margin: 0; /* Remove margin */
    position: relative;
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Change to cover */
    transition: transform 0.4s ease;
    border-radius: 50%;
}

.category-link:hover .category-icon img {
    transform: scale(1.15);
}

/* Enhanced Category Name */
.category-name {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
    margin-top: 12px; /* Increase top margin */
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-link:hover + .category-name {
    color: #dc3545;
}

/* Active Category Styles */
.category-link.active {
    background: linear-gradient(135deg, #fff5e6, #ffeded);
    border-color: #dc3545;
    transform: translateY(-8px);
}

/* Scroll Indicators */
.categories-wrapper::before,
.categories-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.categories-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff 20%, transparent);
}

.categories-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff 20%, transparent);
}

/* Categories Wrapper */
.categories-wrapper {
    padding: 30px 0;
    margin-bottom: 40px;
    /*border-bottom: 1px solid rgba(212,175,55,0.1);*/
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.categories-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
 .lightbox-popup{
        display: none;
    }
/* Categories List */
.product-categories {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0 20px;
    margin: 0;
    min-width: min-content;
}

/* Category Item */
.cat-item {
    flex: 0 0 auto;
}

/* Category Link */
.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0; /* Remove padding */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.category-link:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.2);
    background: linear-gradient(135deg, #fff9f0, #ffeded);
}

/* Active Category */
.category-link.active {
    background: linear-gradient(135deg, #fff5e6, #ffeded);
    border-color: #dc3545;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

/* Category Icon */
.category-icon {
    /* width: 40px; */
    width: 100%;
    height: 100%;
    margin: 0; /* Remove margin */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category Name */
.category-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-categories {
        justify-content: flex-start;
        padding: 0 15px;
        gap: 15px;
    }

    .category-link {
        width: 80px;
        height: 80px;
    }
    
    .category-name {
        font-size: 12px;
        margin-top: 8px;
    }
    .gallery-link h3{
        font-size: 18px;
    }
}

/* Smooth Scroll Behavior */
.categories-wrapper {
    scroll-behavior: smooth;
}

/* Add gradient fade on sides to indicate more content */
.categories-wrapper::before,
.categories-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
}

.categories-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.categories-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

/* Lightbox Gallery Styles */
.gallery-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns */
    gap: 0px; /* Add some spacing between items */
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4; /* Maintain consistent aspect ratio */
    cursor: pointer;
    transition: transform 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Item Details Overlay */
.item-details {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(220, 53, 69, 0.8));
    color: #fff;
    transition: bottom 0.3s ease;
    z-index: 9999;
}

.gallery-item:hover .item-details {
    bottom: 0;
}

/* Filter Buttons */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #dc3545;
    background: transparent;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #dc3545;
    color: #fff;
}

/* Responsive Grid Layouts */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cat-item {
        width: 100px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    .main-container{
        padding-bottom: 0px;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0px;
    }
    
    .cat-item {
        width: 90px;
    }
    
   
    
    .category-name {
        font-size: 12px;
    }
   
}


@media (max-width: 480px) {
    .gallery-image {
        height: 300px;
    }
    
    .item-details {
        padding: 10px;
    }
    
    .get_info {
        padding: 6px 12px;
        font-size: 10px;
        color: #fff !important;
    }
}

/* Add these styles to your existing shop.css */
.gallery-item[data-category="offer"] {
    position: relative;
}

.gallery-item[data-category="offer"]::before {
    content: 'Special Offer';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.gallery-item[data-category="offer"] .gallery-image {
    transition: transform 0.3s ease;
}

.gallery-item[data-category="offer"]:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item[data-category="sale"] {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item[data-category="sale"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff4646 0%, #ff8585 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}



