/* Product listing page styles */

/* Filter panel styling */
.filter-panel {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.filter-panel:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter-options {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-heading {
    color: #69815f;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product card styling */
.product-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

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

.card-img-top-container {
    position: relative;
    overflow: hidden;
}

.card-img-top {
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.7em;
    margin-right: 4px;
}

.badge.bg-success {
    background-color: #2e8b57 !important; /* A softer green */
}

.badge.bg-danger {
    background-color: #d9534f !important; /* A softer red */
}

.badge.bg-warning {
    background-color: #f0ad4e !important; /* A softer yellow */
    color: #212529 !important; /* Dark text for contrast */
}

.badge.bg-info {
    background-color: #5bc0de !important; /* A softer blue */
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
}

/* VIP price styling */
.vip-price small {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.vip-price .text-success {
    font-weight: 500;
}

/* Active filters */
.active-filters {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Pagination styling */
.pagination .page-link {
    color: #69815f;
    border-color: #e9ecef;
}

.pagination .active .page-link {
    background-color: #69815f;
    border-color: #69815f;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: #557153;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: #69815f;
    box-shadow: 0 0 0 0.25rem rgba(105, 129, 95, 0.25);
}

.btn-primary {
    background-color: #69815f;
    border-color: #69815f;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #557153;
    border-color: #557153;
}

.btn-outline-primary {
    color: #69815f;
    border-color: #69815f;
}

.btn-outline-primary:hover {
    background-color: #69815f;
    border-color: #69815f;
}

/* Call to action section */
section.bg-primary {
    background-color: #69815f !important;
}

.btn-secondary {
    background-color: #55714a;
    border-color: #000000;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #3d5533;
    border-color: #557153;
}

/* Active filter pills */
.filter-pill {
    display: inline-flex;
    align-items: center;
    background-color: #eef2ec;
    color: #557153;
    border: 1px solid #d8e2d5;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background-color: #e5ede2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.filter-pill-text {
    margin-right: 8px;
}

.filter-pill-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #69815f;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    transition: all 0.2s ease;
}

.filter-pill-close:hover {
    background-color: #557153;
    transform: scale(1.1);
    color: white;
}

.clear-all {
    color: #69815f;
    transition: all 0.2s ease;
}

.clear-all:hover {
    color: #557153;
    text-decoration: underline !important;
}

/* Custom checkbox styling */
.form-check-input {
    border-color: #69815f;
    width: 1.1em;
    height: 1.1em;
}

.form-check-input:checked {
    background-color: #69815f;
    border-color: #69815f;
}

.form-check-input:focus {
    border-color: #69815f;
    box-shadow: 0 0 0 0.25rem rgba(105, 129, 95, 0.25);
}

.form-check-label {
    padding-left: 0.2rem;
    user-select: none;
}

/* Active filters container */
.active-filters {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}


/* Landing Page */
/* Custom navbar styling */
.navbar-custom {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.navbar-brand-custom {
    font-weight: 700;
    font-size: 1.5rem;
    color: #69815f;
}
.nav-link-custom {
    font-weight: 500;
    padding: 0.5rem 1rem;
}
.nav-link-custom:hover {
    color: #69815f;
}
.nav-link-custom.active {
    color: #28a745;
    font-weight: 600;
}
.card-img-top-container {
    position: relative;
}

.floating-categories {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 90%;
}

.floating-category {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    backdrop-filter: blur(2px);
}
/* Price Range Validation Styles */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.price-error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: block;
}

/* For Bootstrap 5 users, you can use these instead if you're not already */
.form-control.is-invalid {
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* If you're using the d-none class from Bootstrap */
.d-none {
    display: none !important;
}
/* Price Range Validation Styles */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.price-error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: block;
}

/* For Bootstrap 5 users, you can use these instead if you're not already */
.form-control.is-invalid {
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* If you're using the d-none class from Bootstrap */
.d-none {
    display: none !important;
}
