.itacf-wrap,
.itacf-wrap * {
    box-sizing: border-box;
    font-family: inherit;
}

.itacf-wrap {
    direction: rtl;
    margin: 24px 0 30px;
    color: #111111;
}

.itacf-inner {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E8E2D2;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(6, 46, 35, 0.08);
    overflow: hidden;
}

.itacf-mode-luxury .itacf-inner::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #D7B56D, #062E23, #D7B56D);
}

.itacf-heading {
    margin: 0 0 18px;
}

.itacf-heading h2 {
    margin: 0 0 8px;
    color: #062E23;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.5;
    font-weight: 800;
}

.itacf-heading p {
    margin: 0;
    color: #666666;
    line-height: 1.9;
    font-size: 14px;
}

.itacf-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.itacf-card-button {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 92px;
    padding: 14px;
    border: 1px solid #E8E2D2;
    border-radius: 20px;
    background: #FFFFFF;
    color: #111111;
    cursor: pointer;
    text-align: right;
    box-shadow: 0 10px 28px rgba(6, 46, 35, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.itacf-card-button:hover,
.itacf-card-button:focus-visible {
    transform: translateY(-2px);
    border-color: #D7B56D;
    box-shadow: 0 16px 34px rgba(6, 46, 35, 0.10);
    outline: none;
}

.itacf-card-button.is-active {
    border-color: #D7B56D;
    background: #F8F7F2;
    box-shadow: 0 18px 40px rgba(215, 181, 109, 0.18);
}

.itacf-card-media,
.itacf-card-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    overflow: hidden;
    background: #F8F7F2;
    border: 1px solid #E8E2D2;
}

.itacf-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.itacf-card-icon {
    position: relative;
    background: linear-gradient(135deg, #F8F7F2, #FFFFFF);
}

.itacf-card-icon::before {
    content: "";
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    background: #D7B56D;
    box-shadow: 0 0 0 6px rgba(215, 181, 109, .18);
}

.itacf-card-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.itacf-card-title {
    color: #111111;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.7;
}

.itacf-card-desc {
    color: #666666;
    font-size: 12px;
    line-height: 1.7;
}

.itacf-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #062E23;
    background: #F8F7F2;
    border: 1px solid #E8E2D2;
    font-size: 14px;
}

.itacf-wrap.is-loading .itacf-loader {
    display: flex;
}

.itacf-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(6, 46, 35, .15);
    border-top-color: #D7B56D;
    animation: itacf-spin .8s linear infinite;
}

@keyframes itacf-spin {
    to { transform: rotate(360deg); }
}

.itacf-result-count {
    min-height: 24px;
    margin-top: 14px;
    color: #666666;
    font-size: 13px;
    line-height: 1.8;
}

.itacf-result-count.is-error,
.itacf-empty {
    color: #B42318;
}

.itacf-empty {
    padding: 28px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid #E8E2D2;
    text-align: center;
    font-weight: 700;
}

.itacf-pagination {
    margin-top: 14px;
    text-align: center;
}

.itacf-load-more,
.itacf-page-button {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    border-radius: 999px;
    background: #D7B56D;
    color: #062E23;
    font-weight: 800;
    padding: 12px 22px;
    box-shadow: 0 12px 24px rgba(215, 181, 109, .22);
    transition: background-color .18s ease, transform .18s ease;
}

.itacf-load-more:hover,
.itacf-page-button:hover,
.itacf-page-button.is-current {
    background: #B89B5E;
    transform: translateY(-1px);
}

.itacf-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.itacf-page-button {
    min-width: 42px;
    padding: 10px 14px;
}

.itacf-mode-simple .itacf-inner {
    box-shadow: none;
    border-radius: 18px;
    background: #FFFFFF;
}

.itacf-mode-simple .itacf-card-button {
    box-shadow: none;
    min-height: 82px;
}

.itacf-notice {
    direction: rtl;
    padding: 14px 16px;
    border-radius: 14px;
    background: #F8F7F2;
    color: #062E23;
    border: 1px solid #E8E2D2;
    font-family: inherit;
}

@media (max-width: 1024px) {
    .itacf-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .itacf-inner {
        padding: 16px;
        border-radius: 20px;
    }

    .itacf-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .itacf-card-button {
        min-height: 118px;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        border-radius: 18px;
    }

    .itacf-card-media,
    .itacf-card-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .itacf-card-title {
        font-size: 14px;
    }

    .itacf-card-desc {
        font-size: 11px;
    }
}

.itacf-card-price {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(215, 181, 109, .14);
    color: #062E23;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
}

.itacf-card-button.is-active .itacf-card-price {
    background: #D7B56D;
    color: #062E23;
}

.itacf-card-price {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 2px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(215, 181, 109, .18);
    color: #062E23;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
}

.itacf-brand-info {
    margin-top: 18px;
}

.itacf-brand-info-box {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #F8F7F2, #FFFFFF);
    border: 1px solid #E8E2D2;
    box-shadow: 0 16px 38px rgba(6, 46, 35, .08);
}

.itacf-brand-info-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #E8E2D2;
    overflow: hidden;
}

.itacf-brand-info-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.itacf-brand-info-content h3 {
    margin: 0 0 8px;
    color: #062E23;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 900;
}

.itacf-brand-info-text,
.itacf-brand-info-text p {
    color: #444;
    font-size: 14px;
    line-height: 2;
    margin: 0 0 10px;
}

.itacf-brand-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #D7B56D;
    color: #062E23 !important;
    text-decoration: none !important;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(215, 181, 109, .25);
    transition: background-color .18s ease, transform .18s ease;
}

.itacf-brand-info-link:hover {
    background: #B89B5E;
    transform: translateY(-1px);
}

.itacf-product-colors {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
    direction: rtl;
    font-family: inherit;
}

.itacf-product-colors-label {
    color: #666666;
    font-size: 11px;
    line-height: 1.8;
}

.itacf-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 999px;
    background: #F8F7F2;
    border: 1px solid #E8E2D2;
    color: #111111;
    font-size: 11px;
    line-height: 1.7;
}

.itacf-color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D7B56D, #F8F7F2);
    border: 1px solid rgba(6, 46, 35, .18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

@media (max-width: 900px) {
    .itacf-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .itacf-inner {
        padding: 16px;
        border-radius: 18px;
    }

    .itacf-card-button {
        min-height: 84px;
        padding: 11px;
        border-radius: 18px;
        gap: 9px;
    }

    .itacf-card-media,
    .itacf-card-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .itacf-card-title {
        font-size: 13px;
    }

    .itacf-card-desc,
    .itacf-card-price {
        font-size: 11px;
    }

    .itacf-brand-info-box {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 12px;
    }

    .itacf-brand-info-image {
        width: 100%;
        height: 150px;
    }
}

.itacf-empty-error{border-color:#B42318;color:#B42318;background:#fff7f7;}
.itacf-result-count.is-error{color:#B42318;}

.itacf-color-filter {
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
    background: #F8F7F2;
    border: 1px solid #E8E2D2;
}

.itacf-color-filter-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.itacf-color-filter-head strong {
    color: #062E23;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 900;
}

.itacf-color-filter-head span {
    color: #666666;
    font-size: 12px;
    line-height: 1.8;
}

.itacf-color-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.itacf-color-filter-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid #E8E2D2;
    background: #FFFFFF;
    color: #111111;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.itacf-color-filter-button:hover,
.itacf-color-filter-button:focus-visible,
.itacf-color-filter-button.is-active {
    border-color: #D7B56D;
    background: #FFFFFF;
    transform: translateY(-1px);
    outline: none;
}

.itacf-color-filter-button.is-active {
    box-shadow: 0 10px 20px rgba(215, 181, 109, .18);
}

.itacf-color-filter-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #D7B56D;
    border: 1px solid rgba(6, 46, 35, .22);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.45);
}

.itacf-color-filter-dot-all {
    background: linear-gradient(135deg, #D7B56D 0 33%, #062E23 33% 66%, #F8F7F2 66% 100%);
}

@media (max-width: 640px) {
    .itacf-color-filter {
        padding: 12px;
        border-radius: 18px;
    }

    .itacf-color-filter-button {
        min-height: 34px;
        padding: 6px 9px;
        font-size: 11px;
    }
}
