/* GAMEVO Product Detail Page Styles */

.product-detail-page {
    position: relative;
    isolation: isolate;
    padding: 2.2rem 0 4rem;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 255, 213, 0.11), transparent 22rem),
        radial-gradient(circle at 88% 12%, rgba(0, 255, 159, 0.08), transparent 20rem),
        linear-gradient(180deg, #020706 0%, #050b0d 48%, #020706 100%);
}

.product-detail-page::before,
.product-detail-page::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.product-detail-page::before {
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(0, 255, 213, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 213, 0.08) 1px, transparent 1px),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 18px);
    background-size: 42px 42px, 42px 42px, auto;
    mask-image: linear-gradient(180deg, black, rgba(0, 0, 0, 0.58), transparent 96%);
}

.product-detail-page::after {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 18rem),
        linear-gradient(135deg, transparent 0 48%, rgba(0, 255, 213, 0.025) 49%, transparent 50%);
    background-size: auto, 20px 20px;
    opacity: 0.46;
}

.product-detail-container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 1.4rem;
    align-items: start;
    margin-bottom: 1.4rem;
}

.product-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.028), transparent 20%),
        rgba(5, 13, 14, 0.88);
    border: 1px solid rgba(0, 255, 213, 0.14);
    border-radius: 22px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 18px 42px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 255, 213, 0.045), transparent 32%),
        radial-gradient(circle at top right, rgba(0, 255, 213, 0.08), transparent 12rem);
    pointer-events: none;
}

.product-gallery,
.product-summary {
    padding: 1.4rem;
}

.product-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.badge-pill,
.rating-pill,
.stock-pill,
.delivery-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.76rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(0, 255, 213, 0.18);
    background: rgba(0, 255, 213, 0.06);
    color: var(--text-primary);
}

.product-title {
    color: var(--text-primary);
    font-size: clamp(1.7rem, 2.1vw, 2.2rem);
    line-height: 1.05;
    margin-bottom: 0.55rem;
}

.product-game {
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-price {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.85rem;
    text-shadow: 0 0 18px rgba(0, 255, 213, 0.14);
}

.price-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.product-stock {
    margin-bottom: 1.2rem;
}

.product-stock p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(180deg, rgba(0,255,213,0.08), transparent 70%),
        rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 255, 213, 0.18);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    place-items: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 14px 28px rgba(0, 0, 0, 0.2);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.product-image-frame:hover {
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.26),
        0 0 24px rgba(0, 255, 213, 0.14),
        inset 0 0 26px rgba(0, 255, 213, 0.035);
    transform: translateY(-2px);
}

.product-image-frame img,
.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform var(--transition-normal), opacity 0.3s ease;
    opacity: 1;
}

.product-image-frame:hover img,
.product-image-frame:hover .main-product-image {
    transform: scale(1.02);
}

.thumbnail-list {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.thumbnail-item {
    width: 72px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 213, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
        rgba(0, 0, 0, 0.18);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.thumbnail-item:hover {
    border-color: rgba(0, 255, 213, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.15);
    transform: translateY(-2px);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.thumbnail-item:hover .thumbnail-image {
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.18);
    background: rgba(0, 255, 213, 0.08);
}

.thumbnail-item.active .thumbnail-image {
    transform: scale(1);
}

.product-summary .section-title {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.8rem;
}

.product-summary .hero-title {
    margin-top: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.feature-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    padding: 0.78rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(0, 255, 213, 0.11);
    color: var(--text-secondary);
    font-size: 0.95rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.feature-pill strong {
    color: var(--text-primary);
}

.order-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
        rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 255, 213, 0.14);
    border-radius: 18px;
    padding: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.order-panel h3 {
    margin: 0 0 1.1rem;
    color: var(--text-primary);
}

.order-panel .message {
    margin-bottom: 1rem;
    padding: 1rem 1rem;
    border-radius: 16px;
    font-weight: 600;
}

.order-panel .message-success {
    background: rgba(0, 255, 159, 0.12);
    border: 1px solid rgba(0, 255, 159, 0.22);
    color: #b8ffde;
}

.order-panel .message-error {
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid rgba(255, 77, 109, 0.23);
    color: #ffb3c0;
}

.order-row {
    display: grid;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    max-width: 320px;
    margin-bottom: 0.75rem;
}

.qty-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 213, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.4rem;
}

.qty-input {
    width: 100%;
    min-width: 80px;
    border: 1px solid rgba(0, 255, 213, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    padding: 0.76rem 0.9rem;
    text-align: center;
}

.order-panel label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.radio-label input[type="radio"] {
    margin: 0;
}

.order-panel .input {
    width: 100%;
    margin-bottom: 1rem;
}

.subtotal-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.82rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 213, 0.12);
    background:
        linear-gradient(180deg, rgba(0, 255, 213, 0.05), rgba(0, 255, 213, 0.02));
    margin-bottom: 1rem;
}

.subtotal-box span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.order-actions {
    display: grid;
    gap: 1rem;
}

.btn-order-primary {
    width: 100%;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 255, 213, 0.12);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.action-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.82rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 213, 0.15);
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-normal);
}

.action-buttons a:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
    background: rgba(0, 255, 213, 0.08);
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.detail-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
        rgba(5, 13, 14, 0.84);
    border: 1px solid rgba(0, 255, 213, 0.12);
    border-radius: 18px;
    padding: 1.3rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 14px 28px rgba(0, 0, 0, 0.16);
}

.detail-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.detail-card p,
.detail-card li {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.96rem;
}

.detail-card ul {
    padding-left: 1.2rem;
    margin: 0;
    list-style: disc;
}

.detail-card ul li {
    margin-bottom: 0.8rem;
}

.detail-card .highlight {
    margin-top: 1rem;
    padding: 0.82rem;
    border-radius: 14px;
    background: rgba(0, 255, 213, 0.06);
    border: 1px solid rgba(0, 255, 213, 0.12);
    color: var(--text-primary);
}

@media (max-width: 980px) {
    .product-detail-grid,
    .product-details-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .thumbnail-list {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .product-detail-container {
        padding: 0 1rem;
    }

    .product-summary,
    .product-gallery,
    .detail-card {
        padding: 1.1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .product-image-frame {
        aspect-ratio: 1 / 1;
    }

    .thumbnail-list {
        gap: 0.6rem;
        margin-top: 1rem;
        justify-content: flex-start;
    }

    .thumbnail-item {
        width: 66px;
    }
}

@media (max-width: 480px) {
    .product-gallery {
        padding: 1rem;
    }

    .thumbnail-list {
        gap: 0.5rem;
        margin-top: 0.8rem;
    }

    .thumbnail-item {
        width: 60px;
    }

    .product-image-frame {
        border-radius: 18px;
    }
}

/* Success Page Styles */
.success-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.success-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(0, 255, 213, 0.12);
    border-radius: 24px;
    box-shadow: 0 20px 80px rgba(0, 255, 213, 0.06);
    padding: 2.5rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.success-icon {
    font-size: 4rem;
    color: #00ff9f;
    margin-bottom: 1.5rem;
}

.success-card h1 {
    color: var(--text-primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.success-message {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.order-details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 213, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 255, 213, 0.06);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-row .value {
    color: var(--text-primary);
    font-weight: 700;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.status-pending {
    color: #ffa500;
}

.next-steps {
    text-align: left;
}

.next-steps h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.next-steps p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-buttons {
    margin-bottom: 1.5rem;
}

.contact-buttons .btn-primary {
    width: 100%;
    margin-bottom: 0.75rem;
}

.additional-actions {
    display: flex;
    gap: 1rem;
}

.additional-actions .btn-secondary {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 255, 213, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.additional-actions .btn-secondary:hover {
    background: rgba(0, 255, 213, 0.08);
    border-color: rgba(0, 255, 213, 0.25);
}

.contact-note {
    margin-top: 10px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

.contact-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 480px) {
    .detail-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .detail-row .value {
        text-align: left;
    }
}
