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

.ahp2-wrap {
    padding: 32px 65px 24px;
    font-family: inherit;
}
@media (max-width: 768px) {
    .ahp2-wrap { padding: 0px 0px 24px; }
}

/* ── Section header ──────────────────────────────────────── */
.ahp2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.ahp2-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: inherit;
}
.ahp2-underline {
    height: 3px;
    width: 40px;
    background: #D4700A;
    border-radius: 2px;
    margin-top: 5px;
}
.ahp2-view-all {
    font-size: 13px;
    font-weight: 600;
    color: #D4700A;
    text-decoration: none;
    white-space: nowrap;
}
.ahp2-view-all:hover { opacity: .8; }

/* ── Grid ────────────────────────────────────────────────── */
.ahp2-grid {
    display: grid;
    grid-template-columns: repeat( var(--ahp2-cols, 5), 1fr );
    gap: 14px;
}

/* ── Card ────────────────────────────────────────────────── */
.ahp2-card {
    background: #ffffff;
    border: 0.5px solid #e8e8e0;
    border-radius: 12px;
    padding: 2px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .2s;
}
.ahp2-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

/* Image */
.ahp2-img-wrap {
    position: relative;
    background: #f9f7f4;
    border-radius: 8px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}
.ahp2-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform .3s;
}
.ahp2-card:hover .ahp2-img-wrap img {
    transform: translateZ(0) scale(1.05);
}

/* Badge — top right, green */
.ahp2-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #22C55E;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 5px;
    font-family: inherit;
}

/* Info */
.ahp2-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ahp2-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ahp2-name:hover { color: #D4700A; }

.ahp2-price-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.ahp2-price-now {
    font-size: 15px;
    font-weight: 700;
    color: #D4700A;
}
.ahp2-price-now .woocommerce-Price-amount,
.ahp2-price-now bdi { color: inherit !important; font-size: inherit !important; font-weight: inherit !important; }

.ahp2-price-old {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
}
.ahp2-price-old .woocommerce-Price-amount,
.ahp2-price-old bdi { color: inherit !important; font-size: inherit !important; }

/* Button — outline style */
.ahp2-add-btn {
    width: 100%;
    border: 1px solid #D4700A;
    background: transparent;
    color: #D4700A;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: inherit;
    text-decoration: none;
    transition: background .15s, color .15s;
    box-sizing: border-box;
}
.ahp2-add-btn:hover {
    color: #fff !important;
}

/* View cart after add */
.ahp2-card .added_to_cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 0;
    border-radius: 8px;
    text-decoration: none !important;
    font-family: inherit;
    box-sizing: border-box;
    transition: filter .15s;
}
.ahp2-card .added_to_cart:hover { filter: brightness(.9); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ahp2-grid { grid-template-columns: repeat( min( var(--ahp2-cols, 5), 3 ), 1fr ); }
}
@media (max-width: 768px) {
    .ahp2-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ahp2-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
