body {
    background-color: var(--secondary-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}



/* --- Hero Section (Immersive) --- */
.hero-section {
    padding: 0px 10px;
    position: relative;
    z-index: 2;
    /* Ensure content is above background */
}

.swiper-container-hero {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transform: translateZ(0);
    position: relative;
    /* For arrows */
}

.swiper-slide {
    height: 500px;
    background: #fff;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
    /* Subtle zoom effect on active slide */
}

.swiper-slide-active .slide-image {
    transform: scale(1.05);
}

/* Custom Pagination */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: all 0.3s var(--bounce);
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Custom Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    opacity: 0;
    /* Hidden by default, shown on hover */
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-container-hero:hover .swiper-button-next,
.swiper-container-hero:hover .swiper-button-prev {
    opacity: 1;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #fff;
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Features Section --- */
.features-section {
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-box {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 20px;
    transition: all 0.4s var(--ease-out);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.4s var(--bounce);
    position: relative;
    z-index: 1;
}

.feature-box:hover .feature-icon-wrapper {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* --- Collections Section --- */
.collections-section {
    padding: 2rem;
    position: relative;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.collection-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 240px;
    box-shadow: var(--card-shadow);
    transition: all 0.5s var(--ease-out);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.collection-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.collection-card:hover .collection-img {
    transform: scale(1.15) rotate(2deg);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 37%) 0%, rgb(0 0 0 / 16%) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: #fff;
    transition: all 0.3s ease;
}

.collection-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: transform 0.4s var(--ease-out);
}

.collection-card:hover .collection-title {
    transform: translateY(0);
}

.collection-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out) 0.1s;
}

.collection-card:hover .collection-link {
    opacity: 1;
    transform: translateY(0);
}

.btn-all-collections {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: #fff;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s var(--bounce);
    box-shadow: var(--shadow-soft);
    margin-top: 2.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-all-collections::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 50px;
}

.btn-all-collections:hover::before {
    width: 100%;
}

.btn-all-collections:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 159, 67, 0.3);
    border-color: transparent;
}

/* --- Modern Section Styling --- */
.products-section {
    padding: 2rem;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 10px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.5px;
}

.view-all-link {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s var(--bounce);
}

.view-all-link:hover {
    gap: 15px;
    text-decoration: none;
}

/* --- Premium Product Card --- */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    position: relative;
    /*padding-top: 110%;*/
    overflow: hidden;
    background-color: #f8fafc;
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.12);
}

/* Floating Badges */
.badges-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge-custom {
    width: fit-content;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-sale {
    background: rgba(239, 68, 68, 0.95);
}

.badge-new {
    background: rgba(16, 185, 129, 0.95);
}

/* Quick Actions */
.actions-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--bounce);
    z-index: 3;
}

.product-card:hover .actions-overlay {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--bounce);
    cursor: pointer;
    border: none;
}

.action-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.15);
}

/* Card Content */
.card-body-custom {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* height: 2.8em; */
    transition: color 0.2s;
}

.product-title:hover {
    color: var(--primary-color);
}

.price-wrapper {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1.2rem;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff9f43;

}

.price-old {
    font-size: 0.9rem;
    color: #cbd5e1;
    text-decoration: line-through;
    font-weight: 500;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #334155;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-add-cart:hover::before {
    left: 100%;
}

.btn-add-cart:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 159, 67, 0.3);
    transform: translateY(-2px);
}

/* Remove from Favourite Button */
.btn-remove-favourite {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    cursor: pointer;
}

.btn-remove-favourite::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-remove-favourite:hover::before {
    left: 100%;
}

.btn-remove-favourite:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

/* Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

@media (max-width: 992px) {
    .hero-section {
        padding: 0 15px;
    }

    .swiper-slide {
        height: 400px;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .swiper-slide {
        height: 300px;
        /* Better height for mobile */
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        /* Slightly tighter gap */
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .collection-card {
        height: 180px;
        /* Slightly taller for better visibility */
    }

    .collection-title {
        font-size: 1.1rem;
    }

    .collection-link {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.8rem;
    }

    .product-card {
        border-radius: 16px;
    }

    .card-body-custom {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.95rem;
        /* Smaller font for titles */
        /* height: 2.6em; */
        /* Adjust line clamp height */
    }

    .price-current {
        font-size: 1.2rem;
    }

    .btn-add-cart {
        padding: 10px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    /*.card-img-wrapper {*/
    /*    padding-top: 100%;*/
    /*}*/

    .actions-overlay {
        display: none;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
        /* Hide arrows on mobile */
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for features on mobile */
        gap: 15px;
    }

    .feature-box {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 15px;
    }

    .feature-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .feature-content h3 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .swiper-slide {
        height: 250px;
    }

    .hero-section {
        padding: 0 10px;
    }

    .products-section,
    .collections-section,
    .features-section {
        padding: 1.5rem 10px;
        /* Reduce side padding */
    }

    .products-grid {
        gap: 10px;
    }

    .collection-card {
        height: 140px;
    }

    .collection-title {
        font-size: 0.9rem;
    }

    .btn-add-cart {
        font-size: 0.8rem;
        padding: 8px;
    }

    .price-current {
        font-size: 1.1rem;
    }
}

/* Order Now Button */
.btn-order-now {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #ff9f43;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    margin-top: 10px;
}

.btn-order-now:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 159, 67, 0.4);
    color: #fff;
}

.btn-order-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-order-now:hover::before {
    left: 100%;
}

/* Out of Stock Button */
.btn-out-of-stock {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #ef4444;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    margin-top: 10px;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-out-of-stock:hover {
    background: #dc2626;
    color: #fff;
}