/* ======================================================
   PRODUCTOS REALES + SELLER CENTER
   Archivo: /public_html/enebay/public/assets/css/app.css
====================================================== */

/* Productos reales */

.products-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 10px;
    padding: 46px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(124, 92, 255, .26), rgba(0, 212, 255, .12)),
        #11172a;
}

.products-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -1.8px;
    line-height: 1;
}

.products-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.products-filter {
    display: grid;
    grid-template-columns: 1fr 260px 140px auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--border);
}

.products-filter label,
.seller-form label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 900;
}

.products-filter input,
.products-filter select,
.seller-form input,
.seller-form select,
.seller-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #0d1220;
    color: #ffffff;
    padding: 14px 15px;
    border-radius: 14px;
    outline: none;
    font-family: inherit;
}

.products-filter button,
.clear-filter,
.form-actions button {
    border: none;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    cursor: pointer;
    text-align: center;
}

.clear-filter {
    background: rgba(255,255,255,.08);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #b7c1d8;
    font-size: 12px;
    margin-bottom: 10px;
}

.seller-line {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

.product-cover img,
.product-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-state {
    padding: 44px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    text-align: center;
}

.empty-state p {
    color: var(--muted);
}

.product-detail {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto;
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 28px;
}

.product-detail-cover {
    min-height: 520px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #202a46, #11172a);
}

.product-detail-placeholder {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: grid;
    place-items: center;
    font-size: 54px;
    font-weight: 1000;
    color: rgba(255,255,255,.75);
}

.product-detail-info {
    padding: 34px;
    border-radius: 30px;
    background: var(--card);
    border: 1px solid var(--border);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #dce5ff;
    font-weight: 800;
    font-size: 13px;
}

.product-detail-info h1 {
    margin: 20px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -1.8px;
}

.detail-short {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.detail-price-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.detail-price-box > div,
.seller-box,
.description-box {
    padding: 22px;
    border-radius: 22px;
    background: #0d1220;
    border: 1px solid var(--border);
}

.detail-price-box small {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.detail-price-box strong {
    font-size: 30px;
    color: var(--primary-2);
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.seller-box p,
.description-box p {
    color: var(--muted);
    line-height: 1.7;
}

/* Seller Center */

.muted {
    color: var(--muted);
}

.seller-hero {
    padding: 38px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(124, 92, 255, .28), rgba(0, 212, 255, .12)),
        #11172a;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.seller-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -1.8px;
}

.seller-hero p {
    color: var(--muted);
    margin: 0;
}

.seller-stats,
.seller-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.seller-stat-card {
    padding: 22px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--border);
}

.seller-stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
}

.seller-stat-card strong {
    font-size: 34px;
    color: var(--primary-2);
}

.seller-table-wrap {
    overflow-x: auto;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--card);
}

.seller-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.seller-table th,
.seller-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.seller-table th {
    color: #dce5ff;
    background: rgba(255,255,255,.04);
}

.seller-table td {
    color: #f4f7fb;
}

.seller-table small {
    display: block;
    color: var(--muted);
    margin-top: 5px;
}

.status-pill {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-activo {
    background: rgba(35, 209, 139, .14);
    color: #8effcc;
}

.status-pendiente {
    background: rgba(255, 193, 7, .14);
    color: #ffe08a;
}

.status-rechazado {
    background: rgba(255, 77, 109, .14);
    color: #ff9aae;
}

.status-borrador,
.status-pausado,
.status-agotado {
    background: rgba(255,255,255,.10);
    color: #dce5ff;
}

.seller-form-shell {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 30px;
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
}

.seller-form-head {
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(124, 92, 255, .24), rgba(0, 212, 255, .10)),
        #11172a;
}

.seller-form-head h1 {
    margin: 14px 0 10px;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1;
}

.seller-form-head p {
    color: var(--muted);
    margin: 0;
}

.seller-form {
    padding: 28px;
}

.seller-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.seller-form .full {
    grid-column: 1 / -1;
}

.seller-form textarea {
    resize: vertical;
}

.seller-form input:focus,
.seller-form select:focus,
.seller-form textarea:focus,
.products-filter input:focus,
.products-filter select:focus {
    border-color: var(--primary-2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

/* Responsive extra */

@media (max-width: 980px) {
    .products-filter {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-cover,
    .product-detail-placeholder {
        min-height: 340px;
    }
}

@media (max-width: 900px) {
    .seller-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .seller-stats,
    .seller-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seller-form .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .seller-stats,
    .seller-actions-grid {
        grid-template-columns: 1fr;
    }
}

.table-btn {
    border: none;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
    color: #fff;
    margin: 2px;
}

.table-btn.ok {
    background: rgba(35, 209, 139, .22);
    color: #8effcc;
}

.table-btn.danger {
    background: rgba(255, 77, 109, .22);
    color: #ff9aae;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.mini-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-product img,
.mini-product-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    flex: 0 0 58px;
}

.mini-product-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
}

.media-gallery {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.media-gallery img,
.media-gallery video {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #0d1220;
}

.table-link {
    color: var(--primary-2);
    font-weight: 900;
}

.inline-admin-form {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
    min-width: 190px;
}

.inline-admin-form input {
    width: 100%;
    border: 1px solid var(--border);
    background: #0d1220;
    color: #fff;
    padding: 9px 10px;
    border-radius: 10px;
    outline: none;
}

.payment-box {
    padding: 20px;
    border-radius: 18px;
    background: #0d1220;
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

.payment-box h3 {
    margin: 0 0 10px;
}

.payment-box p {
    color: var(--muted);
    line-height: 1.6;
}

.payment-box pre {
    white-space: pre-wrap;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    color: #fff;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.payment-box {
    padding: 20px;
    border-radius: 18px;
    background: #0d1220;
    border: 1px solid var(--border);
}

.payment-box h3 {
    margin: 0 0 10px;
    color: #fff;
}

.payment-box p {
    color: var(--muted);
    line-height: 1.6;
}

.payment-box pre {
    white-space: pre-wrap;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    color: #fff;
    overflow-x: auto;
}

@media (max-width: 800px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

.table-input,
.table-textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #0d1220;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    outline: none;
}

.table-textarea {
    min-width: 260px;
    min-height: 90px;
    resize: vertical;
}

.table-link {
    color: var(--primary-2);
    font-weight: 900;
}

.inline-admin-form {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
    min-width: 190px;
}

.inline-admin-form input,
.table-input,
.table-textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #0d1220;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    outline: none;
}

.table-textarea {
    min-width: 260px;
    min-height: 90px;
    resize: vertical;
}

/* =========================================================
   ENEBAY - PRODUCT MEDIA / GIF / GAMEPLAY
========================================================= */

.products-page,
.product-show-page {
    width: min(1250px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 80px;
}

.product-filter-card {
    display: grid;
    grid-template-columns: 1fr 280px 150px;
    gap: 14px;
    align-items: end;
    padding: 22px;
    border-radius: 24px;
    background: rgba(25, 32, 54, .95);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
    margin-bottom: 42px;
}

.product-filter-card .field {
    display: grid;
    gap: 8px;
}

.product-filter-card label {
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
}

.product-filter-card input,
.product-filter-card select {
    width: 100%;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: #0d1220;
    color: #ffffff;
    border-radius: 14px;
    padding: 0 16px;
    outline: none;
}

.product-filter-card input::placeholder {
    color: rgba(202, 213, 231, .55);
}

.product-filter-card button,
.btn-add-cart,
.product-buy-form button {
    height: 54px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #745cff, #14c8f4);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}

.product-filter-card button:hover,
.btn-add-cart:hover,
.product-buy-form button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.products-head h1 {
    color: #ffffff;
    font-size: clamp(26px, 3vw, 36px);
    margin: 0;
}

.products-head span {
    color: #ffffff;
    font-size: 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    overflow: hidden;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(28, 31, 45, .98), rgba(18, 20, 31, .98));
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.product-card-body {
    padding-top: 16px;
}

.product-card h2 {
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 10px;
}

.product-card p {
    color: #b8c9e8;
    line-height: 1.45;
    min-height: 42px;
    margin: 0 0 22px;
}

.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.product-meta-row strong {
    color: #ffffff;
    font-size: 17px;
}

.product-meta-row a {
    color: #00f0c8;
    font-weight: 900;
    text-decoration: none;
}

.btn-add-cart {
    width: 100%;
}

/* Slider */

.product-media-slider {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #2366a8, #13c7b7);
}

.product-detail-media {
    height: 330px;
    max-width: 1100px;
    margin: 0 auto 32px;
    border-radius: 0 0 34px 34px;
}

.product-media-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .45s ease, transform .45s ease;
    background: #101827;
}

.product-media-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.product-media-slide img,
.product-media-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #101827;
}

.product-media-slide.media-error {
    display: none;
}

.product-media-empty {
    width: 100%;
    height: 100%;
    min-height: 170px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #2366a8, #13c7b7);
}

.media-play-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .16);
}

/* Detalle producto */

.product-detail-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px;
    border-radius: 30px;
    background: rgba(25, 32, 54, .96);
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .26);
}

.product-category-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.product-category-line span:last-child {
    color: #ffffff;
    font-weight: 900;
    background: rgba(124, 136, 255, .22);
    padding: 8px 12px;
    border-radius: 999px;
}

.category-dot {
    width: 26px;
    height: 26px;
    display: inline-block;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.product-detail-card h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 58px);
    margin: 0 0 14px;
}

.product-description {
    color: #bfd0ee;
    line-height: 1.7;
    margin-bottom: 28px;
}

.product-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-box {
    padding: 22px;
    border-radius: 22px;
    background: #0d1220;
    border: 1px solid rgba(255, 255, 255, .07);
}

.info-box span {
    display: block;
    color: #bfd0ee;
    margin-bottom: 12px;
}

.info-box strong {
    color: #00d8ff;
    font-size: 34px;
}

.product-buy-form {
    margin-bottom: 28px;
}

.product-buy-form label {
    display: block;
    color: #bfd0ee;
    font-weight: 900;
    margin-bottom: 10px;
}

.buy-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.buy-actions input {
    width: 110px;
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0d1220;
    color: #ffffff;
    padding: 0 16px;
}

.product-buy-form button {
    padding: 0 24px;
}

.product-buy-form button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.btn-back {
    height: 54px;
    display: inline-flex;
    align-items: center;
    padding: 0 22px;
    border-radius: 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
}

.seller-box {
    padding: 24px;
    border-radius: 24px;
    background: #0d1220;
    border: 1px solid rgba(255, 255, 255, .07);
}

.seller-box h2 {
    color: #ffffff;
    margin: 0 0 14px;
}

.seller-box p {
    color: #bfd0ee;
    margin: 0 0 8px;
}

.seller-rating {
    color: #9fb1d1;
}

.empty-products {
    padding: 34px;
    border-radius: 24px;
    background: rgba(25, 32, 54, .96);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #ffffff;
}

/* Campos multimedia en admin/vendedor */

.product-media-fields {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.media-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: center;
}

.media-field-row input {
    width: 100%;
}

.media-add-btn,
.media-remove-btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 900;
    cursor: pointer;
}

.media-add-btn {
    background: linear-gradient(135deg, #745cff, #14c8f4);
    color: #ffffff;
}

.media-remove-btn {
    background: rgba(255, 76, 112, .16);
    color: #ff7d98;
    border: 1px solid rgba(255, 76, 112, .28);
}

@media (max-width: 980px) {
    .product-filter-card {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-info-grid {
        grid-template-columns: 1fr;
    }

    .media-field-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .products-page,
    .product-show-page {
        width: min(100% - 22px, 1250px);
        padding-top: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-media-slider {
        height: 155px;
    }

    .product-detail-media {
        height: 230px;
        border-radius: 0 0 24px 24px;
    }

    .product-detail-card {
        padding: 22px;
        border-radius: 24px;
    }

    .buy-actions {
        align-items: stretch;
    }

    .buy-actions input,
    .product-buy-form button,
    .btn-back {
        width: 100%;
    }
}