/* Shop Page Styles */
.shop-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6); /* Fallback color */
    text-align: left;
}

.moving-products-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    overflow: hidden;
}

.product-slide {
    display: flex;
    animation: slide 30s linear infinite;
    width: 100%;
}

.product-slide img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.product-slide img:hover {
    opacity: 1;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.shop-hero .container {
    position: relative;
    z-index: 1;
}

.shop-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.shop-hero p.lead {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Shop Categories */
.shop-categories {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.category-card {
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    color: var(--dark-color);
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: rotate(15deg);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 0;
}

/* Product Cards */
.featured-products {
    padding: 80px 0;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 20px;
}

.product-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.product-county {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 14px;
    text-decoration: line-through;
    color: var(--text-light);
    margin-left: 8px;
}

.discount {
    font-size: 14px;
    color: #e74c3c;
    margin-left: 8px;
    font-weight: 600;
}

.product-actions .btn {
    width: 100%;
}

/* Impact Statement */
.impact-statement {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #fff;
}

.impact-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.impact-content h2 {
    color: #fff;
    margin-bottom: 20px;
}

.impact-content p {
    margin-bottom: 30px;
    font-size: 18px;
}

.impact-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    min-width: 120px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Meet the Makers */
.makers-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.maker-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.maker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.maker-image {
    height: 250px;
    overflow: hidden;
}

.maker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.maker-card:hover .maker-image img {
    transform: scale(1.05);
}

.maker-details {
    padding: 20px;
}

.maker-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.maker-location {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
}

.maker-details p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0;
}

/* County Highlights */
.county-highlights {
    padding: 80px 0;
}

.county-card {
    position: relative;
    display: block;
    height: 200px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.county-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.county-card:hover img {
    transform: scale(1.1);
}

.county-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.county-overlay h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.county-overlay p {
    font-size: 14px;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Testimonials */
.shop-testimonials {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
}

.rating {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.rating .review-count {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 5px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Shop CTA */
.shop-cta {
    padding: 60px 0;
    background: linear-gradient(rgba(0, 109, 119, 0.9), rgba(0, 109, 119, 0.9)), url('../images/cta-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
}

.cta-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 15px;
}

.cta-box p.lead {
    margin-bottom: 0;
    font-size: 18px;
}

/* Shop Newsletter */
.shop-newsletter {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.shop-newsletter h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.shop-newsletter p {
    margin-bottom: 0;
    font-size: 18px;
}

/* Add to your shop.css */
#all-products-container {
    display: none; /* Hidden by default */
    flex-wrap: wrap;
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Show the container when it has content */
#all-products-container:not(:empty) {
    display: flex;
}

/* Quick View Modal */
#quickViewModal .modal-content {
    border-radius: 10px;
    overflow: hidden;
}

#quickViewModal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.product-gallery {
    margin-bottom: 20px;
}

.main-image {
    height: 400px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-meta {
    margin-bottom: 15px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-options input {
    display: none;
}

.color-options label {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-options input:checked + label {
    border-color: var(--primary-color);
}

.color-options input:checked + label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.product-actions .btn {
    flex: 1;
}

.product-meta-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.meta-item i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.meta-item span {
    font-size: 14px;
    color: var(--text-light);
}

/* Cart Sidebar */
#cartOffcanvas {
    width: 400px;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.cart-item-quantity {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 5px;
}

.cart-item-remove {
    color: #e74c3c;
    font-size: 14px;
    cursor: pointer;
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
}

.empty-cart i {
    font-size: 50px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.empty-cart p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.cart-summary {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-weight: 700;
    font-size: 18px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cart-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Cart Icon */
.cart-icon-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.cart-icon-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.cart-icon-container a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .shop-hero h1 {
        font-size: 36px;
    }
    
    #cartOffcanvas {
        width: 350px;
    }
}

@media (max-width: 991.98px) {
    .shop-hero {
        padding: 100px 0 60px;
    }
    
    .shop-hero h1 {
        font-size: 32px;
    }
    
    .main-image {
        height: 300px;
    }
}

@media (max-width: 767.98px) {
    .shop-hero {
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .shop-hero h1 {
        font-size: 28px;
    }
    
    .shop-hero p.lead {
        margin: 0 auto 30px;
    }
    
    .category-card {
        margin-bottom: 20px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    #quickViewModal .modal-body .row {
        flex-direction: column;
    }
    
    .main-image {
        height: 250px;
    }
    
    #cartOffcanvas {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .shop-hero h1 {
        font-size: 24px;
    }
    
    .impact-stats {
        justify-content: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .product-slide img {
        width: 150px;
        height: 150px;
    }
}