/* =====================================================
   GATÓFONO PRODUCTS — products.css
   Estilos del plugin para cards, tablas y shortcodes.
   ===================================================== */

/* ---- PRODUCT CARD (shortcode) ---- */
.gatofono-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(123,45,139,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.gatofono-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(123,45,139,0.16);
}

/* Image */
.gatofono-product-card__image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #FFF8F0, #FFE4D0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gatofono-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gatofono-product-card:hover .gatofono-product-card__image {
    transform: scale(1.05);
}

.gatofono-product-card__image-placeholder {
    font-size: 5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.gatofono-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FF6B35, #7B2D8B);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

/* Body */
.gatofono-product-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.gatofono-product-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A2E;
    line-height: 1.3;
    margin: 0;
}

.gatofono-product-card__ideal {
    font-size: 0.8rem;
    color: #8A8AA8;
    margin: 0;
}

/* Pros list */
.gatofono-product-card__pros {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gatofono-product-card__pros li {
    font-size: 0.8rem;
    color: #2ECC71;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

/* Footer */
.gatofono-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: auto;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gatofono-product-card__pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gatofono-product-card__old-price {
    font-size: 0.8rem;
    color: #8A8AA8;
}

.gatofono-product-card__price {
    font-size: 1.35rem;
    font-weight: 900;
    color: #FF6B35;
}

.gatofono-product-card__price-dynamic {
    font-size: 0.875rem;
    color: #8A8AA8;
    font-weight: 600;
}

/* Horizontal layout */
.gatofono-product-card--horizontal {
    flex-direction: row;
}

.gatofono-product-card--horizontal .gatofono-product-card__image-wrapper,
.gatofono-product-card--horizontal .gatofono-product-card__image {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    aspect-ratio: unset;
}

@media (max-width: 480px) {
    .gatofono-product-card--horizontal {
        flex-direction: column;
    }
    .gatofono-product-card--horizontal .gatofono-product-card__image-wrapper,
    .gatofono-product-card--horizontal .gatofono-product-card__image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

/* Minimal layout */
.gatofono-product-card--minimal {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    gap: 0.75rem;
}

.gatofono-product-card__name-min {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A1A2E;
}

.gatofono-product-card__price-min {
    font-size: 0.875rem;
    font-weight: 700;
    color: #FF6B35;
    white-space: nowrap;
}

/* ---- PRODUCTS GRID ---- */
.gatofono-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ---- TOP PRODUCTS WRAPPER ---- */
.gatofono-top-products__title {
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FF6B35, #7B2D8B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- PROS / CONS GRID ---- */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (max-width: 600px) {
    .pros-cons-grid { grid-template-columns: 1fr; }
}

.pros-cons-box {
    border-radius: 16px;
    padding: 1.25rem;
}

.pros-cons-box--pros {
    background: rgba(46,204,113,0.07);
    border: 1px solid rgba(46,204,113,0.2);
}

.pros-cons-box--contras {
    background: rgba(231,76,60,0.07);
    border: 1px solid rgba(231,76,60,0.2);
}

.pros-cons-box__title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
}

.pros-cons-box--pros .pros-cons-box__title { color: #2ECC71; border-color: rgba(46,204,113,0.3); }
.pros-cons-box--contras .pros-cons-box__title { color: #E74C3C; border-color: rgba(231,76,60,0.3); }

.pros-cons-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pros-cons-box--pros li { color: #1E8449; font-size: 0.875rem; }
.pros-cons-box--contras li { color: #C0392B; font-size: 0.875rem; }

/* ---- AMAZON BUTTON GLOBAL ---- */
.btn--amazon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FF9900, #FF6B00);
    color: #111 !important;
    font-weight: 900;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9375rem;
    box-shadow: 0 6px 20px rgba(255,153,0,0.3);
    transition: all 0.25s ease;
    animation: pulse-amazon 2.5s infinite;
    white-space: nowrap;
}

.btn--amazon.btn--sm {
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
}

.btn--amazon.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn--amazon:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 32px rgba(255,153,0,0.45);
    color: #111 !important;
    animation: none;
}

@keyframes pulse-amazon {
    0%, 100% { box-shadow: 0 6px 20px rgba(255,153,0,0.3); }
    50%       { box-shadow: 0 6px 36px rgba(255,153,0,0.55); }
}

/* ---- COMPARISON TABLE ---- */
.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
    min-width: 600px;
}

.comparison-table thead {
    background: linear-gradient(135deg, #FF6B35, #7B2D8B);
    color: white;
}

.comparison-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: white;
}

.comparison-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.15s ease;
}

.comparison-table tbody tr:last-child { border-bottom: none; }

.comparison-table tbody tr:hover { background: rgba(255,107,53,0.03); }

.comparison-table tbody td {
    padding: 0.875rem 1.25rem;
    vertical-align: middle;
}

.comparison-table__row--winner {
    background: linear-gradient(90deg, rgba(255,215,0,0.07), transparent) !important;
}

.comparison-table__row--winner td:first-child {
    border-left: 4px solid #FFD700;
}

/* Rank badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.3rem 0.625rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.rank-badge--1 { background: linear-gradient(135deg,#FFD700,#FFA500); color: #5a3000; }
.rank-badge--2 { background: linear-gradient(135deg,#C0C0C0,#A0A0A0); color: #333; }
.rank-badge--3 { background: linear-gradient(135deg,#CD7F32,#A0522D); color: white; }
.rank-badge--4, .rank-badge--5, .rank-badge--6,
.rank-badge--7, .rank-badge--8 { background: #f0f0f0; color: #666; }

/* Stars */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #FFD700;
    font-size: 0.875rem;
}

.stars__count {
    font-size: 0.75rem;
    color: #8A8AA8;
    margin-left: 4px;
    font-weight: 600;
}

.price-tag {
    color: #FF6B35;
    font-size: 1.0625rem;
    font-weight: 900;
}
