/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50;
    background: #fff;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 16px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 14px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: inherit;
}

a:hover {
    color: #f7941d;
}

/* Top Bar */
.top-bar {
    background: #1a73e8;
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar a {
    color: #fff;
}

.top-bar a:hover {
    color: #f7941d;
}

.top-bar .social-icons a {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.top-bar .social-icons a:hover {
    transform: scale(1.2);
}

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.sticky {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 600;
    color: #2c3e50 !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: #2c3e50 !important;
    font-weight: 400;
    padding: 10px 15px;
}

.nav-link:hover,
.nav-link.active {
    color: #f7941d !important;
}

.navbar .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.navbar .form-control:focus {
    border-color: #f7941d;
    box-shadow: 0 0 5px rgba(247, 148, 29, 0.3);
}

.navbar .btn-primary {
    background: #068ad1;
    border-color: #068ad1;
    border-radius: 4px;
    padding: 8px 15px;
}

.navbar .btn-primary:hover {
    background: #e6841b;
    border-color: #e6841b;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.dropdown-menu .dropdown-item:hover {
    background: #f9f9f9;
    color: #f7941d;
}

/* Hero Section */
#heroSection {
    
    /* Replace solid background with an image */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.agencontainer.co.id/jasa-web/toko-online/sparepart-mobil-motor/assets/images/apps-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff; /* Change text color to white for contrast */
}

#heroSection h1 {
    font-size: 28px;
    font-weight: 700;
    
}

#heroSection .lead {
    font-size: 16px;
    color: #141414;
}

/* Carousel Section */
.carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 500px;
    background: no-repeat center center;
    background-size: cover;
    position: relative;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.bg-slide-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://www.agencontainer.co.id/jasa-web/toko-online/sparepart-mobil-motor/assets/images/hero1.jpeg');
}

.carousel-item.bg-slide-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://www.agencontainer.co.id/jasa-web/toko-online/sparepart-mobil-motor/assets/images/hero2.jpeg');
}

.carousel-item .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-item h1 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.carousel-item span {
    font-size: 24px;
    
}

.carousel-item .lead {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
}

.carousel-item .btn-primary {
    
    border-color: #f7941d;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
}

.carousel-item .btn-primary:hover {
    background: #e6841b;
    border-color: #e6841b;
}

.carousel-item .banner-img {
    max-width: 900px;
    object-fit: cover;
    height: auto;
    margin: 0 auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(100%);
}

/* Small Banner */
.small-banner {
    padding: 60px 0;
    background: #f8f9fa;
}

.small-banner h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.small-banner .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-banner .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.small-banner .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.small-banner .card:hover .card-img-top {
    transform: scale(1.05);
}

.small-banner .card-body {
    background: #2c3e50;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.small-banner .card-body p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d1d1d1;
    margin-bottom: 10px;
}

.small-banner .card-title {
    font-size: 16px;
    font-weight: 600;
}

.small-banner .btn-primary {
    background: #f7941d;
    border-color: #f7941d;
    border-radius: 4px;
    padding: 8px 20px;
}

.small-banner .btn-primary:hover {
    background: #e6841b;
    border-color: #e6841b;
}

/* Product Area */
.product-area {
    padding: 60px 0;
}

.product-area h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.product-area .nav-tabs {
    border-bottom: 1px solid #0d6efd;
}

.product-area .nav-link {
    color: #333;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
}

.product-area .nav-link:hover,
.product-area .nav-link.active {
    color: #f7941d;
    border-bottom: 2px solid #f7941d;
}

.product-area .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-area .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-area .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-area .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f7941d;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.product-area .button-head {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-area .card:hover .button-head {
    opacity: 1;
}

.product-area .button-head .btn {
    font-size: 12px;
    border-radius: 4px;
    padding: 8px;
}

.product-area .button-head .btn-primary {
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}

.product-area .card-body {
    padding: 20px;
}

.product-area .rating {
    font-size: 14px;
    color: #f7941d;
}

.product-area .card-title {
    font-size: 16px;
    font-weight: 600;
}

.product-area .card-title a {
    color: #2c3e50;
}

.product-area .card-title a:hover {
    color: #f7941d;
}

.product-area .card-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.product-area .text-orange {
    font-size: 16px;
    color: #f7941d;
}

.product-area .btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
    border-radius: 4px;
    padding: 8px 15px;
}

.product-area .btn-outline-primary:hover {
    background: #f7941d;
    color: #fff;
}

/* About Section */
.about {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.agencontainer.co.id/jasa-web/toko-online/sparepart-mobil-motor/assets/images/apps-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    color: #fff;
}

.about h2 {
    font-size: 28px;
    font-weight: 600;
}

.about .lead {
    font-size: 16px;
    color: #ccc;
}

.about img {
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.about h3 {
    font-size: 20px;
}

.about p, .about ul li {
    font-size: 14px;
    color: #ccc;
}

.about ul li {
    margin-bottom: 10px;
}

.about .btn-primary {
    background: #f7941d;
    border-color: #f7941d;
    border-radius: 4px;
    padding: 10px 20px;
}

.about .btn-primary:hover {
    background: #e6841b;
    border-color: #e6841b;
}

/* Shop Services */
.shop-services {
    padding: 60px 0;
    background: #f8f9fa;
}

.shop-services h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.shop-services p {
    font-size: 14px;
    color: #666;
}

.shop-services i {
    color: #fff;
    background: #0c2a3b;
    padding: 10px;
    border-radius: 50%;
}

/* Shop Newsletter */
.shop-newsletter {
    padding: 60px 0;
}

.shop-newsletter h4 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.shop-newsletter p {
    font-size: 16px;
    color: #666;
}

.shop-newsletter .form-control {
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.shop-newsletter .form-control:focus {
    border-color: #f7941d;
    box-shadow: 0 0 5px rgba(247, 148, 29, 0.3);
}

.shop-newsletter .btn-primary {
    background: #0d6efd;
    border-color: #f7941d;
    border-radius: 0 4px 4px 0;
    padding: 10px 20px;
}

.shop-newsletter .btn-primary:hover {
    background: #e6841b;
    border-color: #e6841b;
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer h5 {
    font-size: 18px;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #fff;
    font-size: 14px;
}

.footer ul li a:hover {
    color: #f7941d;
}

.footer .btn-primary {
    background: #f7941d;
    border-color: #f7941d;
    padding: 8px;
}

.footer .btn-primary:hover {
    background: #e6841b;
    transform: scale(1.1);
}

.bg-darker {
    background: #1a1a1a;
    padding: 20px 0;
}

.footer p {
    font-size: 14px;
    color: #ccc;
}

/* Quick View Modal */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: none;
    padding: 20px;
}

.modal-body {
    padding: 30px;
}

.modal .img-fluid {
    border-radius: 10px;
    max-height: 300px;
    object-fit: cover;
}

.modal .rating {
    font-size: 14px;
}

.modal .form-select {
    border-radius: 4px;
    font-size: 14px;
}

.modal .btn-primary {
    background: #0d6efd;
    border-color: #f7941d;
    border-radius: 4px;
    padding: 10px 20px;
}

.modal .btn-primary:hover {
    background: #e6841b;
}

.modal .btn-outline-primary {
    border-color: #f7941d;
    color: #f7941d;
    border-radius: 4px;
    padding: 8px;
}

.modal .btn-outline-primary:hover {
    background: #f7941d;
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
}

.breadcrumb-item a {
    color: #2c3e50;
}

.breadcrumb-item a:hover {
    color: #f7941d;
}

.breadcrumb-item.active {
    color: #666;
}

/* Product Detail */
.product-detail {
    padding: 40px 0;
}

.product-detail .product-image img.main-image {
    border: 1px solid #ddd;
    max-height: 900px;
    width: 800px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-detail .thumbnail-gallery {
    display: flex;
    justify-content: start;
    gap: 10px;
    margin-top: 10px;
}

.product-detail .thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.product-detail .thumbnail:hover,
.product-detail .thumbnail.active {
    border-color: #f7941d;
    transform: scale(1.1);
}

.product-detail h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.product-detail .rating {
    font-size: 14px;
}

.product-detail .current-price {
    color: #f7941d;
    font-size: 24px;
}

.product-detail .original-price {
    font-size: 16px;
    color: #999;
}

.product-detail .discount-badge {
    background: #f7941d;
    font-size: 12px;
    font-weight: 500;
}

.product-detail .form-select {
    border-radius: 4px;
    font-size: 14px;
    max-width: 300px;
}

.product-detail .quantity-selector .form-control {
    width: 80px;
    font-size: 14px;
    border-radius: 4px;
}

.product-detail .quantity-selector .btn {
    padding: 5px 10px;
    font-size: 14px;
}

.product-detail .btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
}

.product-detail .btn-primary:hover {
    background: #e6841b;
    border-color: #e6841b;
}

.product-detail .btn-orange {
    background: #f7941d;
    border-color: #f7941d;
    color: #fff;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
}

.product-detail .btn-orange:hover {
    background: #e6841b;
    border-color: #e6841b;
}

/* Product Tabs */
.product-tabs .nav-tabs {
    border-bottom: 1px solid #0d6efd;
}

.product-tabs .nav-link {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    border-bottom: 2px solid transparent;
}

.product-tabs .nav-link:hover,
.product-tabs .nav-link.active {
    color: #f7941d;
    border-bottom: 2px solid #f7941d;
}

.product-tabs .tab-content {
    padding: 20px 0;
}

.product-tabs h5 {
    font-size: 18px;
    font-weight: 600;
}

.product-tabs p, .product-tabs ul li {
    font-size: 14px;
    color: #666;
}

.product-tabs ul li {
    margin-bottom: 10px;
}

.product-tabs .review-item {
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.product-tabs .review-item:last-child {
    border-bottom: none;
}

.product-tabs .review-item .rating {
    font-size: 14px;
}

.product-tabs .review-item .fw-bold {
    font-size: 14px;
    color: #2c3e50;
}

.product-tabs .review-item .text-muted {
    font-size: 13px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeInUp {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .navbar .navbar-nav {
        text-align: center;
    }

    .navbar .form-control {
        margin-bottom: 10px;
    }

    .carousel-item {
        height: 100%;
    }

    .carousel-item h1 {
        font-size: 20px;
    }

    .carousel-item span {
        font-size: 18px;
    }

    .carousel-item .lead {
        font-size: 14px;
    }

    .carousel-item .banner-img {
        max-width: 100%;
        height: 300px;
    }

    .product-detail .col-lg-5,
    .product-detail .col-lg-7 {
        width: 100%;
    }

    .product-detail .product-image img.main-image {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .product-detail .thumbnail-gallery {
        justify-content: center;
    }

    .product-detail .btn-primary,
    .product-detail .btn-orange {
        width: 100%;
    }

    .product-detail .form-select {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .top-bar .contact-info {
        font-size: 12px;
    }

    .product-area h2, .small-banner h2 {
        font-size: 24px;
    }

    .product-area .card-img-top {
        height: 180px;
    }

    .footer, .about {
        text-align: center;
    }

    .footer img, .about img {
        margin: 0 auto;
    }

    .footer .col-md-5 {
        margin-bottom: 30px;
    }

    .product-detail h1 {
        font-size: 24px;
    }

    .product-detail .current-price {
        font-size: 20px;
    }

    .product-detail .quantity-selector .form-control {
        width: 60px;
    }

    .product-tabs .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .product-tabs .nav-link {
        font-size: 14px;
        padding: 8px 15px;
    }

    .product-detail .thumbnail {
        width: 50px;
        height: 50px;
    }
}