@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

a {
    text-decoration: none !important;
    color: inherit;
}

/* Top Bar */
#top {
    width: 100%;
    background-color: #EDF2EE;
    height: 27px;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 5%;
}

.left-content,
.right-content {
    display: flex;
    align-items: center;
}

.location {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #2B572E;
    margin-left: 5px;
}

#lang,
#country {
    margin: 0 8px;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo img {
    margin-top: 10px;
    margin-bottom: 10px;
    height: auto;
    width: 150px;
}

/* Search bar styling */
.search-bar {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 35px 10px 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    height: 38px;
    border-right: none;
    transition: border-color 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #00B207;
}

.clear-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    text-decoration: none;
}

.clear-icon span {
    padding-top: 5px;
    font-size: 20px;
}

.clear-icon:hover {
    color: #313131;
    /* Keep the same color on hover */
    text-decoration: none;
    /* Ensure no underline on hover */
}

.clear-icon:hover span {
    color: #313131;
    /* Keep the same color on hover */
}

.search-btn {
    background: #00B207;
    color: white;
    border: none;
    padding: 9.2px 14px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    height: 38px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background: #008C04;
}

/* New styles for the sidebar's cancel-icon */
.cancel-icon {
    color: #888;
    /* Default color for the icon */
    text-decoration: none;
    /* Remove underline for <a> tags */
    cursor: pointer;
    /* Already set inline, but reinforce here */
}

.cancel-icon:hover {
    color: #dc3545;
    /* Desired hover color (red) */
    text-decoration: none;
    /* Ensure no underline on hover */
}

.cart-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.heart-container,
.cart-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.heart-link,
.cart-link {
    text-decoration: none;
    color: inherit;
}

.cart-link:hover {
    color: #333 !important;
}

.icon {
    font-family: 'Material Symbols Outlined';
    font-size: 30px !important;
    color: black;
    cursor: pointer;
    transition: color 0.3s;
}

.divider {
    width: 1px;
    height: 28px;
    background-color: #ccc;
}

.cart-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.cart-label {
    color: #555;
    font-size: 14px;
    margin: 4px;
}

.cart-total {
    font-weight: bold;
    font-size: 16px;
    margin: 0px;
}

/* Middle Navigation */
#middle {
    width: 100%;
    height: 35px;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    border-bottom: 1px solid #eee;
}

#list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 19px;
    align-items: center;
}

#list li {
    font-size: 15px;
    color: #808080;
    cursor: pointer;
    transition: color 0.3s;
}

#list li a:hover {
    color: #808080;
    text-decoration: none !important;
}

#list li a {
    display: flex;
    align-items: center;
    gap: 5px;
}

#right-section {
    display: flex;
    align-items: center;
    padding: 0 14px;
}

#call img {
    margin-right: 8px;
}

#num p {
    margin: 0;
    font-size: 16px;
    color: rgb(0, 0, 0);
}

/* Breadcrumb */
#breadcrumb {
    margin-bottom: 20px;
    width: 100%;
    background-size: cover;
}

#breadcrumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Container */
.ccontainer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 7px;
    margin-bottom: 20px;
}

#offer-banner {
    background-color: black;
    width: 80%;
    height: 40vh;
    display: flex;
    justify-content: center;
    border-radius: 10px;
}

/* Shop Wrapper */
.shop-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Filters Section */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    margin-bottom: 20px;
}

.filters-left,
.filters-right {
    display: flex;
    gap: 15px;
}

.filters select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease-in-out;
    min-width: 180px;
}

.filters select:hover {
    border-color: #00B207;
}

/* Shop Container */
.shop-container {
    display: flex;
    gap: 30px;
}

/* Sidebar Filters */
.sidebar-filters {
    width: 270px;
    flex-shrink: 0;
}

.filter-section {
    margin-bottom: 25px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.category-list {
    font-size: 14px;
}

.category-item {
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.category-item:hover {
    color: #00B207;
}

.category-item.active {
    color: #00B207;
    font-weight: 500;
}

.active {
    color: #00B207;
    font-weight: 500;
}

/* Price Options */
.price-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.price-option input[type="radio"] {
    appearance: none;
    /* Remove default browser styling for custom control */
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    /* Default border */
    border-radius: 50%;
    /* Circular shape */
    cursor: pointer;
    position: relative;
    margin: 0;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.price-option input[type="radio"]:checked {
    border-color: #00B207;
    /* Match your theme's green color */
    background-color: #00B207;
    /* Filled background when checked */
}

.price-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.price-option input[type="radio"]:hover {
    border-color: #00B207;
    /* Highlight on hover */
}

.price-option label {
    cursor: pointer;
    margin-left: 8px;
    /* Ensure label is spaced from radio button */
}

.prime-tag {
    background-color: #00B207;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
}

#prdct-count {
    text-align: right;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

/* Product Grid */
.products-grid {
    width: 100%;
}

/* Product Card */
.product-card {
    margin-bottom: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    /* Take full width of the Bootstrap column */
    position: relative;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    /* Add min-height to ensure all cards are the same height */
    min-height: 280px;
    /* Adjust based on your content */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribute content vertically */
}

.product-card:hover {
    transform: translateY(-5px);
    border: 2px solid #048208;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card .product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0 5px 0;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    /* Adjust based on font size */
    max-height: 2.8em;
    /* 2 lines * line-height */
}

.product-card .price {
    font-size: 16px;
    color: #000000;
    font-weight: 500;
    margin-bottom: 0 !important;
}

.cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
}

.material-symbols-outlined {
    width: 30px;
    height: 30px;
}

.product-card .rating {
    font-size: 14px;
    color: #f39c12;
    margin-bottom: 5px;
}

/* Favorite Icon */
.product-card .fav-icon {
    position: absolute;
    bottom: 1%;
    right: 5%;
    font-size: 25px;
    color: red; /* Changed to red as per your EJS inline style */
    cursor: pointer;
    transition: color 0.3s;
}

.product-card .fav-icon:hover {
    color: #e74c3c;
}

/* Out of Stock */
.out-of-stock {
    position: relative;
    opacity: 0.7;
}

.out-of-stock-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    z-index: 1;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
    font-size: 14px;
}

/* Override Bootstrap's active pagination styling */
.pagination .page-item.active .page-link {
    background-color: #00B207;
    /* Green background */
    border-color: #00B207;
    /* Match the border to the background */
    color: white;
    /* Keep text white for contrast */
}

/* Optional: Style for non-active page links (for consistency) */
.pagination .page-item .page-link {
    color: #333;
    border-radius: 5px;
    margin: 0 2px;
}

/* Optional: Style for disabled buttons */
.pagination .page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
}

/* Footer */
.footer-wrapper {
    width: 100%;
    background-color: #f8f8f8;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .shop-wrapper {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .shop-container {
        flex-direction: column;
    }

    .sidebar-filters {
        width: 100%;
    }

    .filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filters-left,
    .filters-right {
        width: 100%;
    }

    .filters select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 10px 5%;
    }

    .search-bar {
        width: 100%;
        margin: 15px 0;
    }

    .product-grid {
        justify-content: center;
    }

    #middle {
        display: none;
    }
}

@media (max-width: 480px) {
    .filters-left,
    .filters-right {
        flex-direction: column;
    }

    .product-card {
        width: 100%;
    }
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    background: none;
}

.breadcrumb-item {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #adb5bd;
}

.breadcrumb-item a {
    all: unset;
    /* Completely resets all default browser styles */
    cursor: pointer;
    color: #2f2f2f;
    /* Custom color */
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #000000;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #575757;
    font-weight: 500;
    pointer-events: none;
}


