.acm-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.acm-wrapper h1 {
    margin-bottom: 10px;
}

.acm-subtitle-text {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.4;
}

.acm-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.acm-filters select,
.acm-filters input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    min-width: 20%;
}

.acm-filters input[type="number"] {
    width: 100%;
}

.acm-price-wrapper {
    position: relative;
    display: inline-block;
    min-width:20%; 
    flex:1;
}

.acm-price-wrapper input[type="text"] {
    width:100%; 
    padding-left:30px; 
    box-sizing:border-box;
}

.acm-price-wrapper .acm-currency {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    color: #555;
    pointer-events: none;
}

.acm-filters button {
    padding: 15px;
    background: #ec5252;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.acm-filters button:hover {
    background: #c0392b;
}

.acm-catalog-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.acm-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    display: block; /* troca do flex por block */
}

.acm-card-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.acm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.acm-card-image {
    width: 220px; /* tamanho fixo que você já usa */
    aspect-ratio: 1 / 1; /* garante o quadrado */
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

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

.acm-card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.acm-card-info h2 {
    font-size: 1.2em;
    margin: 0 0 4px;
    font-weight: 700;
    color: #2c3e50;
}

.acm-subtitle {
    font-size: 0.95em;
    color: #7f8c8d;
    margin-bottom: 6px;
}

.acm-instructor,
.acm-rating,
.acm-meta {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 3px;
}

.acm-card-price-cta {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 140px;
}

.acm-price-wrap {
    margin-bottom: 8px;
    text-align: right;
}

.acm-price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.95em;
    margin-right: 4px;
}

.acm-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #c0392b;
}

.acm-cta {
    display: inline-block;
    background: #ec5252;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: background 0.2s ease;
    min-width: 120px;
}

.acm-cta:hover {
    background: #c0392b;
}

.acm-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.acm-card.active .acm-details {
     max-height: 1000px;
  padding: 15px;
}

.acm-card.active::after {
    content: 'Clique para fechar';
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #c0392b;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
}

.acm-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e67e22;
    color: #fff;
    font-size: 0.75em;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

.acm-card::after {
    content: 'Clique para mais';
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #555;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.acm-card:hover::after {
    opacity: 1;
}

.acm-filters select {
    appearance: none; /* Remove estilo nativo */
    -webkit-appearance: none; /* Safari/iOS */
    -moz-appearance: none; /* Firefox */
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    background: #fff url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><polygon points="0,0 10,0 5,6" style="fill:%23777;"/></svg>') no-repeat right 10px center;
    background-size: 10px 6px;
}


/* RESPONSIVO */
@media (max-width: 767px) {
    .acm-card-inner {
        flex-direction: column;
    }

    .acm-card-image {
        width: 100%;
        padding-top: 100%; /* Isso força o quadrado: altura = largura */
        position: relative;
    }

    .acm-card-image img {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       object-fit: cover;
    }

    .acm-card-price-cta {
        align-items: stretch;
        text-align: center;
    }

    .acm-cta {
        width: 100%;
        padding: 12px;
        font-size: 1em;
    }

    .acm-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .acm-card-info h2 {
        font-size: 1.1em;
    }

    .acm-price {
        font-size: 1.1em;
    }
}
