/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

.coa-library-container {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.coa-library-title {
    font-size: 36px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 40px;
    color: #000;
}

.coa-search-bar {
    margin-bottom: 40px;
    text-align: left;
}

.coa-search-bar input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 16px;
}

.coa-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.coa-product-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out;
}

.coa-product-card:hover {
    transform: translateY(-5px);
}

.coa-product-image-wrapper {
    width: 100%;
    height: 250px;
    position: relative;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 20px;
}

.coa-product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.coa-product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.coa-product-type {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.coa-product-name {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: #000;
}

.coa-history-button {
    display: inline-block;
    width: fit-content;
    padding: 3px 20px;
    background-color: #f0f0f8; /* Light purple */
    color: #177d45; /* Darker purple text */
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.coa-history-button:hover {
    background-color: #e0e0f0;
    text-decoration: none;
    color: #177d45;
}

.coa-lot-number-label {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.coa-lot-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coa-lot-button {
    display: inline-block;
    padding: 3px 15px;
    background-color: #f5f5f5; /* Very light gray */
    color: rgb(64, 0, 128); /* Dark text */
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.coa-lot-button:hover {
    background-color: #e8e8e8;
    text-decoration: none;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .coa-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .coa-library-title {
        font-size: 28px;
        text-align: center;
    }
    
    .coa-search-bar {
        text-align: center;
    }
    
    .coa-search-bar input {
        max-width: 100%;
        padding: 10px 15px 10px 35px;
        font-size: 15px;
    }
    
    .coa-product-name {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .coa-product-grid {
        grid-template-columns: 1fr;
    }
    
    .coa-library-container {
        padding: 20px 15px;
    }
    
    .coa-product-image-wrapper {
        height: 200px;
    }
}
