@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --primary-color: #e63946; /* Red */
    --secondary-color: #f4a261; /* Secondary */
    --orange-color: #FC8934; /* Orange */
    --light-color: #ffffff; /* Off-white */
    --success-color: #198754;
    --gray-color: #a8dadc; /* Light blue/gray */
    --dark-color: #000000;
}

body {
    font-family: 'PT Sans', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
}
.container-fluid {
    padding-left: 3%;
    padding-right: 3%;
}
.btn-danger {
    background-color: #E63946;
}
.btn-warning {
    background-color: #FC8934;
}
.btn-warning:hover {
    background-color: #fda668;
}
.badge {
    z-index: 10;
}
/* Header Styles */
.top-header {
    background-color: var(--dark-color);
    color: white;
    padding: 10px 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, box-shadow 0.3s ease;
    width: 100%;
    z-index: 1030;
}

.top-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.logo {
    font-weight: bold;
    font-size: 24px;
}

.search-bar {
    position: relative;
}

.search-bar .input-group {
    border-radius: 20px;
    overflow: hidden;
}

.search-bar .form-control {
    border-right: none;
}

.search-bar .btn {
    background-color: white;
    border-left: none;
    color: var(--primary-color);
}

/* .search-container {
    position: relative;
} */

/* #search-results .list-group-item {
    position: relative;
    z-index: 1!important;
} */

.nav-link {
    color: white;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--secondary-color);
}
.profile-menu .dropdown-item:hover, .profile-menu .dropdown-item.active {
    color: #fff!important;
    background-color: var(--orange-color);
}
/* Navigation Styles */
.main-nav {
    background-color: var(--primary-color);
    position: relative;
}

/* Add space for fixed header */
body.has-fixed-header .main-nav {
    margin-top: 0;
}

.main-nav .nav-link {
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.main-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

/* Category Dropdown Styles */
.nav-item {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--orange-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border: none;
    border-radius: 0;
    padding: 0;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Floating Cart Styles */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-cart:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

.floating-cart i {
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    background-color: var(--orange-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    width: 100%;
}

.cart-item-img,
.item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 15px;
}

.item-image img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details,
.item-details {
    flex-grow: 1;
    width: calc(100% - 130px);
    padding-right: 30px;
}

.remove-item {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    color: var(--primary-color);
}

.cart-item-title,
.item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price,
.item-price {
    color: var(--primary-color);
    font-weight: bold;
}

.cart-item-quantity,
.item-cart-quantity,
.item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-btn,
.quantity-decrease,
.quantity-increase {
    background-color: #eee;
    border: none;
    width: 25px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
}

.quantity-input {
    width: 40px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #eee;
    height: 35px;
    padding: 0;
}
.quantity-cart-decrease,
.quantity-cart-increase {
    background-color: #eee;
    border: none;
    width: 25px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
}

.quantity-cart-input {
    width: 40px;
    text-align: center;
    margin: 0;
    border: 1px solid #eee;
    height: 30px;
    padding: 0;
}
/* Hide spinners in Chrome, Safari, Edge, Opera */
.quantity-cart-input::-webkit-outer-spin-button,
.quantity-cart-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide spinners in Firefox */
.quantity-cart-input {
    -moz-appearance: textfield;
    appearance: textfield;
}


.cart-footer {
    position: sticky;
    bottom: 0;
    background-color: white;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: bold;
}

.checkout-btn {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: var(--secondary-color);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

.overlay.active {
    display: block;
}
#search-results {
    width: 100%!important;
}
/* Category Sidebar Styles */
.category-list {
    position: relative;
}

.category-item {
    position: relative;
}

.subcategory-menu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 220px;
    background-color: white;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    border-radius: 0 4px 4px 0;
    padding: 15px;
    z-index: 100;
    display: none;
    border-left: 3px solid var(--primary-color);
}

.category-item:hover .subcategory-menu {
    display: block;
}

.subcategory-header {
    font-weight: bold;
    color: var(--orange-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.subcategory-item {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.subcategory-item:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.category-item .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item .list-group-item i {
    font-size: 12px;
    opacity: 0.7;
}

.category-item:hover .list-group-item {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Swiper Navigation Button Styles */
.swiper-button-next, .swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    z-index: 9999!important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-color);

}
.category-swiper {
    padding: 20px 40px;
    position: relative;
}
.category-swiper .swiper-slide {
    height: auto;
}
.category-swiper .card, .category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-swiper .card:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Product Card Styles */
.product-card {
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border: 1px solid var(--primary-color);
    border-radius: 8px;
}

/* Product Card Image Hover Effect */
.product-image-container {
    position: relative;
    overflow: hidden;
}
.product-image-container img {
    height: 200px;
}
.product-image-primary,
.product-image-secondary {
    width: 100%;
    transition: opacity 0.5s ease;
}

.product-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.card:hover .product-image-primary {
    opacity: 0;
}

.card:hover .product-image-secondary {
    opacity: 1;
}
.hero-swiper .card-img-overlay h2 span, .hero-swiper .card-img-overlay p span {
    background-color: rgba(2,2,2, 0.6);
    padding: 1px 5px;
}
.card-footer {
    z-index: 99;
}
.product-show .col-md-3 {
    width: 20%;
    max-width: 20%;
}
/* Input, Select, and Select2 (Bootstrap 5 style) */
.form-control:focus,
.form-select:focus,
.select2-container:focus {
  border-color: #e63946 !important;
  box-shadow: 0 0 0 0.15rem rgba(255, 0, 0, 0.6) !important;
  outline: 0;
}
/* .select2-container--open, .select2-container--open,  .select2-container--below {
border-color: #e63946 !important;
box-shadow: 0 0 0 0.15rem rgba(255, 0, 0, 0.6) !important;
 outline: 0;
} */
.select2-container--bootstrap-5 .select2-dropdown:focus, .select2-selection--single:focus, .select2-selection:focus, .select2-container .select2-dropdown .select2-search .select2-search__field:focus {
border-color: #e63946 !important;
box-shadow: 0 0 0 0.15rem rgba(255, 0, 0, 0.6) !important;
 outline: 0;
}
.page-item.active span.page-link {
    background-color: var(--primary-color); /* Change to your desired color */
    border-color: var(--primary-color);     /* Match border color */
    color: #fff;               /* Text color */
}

/* Social Media Icons Styling */
footer .d-flex.gap-3 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

footer .d-flex.gap-3 a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

footer .d-flex.gap-3 a:nth-child(1):hover {
    background-color: #3b5998; /* Facebook blue */
}

footer .d-flex.gap-3 a:nth-child(2):hover {
    background-color: #1da1f2; /* Twitter blue */
}

footer .d-flex.gap-3 a:nth-child(3):hover {
    background-color: #e1306c; /* Instagram pink */
}

footer .d-flex.gap-3 a:nth-child(4):hover {
    background-color: #ff0000; /* YouTube red */
}

@media (min-width: 768px) {
    .hero-swiper .swiper-slide img {
        height: 420px;
    }
}

@media (max-width: 991.98px) {

    .logo img {
        width: 70px;
        height: 54px;
        margin-bottom: 10px;
    }
    .main-nav .nav-link {
        padding: 10px 15px;
    }
}

@media (max-width: 767.98px) {
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .logo img {
        width: 70px;
        height: 54px;
        margin-bottom: 10px;
    }
    .account {
        margin-top: 5px;
        padding-right: 3%!important;
    }
    #search-results {
        width: 100%!important;
    }
    .hero-swiper .swiper-slide img {
        height: 250px;
    }
    .main-nav .nav-link {
        padding: 7px 10px;
    }
}
