/* ============================================================
   Ah Product Section — Product Card 3
   ============================================================ */

.elementor-widget-ah_product_card_3 {
    flex-shrink: 0 !important;
    height: auto !important;
    min-width: 0;
}

.elementor-widget-ah_product_card_3 > .elementor-widget-container {
    height: auto !important;
    min-width: 0;
}

.at3-section {
    padding: 10px 0;
    background: #fff;
    width: 100%;
}

.at3-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 65px 24px;
    font-family: inherit;
    box-sizing: border-box;
    min-width: 0;
}
@media (max-width: 768px) {
    .at3-container { padding: 0 5px 24px; }
}

/* Heading */
.at3-heading {
    display: flex;
    justify-content: center;
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Grid */
.at3-grid {
    display: grid;
    grid-template-columns: repeat( var(--at3-cols, 4), minmax(0, 1fr) );
    gap: 20px;
    width: 100%;
    min-width: 0;
}

/* Card */
.at3-product-card {
    background: #fff;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.at3-product-card:hover {
    transform: translateY(-5px);
}

/* Badge */
.at3-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #FEFF90;
    padding: 5px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
    color: #111;
    font-family: inherit;
}

/* Image */
.at3-product-image {
    position: relative;
}
.at3-product-card img {
    width: 100%;
    height: 300px;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Info */
.at3-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
    gap: 8px;
    flex: 1;
}
.at3-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-top: 7px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
    text-decoration: none;
    display: block;
}
.at3-title:hover { color: #555; }

/* Price */
.at3-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    flex-wrap: wrap;
}
.at3-sell-price {
    font-size: 16px;
    color: #111;
    font-weight: 600;
}
.at3-sell-price .woocommerce-Price-amount,
.at3-sell-price bdi { color: inherit !important; font-size: inherit !important; font-weight: inherit !important; }

.at3-regular-price {
    font-size: 16px;
    color: #e83a3a;
    text-decoration: line-through;
}
.at3-regular-price .woocommerce-Price-amount,
.at3-regular-price bdi { color: inherit !important; font-size: inherit !important; }

/* Button */
.at3-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}
.at3-cart {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s ease, color .3s ease;
    display: inline-block;
    text-decoration: none;
    font-family: inherit;
}
.at3-cart:hover {
    color: #fff !important;
}

/* View Cart state */
.at3-cart-view {
    border: 1px solid currentColor;
}
.at3-cart-view:hover {
    color: #fff !important;
}

/* WooCommerce added_to_cart link — pill style, centered */
.at3-btn .added_to_cart,
.at3-product-card .added_to_cart {
    display: inline-block !important;
    padding: 10px 20px;
    border: 1px solid currentColor;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    font-family: inherit;
    transition: background .3s ease, color .3s ease;
}
.at3-btn .added_to_cart:hover,
.at3-product-card .added_to_cart:hover {
    color: #fff !important;
}

/* Out of stock */
.at3-disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
    .at3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 575px) {
    .at3-grid { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .at3-heading { font-size: 24px; }
    .at3-cart,
    .at3-btn .added_to_cart,
    .at3-product-card .added_to_cart {
        padding-top: 7px;
        padding-bottom: 7px;
    }
}
