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

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

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

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

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

/* ── Header ──────────────────────────────────────────────── */
.pc4-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.pc4-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}
.pc4-nav { display: flex; gap: 8px; }
.pc4-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all .2s;
    flex-shrink: 0;
    color: #555;
}
.pc4-prev-btn { border: 1px solid #d1d5db; }
.pc4-prev-btn:hover { border-color: #aaa; }
.pc4-next-btn { border: 2px solid #22c55e; color: #22c55e; }
.pc4-next-btn:hover { background: #f0fdf4; }
.pc4-nav-btn i { font-size: 15px; line-height: 1; }

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

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

/* Image */
.pc4-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
}
.pc4-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.pc4-card:hover .pc4-img-box img { transform: translateZ(0) scale(1.04); }

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

/* Body */
.pc4-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.pc4-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    text-decoration: none;
}
.pc4-name:hover { color: #22c55e; }

/* Price row */
.pc4-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.pc4-prices { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pc4-sale {
    font-size: 15px;
    font-weight: 700;
    color: #22c55e;
}
.pc4-sale .woocommerce-Price-amount,
.pc4-sale bdi { color: inherit !important; font-weight: inherit !important; font-size: inherit !important; }
.pc4-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}
.pc4-old .woocommerce-Price-amount,
.pc4-old bdi { color: inherit !important; font-size: inherit !important; }

/* Cart button */
.pc4-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    flex-shrink: 0;
    transition: filter .2s;
    text-decoration: none;
}
.pc4-cart-btn:hover { filter: brightness(.88); color: #fff !important; }
.pc4-cart-btn i { font-size: 17px; line-height: 1; }

/* Cart button with text */
.pc4-cart-btn--text {
    width: auto;
    height: auto;
    border-radius: 20px;
    padding: 8px 14px;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
}
.pc4-cart-btn--text i { font-size: 15px; }

/* View cart after add */
.pc4-card .added_to_cart {
    display: flex !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.2;
}

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

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .pc4-card { flex: 0 0 calc(33.333% - 11px); }
}
@media (max-width: 640px) {
    .pc4-card { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 480px) {
    .pc4-card { flex: 0 0 calc(50% - 8px); }
    .pc4-cart-btn--text {
        padding-top: 7px;
        padding-bottom: 7px;
    }
}
