/* 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;
    grid-template-rows: auto auto auto;
    column-gap: 1.4rem;
    row-gap: 0.85rem;
    align-items: start;
    margin-bottom: 1.4rem;
}

/* Order success receipt redesign */

.order-instruction-card {
    display: flex;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 255, 213, 0.3);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 255, 213, 0.1), rgba(0, 153, 255, 0.055));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 34px rgba(0, 255, 213, 0.06);
    text-align: left;
}

.order-instruction-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 255, 213, 0.12);
    color: #00ffd5;
}

.order-instruction-card h2 { margin: 0 0 0.45rem; color: var(--text-primary); font-size: 1.05rem; }
.order-instruction-card p { margin: 0; color: var(--text-secondary); font-size: 0.94rem; line-height: 1.65; }

.receipt-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(0, 255, 213, 0.14);
}

.receipt-heading h2 { margin: 0; color: var(--text-primary); font-size: 1.1rem; }
.receipt-heading span { color: var(--text-secondary); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.order-id-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    text-align: right;
}
.order-id-value .value { flex: 0 1 auto; }
.copy-order-icon {
    display: inline-grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(0, 255, 213, 0.28);
    border-radius: 10px;
    background: rgba(0, 255, 213, 0.075);
    color: #00ffd5;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.copy-order-icon:hover { transform: translateY(-1px); border-color: #00ffd5; background: rgba(0, 255, 213, 0.14); }
.copy-order-icon:focus-visible { outline: 2px solid #00ffd5; outline-offset: 3px; }
.copy-order-feedback { color: #00ff9f; font-size: 0.78rem; font-weight: 700; }
.copy-order-feedback:empty { display: none; }
.receipt-total { color: #00ff9f !important; font-size: 1.08rem; }

.order-chat-cta { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(0, 255, 213, 0.12); }
.order-chat-cta p { margin: 0 0 0.85rem; color: var(--text-secondary); font-size: 0.9rem; }
.order-chat-cta .btn-chat-admin { width: 100%; min-height: 50px; gap: 0.6rem; background: linear-gradient(135deg, rgba(0, 245, 255, 0.19), rgba(0, 255, 153, 0.15)); }

@media (max-width: 480px) {
    .order-instruction-card { padding: 1rem; }
    .order-id-value { justify-content: flex-start; flex-wrap: wrap; }
    .additional-actions { flex-direction: column; }
}

.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-gallery {
    grid-column: 1;
    grid-row: 1;
}

.product-summary {
    grid-column: 2;
    grid-row: 1 / 4;
}

.product-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.gallery-meta {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.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);
}

.gallery-meta .badge-pill,
.gallery-meta .rating-pill {
    min-width: 0;
    max-width: 100%;
    padding: 0.34rem 0.62rem;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-meta-primary .badge-pill {
    color: var(--primary);
}

.gallery-meta-primary .rating-pill {
    color: #ffc107;
}

.gallery-meta-subcategories {
    align-content: flex-start;
}

.gallery-meta-subcategories .badge-pill {
    flex: 0 1 auto;
    max-width: calc(50% - 0.25rem);
    color: var(--text-primary);
}

.gallery-meta-subcategories .badge-more {
    flex: 0 0 auto;
    color: var(--primary);
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

.gallery-meta-subcategories .badge-more:hover,
.gallery-meta-subcategories .badge-more:focus-visible {
    border-color: rgba(0, 255, 213, 0.42);
    background: rgba(0, 255, 213, 0.13);
}

.gallery-meta-subcategories .badge-more:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.hidden-subcategories {
    display: contents;
}

.hidden-subcategories[hidden],
.subcategory-expand[hidden] {
    display: none;
}

.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);
}

.product-image-frame:has(.thumbnail-list) img,
.product-image-frame:has(.thumbnail-list) .main-product-image {
    padding-bottom: 5.6rem;
}

.thumbnail-list {
    display: flex;
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    gap: 0.55rem;
    max-width: calc(100% - 1.7rem);
    margin-top: 0;
    padding: 0.35rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(0, 255, 213, 0.13);
    border-radius: 14px;
    background: rgba(2, 10, 12, 0.76);
    backdrop-filter: blur(10px);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 213, 0.34) rgba(255, 255, 255, 0.04);
}

.thumbnail-item {
    width: 54px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    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;
}

.checkout-note-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(0, 255, 213, 0.18);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(0, 255, 213, 0.08), rgba(0, 255, 159, 0.035)),
        rgba(4, 15, 18, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.checkout-note-icon {
    display: inline-flex;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(0, 255, 213, 0.28);
    border-radius: 50%;
    color: var(--primary);
    background: rgba(0, 255, 213, 0.08);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.checkout-note-title {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 800;
}

.checkout-note-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.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);
}

.warranty-protection-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: 0.95rem;
    align-items: stretch;
    margin-bottom: 1.4rem;
    padding: 1.05rem;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 213, 0.16);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(0, 255, 213, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 28%),
        rgba(5, 13, 14, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 16px 36px rgba(0, 0, 0, 0.22);
}

.product-detail-grid > .warranty-protection-card {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

.warranty-protection-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 12%, rgba(0, 255, 213, 0.12), transparent 13rem),
        radial-gradient(circle at 92% 74%, rgba(0, 255, 159, 0.08), transparent 15rem);
}

.warranty-protection-heading,
.warranty-feature-list {
    position: relative;
    z-index: 1;
}

.warranty-protection-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0.8rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(0, 255, 213, 0.08);
}

.warranty-kicker {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0.55rem;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(0, 255, 213, 0.16);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(0, 255, 213, 0.055);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.warranty-protection-heading h2 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-size: 1.35rem;
    line-height: 1.16;
}

.warranty-protection-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.warranty-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    min-width: 0;
}

.product-detail-grid > .warranty-protection-card .warranty-feature-list {
    grid-template-columns: 1fr;
}

.product-description-card {
    grid-column: 1;
    grid-row: 3;
}

.warranty-feature {
    display: flex;
    gap: 0.68rem;
    min-width: 0;
    padding: 0.82rem;
    border: 1px solid rgba(0, 255, 213, 0.12);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
        rgba(0, 0, 0, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.warranty-feature-icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 255, 213, 0.2);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(0, 255, 213, 0.1), rgba(0, 255, 159, 0.04));
    color: var(--primary);
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 0 16px rgba(0, 255, 213, 0.08);
}

.warranty-feature-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter:
        drop-shadow(0 0 6px rgba(0, 255, 213, 0.38))
        drop-shadow(0 0 2px rgba(0, 255, 159, 0.28));
}

.warranty-feature h3 {
    margin: 0 0 0.3rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.25;
}

.warranty-feature p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: stretch;
}

.detail-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    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);
}

.seller-notes-card {
    grid-column: 1 / -1;
}

.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;
    overflow-wrap: anywhere;
}

.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: auto;
    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;
    }

    .product-detail-grid {
        row-gap: 1rem;
    }

    .product-gallery,
    .product-summary,
    .product-detail-grid > .warranty-protection-card,
    .product-description-card {
        grid-column: 1;
        grid-row: auto;
    }

    .product-gallery {
        order: 1;
    }

    .product-summary {
        order: 2;
    }

    .product-detail-grid > .warranty-protection-card {
        order: 3;
    }

    .product-description-card {
        order: 4;
    }

    .warranty-feature-list {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .thumbnail-list {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .product-detail-container {
        padding: 0 1rem;
    }

    .product-summary,
    .product-gallery,
    .detail-card,
    .warranty-protection-card {
        padding: 1.1rem;
    }

    .warranty-protection-heading {
        padding: 0.85rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .product-image-frame {
        aspect-ratio: 1 / 1;
    }

    .thumbnail-list {
        gap: 0.6rem;
        right: 0.7rem;
        bottom: 0.7rem;
        left: 0.7rem;
        max-width: calc(100% - 1.4rem);
    }

    .thumbnail-item {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .product-gallery {
        padding: 1rem;
    }

    .warranty-protection-card {
        gap: 0.85rem;
        border-radius: 18px;
    }

    .warranty-protection-heading h2 {
        font-size: 1.18rem;
    }

    .warranty-feature {
        gap: 0.65rem;
        padding: 0.85rem;
    }

    .warranty-feature-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .warranty-feature-icon svg {
        width: 18px;
        height: 18px;
    }

    .checkout-note-card {
        gap: 0.7rem;
        padding: 0.8rem;
    }

    .checkout-note-icon {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
        font-size: 0.78rem;
    }

    .checkout-note-title {
        font-size: 0.88rem;
    }

    .checkout-note-card p {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .thumbnail-list {
        gap: 0.5rem;
        padding: 0.3rem;
    }

    .thumbnail-item {
        width: 46px;
    }

    .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;
    }
}

/* Keep receipt sizing overrides after the legacy success-page rules. */
.success-card { max-width: 720px; }

@media (max-width: 480px) {
    .success-card { padding: 1.5rem 1rem; }
    .success-card h1 { font-size: 1.75rem; }
}
