/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Top Promo Bar */
.top-promo-bar {
    background-color: #4da6e1; /* Approximated blue from screenshot */
}

.promo-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.promo-subtext {
    opacity: 0.9;
}

/* Secondary Nav */
.secondary-nav {
    font-size: 0.85rem;
}

.secondary-nav a {
    color: #333 !important;
}

.secondary-nav .text-muted {
    font-size: 0.75rem;
}

/* Main Header */
.main-header {
    position: absolute;
    top: 90px; /* Offset by top bars */
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
}

@media (max-width: 991px) {
    .main-header {
        position: relative;
        top: 0;
    }
    
    .text-dark.text-md-white {
        color: #000 !important;
    }
}

@media (min-width: 992px) {
    .text-dark.text-md-white {
        color: #fff !important;
    }
}

.main-header .container-fluid {
    max-width: 1400px; /* Reduced width */
    margin: 0 auto;
}

.max-width-1400 {
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 1.5rem;
}

.brand-divider {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
}

/* Hover Dropdown Behavior */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: translateY(10px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 8px;
        padding: 1rem 0;
    }

    .dropdown-item {
        padding: 0.6rem 1.5rem;
        font-weight: 400;
        color: #333;
        transition: background 0.2s;
    }

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #000;
    }
}

.live-tag {
    font-size: 0.75rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Swiper Banner */
.main-swiper {
    width: 100%;
    height: 80vh; /* Adjust height as needed */
}

.banner-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
}

/* Award Card */
.award-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    text-align: center;
    min-width: 100px;
    border-radius: 4px;
}

.x-small {
    font-size: 0.65rem;
}

/* Swiper Navigation & Pagination */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
}

/* Custom Pagination Progress Bars */
.custom-pagination {
    bottom: 30px !important;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.custom-pagination .swiper-pagination-bullet {
    width: 60px; /* Wider bullets for progress bars */
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 !important;
    opacity: 1;
    position: relative;
    overflow: hidden;
}

.custom-pagination .swiper-pagination-bullet .progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 2px;
}

.custom-pagination .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.3);
}

.custom-pagination .swiper-pagination-bullet-active .progress {
    background: #fff;
}

/* Product Categories Section */
.product-categories .category-item {
    width: auto;
}

.product-categories img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-item:hover img {
    transform: translateY(-5px);
}

.category-item p {
    color: #333;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .categories-swiper {
        overflow: visible !important;
    }
    .categories-swiper .swiper-wrapper {
        transform: none !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }
    .categories-swiper .swiper-slide {
        width: auto !important;
        margin-right: 0 !important;
    }
}

/* Bulk Promo Section */
.promo-banner {
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.promo-content h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

/* Trending Products Section */
.trending-products {
    padding-bottom: 2rem;
}

.ps-container-edge {
    padding-left: calc((100vw - 1400px) / 2 + 1.5rem) !important;
    overflow: visible !important;
}

@media (max-width: 1400px) {
    .ps-container-edge {
        padding-left: 1.5rem !important;
    }
}

.trending-swiper {
    width: 100%;
}

.product-slide {
    height: auto;
}

.trending-next, .trending-prev {
    background: #fff;
    color: #000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.trending-next {
    right: 30px;
}

.trending-prev {
    left: calc((100vw - 1400px) / 2 + 1.5rem);
    display: none; /* Usually hidden on first slide */
}

.trending-next:after, .trending-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.product-card {
    height: 450px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.card-overlay * {
    pointer-events: auto;
}

.product-card img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Home Backup Power Section */
.home-backup {
    background-color: #f5f5f7 !important;
}

.featured-video-card {
    background-color: #000;
}

.video-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.featured-product-card .card-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
}

.backup-product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.backup-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

.backup-product-card img {
    max-height: 200px;
    object-fit: contain;
}

.see-more-card i {
    color: #333;
    transition: transform 0.3s ease;
}

.see-more-card:hover i {
    transform: translateX(5px);
}

/* Accessories Section */
.accessory-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.accessory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

.more-accessories-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

.more-accessories-card i {
    color: #333;
    transition: transform 0.3s ease;
}

.more-accessories-card:hover i {
    transform: translateX(5px);
}

/* Better Price Section */
.price-card {
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.price-card .card-content {
    max-width: 50%;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.price-card a {
    transition: color 0.2s;
}

.price-card a:hover {
    color: #0056b3 !important;
}

/* Why Shop Section */
.shop-card {
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
    background-color: #fff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.shop-card i {
    color: #333;
}

/* Feedback Section */
.feedback-card {
    transition: transform 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
}

.feedback-next, .feedback-prev, .why-shop-next, .why-shop-prev {
    background: #f8f9fa;
    color: #000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: static !important;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feedback-next:hover, .feedback-prev:hover, .why-shop-next:hover, .why-shop-prev:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.swiper-button-next::after, .swiper-button-prev::after {
    display: none !important;
}

/* Swiper Pagination Line */
.swiper-pagination-line {
    display: flex;
    gap: 8px;
}

.swiper-pagination-line .swiper-pagination-bullet {
    width: 30px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 0;
    margin: 0 !important;
    opacity: 1;
    cursor: pointer;
    transition: background 0.3s;
}

.swiper-pagination-line .swiper-pagination-bullet-active {
    background: #000;
}

/* Endorsed By Section */
.grayscale img {
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.grayscale img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Member Card */
.member-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.newsletter-box {
    border: 1px solid rgba(0,0,0,0.05);
}

/* Footer Styles */
.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #000;
}

.social-icon {
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: #333 !important;
}

.footer-middle, .footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05) !important;
}

.main-footer h6 {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-header {
        position: relative;
        top: 0;
        background: #000;
    }
    
    .main-swiper {
        height: 60vh;
    }
}
