/* =========================================
   API PRODUCTS – GLOBAL STYLES
   Plugin: api-products
   ========================================= */

/* -------- COMMON -------- */
.api-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* -------- CATEGORY / ARCHIVE -------- */
.api-category-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #222;
}

.api-product-list {
    columns: 3;
    column-gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.api-product-list li {
    break-inside: avoid;
    margin-bottom: 12px;
}

.api-product-list a {
    font-size: 16px;
    font-weight: 500;
    color: #c2185b;
    text-decoration: none;
}

.api-product-list a:hover {
    text-decoration: underline;
}

/* -------- SINGLE PRODUCT -------- */
.api-product-title {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 15px;
}

.api-product-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.api-product-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.api-product-table th,
.api-product-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.api-product-table th {
    background: #f5f5f5;
    width: 30%;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 991px) {
    .api-product-list {
        columns: 2;
    }
}

@media (max-width: 575px) {
    .api-product-list {
        columns: 1;
    }
}
/* A–Z HEADINGS */
.api-letter {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 10px;
    border-bottom: 1px solid #ddd;
}

/* SEARCH BOX */
#api-search {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 16px;
    border: 1px solid #ccc;
}
/* A–Z NAV */
.api-az-nav {
    margin-bottom: 20px;
}

.api-az-nav a,
.api-az-nav span {
    display: inline-block;
    margin: 0 6px 6px 0;
    font-weight: 600;
    text-decoration: none;
}

.api-az-nav span.disabled {
    color: #aaa;
    cursor: default;
}

/* LOADER */
#api-loader {
    margin: 15px 0;
    font-weight: 600;
}

/* LETTER HEADINGS */
.api-letter {
    margin-top: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}
/* A–Z NAVIGATION BAR */
.api-az-nav {
    margin: 20px 0;
}

.api-az-nav a {
    margin-right: 10px;
    font-weight: 600;
    text-decoration: none;
}

.api-az-nav span.disabled {
    color: #aaa;
    margin-right: 10px;
    cursor: default;
}
/* SEARCH BOX */
#api-search {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    margin: 20px 0;
    font-size: 16px;
    border: 1px solid #ccc;
}

/* LOADER */
#api-loader {
    margin: 10px 0;
    font-weight: 600;
    color: #666;
}
/* SINGLE PRODUCT */
.api-product-single {
    margin-top: 30px;
}

.api-product-top {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.api-product-image img {
    max-width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
}

.api-product-summary p {
    margin: 8px 0;
}

.api-product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.api-product-table th,
.api-product-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.api-product-table th {
    background: #f5f5f5;
    width: 30%;
}

.api-product-note {
    margin-top: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #2e7d32;
}

.api-product-enquiry {
    margin-top: 30px;
}

.api-enquiry-btn {
    background: #ff6a00;
    color: #fff;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
/* MODAL */
.api-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}

.api-modal-content {
    background: #fff;
    max-width: 500px;
    margin: 8% auto;
    padding: 20px;
    position: relative;
}

.api-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
}

#api-enquiry-form input,
#api-enquiry-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.api-submit-btn {
    background: #ff6a00;
    color: #fff;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
}
/* A–Z SHORTCODE */
.api-az-shortcode {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.api-az-letter {
    padding: 8px 14px;
    border: 1px solid #ff6a00;
    color: #ff6a00;
    font-weight: 600;
    text-decoration: none;
}

.api-az-letter:hover {
    background: #ff6a00;
    color: #fff;
}
