/* Machine Shop Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.filters {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    position: sticky;
    top: 70px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(107, 166, 68, 0.1);
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--white);
    font-size: 1rem;
    color: var(--dark-green);
    cursor: pointer;
    min-width: 160px;
    transition: all 0.3s ease;
}

.filter-options select:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(107, 166, 68, 0.1);
}

/* Products Section */
.products-section {
    padding: 50px 0;
    background: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--secondary-green);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-green);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.new {
    background: var(--warm-orange);
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.product-specs span {
    background: var(--light-green);
    color: var(--dark-green);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-specs i {
    font-size: 0.8rem;
}

.product-price {
    margin-bottom: 20px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.original-price {
    font-size: 1rem;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 10px;
}

.buy-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 124, 54, 0.3);
}

.buy-btn:active {
    transform: translateY(0);
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.buy-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: var(--white);
    border: 2px solid var(--secondary-green);
    color: var(--primary-green);
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--secondary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 124, 54, 0.2);
}

/* Shop Features */
.shop-features {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.shop-features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-green);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-green);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Product Animations */
.product-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hidden Products */
.product-card.hidden {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-green);
}

.empty-state p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-box {
        min-width: auto;
        max-width: none;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .filter-options select {
        min-width: 140px;
        flex: 1;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-specs {
        gap: 8px;
    }
    
    .product-specs span {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .shop-features .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
    
    .feature-item {
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .filter-options select {
        min-width: auto;
    }
    
    .product-specs {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .current-price {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    .filters,
    .shop-features,
    .buy-btn,
    .load-more-container {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}