/* =========================================================
   AMANA PRODUCT FILTER
   ========================================================= */

.amana-product-filter {
    width: 100%;
    box-sizing: border-box;
    /*background: #ffffff;*/
    /*border: 1px solid #e5eaf2;*/
    border-radius: 10px;
    padding: 34px 30px;
    /*box-shadow: 0 12px 35px rgba(15, 39, 78, 0.08);*/
    font-family: inherit;
    color: #12346b;
}

/* FILTER TITLE */
.amana-filter-title {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 25px;
    font-weight: 700;
    color: #123d82;
    margin-bottom: 45px;
}

.amana-filter-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amana-filter-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #214e99;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* SECTIONS */
.amana-filter-section { width: 100%; }

.amana-filter-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #092f69;
}

/* SEARCH */
.amana-search-section {
    padding-bottom: 27px;
    border-bottom: 1px solid #edf0f5;
    margin-bottom: 35px;
}

.amana-search-box {
    position: relative;
    width: 100%;
}

.amana-search-box input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 53px;
    box-sizing: border-box;
    border: 1px solid #c9d5e7;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: #183e72;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.amana-search-box input::placeholder { color: #a0aabe; }

.amana-search-box input:focus {
    border-color: #2555a0;
    box-shadow: 0 0 0 3px rgba(37, 85, 160, 0.10);
}

.amana-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.amana-search-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #9ba9bc;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.amana-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent !important;
    color: #24539b;
    font-size: 25px;
    line-height: 28px;
    cursor: pointer;
    padding: 0;
}

/* CATEGORY */
.amana-category-section { width: 100%; }

.amana-category-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.amana-category-group { width: 100%; }

.amana-category-row {
    display: flex;
    align-items: center;
    min-height: 43px;
    width: 100%;
    box-sizing: border-box;
}

.amana-parent-row { position: relative; }

/* ARROW / TOGGLE – block global WP/Elementor button hover styles */
.amana-category-toggle,
.amana-category-toggle:hover,
.amana-category-toggle:focus,
.amana-category-toggle:active,
.amana-category-toggle:focus-visible {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    padding: 0;
    cursor: pointer;
}

.amana-category-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #8293aa;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.amana-category-group.is-open .amana-category-toggle svg { transform: rotate(90deg); }

.amana-category-toggle:hover svg,
.amana-category-toggle:focus svg,
.amana-category-toggle:active svg { stroke: #8293aa !important; }

.amana-category-toggle-placeholder {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin-right: 5px;
}

/* CHECKBOX LABEL */
.amana-category-label {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    cursor: pointer;
    margin: 0;
    gap: 12px;
}

.amana-category-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amana-custom-checkbox {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    box-sizing: border-box;
    border: 1px solid #cbd8e9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.amana-custom-checkbox svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.amana-category-checkbox:checked + .amana-custom-checkbox {
    background: #C1272D !important;
    border-color: #C1272D !important;
}

.amana-category-checkbox:checked + .amana-custom-checkbox svg {
    opacity: 1;
    transform: scale(1);
}

/* Keyboard focus */
.amana-category-checkbox:focus-visible + .amana-custom-checkbox {
    box-shadow: 0 0 0 3px rgba(37, 85, 160, 0.20);
}

/* CATEGORY TEXT */
.amana-category-name {
    color: #61728b;
    font-size: 16px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.amana-parent-row .amana-category-name {
    color: #244f8e;
    font-weight: 600;
}

.amana-category-label:hover .amana-category-name { color: #123d82; }

/* COUNT */
.amana-category-count {
    flex: 0 0 auto;
    margin-left: 10px;
    color: #9aa7b9;
    font-size: 14px;
    line-height: 1;
}

/* SUB CATEGORIES */
.amana-subcategory-list {
    display: none;
    padding-left: 26px;
}

.amana-category-group.is-open .amana-subcategory-list { display: block; }

.amana-child-row { min-height: 43px; }

.amana-child-indent {
    width: 25px;
    flex: 0 0 25px;
    margin-right: 5px;
}

/* CURRENT CATEGORY */
.amana-category-group.is-current .amana-category-name {
    color: #1d4f9a;
    font-weight: 600;
}

/* EMPTY STATE */
.amana-no-categories {
    margin: 0;
    color: #8b98aa;
    font-size: 14px;
}

/* EXTRA WORDPRESS / ELEMENTOR BUTTON RESET */
.amana-product-filter button,
.amana-product-filter button:hover,
.amana-product-filter button:focus,
.amana-product-filter button:active {
    text-decoration: none !important;
}

.amana-product-filter button.amana-category-toggle:hover {
    background: transparent !important;
    background-color: transparent !important;
}

/* TABLET */
@media (max-width: 1024px) {
    .amana-product-filter { padding: 28px 24px; }
    .amana-filter-title { margin-bottom: 35px; }
}

/* MOBILE */
@media (max-width: 767px) {
    .amana-product-filter {
        padding: 25px 20px;
        border-radius: 18px;
        box-shadow: 0 8px 25px rgba(15, 39, 78, 0.07);
    }
    .amana-filter-title { font-size: 22px; margin-bottom: 32px; }
    .amana-filter-section h3 { font-size: 17px; margin-bottom: 17px; }
    .amana-search-box input { height: 48px; font-size: 15px; }
    .amana-category-name { font-size: 15px; }
    .amana-category-count { font-size: 13px; }
    .amana-category-row { min-height: 42px; }
    .amana-subcategory-list { padding-left: 18px; }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .amana-product-filter { padding: 22px 16px; }
    .amana-filter-title { font-size: 21px; margin-bottom: 28px; }
    .amana-search-section { padding-bottom: 23px; margin-bottom: 28px; }
    .amana-custom-checkbox { width: 21px; height: 21px; flex-basis: 21px; }
    .amana-category-label { gap: 10px; }
    .amana-category-name { font-size: 14px; }
    .amana-category-count { font-size: 12px; }
}


/* =========================================================
   PRODUCTS PER PAGE
   ========================================================= */

.amana-products-per-page {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
    font-family: inherit;
}

.amana-products-per-page-label {
    font-size: 15px;
    font-weight: 600;
    color: #163875;
    white-space: nowrap;
}

.amana-products-per-page-select {
    min-width: 150px;
    height: 44px;
    padding: 0 38px 0 14px;
    border: 1px solid #d5deed;
    border-radius: 8px;
    background-color: #ffffff;
    color: #163875;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: auto;
}

.amana-products-per-page-select:hover { border-color: #1d56a5; }

.amana-products-per-page-select:focus {
    border-color: #1d56a5;
    box-shadow: 0 0 0 3px rgba(29, 86, 165, 0.10);
}

@media (max-width: 767px) {
    .amana-products-per-page { justify-content: flex-start; margin-bottom: 15px; gap: 8px; }
    .amana-products-per-page-select { min-width: 135px; height: 42px; font-size: 13px; }
    .amana-products-per-page-label { font-size: 14px; }
}


/* =========================================================
   PRODUCT ATTRIBUTES  ([amana_product_attributes])
   Edit freely – or override from Elementor's Custom CSS.
   ========================================================= */

.custom-product-attributes {
    width: 100%;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
    overflow: hidden;
    font-family: inherit;
}

.custom-product-attribute {
    display: flex;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf0f5;
}

.custom-product-attribute:last-child { border-bottom: 0; }
.custom-product-attribute:nth-child(odd) { background: #f7f9fc; }

.custom-product-attribute .attribute-name {
    flex: 0 0 35%;
    max-width: 240px;
    font-weight: 600;
    color: #123d82;
}

.custom-product-attribute .attribute-value {
    flex: 1;
    color: #61728b;
}

@media (max-width: 767px) {
    .custom-product-attribute { flex-direction: column; gap: 4px; }
    .custom-product-attribute .attribute-name { flex-basis: auto; max-width: none; }
}

.custom-product-attributes-title {
    margin: 0 0 14px;
    color: #123d82;
}


/* =========================================================
   EDITOR / FALLBACK NOTICE
   ========================================================= */
.amana-pf-notice {
    padding: 14px 18px;
    border: 1px dashed #c9d5e7;
    border-radius: 8px;
    color: #61728b;
    font-size: 14px;
    background: #f7f9fc;
}
