/**
Theme Name: Astra Child
Author: Brainstorm Force
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* ---------- Product Catalog Styles ---------- */

/* Grid spacing */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Card wrapper */
.woocommerce ul.products li.product .custom-prod-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 30px rgba(34,40,49,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}
.woocommerce ul.products li.product .custom-prod-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(34,40,49,0.08);
}

/* Image */
.custom-prod-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 14px;
    background: #fafafa;
}
.custom-prod-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content */
.custom-prod-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title */
.custom-prod-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

/* Short description */
.custom-prod-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 10px;
    flex-grow: 0;
}

/* Hide Woo default price/buttons */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.ast-on-card-button,
.ahfb-svg-iconset {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .woocommerce ul.products { grid-template-columns: 1fr; gap: 18px; }
    .custom-prod-image { height: 160px; }
    .custom-prod-card { padding: 14px; border-radius: 14px; }
}

/* ---------- Popup Styles ---------- */
#custom-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
    z-index: 9999;
}
#custom-popup .popup-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}
#custom-popup .popup-box {
    position: relative;
    max-width: 700px;
    max-height: 80vh;
    margin: 40px auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    z-index: 10000;
    overflow-y: auto;
}
#custom-popup .popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 22px;
    cursor: pointer;
}
.view-details-btn {
    background: #009877;
    color: #fff;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.view-details-btn:hover {
    background: #ffffff;
    color: #009877;
    border: 1px solid #009877;
}

/* ---------- Search Bar Styles ---------- */
.custom-sku-search-form {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
}
.custom-sku-search-field {
    width: 100%;
    padding: 12px 20px 12px 44px;
    border-radius: 9999px;
    border: none;
    background: #f1f1f1;
    font-size: 16px;
    outline: none;
    transition: background 0.2s ease;
}
.custom-sku-search-field:focus {
    background: #e5e7eb;
}
/* Magnifying glass icon */
.custom-sku-search-form::before {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 16px;
}
/* Remove Chrome clear button */
.custom-sku-search-field::-webkit-search-cancel-button {
    -webkit-appearance: none;
}
