/* Product Card Component and Landing Page Integration */

/* Section Styling - Adjusted for no header */
.page-section {
    padding: 3rem 0 5rem; /* Reduced top padding since header was removed */
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin: 1.5rem auto;
}

.section-cta {
    margin-top: 3rem;
    padding: 2rem 0;
}

/* Product Styling Enhancements */
.product-grid {
    margin-bottom: 2rem;
}

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.product-placeholder i {
    font-size: 4rem;
    color: #ced4da;
}

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

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-badges .badge {
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    border-radius: 50rem;
}

.badge.in-stock {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.badge.out-of-stock {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.badge.featured {
    background-color: rgba(255, 193, 7, 0.1);
    color: #996515;
}

.badge.seasonal {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.product-description {
    height: 90px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.product-description:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.vip-price {
    font-size: 0.85rem;
    color: var(--gray);
    display: inline-block;
    background-color: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.vip-label {
    font-weight: 600;
    margin-right: 0.3rem;
}

.vip-savings {
    color: #28a745;
    font-weight: 500;
    margin-left: 0.3rem;
}

.btn-view-product {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-view-product:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Add to Cart Button Styling - Full Width */
.add-to-cart-form {
    width: 100%; /* Ensure the form takes full width */
}

.btn-add-to-cart,
.btn-secondary[disabled] {
    width: 100%; /* Make buttons full width */
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Floating Categories */
.floating-categories {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 90%;
    z-index: 2;
}

.floating-category {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark);
    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);
}

/* Filter and Search */
.filter-panel {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-panel:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.filter-heading {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    background-color: #f8f9fa;
    border-radius: 8px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid #d8e2d5;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

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

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

.filter-pill-close:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Empty State */
.empty-state {
    padding: 4rem 0;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.empty-state-description {
    font-size: 1rem;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-color: #e9ecef;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.pagination .active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Enhanced Call to Action Section - Using the masthead colors */
.py-5.bg-primary {
    background-color: #69815f !important;
    background: linear-gradient(to bottom, rgba(105, 129, 95, 0.9) 0%, rgba(85, 113, 83, 0.95) 100%) !important;
    padding: 5rem 0 !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

/* Optional decorative element */
.py-5.bg-primary:before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.py-5.bg-primary:after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.py-5.bg-primary .text-white {
    z-index: 2;
    position: relative;
}

.py-5.bg-primary .fw-bolder {
    font-size: 2.5rem;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.py-5.bg-primary .lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.btn-light.btn-xl {
    background-color: white;
    color: #69815f;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-light.btn-xl:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.25rem;
    }

    .py-5.bg-primary .fw-bolder {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }

    .py-5.bg-primary .fw-bolder {
        font-size: 2rem;
    }

    .py-5.bg-primary .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .card-img-top-container {
        height: 220px;
    }

    .py-5.bg-primary .fw-bolder {
        font-size: 1.75rem;
    }

    .py-5.bg-primary .lead {
        font-size: 1rem;
    }

    .btn-light.btn-xl {
        padding: 0.85rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.5rem;
    }

    .card-img-top-container {
        height: 200px;
    }

    .py-5.bg-primary .fw-bolder {
        font-size: 1.5rem;
    }

    .py-5.bg-primary {
        padding: 3rem 0 !important;
    }

    .btn-light.btn-xl {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Add these styles to your existing webroot/css/pages/products.css file */

/* Product View Page Styling */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--gray);
}

/* Contact Icons */
.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Quantity Control Styling */
.input-group .quantity-btn {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group .quantity-btn:hover {
    background-color: var(--primary-light);
}

.input-group .form-control {
    border-color: var(--primary);
}

/* Full-width Buttons */
.d-grid .btn {
    width: 100%;
    border-radius: 50px;
}

/* Category Badge Styling */
.badge.bg-light.text-dark {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.badge.bg-light.text-dark:hover {
    background-color: #e9e9e9 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Related Products Section */
section.py-5.bg-light {
    background-color: #f8f9fa !important;
    padding: 4rem 0 !important;
}

/* Mobile responsiveness adjustments */
@media (max-width: 991.98px) {
    .map-container {
        height: 300px;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .map-container {
        height: 250px;
    }
}

/* Product Details Styling */
.product-details-card {
    background-color: #f9f9fa;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.product-details-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.detail-content {
    flex: 1;
}

.detail-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #555;
}

.detail-text {
    margin: 0;
    color: #333;
}

/* Enhanced Quantity Control */
.quantity-control-wrapper {
    display: flex;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--primary-light);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.quantity-btn {
    background: none;
    border: none;
    color: var(--primary);
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    padding: 0;
}

.quantity-btn:hover {
    background-color: var(--primary-light);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--primary-light);
    border-right: 1px solid var(--primary-light);
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0;
    padding: 0 5px;
    font-size: 1rem;
    font-weight: 500;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Category badge styling */
.badge.bg-light.text-dark {
    background-color: white !important;
    color: #333 !important;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    padding: 0.6rem 1rem;
}

.badge.bg-light.text-dark:hover {
    background-color: #f5f5f5 !important;
    border-color: #d0d0d0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .detail-item {
        margin-bottom: 1rem;
    }

    .detail-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.9rem;
    }
}