@import url(/css/config.css);
@import url(/css/product.css);
@import url(/css/about.css);

/* index.css */
.category-hero {
    position: relative;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
}

.float-1 {
    width: 12.5rem;
    height: 12.5rem;
    background-color: var(--primary);
    top: 15%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.float-2 {
    width: 6.25rem;
    height: 6.25rem;
    background-color: #fde2e7;
    bottom: 10%;
    right: 15%;
    animation: float 6s ease-in-out infinite 1s;
}

.float-3 {
    width: 9.375rem;
    height: 9.375rem;
    background-color: #faeaf0;
    top: 60%;
    left: 2%;
    animation: float 7s ease-in-out infinite 0.5s;
}

.category-contain {
    height: 100vh;
    padding-top: 6rem;
}

.hero-title h1 {
    font-family: var(--heading);
    font-size: 48px;
    display: flex;
    justify-content: center;
}

.hero-title p {
    font-family: var(--p);
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}
.slide-container {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}
  
.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    
}
.slider a{
    text-decoration: none;
    color: white;
}
  
.slide {
    min-width: 100%;
    height: 370px;
    background-color: #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 60px;

}
  
.slide h2 {
    font-family: var(--heading);
    font-size: 2rem;
}
.slide p{
    font-family: var(--p);
    font-size: 14px;
    width: 50%;
    margin: 30px 0px;
}
  
.slide button {
    padding: 15px 25px;
    background: var(--secondary);
    border: none;
    width: 120px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}
  
.slide button:hover {
    scale: 0.95;
}
  
  /* Navigation Buttons */
.nav-buttons {
    position: absolute;
    top: 87%;
    left: 50%;
    display: flex;
    gap: 15px;
    transform: translateX(-50%);
    justify-content: center;
    align-items: center;
}
  
.nav-buttons button {
    background: #fff;
    border: 2px solid #ddd;
    width: 45px;
    height: 45px;
    color: #101010;
    font-family: var(--p);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}
 
.nav-buttons button:hover {
    background-color: var(--secondary);
    color: #fff;
    border: none;
}



.category-card:hover {
    flex: 1.5;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.category-card:hover img {
    filter: brightness(85%);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    color: white;
    transform: translateY(45%);
    transition: all 0.5s ease;
}

.category-card:hover .category-content {
    transform: translateY(0);
}

.category-content h3 {
    font-size: 15px;
    font-family: var(--p);
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.category-content p {
    font-size: 14px;
    font-family: var(--p);
    opacity: 0;
    max-height: 0;
    transition: all 0.5s ease;
}

.category-card:hover .category-content p {
    opacity: 1;
    max-height: 100px;
    margin-bottom: 15px;
}

.category-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e84a77;
    color: white;
    font-family: var(--p);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.category-card:hover .category-btn {
    opacity: 1;
    transform: translateY(0);
}


.featured-section {
    width: 100%;
    padding: 20px;
}
.section-title p{
    font-size: 18px;
}
.swiper-container:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    overflow-x: auto;
}
.container-product{
    padding: 10px 60px;
}
/* Section-specific styles */
.best-selling-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.on-sale-section {
    background-color: #fff8f8;
    padding: 60px 0;
}



/* Sale price styling */
.product-price .old-price {
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
    font-size: 0.9em;
}

.product-price .current-price {
    color: var(--secondary);
    font-weight: bold;
}

.on-sale-section .current-price {
    font-size: 1.2em;
}

/* Badge styles */
.best-seller-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f39c12;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #222;
}

.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}
.swiper-slide .product-card{
    margin-right: 0px;
}
.view-all-btn {
    position: absolute;
    top: 130%;
    right: 5%;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: #3c3c3c;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-card {
    flex: 0 0 auto !important; /* Override the fixed width */
    width: 280px; /* Set a base width */
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0px;
    margin-bottom: 15px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-inner {
    height: 500px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}


.product-details {
    height: 230px;
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.current-price {
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

.old-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
}

.product-description {
    font-size: 13px;
    color: #666;
    margin:0px;
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.product-rating {
    display: flex;
    justify-content: start;
    align-items: center;
}

.rating-stars {
    color: #ffb100;
    margin-right: 5px;
    font-size: 13px;
}

.rating-count {
    font-size: 12px;
    color: #666;
}

.cart-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    color: #fff;
    transition: var(--transition);
    pointer-events: auto;
    cursor: pointer;
}
.cart-button p {
    position: relative;
    top: 50%;
    color: var(--light);
    font-size: 1.2rem;
}

.cart-button:hover {
    background-color: #d43a65;
    transform: scale(1.1);
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.slider-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.slider-button:hover {
    background-color: var(--secondary);
    color: white;
    border-color: #ddd;
}
.product-meta *,
.product-price * {
    pointer-events: none;
}
.copyright{
    text-transform: uppercase;
}


/* Responsive Styles */
@media (max-width: 1200px) {
    .product-card {
        flex: 0 0 calc(100% / 3);
        height: 460px;
    }
}

@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(100% / 2);
        height: 450px;
    }
    
    .featured {
        padding: 8rem 0;
    }
    
    .section-title {
        margin-bottom: 0px;
    }
    .category-slider {
        padding: 0 40px;
    }
    
    .category-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
        margin: 0 5px;
    }
    .swiper-slide.category-card.swiper-slide{
        width:120px ;
        height: 190px;
    }
}
@media screen and (max-width: 768px) {

    .hero-title h1{
        font-size: 25px;
    }
    .hero-title p{
        font-size: 10px;
        text-align: center;
        padding: 10px 15px;
        margin-bottom: 10px;
    }
    
    .product-card {
        width: 220px;
    }
    .product-img {
        height: 9.375rem; /* Smaller height for mobile */
    }
    
    /* Adjust product info padding for mobile */
    .product-info {
        padding: 15px;
    }
    
    /* Make product description shorter on mobile */
    .product-info p {
        height: 35px;
        margin-bottom: 0.625rem;
    }
    
    /* Optionally reduce font size for product title */
    .product-info h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
        display: none;
    }
    .slider-container {
        padding: 0 10px;
    }

    
    .category-card {
        min-width: 120px;
        max-width: 140px;
        height: 220px;
    }
    
    .category-content h3 {
        font-size: 13px;
    }
    
    .category-content p {
        font-size: 11px;
    }
    
    .category-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    .category-card {
        flex: 0 0 calc(100% - 10px);
        min-width: calc(40% - 10px);
    }
    .category-slider {
        padding: 0 20px;
    }
    
    .swiper-wrapper {
        display: flex;
    }
    
    .swiper-slide.category-card {
        width: 180px !important; 
        height: 230px;
        flex-shrink: 0;
    }
    .view-all-btn{
        font-size: 12px;
        z-index: 1000000;
    }
    
    .category-contain {
        height: 650px;
        padding: 3rem 0.5rem;
        padding-top: 120px;
    }
    .slide{
        height: 265px;
        padding: 0px 30px;
    }
    .slide h2{
        font-size: 20px;
    }
    .slide p{
        font-size: 9px;
        height: 80px;
        margin: 20px 0px;
    }
    .slide button{
        padding: 8px 12px;
        width: 72px;
        font-size: 10px;
    }
    .nav-buttons{
        top: 80%;
    }
    .nav-buttons button{
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    .swiper-slide.category-card.swiper-slide{
        width:180px !important ;
        height: 190px;
    }
    .featured-section, 
    .best-selling-section,
    .on-sale-section {
        padding: 40px 0;
    }
    .container-product{
        padding: 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }

    .about-us{
        padding-top: 4rem;
    }
    .product-details{
        padding: 12px;
        height: auto;
    }
    .slider-controls{
        display: none;
    }
    
    
}

@media (max-width: 576px) {

    .slider-container{
        margin: 0 10px;
    }
    .products-slider-container {
        overflow-x: hidden; /* Changed from scroll to hidden for slider functionality */
    }
    
    .slider-track {
        transform: translateX(-1150px);
        gap: 15px;
    }
    /* Adjust Swiper to show 2 cards per row on mobile */
    .swiper-slide.product-card {
        width: calc(50% - 5px) !important; /* Two cards per row with small gap */
        height: 360px;
        padding: 10px 5px;
        margin-bottom: 10px;
    }
    .swiper{
        margin-top: 60px;
    }
    .product-badge, .best-seller-badge, .sale-badge{
        font-size: 8px;
    }

    .product-inner {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .product-card {
        width: 180px;
    }
    
    .product-card h3 {
        font-size: 10px;
        height: 20px;
    }
    .product-description{
        height: 25px;
    }
    .product-price .current-price{
        font-size: 12px;
    }

    .product-price .old-price{
        font-size: 9px;
    }
    .product-card p {
        font-size: 8px;
        height: 35px;
    }
    .product-meta{
        display: contents;
        justify-content: center;
    }
    .rating-count{
        font-size: 10px;
    }
    .price{
        font-size: 12px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 10px;
        padding: 5px 8px;
    }
    
}