/* Example: Roboto font with multiple weights */
@font-face {
    font-family: "Geist";
    src: url("../assets/fonts/Geist/Geist-Thin.ttf");
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: "Geist";
    src: url("../assets/fonts/Geist/Geist-Light.ttf");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Geist";
    src: url("../assets/fonts/Geist/Geist-Regular.ttf");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Geist";
    src: url("../assets/fonts/Geist/Geist-Medium.ttf");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Geist";
    src: url("../assets/fonts/Geist/Geist-Black.ttf");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Geist";
    src: url("../assets/fonts/Geist/Geist-Black.ttf");
    font-weight: 900;
    font-style: normal;
}

body {
    font-family: "Geist", sans-serif;
}

.btn-primary {
    background-color: #198754 !important;
    color: white !important;
    border-color: #0f804b;
}

.btn-primary:hover {
    background-color: #0f804b !important;
    color: white !important;
    border-color: #0f804b;
}

.btn-outline-primary {
    background-color: transparent !important;
    color: #198754 !important;
    border-color: #198754 !important;
}

.btn-outline-primary:hover {
    background-color: #198754 !important;
    color: white !important;
    border-color: #198754 !important;
}

.text-primary {
    color: #198754 !important;
}

.text-primary-light {
    color: #0f804b !important;
}
.category-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.product-card .product-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.grayscale-hover {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.grayscale-hover:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.no-underline {
    text-decoration: none !important;
}

.search-item:hover,
.search-item:focus {
    background-color: #f9f9f9;
}

.p-card {
    height: 100%;
    transition: transform 0.3s;
    border: none;
}
.p-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.p-title {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.6rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.p-price {
    font-weight: bold;
    color: #0d6efd;
}
.p-rating {
    color: #ffa41c;
}
.p-image {
    height: 200px;
    object-fit: cover;
}
/* Mobile view specific styles */
@media (max-width: 767.98px) {
    .p-image-mobile {
        height: 100%;
        object-fit: cover;
    }
}

:root {
    --primary-dark: #0e5e33; /* Dark green for header background */
    --primary-medium: #198754; /* Bootstrap success color for secondary elements */
    --primary-light: #28a745; /* Lighter green for hover states */
    --accent-color: #979797; /* Yellow accent for buttons and highlights */
    --text-on-dark: white; /* Text color on dark backgrounds */
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Header Styles */
.custom-header {
    background-color: var(--primary-dark);
    color: var(--text-on-dark);
    padding: 0.5rem 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-on-dark);
    text-decoration: none !important;
}

.logo span {
    color: var(--accent-color);
}

.search-container {
    flex-grow: 1;
    max-width: 800px;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-select {
    background-color: #f3f3f3;
    border: none;
    border-radius: 4px 0 0 4px;
    color: #555;
    font-size: 0.75rem;
    padding: 0 0.5rem;
}

.search-input {
    flex-grow: 1;
    border: none;
    border-radius: 0;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.search-button {
    background-color: var(--accent-color);
    border: none;
    border-radius: 0 4px 4px 0;
    color: #111;
    width: 45px;
}

.header-link {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0 0.5rem;
    white-space: nowrap;
}

.header-link:hover {
    color: var(--accent-color);
}

.header-link-bold {
    font-weight: bold;
    font-size: 0.85rem;
    display: block;
    line-height: 1;
    text-decoration: underline;
    text-transform: capitalize;
}

.cart-count {
    color: white;
    background-color: rgba(220, 53, 69);
    border-radius: 100%;
    padding: 0 5px;
    font-weight: bold;
    font-size: 0.7rem;
    position: absolute;
    top: -2px;
    right: 5px;
}

/* Navigation Bar Styles */
.nav-bar {
    background-color: var(--primary-medium);
    color: var(--text-on-dark);
    padding: 0.5rem 1rem;
}

.hamburger-menu {
    display: flex;
    align-items: center;
    color: var(--text-on-dark);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.hamburger-icon {
    margin-right: 0.25rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For IE and Edge */
}

.nav-links::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.nav-item {
    padding: 0 0.75rem;
    white-space: nowrap;
    font-size: 0.85rem;
}

.nav-link {
    color: var(--text-on-dark);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Mobile specific styles */
.mobile-search {
    padding: 0.5rem 1rem;
    background-color: var(--primary-dark);
}

.mobile-search .search-form {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .logo {
        font-size: 1.25rem;
    }

    .header-link-text {
        display: none;
    }

    .nav-bar {
        padding: 0.25rem 0.5rem;
    }

    .nav-item {
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }
}

/* Address/Delivery section */
.delivery-address {
    display: flex;
    align-items: flex-end;
    line-height: 1;
}

.address-icon {
    font-size: 1.2rem;
    margin-right: 0.25rem;
}

.address-text {
    font-size: 0.7rem;
}

/* Mobile Menu Offcanvas */
.offcanvas-header {
    background-color: var(--primary-dark);
    color: var(--text-on-dark);
}

.offcanvas .list-group-item.bg-light {
    background-color: #e9f5ee !important; /* Light green background for section headers */
    color: var(--primary-dark);
}

.offcanvas .list-group-item-action:hover {
    background-color: #e9f5ee;
}

/* Additional green theme elements */
.btn-custom-primary {
    background-color: var(--primary-medium);
    color: var(--text-on-dark);
}

.btn-custom-primary:hover {
    background-color: var(--primary-light);
    color: var(--text-on-dark);
}

.pgt-banner {
    position: relative;
    width: 100%;
    background-color: #f8c8ff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pgt-banner-image {
    width: 100%;
    height: auto;
}

.pgt-banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.pgt-banner-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.pgt-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.pgt-category-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pgt-product-card {
    text-align: center;
    margin-bottom: 15px;
}

.pgt-product-image {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.pgt-product-image:hover {
    transform: scale(1.03);
}

.pgt-product-name {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0;
}

.pgt-see-more {
    color: #0066c0;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-top: 10px;
}

.pgt-category-scroll {
    position: relative;
}

.pgt-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ddd;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.pgt-scroll-btn:hover {
    opacity: 1;
}

.pgt-prev-btn {
    left: -15px;
}

.pgt-next-btn {
    right: -15px;
}

@media (max-width: 768px) {
    .pgt-banner-title {
        font-size: 1.5rem;
    }

    .pgt-category-title {
        font-size: 1rem;
    }

    .pgt-scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .pgt-banner-content {
        left: 5%;
    }

    .pgt-banner-title {
        font-size: 1.2rem;
    }
}

/* Custom carousel styling */
.custom-carousel {
    margin-bottom: 40px;
}

.custom-carousel .carousel-inner {
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-carousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Desktop specific styles */
@media (min-width: 992px) {
    .custom-carousel .carousel-item img {
        height: 300px; /* Fixed height for desktop */
    }

    .custom-carousel .carousel-control-prev,
    .custom-carousel .carousel-control-next {
        width: 5%;
    }
}

/* Tablet specific styles */
@media (min-width: 768px) and (max-width: 991px) {
    .custom-carousel .carousel-item img {
        height: 400px; /* Adjusted height for tablets */
    }
}

/* Mobile specific styles */
@media (max-width: 767px) {
    .custom-carousel .carousel-item img {
        height: 300px; /* Smaller height for mobile */
    }

    .custom-carousel .carousel-caption {
        max-width: 90%;
        margin: 0 auto;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 6px;
    }

    .custom-carousel .carousel-caption h5 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .custom-carousel .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .custom-carousel .carousel-indicators {
        margin-bottom: 0.5rem;
    }
}

/* Custom indicators */
.custom-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Thumbnail carousel (optional section) */
.thumbnail-carousel {
    margin-top: -20px;
    margin-bottom: 40px;
}

.thumbnail-carousel .carousel-indicators {
    position: relative;
    margin: 0;
    justify-content: center;
    margin-top: 10px;
}

.thumbnail-carousel .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    opacity: 0.5;
    border: 2px solid transparent;
    overflow: hidden;
    margin: 0 5px;
}

.thumbnail-carousel .carousel-indicators .active {
    opacity: 1;
    border: 2px solid #0d6efd;
}

.thumbnail-carousel .carousel-indicators img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* For very small screens */
@media (max-width: 480px) {
    .thumbnail-carousel .carousel-indicators [data-bs-target] {
        width: 40px;
        height: 30px;
        margin: 0 3px;
    }
}

.amazon-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

#amazonCarousel .carousel-item {
    height: 400px;
}

#amazonCarousel .carousel-content {
    display: flex;
    height: 100%;
    flex-direction: row;
}

/* Responsive carousel content */
@media (max-width: 768px) {
    #amazonCarousel .carousel-content {
        flex-direction: column;
    }

    #amazonCarousel .carousel-item {
        height: 380px;
    }
}

#amazonCarousel .carousel-text {
    width: 50%;
    padding: 40px;
    padding-left: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#amazonCarousel .carousel-image {
    width: 50%;
    position: relative;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #amazonCarousel .carousel-text,
    .carousel-image {
        width: 100%;
        padding: 20px;
    }

    #amazonCarousel .carousel-text {
        order: 2;
        padding-top: 0;
    }

    #amazonCarousel .carousel-image {
        order: 1;
        width: 100%;
        object-fit: cover;
        height: 40%;
    }

    #amazonCarousel .carousel-text h2 {
        font-size: 1.5rem;
    }

    #amazonCarousel .carousel-text p {
        font-size: 1rem;
    }

    #amazonCarousel .carousel-control-prev,
    #amazonCarousel .carousel-control-next {
        display: none;
    }
}

#amazonCarousel .carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#amazonCarousel .shop-now-btn {
    background-color: #ffd814;
    color: #0f1111;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    margin-top: 16px;
    width: fit-content;
}

#amazonCarousel .shop-now-btn:hover {
    background-color: #f7ca00;
}

#amazonCarousel .carousel-indicators {
    bottom: 10px;
}

#amazonCarousel .carousel-control-prev,
#amazonCarousel .carousel-control-next {
    width: 5%;
}

#amazonCarousel .carousel-control-prev-icon,
#amazonCarousel .carousel-control-next-icon {
    background-color: #0f1111;
    border-radius: 50%;
    padding: 10px;
}

/* Removed transparent bottom */

/* Container styling */
#amazonCarousel .container {
    max-width: 1200px;
    margin: 20px auto;
}

/* Background colors for slides */
#amazonCarousel .bg-slide-1 {
    background-color: #e3f2fd;
}
#amazonCarousel .bg-slide-2 {
    background-color: #e8f5e9;
}
#amazonCarousel .bg-slide-3 {
    background-color: #fff8e1;
}
#amazonCarousel .bg-slide-4 {
    background-color: #f3e5f5;
}

.myshop-grid-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 1rem;
}
.myshop-card {
    display: inline-block;
    width: 220px;
    margin-right: 1rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    vertical-align: top;
    white-space: normal;
}
.myshop-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.myshop-card-body {
    padding: 0.75rem;
}
.myshop-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.myshop-card-text {
    font-size: 0.8rem;
    color: #0e5e33;
    text-decoration: none;
    font-weight: 600;
}

/* Hide scrollbar only on desktop */
@media (min-width: 768px) {
    .myshop-grid-container::-webkit-scrollbar {
        display: none;
    }
    .myshop-grid-container {
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
}

.accordion-button:not(.collapsed){
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid #dee2e6 !important;
    border-radius: 0px !important;
}
