/* ============================================================
   Ah Product Section — Product Card 5 (Slider)
   ============================================================ */

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

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

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

.pc5-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) {
    .pc5-container { padding: 0 5px 24px; }
}

/* Header */
.pc5-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
}
.pc5-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.pc5-nav { display: flex; gap: 8px; align-items: center; padding-top: 4px; }
.pc5-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    transition: all .2s;
}
.pc5-nav-btn:hover { border-color: #888; color: #111; }
.pc5-nav-btn i { font-size: 14px; line-height: 1; }

/* Slider */
.pc5-slider-wrap { overflow: hidden; min-width: 0; }
.pc5-track {
    display: flex;
    gap: 20px;
    transition: transform .35s ease;
    align-items: stretch;
    min-width: 0;
}

/* Card */
.pc5-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}
.pc5-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

/* Image area */
.pc5-img-area {
    position: relative;
    background: #fff;
    padding: 3px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pc5-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform .3s;
}
.pc5-card:hover .pc5-img-area img { transform: translateZ(0) scale(1.04); }

/* Badge */
.pc5-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e63b2e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: .2px;
    font-family: inherit;
    z-index: 2;
}

/* Icon row */
.pc5-icon-row {
    display: flex;
    border-top: 1px solid #f0f0f0;
}
.pc5-icon-btn {
    flex: 1;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: color .15s, background .15s;
    text-decoration: none;
}
.pc5-icon-btn:hover { }
.pc5-icon-btn + .pc5-icon-btn { border-left: 1px solid #f0f0f0; }
.pc5-icon-btn i { font-size: 20px; line-height: 1; }

/* Icon button with text */
.pc5-icon-btn--text {
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    padding: 12px 14px;
}
.pc5-icon-btn--text i { font-size: 16px; }

/* View cart state */
.pc5-card .added_to_cart {
    flex: 1;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    border-left: 1px solid #f0f0f0;
    font-family: inherit;
    transition: background .15s;
}
.pc5-card .added_to_cart:hover { }

/* Body */
.pc5-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pc5-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}
.pc5-name:hover { color: #22c55e; }

/* Price */
.pc5-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc5-sale {
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
}
.pc5-sale .woocommerce-Price-amount,
.pc5-sale bdi { color: inherit !important; font-weight: inherit !important; font-size: inherit !important; }
.pc5-old {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}
.pc5-old .woocommerce-Price-amount,
.pc5-old bdi { color: inherit !important; font-size: inherit !important; }

/* Dots */
.pc5-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.pc5-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all .25s;
    flex-shrink: 0;
}
.pc5-dot.active { background: #22c55e; width: 22px; border-radius: 4px; }

/* Responsive */
@media (max-width: 900px) { .pc5-card { flex: 0 0 calc(33.333% - 14px); } }
@media (max-width: 600px) { .pc5-card { flex: 0 0 calc(50% - 10px); } }
@media (max-width: 480px) {
    .pc5-icon-btn--text,
    .pc5-card .added_to_cart {
        padding-top: 7px;
        padding-bottom: 7px;
    }
}
@media (max-width: 400px) { .pc5-card { flex: 0 0 100%; } }
