/* ==============================================
   Product Display Card – Frontend Styles
   ============================================== */

/* ── Card wrapper ── */
.pdc-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
    margin: 24px 0;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    font-family: inherit;
    box-sizing: border-box;
}

/* ── Image column (left on desktop) ── */
.pdc-image-wrap {
    flex: 0 0 230px;
    max-width: 230px;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: #fafafa;
    border-right: 1px solid #e8e8e8;
    box-sizing: border-box;
}

.pdc-image-wrap a {
    display: block;
    line-height: 0;
}

.pdc-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

/* ── Content column (right on desktop) ── */
.pdc-content {
    flex: 1;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* ── Product Title ── */
.pdc-title {
    font-size: 1.12em !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    color: #1a1a1a !important;
    border: none !important;
}

.pdc-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.pdc-title a:hover {
    color: #e08c10 !important;
    text-decoration: underline !important;
}

/* ── Description ── */
.pdc-description {
    font-size: 0.96em !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
}

/* ── Buttons row ── */
.pdc-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* ── Individual button ── */
.pdc-btn {
    display: inline-block !important;
    background: #f5a623 !important;
    color: #ffffff !important;
    padding: 11px 22px !important;
    border-radius: 7px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.97em !important;
    line-height: 1.3 !important;
    text-align: center !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.35) !important;
    white-space: nowrap;
}

.pdc-btn:hover,
.pdc-btn:focus {
    background: #e09415 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(245, 166, 35, 0.45) !important;
}

.pdc-btn:active {
    transform: translateY(0) !important;
}

/* ==============================================
   MOBILE – stacked layout (≤ 640px)
   ============================================== */
@media screen and (max-width: 640px) {

    .pdc-card {
        flex-direction: column;
        border-radius: 8px;
    }

    /* Image moves to top, full width */
    .pdc-image-wrap {
        flex: none;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        padding: 16px 16px 12px;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        background: #fafafa;
        box-sizing: border-box;
    }

    .pdc-image-wrap img {
        max-height: 260px;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Content below the image */
    .pdc-content {
        padding: 16px 16px 20px;
    }

    .pdc-title {
        font-size: 1.05em !important;
        margin-bottom: 8px !important;
    }

    .pdc-description {
        font-size: 0.93em !important;
        margin-bottom: 16px !important;
    }

    /* Buttons stack vertically, full width */
    .pdc-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .pdc-btn {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 20px !important;
        font-size: 1em !important;
        border-radius: 8px !important;
        white-space: normal;
    }
}

/* Extra small screens */
@media screen and (max-width: 380px) {
    .pdc-content {
        padding: 14px 12px 16px;
    }
}
