/* KOSMOS Products Plugin Styles */

.featured-products {
    padding: 5rem 0;
    background: transparent;
}

.featured-products .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.kosmos-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.kosmos-product-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.kosmos-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.kosmos-product-image {
    margin-bottom: 1rem;
}

.kosmos-product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
}

.kosmos-product-category {
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.kosmos-product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.kosmos-product-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.kosmos-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 1rem;
}

.kosmos-view-more-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(45deg, #4CAF50, #2E7D32);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.kosmos-view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Product Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

.product-modal-close:hover,
.product-modal-close:focus {
    color: #000;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.product-modal-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-modal-details .product-category {
    font-size: 1rem;
    color: #4CAF50;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-modal-details h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-modal-details .product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 1.5rem;
}

.product-modal-details .product-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #666;
}

.product-modal-details .product-specifications {
    margin-top: 2rem;
}

.product-modal-details .product-specifications h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-modal-details .product-specifications ul {
    list-style: none;
    padding: 0;
}

.product-modal-details .product-specifications li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.product-modal-details .product-specifications li:last-child {
    border-bottom: none;
}

/* Categories Section Styles */
.kosmos-categories-section {
    padding: 5rem 0;
    background: transparent;
}

.kosmos-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Category Card Styles - Matching theme style */
.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.category-card-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.category-card-content .btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(45deg, #4CAF50, #2E7D32);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
}

.category-card-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    color: white;
}

/* Legacy class support for backward compatibility */
.kosmos-category-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.kosmos-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Category Header Styles */
.kosmos-category-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.kosmos-category-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 700;
}

.kosmos-category-header .kosmos-category-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.kosmos-view-all-categories {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.kosmos-view-all-categories:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .kosmos-products-grid {
        grid-template-columns: 1fr;
    }
    
    .kosmos-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card img {
        height: 180px;
    }
    
    .category-card-content {
        padding: 1.25rem;
    }
    
    .category-card-content h3 {
        font-size: 1.2rem;
    }
    
    .product-modal-body {
        grid-template-columns: 1fr;
    }
    
    .product-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .kosmos-category-title {
        font-size: 2rem;
    }
}

