/* Update the carousel styles */
.hero-carousel {
    width: 100%;
    padding: 0 40px;
    margin: 20px auto;
    position: relative;
    overflow-x: hidden;
}

@media screen and (max-width: 768px) {
    .hero-carousel {
        padding: 0;
        margin: 0px auto;
    }
    
}

.swiper {
    width: 100%;
    height: auto;
    position: relative;
    overflow: visible !important;
}

.swiper-wrapper {
    align-items: center;
}

.swiper-slide {
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 0.8px solid rgb(180, 180, 180);
    border-radius: 12px;
    overflow: hidden;
}

.swiper-slide-active {
    opacity: 1;
}

.swiper-slide-prev,
.swiper-slide-next {
    opacity: 1;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Update navigation arrows */
.swiper-button-next,
.swiper-button-prev {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.swiper-button-next {
    right: 15px;
}

.swiper-button-prev {
    left: 15px;
}

@media screen and (max-width: 768px) {
    .hero-carousel {
        padding: 14px 0px 0px 0px;
    }
    
    .swiper {
        overflow: hidden !important;
    }

    .swiper-slide {
        opacity: 1;
        border-radius: 8px;
        border: 0.6px solid rgb(179, 179, 179);
        /* box-shadow: 1px 1px 10px 1px rgba(149, 149, 149, 0.392); */
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Custom navigation buttons */
.custom-prev,
.custom-next {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: background 0.3s ease;
}

.custom-prev:hover,
.custom-next:hover {
    background: rgba(255, 255, 255, 1);
}

.custom-prev {
    left: 0px;
}

.custom-next {
    right: 0px;
}

/* Product Grid Container */
.product-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Product Card */
.product-card {
    position: relative;
    background: #fff;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

/* Product Image Container */
.product-image {
    position: relative;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    overflow: hidden;
}

/* Add these new styles for loading animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Add loading state styles */
.product-image.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #f8f8f8 40px,
        #f0f0f0 80px
    );
    background-size: 936px; /* 468px * 2 */
    animation: shimmer 1.5s infinite linear;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--bb10);
}

.product-image img.loaded {
    opacity: 1;
}

/* New Stock Badge */
.newstock-label {
    position: absolute;
    bottom: 68px;
    left: 0px;
    background: #0e0e0e;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.575rem;
    border-radius: 5px;
}



/* Product Info */
figcaption {
    padding: 12px 0;
}

.brand-name {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 4px;
    font-weight: 400;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.price {
    font-weight: 400;
    display: flex;
    align-items: center;
}

.org-price {
    font-size: 18px;
    /* margin-right: 8px; */
}


.cut-price {
    text-decoration: line-through;
    color: #666;
    margin-right: 8px;
    font-size: 16px;
}

.discount-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ff2727;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
}

/* Tab styles */
.product-tabs {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.tab-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0 20px 0;
    border-bottom: 1px solid #eee;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
}

.tab.active {
    color: #000;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px;
    }
    
    .product-tabs {
        padding: 0 12px;
    }
    
    .tab {
        padding: 8px 12px;
        font-size: 14px;
    }
    .org-price {
        font-size: 16px;
        /* margin-right: 8px; */
    }
    
    
    .cut-price {
        text-decoration: line-through;
        color: #666;
        margin-right: 8px;
        font-size: 14px;
    }

    .discount-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }
}

/* Quick Nav Links - Mobile Only */
.quick-navlinks {
    display: none; /* Hidden by default on desktop */
    width: 100%;
    padding: 15px 0 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar on Firefox */
    -ms-overflow-style: none; /* Hide scrollbar on IE/Edge */
}

.quick-navlinks::-webkit-scrollbar {
    display: none; /* Hide scrollbar on Chrome/Safari */
}

.link-cont {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0 18px;
    white-space: nowrap; /* Prevent wrapping */
    width: auto;
}

.hero-links {
    display: inline-block;
    text-decoration: none;
    padding: 8px 15px;
    border: 0.6px solid rgb(189, 189, 189);
    border-radius: 10px;
    font-size: 14px;
    color: #000000;
    font-weight: 400;
    background-color: #fff;
}

.hero-links:active {
    background-color: #f5f5f5;
}

/* Show quick-navlinks only on mobile */
@media (max-width: 768px) {
    .quick-navlinks {
        display: block;
    }
}

@media (min-width:460px){

    .link-cont{
        justify-content: center;
    }

}