/* ========================================
   PLM Product Card — Frontend Styles
   ======================================== */

/* === Base Card === */
.plm-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin: 24px auto;
    max-width: 640px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    transition: box-shadow .2s;
}

.plm-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}

/* === Standard Layout === */
.plm-card__inner {
    display: flex;
    flex-direction: column;
}

.plm-card__image-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    padding: 20px;
    box-sizing: border-box;
}

.plm-card__image {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    border-radius: 6px;
}

.plm-card__body {
    padding: 16px 20px 8px;
    border-top: 1px solid #e2e8f0;
}

.plm-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: #1a202c;
    margin: 0 0 8px;
}

.plm-card__catch {
    font-size: 12px;
    color: #718096;
    margin: 0 0 8px;
    line-height: 1.5;
}

.plm-card__price {
    font-size: 13px;
    color: #4a5568;
    margin: 0 0 4px;
}

.plm-price-label-text {
    font-size: 11px;
    color: #a0aec0;
}

.plm-card__price-num {
    font-size: 18px;
    font-weight: 700;
    color: #e53e3e;
}

.plm-card__price-label {
    font-size: 11px;
    color: #a0aec0;
    margin-left: 2px;
}

/* === Buttons === */
.plm-card__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px 20px;
}

.plm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    min-width: 120px;
    justify-content: center;
    transition: opacity .15s, transform .1s;
    color: #fff !important;
    cursor: pointer;
    border: none;
    line-height: 1.3;
}

.plm-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.plm-btn:active {
    transform: translateY(0);
    opacity: .95;
}

.plm-btn--amazon  { background: linear-gradient(135deg, #FF9900, #e68a00); }
.plm-btn--rakuten { background: linear-gradient(135deg, #BF0000, #a30000); }
.plm-btn--yahoo   { background: linear-gradient(135deg, #FF0033, #cc0029); }
.plm-btn--custom  { /* color set inline */ }

.plm-btn__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: .9;
}

.plm-btn__label {
    font-size: 11px;
    opacity: .85;
}

.plm-btn__text {
    font-size: 13px;
}

/* === Horizontal Layout === */
.plm-card--horizontal .plm-card__inner--horizontal {
    display: flex;
    flex-direction: row;
}

.plm-card--horizontal .plm-card__image-wrap {
    width: 140px;
    min-width: 140px;
    border-top: none;
    border-right: 1px solid #e2e8f0;
    padding: 16px;
}

.plm-card--horizontal .plm-card__image {
    max-width: 110px;
    max-height: 110px;
}

.plm-card--horizontal .plm-card__body {
    border-top: none;
    flex: 1;
}

.plm-card--horizontal .plm-card__buttons {
    padding-top: 4px;
}

.plm-card--horizontal .plm-btn {
    flex: 0 0 auto;
    min-width: auto;
    padding: 8px 14px;
    font-size: 12px;
}

/* === Minimal Layout === */
.plm-card--minimal {
    border-radius: 8px;
}

.plm-card__inner--minimal {
    padding: 14px 16px;
}

.plm-card__minimal-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.plm-card__image--minimal {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.plm-card__minimal-info .plm-card__title {
    font-size: 14px;
    margin-bottom: 4px;
}

.plm-card__buttons--minimal {
    padding: 0;
    gap: 6px;
}

.plm-card--minimal .plm-btn {
    padding: 8px 12px;
    font-size: 12px;
}

/* === Click animation === */
@keyframes plm-click-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(.95); }
    100% { transform: scale(1); }
}

.plm-btn--clicked {
    animation: plm-click-pop .2s ease;
}

/* === Responsive === */
@media (max-width: 480px) {
    .plm-card {
        margin: 16px 0;
        border-radius: 8px;
    }
    .plm-card__buttons {
        flex-direction: column;
    }
    .plm-btn {
        min-width: auto;
    }
    .plm-card--horizontal .plm-card__inner--horizontal {
        flex-direction: column;
    }
    .plm-card--horizontal .plm-card__image-wrap {
        width: 100%;
        min-width: auto;
        border-right: none;
        border-top: none;
        border-bottom: 1px solid #e2e8f0;
    }
}
