/*
Theme Name: Astra Child
Template: astra
Version: 1.0.2
*/

/* --- CONTAINER --- */
.products-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* --- FILTER BAR --- */
.filter-box {
    margin: 30px auto 20px;
    padding: 20px;
    max-width: 100%;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-box form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.filter-box select,
.filter-box button {
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    color: #000 !important;
    background: #fff !important;
    min-width: 180px;
    transition: all 0.3s ease;
}

.filter-box select:focus {
    outline: none;
    border-color: #457b9d;
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
}

.filter-box button {
    background: #457b9d !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
    font-weight: 600;
    min-width: 140px;
}

.filter-box button:hover {
    background: #1d3557 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    padding: 30px 0;
    margin: 0 auto;
}

/* --- PRODUCT CARD --- */
.product-card {
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.06);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 12px 24px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.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-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1d3557;
    line-height: 1.3;
    min-height: 52px;
}

.product-card h3 a {
    color: inherit;
    text-decoration: none;
}

.product-card h3 a:hover {
    color: #457b9d;
}

/* --- PRODUCT META TEXT --- */
.product-meta {
    flex-grow: 1;
    margin-bottom: 16px;
}

.product-meta p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.product-meta p strong {
    color: #e67e22;
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
}

.product-meta p span {
    color: #000;
}

/* --- ADD TO QUOTE BUTTON --- */
.add-to-quote-btn {
    display: block;
    padding: 12px 20px;
    margin-top: auto;
    background: #e63946;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    width: 100%;
    border: none;
    transition: all .3s ease;
}

.add-to-quote-btn:hover {
    background: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.add-to-quote-btn.added {
    background: #2a9d8f !important;
    border-color: #2a9d8f !important;
}

/* --- QUOTE STICKY BAR --- */
.quote-indicator {
    position: sticky;
    top: 20px;
    margin: 20px 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f1faee 0%, #e8f5e9 100%);
    border: 2px solid #a8dadc;
    border-radius: 10px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quote-indicator span {
    color: #1d3557;
    font-size: 17px;
}

.get-quotation-btn {
    background: #e76f51;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
    transition: all .3s ease;
    white-space: nowrap;
}

.get-quotation-btn:hover {
    background: #d65f43;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
}

/* --- BOTTOM QUOTATION BUTTON --- */
.bottom-quotation-btn {
    display: block;
    max-width: 250px;
    margin: 40px auto;
    text-align: center;
    font-size: 16px;
    padding: 14px 28px;
}

/* --- POPUP NOTIFICATION --- */
#quote-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2a9d8f;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- QUOTE LIST PAGE --- */
.quote-list {
    padding: 20px 0;
    max-width: 900px;
    margin: 20px auto;
}

.quote-item {
    padding: 16px 20px;
    background: #fafafa;
    margin-bottom: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.quote-item:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.quote-item h3 {
    margin: 0;
    font-size: 17px;
    color: #1d3557;
    font-weight: 600;
}

.quote-item a {
    color: #e63946;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.quote-item a:hover {
    background: #e63946;
    color: #fff;
}

/* --- RESPONSIVE --- */
@media(max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 25px;
    }
}

@media(max-width: 768px) {
    .products-page-container {
        padding: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .filter-box form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-box select,
    .filter-box button {
        width: 100%;
        min-width: auto;
    }
    
    .quote-indicator {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .get-quotation-btn {
        margin-left: 0;
        width: 100%;
    }
    
    #quote-popup {
        right: 15px;
        bottom: 15px;
        left: 15px;
        text-align: center;
    }
}

@media(max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card h3 {
        font-size: 18px;
        min-height: auto;
    }
    
    .product-image {
        height: 200px;
    }
}