/* Purchase Page Styles - Mobile First Approach */

/* Override common.css transform scale that causes display issues on desktop */
@media screen and (min-width: 1024px) {
    html, body {
        transform: none !important;
        transform-origin: unset !important;
        width: 100% !important;
        min-height: 100vh !important;
        height: auto !important;
    }
}

/* Sticky Navbar - Same as Home page */
.container > .navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: none;
    box-shadow: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: none;
    backdrop-filter: blur(6px);
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -20px;
    width: calc(100% + 40px);
    transition: padding 0.35s ease, background-color 0.35s ease, border-bottom-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.container > .navbar.shrink {
    padding-top: 12px;
    padding-bottom: 12px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(255, 235, 59, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    min-height: 50px;
}

.container > .navbar .nav-button {
    font-size: 20px;
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: font-size 0.35s ease;
}

.container > .navbar.shrink .nav-button {
    font-size: 16px;
}

.product-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-light, #e0e0e0);
    min-height: calc(100vh - 80px); /* Account for navbar and padding */
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light, #e0e0e0);
}

.error-message h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.6);
}

.error-message p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.back-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-neon, #FFEB3B);
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 235, 59, 0.3);
}

.back-button:hover {
    background: var(--accent-light, #FFF176);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 235, 59, 0.5);
}

/* Product Header */
.product-header {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--card-bg, #1a1a1a);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.product-header-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.product-main-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.screenshot-lightbox-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    padding: 6px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.screenshot-lightbox-btn:hover {
    transform: translateY(-2px) scale(1.02);
    color: var(--accent-neon, #FFEB3B);
}

.screenshot-lightbox-btn:focus-visible {
    outline: 2px solid var(--accent-neon, #FFEB3B);
    outline-offset: 2px;
}

.screenshot-lightbox-btn i {
    font-size: 22px;
}

.screenshot-tooltip {
    position: absolute;
    top: 50%;
    right: 110%;
    transform: translateY(-50%) translateX(8px);
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--accent-neon, #FFEB3B);
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.screenshot-lightbox-btn:hover .screenshot-tooltip,
.screenshot-lightbox-btn:focus-visible .screenshot-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.product-header-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-header-info-left {
    flex: 1;
}

.product-title-with-screenshot {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.screenshot-desktop-btn {
    display: inline-flex;
}

.screenshot-mobile-btn {
    display: none;
}

.product-header-info-right {
    flex: 1;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-genres {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.genres-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted, #9aa3b4);
    white-space: nowrap;
}

.genres-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.genre-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 235, 59, 0.15);
    border: 1px solid rgba(255, 235, 59, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-neon, #FFEB3B);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.genre-tag:hover {
    background: rgba(255, 235, 59, 0.25);
    border-color: rgba(255, 235, 59, 0.5);
    box-shadow: 0 0 8px rgba(255, 235, 59, 0.4);
}

.product-region-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.region-flag {
    font-size: 1.2rem;
}

.region-text {
    font-size: 0.95rem;
    color: var(--text-light, #e0e0e0);
    opacity: 0.9;
}

.product-info-text {
    margin-top: 15px;
    margin-bottom: 20px;
}

.info-text-content {
    color: var(--text-light, #e0e0e0);
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: 'Exo 2', sans-serif;
}

.info-text-list {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 24px;
    margin: 0;
    color: var(--text-light, #e0e0e0);
    font-family: 'Exo 2', sans-serif;
}

.info-text-list li {
    margin-bottom: 6px;
    padding-left: 4px;
    line-height: 1.5;
    color: var(--text-light, #e0e0e0);
}

.info-text-list li::marker {
    color: var(--text-light, #e0e0e0);
    font-size: 0.95rem;
}

.info-text-list li:last-child {
    margin-bottom: 0;
}

.info-text-list strong {
    font-weight: 700;
    color: #ffffff;
}

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.info-tooltip i {
    color: var(--accent-neon, #FFEB3B);
    font-size: 1.1rem;
    transition: color 0.3s ease;
    text-shadow: 0 0 6px rgba(255, 235, 59, 0.4);
}

.info-tooltip:hover i {
    color: var(--accent-light, #FFF176);
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.6);
}

.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.95);
    color: var(--text-light, #e0e0e0);
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: normal;
    width: 280px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 8px rgba(255, 235, 59, 0.2);
    border: 1px solid rgba(255, 235, 59, 0.3);
}

.info-tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.content-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light, #e0e0e0);
}

/* Purchase Section */
.purchase-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.purchase-options-container {
    flex: 1;
}

.purchase-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

    .purchase-option-card {
        position: relative;
        background: var(--card-bg, #1a1a1a);
        border: 2px solid transparent;
        border-radius: 10px;
        padding: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

.purchase-option-card:hover {
    border-color: var(--accent-neon, #FFEB3B);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 235, 59, 0.3);
}

.purchase-option-card.selected {
    border-color: var(--accent-neon, #FFEB3B);
    background: rgba(255, 235, 59, 0.1);
    box-shadow: 0 6px 20px rgba(255, 235, 59, 0.4);
}

.purchase-option-card.out-of-stock {
    opacity: 0.55;
    filter: grayscale(0.6);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

.purchase-option-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.purchase-option-info {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.purchase-option-info-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #2d2d2d;
    color: var(--accent-neon, #FFEB3B);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.purchase-option-info-btn:hover,
.purchase-option-info-btn:focus-visible {
    border-color: var(--accent-light, #FFF176);
    color: var(--accent-light, #FFF176);
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.35);
    outline: none;
}

.purchase-option-info-icon {
    font-weight: 800;
    font-size: 0.8rem;
    line-height: 1;
}

.purchase-option-info-tooltip {
    position: absolute;
    top: -8px;
    right: 36px;
    transform: translateY(-100%) translateY(-4px);
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: min(320px, 70vw);
    width: max-content;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    border: 1px solid rgba(255, 235, 59, 0.25);
    backdrop-filter: blur(4px);
}

.purchase-option-info:hover .purchase-option-info-tooltip,
.purchase-option-info-tooltip.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-100%);
}

.purchase-option-info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 7px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
}

    .purchase-option-image {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
    }

.purchase-option-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.purchase-option-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light, #e0e0e0);
    line-height: 1.3;
}

.purchase-option-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.purchase-option-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.purchase-option-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.purchase-option-current-price {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-neon, #FFEB3B);
    line-height: 1.2;
    text-shadow: 0 0 6px rgba(255, 235, 59, 0.4);
}

.badge-bestseller {
    background: #dc2626;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-soldout {
    background: rgba(255, 255, 255, 0.12);
    color: #ff6464;
    border: 1px solid rgba(255, 100, 100, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Order Summary */
.order-summary-container {
    width: 100%;
    flex-shrink: 0;
}

    .order-summary-card {
        background: var(--card-bg, #1a1a1a);
        border-radius: 12px;
        padding: 18px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        position: sticky;
        top: 100px;
    }

/* Mobile/Tablet Order Summary - Hidden on desktop */
.order-summary-mobile-tablet {
    display: block;
    margin-top: 30px;
    margin-bottom: 30px;
}

.order-summary-mobile-tablet .order-summary-card {
    position: relative;
    top: 0;
}

/* Desktop Order Summary - Hidden on mobile/tablet */
.order-summary-desktop {
    display: none;
}

.order-summary-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-light, #e0e0e0);
}

.quantity-selector {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.quantity-selector label {
    font-weight: 500;
    color: var(--text-light, #e0e0e0);
    white-space: nowrap;
}

/* Animation for quantity controls glow effect */
@keyframes quantityGlow {
    0% {
        box-shadow: 0 0 8px rgba(255, 235, 59, 0.1);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 235, 59, 0.4);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 235, 59, 0.1);
    }
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 235, 59, 0.3);
    border-radius: 8px;
    padding: 0;
    width: fit-content;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(255, 235, 59, 0.1);
    transition: border-color 0.3s ease;
}

.quantity-controls:focus-within {
    border-color: var(--accent-neon, #FFEB3B);
}

/* Glow animation when button is clicked */
.quantity-controls.glow {
    animation: quantityGlow 0.5s ease;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: white;
    font-size: 1.2rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.quantity-btn:hover {
    background: rgba(255, 235, 59, 0.2);
    color: var(--accent-neon);
}

.quantity-btn:active {
    background: rgba(255, 235, 59, 0.3);
    color: var(--accent-neon);
}

#quantityInput {
    width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-light, #ffffff);
    font-size: 1rem;
    font-weight: 400;
    padding: 0 8px;
    min-height: 40px;
    outline: none;
}

.price-breakdown {
    padding: 20px 0;
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #9aa3b4;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-row span:first-child {
    color: #9aa3b4;
}

.price-row span:last-child {
    color: #9aa3b4;
    text-align: right;
}

.price-row.total-row {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 235, 59, 0.3);
}

.price-row.total-row span:first-child {
    color: var(--accent-neon, #FFEB3B);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
}

.price-row.total-row span:last-child {
    color: var(--accent-neon, #FFEB3B);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
}

.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.btn-add-to-cart,
.btn-buy-now {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart {
    background: rgba(255, 235, 59, 0.2);
    color: var(--accent-neon);
    border: 1px solid rgba(255, 235, 59, 0.3);
}

.btn-add-to-cart:hover {
    background: rgba(255, 235, 59, 0.3);
    border-color: var(--accent-neon);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 235, 59, 0.3);
}

.cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-wrapper i {
    font-size: 1.1rem;
}

.cart-plus-icon {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: white;
    color: #374151;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-buy-now {
    background: var(--accent-neon, #FFEB3B);
    color: #000000;
}

.btn-buy-now:hover {
    background: var(--accent-light, #FFF176);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 235, 59, 0.5);
}

/* Description Section */
.description-section {
    background: var(--card-bg, #1a1a1a);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Description Tabs Container */
.description-tabs-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.description-tabs-header {
    position: relative;
    border-bottom: 2px solid rgba(255, 235, 59, 0.2);
    margin-bottom: 24px;
    overflow-x: visible;
    overflow-y: visible;
}

.description-tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
    position: relative;
}

.description-tab-button {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted, #9aa3b4);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.description-tab-button:hover {
    color: var(--text-light, #e0e0e0);
    background: rgba(255, 235, 59, 0.05);
    transform: translateY(-2px);
}

.description-tab-button.active {
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
    transform: translateY(-2px);
}

/* Animated sliding indicator */
.tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-neon, #FFEB3B) 50%,
        transparent 100%);
    border-radius: 2px 2px 0 0;
    box-shadow: 
        0 0 12px rgba(255, 235, 59, 0.8),
        0 0 24px rgba(255, 235, 59, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    opacity: 0;
    width: 0;
}

.tab-indicator.visible {
    opacity: 1;
}

.description-tabs-content {
    min-height: 200px;
}

.description-tab-content {
    color: var(--text-light, #e0e0e0);
    line-height: 1.8;
    overflow-x: hidden;
    word-wrap: break-word;
    max-width: 100%;
    width: 100%;
    animation: fadeInContent 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Ensure all content within tab content is constrained */
.description-tab-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.description-tab-content p,
.description-tab-content div,
.description-tab-content span {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Unified styling for all headings in description tab content (h1-h6) - Yellow and bold */
.description-tab-content h1,
.description-tab-content h2,
.description-tab-content h3,
.description-tab-content h4,
.description-tab-content h5,
.description-tab-content h6 {
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
    line-height: 1.3;
}

.description-tab-content h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.description-tab-content h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.description-tab-content h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.description-tab-content h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.description-tab-content h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.description-tab-content h6 {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Unified styling for paragraphs in description tab content - Match warranty */
.description-tab-content p {
    margin: 0 0 10px;
    color: var(--text-muted, #9aa3b4);
    line-height: 1.6;
    font-weight: 400;
}

.description-tab-content p:last-child {
    margin-bottom: 0;
}

/* Unified styling for strong/bold text */
.description-tab-content strong,
.description-tab-content b {
    color: var(--text-light, #e0e0e0);
    font-weight: 700;
}

/* Unified styling for lists - Match warranty */
.description-tab-content ul,
.description-tab-content ol {
    padding-left: 24px;
    color: var(--text-muted, #9aa3b4);
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.description-tab-content ul li,
.description-tab-content ol li {
    line-height: 1.6;
    margin-bottom: 0;
}

.description-tab-content ul li::marker,
.description-tab-content ol li::marker {
    color: var(--text-muted, #9aa3b4);
}

/* Unified styling for links */
.description-tab-content a {
    color: var(--accent-neon, #FFEB3B);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.description-tab-content a:hover {
    color: var(--accent-light, #FFF176);
    text-shadow: 0 0 6px rgba(255, 235, 59, 0.4);
}

/* Unified styling for blockquotes */
.description-tab-content blockquote {
    border-left: 3px solid var(--accent-neon, #FFEB3B);
    padding-left: 16px;
    margin: 12px 0;
    color: var(--text-light, #e0e0e0);
    font-style: italic;
}

/* Unified styling for code */
.description-tab-content code {
    background: rgba(255, 235, 59, 0.1);
    border: 1px solid rgba(255, 235, 59, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-neon, #FFEB3B);
}

.description-tab-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 235, 59, 0.2);
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
    margin: 12px 0;
}

.description-tab-content pre code {
    background: transparent;
    border: none;
    padding: 0;
}

/* Unified styling for tables */
.description-tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    color: var(--text-muted, #9aa3b4);
}

.description-tab-content th {
    background: rgba(255, 235, 59, 0.1);
    color: var(--accent-neon, #FFEB3B);
    padding: 8px 12px;
    text-align: left;
    font-weight: 700;
    border: 1px solid rgba(255, 235, 59, 0.2);
}

.description-tab-content td {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.description-tab-content tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Unified styling for horizontal rules */
.description-tab-content hr {
    border: none;
    border-top: 1px solid rgba(255, 235, 59, 0.2);
    margin: 24px 0;
}

/* Unified styling for emphasis */
.description-tab-content em,
.description-tab-content i {
    font-style: italic;
    color: var(--text-muted, #9aa3b4);
}

/* Unified styling for small text */
.description-tab-content small {
    font-size: 0.85em;
    color: var(--text-muted, #9aa3b4);
}

/* Article content styling (reused from article.css) */
.description-tab-content .article-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.description-tab-content .article-section {
    padding: 0;
}

.description-tab-content .article-section h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
}

.description-tab-content .article-section .section-body {
    color: var(--text-light, #e0e0e0);
    line-height: 1.7;
    margin-bottom: 12px;
}

.description-tab-content .article-section .section-body p {
    margin: 0 0 10px;
    color: var(--text-muted, #9aa3b4);
    line-height: 1.6;
}

.description-tab-content .article-section .section-body p:last-child {
    margin-bottom: 0;
}

.description-tab-content .article-section .section-body strong {
    color: var(--text-light, #e0e0e0);
    font-weight: 700;
}

.description-tab-content .article-section ul {
    padding-left: 24px;
    color: var(--text-muted, #9aa3b4);
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.description-tab-content .article-section ul li {
    line-height: 1.6;
}

.description-tab-content .section-highlight {
    border-left: 3px solid var(--accent-neon, #FFEB3B);
    padding-left: 16px;
    margin: 12px 0;
    color: var(--text-light, #e0e0e0);
}

/* FAQ Styles */
.description-tab-content .faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.description-tab-content .faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: all 0.3s ease;
}

.description-tab-content .faq-item:hover {
    border-color: rgba(255, 235, 59, 0.3);
}

.description-tab-content .faq-item.active {
    border-color: var(--accent-neon, #FFEB3B);
    background: rgba(0, 0, 0, 0.35);
}

.description-tab-content .faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--text-light, #e0e0e0);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: inherit;
}

.description-tab-content .faq-question:hover {
    color: var(--accent-neon, #FFEB3B);
}

.description-tab-content .faq-question span {
    flex: 1;
    padding-right: 12px;
}

.description-tab-content .faq-question i {
    color: var(--accent-neon, #FFEB3B);
    transition: transform 0.3s ease;
    font-size: 12px;
}

.description-tab-content .faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.description-tab-content .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 18px;
}

.description-tab-content .faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 18px 18px;
}

.description-tab-content .faq-answer p {
    margin: 0;
    color: var(--text-muted, #9aa3b4);
    line-height: 1.7;
    font-size: 14px;
}

.description-tab-content .faq-answer ul {
    margin: 8px 0 0;
    padding-left: 20px;
    color: var(--text-muted, #9aa3b4);
}

.description-tab-content .faq-answer li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.description-tab-content .article-error {
    margin-top: 12px;
    color: #ff9b9b;
    background: rgba(255, 100, 100, 0.08);
    border: 1px solid rgba(255, 100, 100, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
}

/* Description items inside tab content should match article section styling */
.description-tab-content .description-item {
    margin-bottom: 24px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.description-tab-content .description-item:last-child {
    margin-bottom: 0;
}

/* Description item headings inherit from global heading styles above */
.description-tab-content .description-item h1,
.description-tab-content .description-item h2,
.description-tab-content .description-item h3,
.description-tab-content .description-item h4,
.description-tab-content .description-item h5,
.description-tab-content .description-item h6 {
    /* Inherits from .description-tab-content h1-h6 styles above */
}

/* Description item paragraphs inherit from global paragraph styles above */
.description-tab-content .description-item p {
    /* Inherits from .description-tab-content p styles above */
}

.description-tab-content .description-item p strong,
.description-tab-content .description-item strong {
    /* Inherits from .description-tab-content strong styles above */
}

.description-tab-content .description-item ul,
.description-tab-content .description-item ol {
    /* Inherits from .description-tab-content ul/ol styles above */
}

.product-description {
    color: var(--text-light, #e0e0e0);
    line-height: 1.8;
    overflow-x: hidden;
    word-wrap: break-word;
    max-width: 100%;
}

/* Apply article section styles to product description (for digital-service) */
.product-description .description-item {
    margin-bottom: 24px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.product-description .description-item:last-child {
    margin-bottom: 0;
}

.product-description .description-item h4 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
}

.product-description .description-item p {
    margin: 0 0 10px;
    color: var(--text-muted, #9aa3b4);
    line-height: 1.7;
    font-size: 15px;
    font-weight: 400;
    opacity: 1;
}

.product-description .description-item p:last-child {
    margin-bottom: 0;
}

.product-description .description-item p strong {
    color: var(--text-light, #e0e0e0);
    font-weight: 700;
}

.product-description .description-item ul {
    padding-left: 24px;
    color: var(--text-muted, #9aa3b4);
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-description .description-item ul li {
    line-height: 1.6;
}

.product-description .description-item p .desc-heading,
.product-description .desc-heading {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
    margin: 10px 0 6px;
}

/* Constrain all media elements within description */
.product-description img,
.product-description video,
.product-description iframe,
.product-description embed,
.product-description object,
.description-tab-content img,
.description-tab-content video,
.description-tab-content iframe,
.description-tab-content embed,
.description-tab-content object {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* Specific styling for images and GIFs */
.product-description img,
.description-tab-content img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Steam BB (Bulletin Board) classes - override fixed widths */
.product-description .bb_img,
.product-description .bb_img_ctn,
.description-tab-content .bb_img,
.description-tab-content .bb_img_ctn {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
}

.product-description .bb_img_ctn img,
.product-description .bb_img_ctn video,
.description-tab-content .bb_img_ctn img,
.description-tab-content .bb_img_ctn video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

.product-description .bb_img,
.description-tab-content .bb_img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* Ensure paragraphs don't overflow */
.product-description .bb_paragraph,
.description-tab-content .bb_paragraph {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    margin: 0 0 10px;
    color: var(--text-muted, #9aa3b4);
    line-height: 1.6;
    font-weight: 400;
}

.description-tab-content .bb_paragraph:last-child {
    margin-bottom: 0;
}

/* Style Steam BB headings */
.description-tab-content .bb_paragraph h1,
.description-tab-content .bb_paragraph h2,
.description-tab-content .bb_paragraph h3,
.description-tab-content .bb_paragraph h4,
.description-tab-content .bb_paragraph h5,
.description-tab-content .bb_paragraph h6 {
    /* Inherits from global heading styles */
    display: block;
    margin-top: 16px;
    margin-bottom: 12px;
}

.description-tab-content .bb_paragraph h1:first-child,
.description-tab-content .bb_paragraph h2:first-child,
.description-tab-content .bb_paragraph h3:first-child,
.description-tab-content .bb_paragraph h4:first-child,
.description-tab-content .bb_paragraph h5:first-child,
.description-tab-content .bb_paragraph h6:first-child {
    margin-top: 0;
}

/* Video container styling */
.product-description .steam-video-container,
.steam-video-container,
.description-tab-content .steam-video-container {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.product-description .steam-video-container video,
.steam-video-container video,
.description-tab-content .steam-video-container video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Iframe styling (for embedded content) */
.product-description iframe,
.description-tab-content iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
}

/* Handle any div containers that might contain media */
.product-description > div {
    max-width: 100%;
    overflow: hidden;
}

/* Ensure paragraphs and other text elements don't overflow */
.product-description p,
.product-description div,
.product-description span {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.description-item {
    margin-bottom: 28px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.description-item:last-child {
    margin-bottom: 0;
}

.description-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.description-item p {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    margin: 0;
    opacity: 0.95;
}

.description-item p .desc-heading,
.desc-heading {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
    margin: 10px 0 6px;
}

/* PC Requirements */
.pc-req-section {
    margin-top: 28px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 235, 59, 0.18);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.pc-req-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pc-req-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 6px rgba(255, 235, 59, 0.4);
}

.pc-req-subtitle {
    font-size: 0.9rem;
    color: #9aa3b4;
}

.pc-req-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pc-req-card {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.pc-req-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.pc-req-card-body {
    color: var(--text-light, #e0e0e0);
    font-size: 0.92rem;
    line-height: 1.6;
}

.pc-req-card-body ul,
.pc-req-card-body ol {
    padding-left: 18px;
    margin: 6px 0 0 0;
}

.pc-req-card-body li {
    margin-bottom: 6px;
}


/* Related Products Section */
.related-products-section {
    background: var(--card-bg, #1a1a1a);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.related-products-container {
    max-width: 45em;
    margin: 0 auto;
}

.related-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1;
    padding-bottom: 16px;
}

.related-products-title-wrapper {
    font-size: 18px;
    font-weight: 400;
}

.related-products-title-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #f8f8f8;
}

.related-products-divider {
    width: 100%;
    border-top: 1px solid rgba(255, 235, 59, 0.2);
    margin-top: 12px;
}

.related-products-content {
    margin-top: 12px;
    line-height: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-product-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    margin: -8px;
}

.related-product-card:hover {
    background: transparent;
    transform: translateY(-2px);
}

.related-product-image {
    width: 44px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-product-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.related-product-name {
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.related-product-price {
    line-height: 13px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.related-product-current-price {
    font-size: 13px;
    font-weight: 400;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 6px rgba(255, 235, 59, 0.4);
}

/* Desktop Styles */
@media (min-width: 1024px) {
    html, body {
        min-height: 100vh;
        height: auto;
        transform: none !important;
        transform-origin: unset !important;
        width: 100% !important;
    }
    
    .product-detail-container {
        padding: 30px;
        min-height: calc(100vh - 100px); /* Account for navbar and padding */
    }

    .product-header {
        flex-direction: row;
        align-items: flex-start;
        background-image: none !important; /* Override mobile background */
        background: var(--card-bg, #1a1a1a);
        padding: 20px;
        min-height: auto;
        overflow: hidden; /* Restore overflow for desktop */
        margin-bottom: 40px; /* Restore margin for desktop */
    }

    .product-header::before {
        display: none; /* Hide gradient overlay on desktop */
    }

    .product-header-image-container {
        width: auto;
        flex-shrink: 0;
        justify-content: flex-start;
        display: flex; /* Show image on desktop */
        margin-right: 30px;
    }

    .product-main-image {
        width: 480px;
        max-width: 480px;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        display: block; /* Show image on desktop */
    }

    .product-header-info-container {
        flex-direction: column;
        gap: 15px;
        padding: 0;
        flex: 1;
        min-width: 0;
    }

    .product-header-overlay {
        display: contents; /* Remove overlay wrapper on desktop */
    }

    .product-header-info-left {
        display: block;
    }

    .product-header-info-right {
        display: block;
    }

    .product-title {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 10px;
        color: #ffffff;
        text-align: left;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .product-genres {
        margin-bottom: 12px;
        justify-content: flex-start;
    }

    .genres-label {
        font-size: 0.9rem;
        display: inline;
        color: var(--text-muted, #9aa3b4);
    }

    .genre-tag {
        font-size: 0.8rem;
        padding: 5px 12px;
        background: rgba(255, 235, 59, 0.15);
        border: 1px solid rgba(255, 235, 59, 0.3);
        color: var(--accent-neon, #FFEB3B);
    }

    /* Hide mobile info text section on desktop */
    .product-info-text-section {
        display: none !important;
    }

    /* Show desktop info text in header */
    .product-header .product-info-text-desktop {
        display: block;
        position: relative;
        margin-top: 15px;
        margin-bottom: 20px;
        padding: 0;
        background: transparent;
    }

    .product-header .product-info-text-desktop::before {
        display: none; /* Hide vertical bar on desktop */
    }

    .product-header .product-info-text-desktop .info-text-content {
        color: var(--text-light, #e0e0e0);
    }

    .product-header .product-info-text-desktop .info-text-list {
        color: var(--text-light, #e0e0e0);
        padding-left: 24px;
    }

    .product-header .product-info-text-desktop .info-text-list li {
        color: var(--text-light, #e0e0e0);
    }

    .content-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }

    .left-column {
        flex: 1;
        min-width: 0;
    }

    .right-column {
        width: 350px;
        flex-shrink: 0;
    }

    /* Show desktop order summary, hide mobile/tablet */
    .order-summary-desktop {
        display: block !important;
    }

    .order-summary-mobile-tablet {
        display: none !important;
    }

    .purchase-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .order-summary-container {
        width: 100%;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    /* Hide mobile screenshot button on tablet/desktop */
    .screenshot-mobile-btn {
        display: none !important;
    }

    /* Show desktop screenshot button on tablet/desktop */
    .screenshot-desktop-btn {
        display: inline-flex !important;
    }
}

/* Tablet-specific fixes (768px - 1023px only) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet: Single column for purchase options to prevent overlap with order summary */
    .purchase-options-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Tablet: Change order summary from sticky to relative to prevent overlap */
    .order-summary-card {
        position: relative !important;
        top: 0 !important;
    }

    /* Show mobile/tablet order summary, hide desktop */
    .order-summary-mobile-tablet {
        display: block !important;
    }

    .order-summary-desktop {
        display: none !important;
    }

    /* Tablet: Apply mobile-style cinematic design for product header */
    .product-header {
        position: relative;
        padding: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 16px;
        overflow: hidden;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        margin-bottom: 30px;
    }

    /* Gradient overlay - fades from bottom to top */
    .product-header::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 45%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
        pointer-events: none;
        z-index: 1;
    }

    /* Hide the image element on tablet, using background instead */
    .product-header-image-container {
        display: none !important;
    }

    .product-main-image {
        display: none !important;
    }

    .product-header-info-container {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    /* Overlay section for title and genres */
    .product-header-overlay {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 12px;
        padding: 20px 16px 16px 16px;
    }

    .product-header-info-left {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .product-header-info-right {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .product-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0;
        text-align: left;
        line-height: 1.2;
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        letter-spacing: -0.5px;
    }

    .product-genres {
        margin-bottom: 0;
        justify-content: flex-end;
        align-items: flex-end;
    }

    .genres-label {
        display: none; /* Hide label on tablet */
    }

    .genres-list {
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: wrap;
    }

    .genre-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        font-weight: 500;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    /* Tablet: Hide desktop info text in header */
    .product-header .product-info-text-desktop {
        display: none !important;
    }

    /* Tablet: Show info text section below image */
    .product-info-text-section {
        display: block !important;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .product-info-text-section .product-info-text {
        position: relative;
        margin: 0;
        padding: 16px 20px 16px 28px;
        background: var(--card-bg, #1a1a1a);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Vertical accent bar */
    .product-info-text-section .product-info-text::before {
        content: '';
        position: absolute;
        left: 16px;
        top: 16px;
        bottom: 16px;
        width: 3px;
        background: linear-gradient(to bottom, var(--accent-neon, #FFEB3B), rgba(255, 235, 59, 0.3));
        border-radius: 2px;
    }

    .product-info-text-section .info-text-content {
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--text-light, #e0e0e0);
    }

    .product-info-text-section .info-text-list {
        color: var(--text-light, #e0e0e0);
        padding-left: 24px;
    }

    .product-info-text-section .info-text-list li {
        color: var(--text-light, #e0e0e0);
    }

    /* Hide mobile screenshot button on tablet */
    .screenshot-mobile-btn {
        display: none !important;
    }

    /* Show desktop screenshot button on tablet - but position it differently */
    .screenshot-desktop-btn {
        display: inline-flex !important;
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 5;
    }

    /* Tablet: Tabs - Keep horizontal layout with wrap */
    .description-tabs-container {
        flex-direction: column;
        gap: 0;
    }
    
    .description-tabs-header {
        border-bottom: 2px solid rgba(255, 235, 59, 0.2);
        border-right: none;
        margin-bottom: 24px;
        overflow-x: visible;
        overflow-y: visible;
        max-height: none;
        width: 100%;
        min-width: auto;
        max-width: none;
    }
    
    .description-tabs-list {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 8px;
    }
    
    .description-tab-button {
        border-right: none;
        border-bottom: 3px solid transparent;
        text-align: center;
        white-space: nowrap;
    }
    
    .description-tab-button.active {
        border-right-color: transparent;
        border-bottom-color: var(--accent-neon, #FFEB3B);
    }
    
    .description-tabs-content {
        flex: none;
        width: 100%;
    }

    /* Tablet: Quantity controls - match desktop/mobile styling */
    .quantity-selector {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .quantity-selector label {
        font-size: 0.95rem;
        font-weight: 500;
        margin-bottom: 0;
        color: var(--text-light, #e0e0e0);
        white-space: nowrap;
    }

    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 0;
        background: #1a1a1a;
        border: 1px solid rgba(255, 235, 59, 0.3);
        border-radius: 8px;
        padding: 0;
        width: fit-content;
        overflow: hidden;
        box-shadow: 0 0 8px rgba(255, 235, 59, 0.1);
        transition: border-color 0.3s ease;
    }

    .quantity-controls:focus-within {
        border-color: var(--accent-neon, #FFEB3B);
    }

    .quantity-btn {
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        color: white;
        font-size: 1.2rem;
        font-weight: 400;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .quantity-btn:hover {
        background: rgba(255, 235, 59, 0.2);
        color: var(--accent-neon);
    }

    .quantity-btn:active {
        background: rgba(255, 235, 59, 0.3);
        color: var(--accent-neon);
    }

    #quantityInput,
    #quantityInputMobile {
        width: 50px;
        text-align: center;
        background: transparent;
        border: none;
        color: var(--text-light, #ffffff);
        font-size: 1rem;
        font-weight: 400;
        padding: 0 8px;
        min-height: 40px;
        outline: none;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    html, body {
        min-height: 100vh;
        height: auto;
        transform: none !important;
        transform-origin: unset !important;
        width: 100% !important;
    }
    
    .product-detail-container {
        padding: 40px;
        min-height: calc(100vh - 100px); /* Account for navbar and padding */
    }

    .product-main-image {
        width: 600px;
        max-width: 600px;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .right-column {
        width: 380px;
    }

    /* Show desktop order summary, hide mobile/tablet */
    .order-summary-desktop {
        display: block !important;
    }

    .order-summary-mobile-tablet {
        display: none !important;
    }

    .purchase-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .purchase-option-card {
        flex-direction: row;
        text-align: left;
        padding: 12px;
    }

    .purchase-option-image {
        width: 60px;
        height: 60px;
    }

    .purchase-option-title {
        font-size: 0.9rem;
    }

    .purchase-option-current-price {
        font-size: 1.2rem;
    }

    /* PC requirements: align cards horizontally on desktop */
    .pc-req-grid {
        flex-direction: row;
        gap: 16px;
    }

    /* Hide mobile screenshot button on desktop */
    .screenshot-mobile-btn {
        display: none !important;
    }

    /* Show desktop screenshot button on desktop */
    .screenshot-desktop-btn {
        display: inline-flex !important;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .product-main-image {
        width: 650px;
        max-width: 650px;
    }
    
    .purchase-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        overscroll-behavior-y: none;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    body {
        height: auto;
        min-height: 100vh;
    }
    
    /* Hide navbar on mobile - use mobile header instead */
    .container > .navbar {
        display: none !important;
    }
    .container > .navbar.shrink {
        display: none !important;
    }
    
    .product-detail-container {
        padding: 15px;
        padding-bottom: 20px;
    }

    /* Cinematic Mobile Design */
    .product-header {
        position: relative;
        padding: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 16px;
        overflow: hidden;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        margin-bottom: 30px;
    }

    /* Gradient overlay - fades from bottom to top, not too much area */
    .product-header::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 45%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
        pointer-events: none;
        z-index: 1;
    }

    .product-header-image-container {
        display: none; /* Hide the image element, using background instead */
    }

    .product-main-image {
        display: none; /* Hide the image element, using background instead */
    }

    .product-header-info-container {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    /* Overlay section for title and genres */
    .product-header-overlay {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 12px;
        padding: 20px 16px 16px 16px;
    }

    /* Move info text outside the image on mobile */
    .product-header .product-info-text {
        position: relative;
        margin-top: 0;
        margin-bottom: 0;
        padding: 16px 16px 16px 28px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .product-header-info-left {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .product-header-info-right {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .product-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0;
        text-align: left;
        line-height: 1.2;
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        letter-spacing: -0.5px;
    }

    .screenshot-desktop-btn {
        display: none;
    }

    .screenshot-mobile-btn {
        display: inline-flex;
        position: static;
        padding: 0 6px;
        background: none;
        border-radius: 0;
        color: #ffffff;
        line-height: 1;
    }

    .screenshot-mobile-btn i {
        font-size: 18px;
    }

    .screenshot-mobile-btn .screenshot-tooltip {
        display: none;
    }

    .product-genres {
        margin-bottom: 0;
        justify-content: flex-end;
        align-items: flex-end;
    }

    .genres-label {
        display: none; /* Hide label on mobile */
    }

    .genres-list {
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: wrap;
    }

    .genre-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        font-weight: 500;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    /* Hide desktop info text in header on mobile */
    .product-header .product-info-text-desktop {
        display: none;
    }

    /* Product Info Text Section (Mobile - separate section) */
    .product-info-text-section {
        margin-bottom: 30px;
    }

    .product-info-text-section .product-info-text {
        position: relative;
        margin: 0;
        padding: 16px 16px 16px 28px;
        background: var(--card-bg, #1a1a1a);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Vertical accent bar */
    .product-info-text-section .product-info-text::before {
        content: '';
        position: absolute;
        left: 16px;
        top: 16px;
        bottom: 16px;
        width: 3px;
        background: linear-gradient(to bottom, var(--accent-neon, #FFEB3B), rgba(255, 235, 59, 0.3));
        border-radius: 2px;
    }

    .product-info-text-section .info-text-content {
        font-size: 0.9rem;
        line-height: 1.6;
        color: var(--text-light, #e0e0e0);
    }

    .product-info-text-section .info-text-list {
        color: var(--text-light, #e0e0e0);
        padding-left: 16px;
    }

    .product-info-text-section .info-text-list li {
        color: var(--text-light, #e0e0e0);
    }

    .product-info-text-section .info-text-list li strong {
        color: #ffffff;
        font-weight: 600;
    }

    .section-title {
        font-size: 1.7rem;
        font-weight: 700;
    }

    .content-layout {
        flex-direction: column;
    }

    .right-column {
        width: 100%;
    }

    .purchase-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .order-summary-card {
        position: relative;
        top: 0;
        padding: 16px;
    }

    /* Show mobile/tablet order summary, hide desktop */
    .order-summary-mobile-tablet {
        display: block !important;
    }

    .order-summary-desktop {
        display: none !important;
    }

    .tooltip-text {
        width: 250px;
        font-size: 0.8rem;
    }

    .description-section,
    .related-products-section {
        padding: 16px;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .related-products-section {
        padding: 14px;
        border-radius: 12px;
    }
    
    .related-products-container {
        max-width: 100%;
    }
    
    .related-products-header {
        padding-bottom: 12px;
    }
    
    .related-products-title-text {
        font-size: 1.2rem;
        font-weight: 400;
    }
    
    .related-products-divider {
        margin-top: 8px;
    }
    
    .related-products-content {
        margin-top: 8px;
        gap: 10px;
    }
    
    .related-product-card {
        padding: 12px;
        margin: -4px;
        gap: 12px;
    }
    
    .related-product-image {
        width: 60px;
        height: 80px;
        border-radius: 12px;
    }
    
    .related-product-info-wrapper {
        gap: 6px;
    }

    
    .related-product-price {
        line-height: 12px;
        gap: 6px;
    }
    
    
    .related-product-original-price {
        font-size: 11px;
        padding: 0 6px;
    }
    
    .main-content {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .related-products-section {
        margin-bottom: 0;
        padding-bottom: 20px;
    }
    
    /* Mobile Typography Overrides - Already handled in cinematic design above */
    
    /* Section Titles */
    .section-title {
        font-size: 1.2rem;
        font-weight: 500;
        margin-bottom: 16px;
    }
    
    .related-products-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 20px;
    }
    
    /* Purchase Options */
    .purchase-option-title {
        font-size: 0.9rem;
        line-height: 1.3;
        font-weight: 400;
    }
    
    .purchase-option-current-price {
        font-size: 1rem;
    }
    
    .badge-bestseller {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    /* Order Summary */
    .order-summary-title {
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 16px;
    }
    
    .quantity-selector {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    
    .quantity-selector label {
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 0;
        color: var(--text-light, #e0e0e0);
        white-space: nowrap;
    }
    
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 0;
        background: #1a1a1a;
        border-radius: 8px;
        padding: 0;
        width: fit-content;
        overflow: hidden;
    }
    
    .quantity-btn {
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        color: white;
        font-size: 1.2rem;
        font-weight: 400;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .quantity-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .quantity-btn:active {
        background: rgba(255, 255, 255, 0.15);
    }
    
    #quantityInput,
    #quantityInputMobile {
        width: 50px;
        text-align: center;
        background: transparent;
        border: none;
        color: white;
        font-size: 1rem;
        font-weight: 400;
        padding: 0;
        min-height: 40px;
    }
    
    .price-row {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .price-row.total-row {
        font-size: 1.2rem;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    /* Buttons */
    .action-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .btn-add-to-cart,
    .btn-buy-now {
        font-size: 0.95rem;
        padding: 12px 18px;
        flex: 1;
    }
    
    .cart-icon-wrapper i {
        font-size: 1rem;
    }
    
    .cart-plus-icon {
        width: 14px;
        height: 14px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
    
    /* Description Section */
    .description-item {
        padding: 12px;
        margin-bottom: 22px;
    }
    
    .description-item h4 {
        font-size: 1.15rem;
        margin-bottom: 10px;
        letter-spacing: 0.35px;
    }
    
    .description-item p {
        font-size: 0.95rem;
        line-height: 1.6;
        font-weight: 400;
    }
    
    /* Product description (digital-service) mobile styles */
    .product-description .description-item {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .product-description .description-item h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .product-description .description-item p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .product-description .description-item p .desc-heading,
    .product-description .desc-heading {
        font-size: 1.15rem;
    }
    
    /* Tabs on Mobile - Vertical Stack Layout (Tabs on top, content below) */
    .description-tabs-container {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .description-tabs-header {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        border-bottom: 2px solid rgba(255, 235, 59, 0.2);
        border-right: none;
        margin-bottom: 20px;
        width: 100%;
        overflow-x: visible;
        overflow-y: visible;
    }
    
    /* Hide sliding indicator on mobile (use left border instead) */
    .tab-indicator {
        display: none;
    }
    
    .description-tabs-list {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        width: 100%;
    }
    
    .description-tab-button {
        padding: 12px 16px;
        font-size: 0.85rem;
        text-align: left;
        border-bottom: none;
        border-right: none;
        border-left: 3px solid transparent;
        width: 100%;
        white-space: normal;
        word-wrap: break-word;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.03);
        transform: none;
    }
    
    .description-tab-button:hover {
        background: rgba(255, 235, 59, 0.05);
        border-left-color: rgba(255, 235, 59, 0.3);
        transform: translateX(4px);
    }
    
    .description-tab-button.active {
        border-bottom-color: transparent;
        border-left-color: var(--accent-neon, #FFEB3B);
        background: rgba(255, 235, 59, 0.1);
        color: var(--accent-neon, #FFEB3B);
        transform: translateX(4px);
    }
    
    .description-tabs-content {
        width: 100%;
        flex: none;
    }
    
    .description-tab-content .article-section h2 {
        font-size: 1.1rem;
    }
    
    .description-tab-content .faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    /* Mobile media constraints */
    .product-description img,
    .product-description video,
    .product-description iframe,
    .product-description embed,
    .product-description object,
    .description-tab-content img,
    .description-tab-content video,
    .description-tab-content iframe,
    .description-tab-content embed,
    .description-tab-content object {
        margin: 16px auto;
        border-radius: 6px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Steam BB classes on mobile */
    .product-description .bb_img,
    .product-description .bb_img_ctn,
    .description-tab-content .bb_img,
    .description-tab-content .bb_img_ctn {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 16px auto;
    }
    
    .product-description .bb_img_ctn img,
    .product-description .bb_img_ctn video,
    .description-tab-content .bb_img_ctn img,
    .description-tab-content .bb_img_ctn video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .product-description .steam-video-container,
    .steam-video-container,
    .description-tab-content .steam-video-container {
        margin: 16px 0;
        border-radius: 6px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-description iframe,
    .description-tab-content iframe {
        aspect-ratio: 16 / 9;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Ensure paragraphs don't overflow on mobile */
    .product-description .bb_paragraph,
    .description-tab-content .bb_paragraph {
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        padding: 0;
        margin: 0 0 16px 0;
    }
    
    /* Related Products */
    .related-product-name {
        font-size: 0.95rem;
        font-weight: 100;
        margin-bottom: 8px;
    }
    
    .related-product-current-price {
        font-size: 1rem;
    }
}

/* ============================================================================
 * SCREENSHOTS LIGHTBOX
 * ============================================================================
 */
.screenshots-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.screenshots-lightbox.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.screenshots-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.screenshots-lightbox-container {
    position: relative;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: visible;
    transform: scale(1) translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.screenshots-lightbox.active .screenshots-lightbox-container {
    transform: scale(1) translateY(0);
}

.screenshots-lightbox-close {
    display: none;
}

.screenshots-lightbox-header {
    display: none;
}

.screenshots-lightbox-title {
    display: none;
}

.screenshots-lightbox-counter {
    display: none;
}

.screenshots-counter-separator {
    display: none;
}

.screenshots-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: auto;
    overflow: hidden;
    perspective: 1200px;
}

.screenshots-lightbox-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    pointer-events: auto;
}

.screenshots-lightbox-image-wrapper .screenshots-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10003;
}

.screenshots-lightbox-image-wrapper .screenshots-lightbox-prev {
    left: 90px;
}

.screenshots-lightbox-image-wrapper .screenshots-lightbox-next {
    right: 90px;
}

/* Pagination Dots */
.screenshots-lightbox-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10004;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.screenshots-lightbox-pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.screenshots-lightbox-pagination-dot:hover {
    background: rgba(255, 235, 59, 0.5);
    border-color: rgba(255, 235, 59, 0.6);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 235, 59, 0.4);
}

.screenshots-lightbox-pagination-dot.active {
    width: 32px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--accent-neon, #FFEB3B), rgba(255, 235, 59, 0.8));
    border-color: var(--accent-neon, #FFEB3B);
    box-shadow: 0 0 12px rgba(255, 235, 59, 0.6), 0 0 20px rgba(255, 235, 59, 0.3);
    transform: scale(1);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(255, 235, 59, 0.6), 0 0 20px rgba(255, 235, 59, 0.3);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 235, 59, 0.8), 0 0 28px rgba(255, 235, 59, 0.5);
    }
}

.screenshots-lightbox-pagination-dot.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background: rgba(255, 235, 59, 0.2);
    animation: dotRipple 2s ease-out infinite;
}

@keyframes dotRipple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.screenshots-lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: none;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.screenshots-lightbox-image.loading {
    opacity: 0.3;
}

.screenshots-lightbox-image.slide-in-next {
    animation: slideInNext 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshots-lightbox-image.slide-in-prev {
    animation: slideInPrev 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInNext {
    0% {
        transform: translateX(100px) rotateY(-15deg) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotateY(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes slideInPrev {
    0% {
        transform: translateX(-100px) rotateY(15deg) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotateY(0deg) scale(1);
        opacity: 1;
    }
}

.screenshots-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-neon, #FFEB3B);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.screenshots-lightbox-loading.active {
    opacity: 1;
}

.screenshots-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    color: var(--text-light, #ffffff);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10003;
    border: none;
    box-shadow: none;
    pointer-events: auto;
}

.screenshots-lightbox-nav:hover {
    background: transparent;
    color: var(--accent-neon, #FFEB3B);
    transform: translateY(-50%) scale(1.1);
    box-shadow: none;
    border-color: transparent;
}

.screenshots-lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.screenshots-lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.screenshots-lightbox-thumbnails {
    display: none;
}

/* Hide screenshot button if no screenshots */
.screenshot-lightbox-btn.hidden {
    display: none !important;
}

/* Mobile and Tablet Styles for Lightbox */
@media (max-width: 1023px) {
    .screenshots-lightbox-image {
        max-width: 85%;
        max-height: 70vh;
    }

    .screenshots-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .screenshots-lightbox-image-wrapper .screenshots-lightbox-prev {
        left: 10px;
    }

    .screenshots-lightbox-image-wrapper .screenshots-lightbox-next {
        right: 10px;
    }

    .screenshots-lightbox-image-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .screenshots-lightbox-pagination {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        gap: 8px;
        padding: 0;
    }

    .screenshots-lightbox-pagination-dot {
        width: 8px;
        height: 8px;
    }

    .screenshots-lightbox-pagination-dot.active {
        width: 24px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .screenshots-lightbox-image {
        max-width: 90%;
        max-height: 65vh;
    }

    .screenshots-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .screenshots-lightbox-image-wrapper .screenshots-lightbox-prev {
        left: 8px;
    }

    .screenshots-lightbox-image-wrapper .screenshots-lightbox-next {
        right: 8px;
    }

    .screenshots-lightbox-image-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .screenshots-lightbox-pagination {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 16px;
        gap: 6px;
        padding: 0;
    }

    .screenshots-lightbox-pagination-dot {
        width: 7px;
        height: 7px;
    }

    .screenshots-lightbox-pagination-dot.active {
        width: 20px;
        height: 7px;
    }
}

/* ============================================================================
 * PAYMENT LIGHTBOX
 * ============================================================================
 */
.payment-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.payment-lightbox.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.payment-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.payment-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--card-bg, #1a1a1a);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10001;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 235, 59, 0.2);
}

/* Custom Scrollbar for Payment Lightbox */
.payment-lightbox-container::-webkit-scrollbar {
    width: 10px;
}

.payment-lightbox-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-lightbox-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(255, 235, 59, 0.7) 0%, 
        rgba(255, 235, 59, 0.5) 50%,
        rgba(255, 235, 59, 0.7) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 235, 59, 0.3);
    box-shadow: 
        0 0 8px rgba(255, 235, 59, 0.4),
        inset 0 0 4px rgba(255, 235, 59, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 40px;
}

.payment-lightbox-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(255, 235, 59, 0.9) 0%, 
        rgba(255, 235, 59, 0.7) 50%,
        rgba(255, 235, 59, 0.9) 100%);
    border-color: rgba(255, 235, 59, 0.5);
    box-shadow: 
        0 0 12px rgba(255, 235, 59, 0.6),
        inset 0 0 6px rgba(255, 235, 59, 0.3);
    transform: scaleX(1.1);
}

.payment-lightbox-container::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, 
        var(--accent-neon) 0%, 
        rgba(255, 235, 59, 0.9) 50%,
        var(--accent-neon) 100%);
    border-color: var(--accent-neon);
    box-shadow: 
        0 0 16px rgba(255, 235, 59, 0.8),
        inset 0 0 8px rgba(255, 235, 59, 0.4);
}

/* Firefox scrollbar for payment lightbox */
.payment-lightbox-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 235, 59, 0.7) rgba(255, 255, 255, 0.03);
}

.payment-lightbox.active .payment-lightbox-container {
    transform: scale(1);
}

.payment-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.payment-lightbox-close:hover {
    background: rgba(255, 235, 59, 0.2);
    color: var(--accent-neon, #FFEB3B);
    transform: rotate(90deg);
}

.payment-lightbox-close:active {
    transform: rotate(90deg) scale(0.95);
}

.payment-lightbox-close i {
    font-size: 1.2rem;
}

/* Product Card Mini */
.payment-product-card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 235, 59, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.payment-product-card-mini:hover {
    border-color: rgba(255, 235, 59, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(255, 235, 59, 0.1);
}

.payment-product-card-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 235, 59, 0.2);
}

.payment-product-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-product-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light, #e0e0e0);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.payment-product-card-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 6px rgba(255, 235, 59, 0.4);
}

.payment-lightbox-content {
    padding: 24px;
    padding-top: 60px;
    color: var(--text-light, #e0e0e0);
}

.payment-lightbox-title {
    margin-bottom: 16px;
}

.payment-lightbox-title h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.4);
    margin: 0;
}

.payment-lightbox-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: rgba(255, 235, 59, 0.08);
    border-left: 3px solid var(--accent-neon, #FFEB3B);
    border-radius: 8px;
}

.payment-lightbox-message p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light, #e0e0e0);
}

.payment-lightbox-instructions {
    margin-bottom: 20px;
}

.instructions-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted, #9aa3b4);
    margin-bottom: 14px;
    display: block;
}

.bank-info-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 235, 59, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}

.bank-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.bank-info-row:last-child {
    margin-bottom: 0;
}

.bank-info-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted, #9aa3b4);
    min-width: 130px;
}

.bank-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light, #e0e0e0);
    word-break: break-word;
    flex: 1;
    text-align: right;
}

.bank-info-row-amount {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 235, 59, 0.15);
}

.bank-info-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-neon, #FFEB3B);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
}

.bank-info-value-with-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.copy-account-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 235, 59, 0.15);
    color: var(--accent-neon, #FFEB3B);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-account-btn:hover {
    background: rgba(255, 235, 59, 0.25);
    transform: scale(1.1);
}

.copy-account-btn.copied {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.copy-account-btn i {
    font-size: 0.9rem;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 235, 59, 0.15);
}

.qr-code-image {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 235, 59, 0.2);
}

.payment-lightbox-confirmation {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 235, 59, 0.2);
}

.confirmation-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light, #e0e0e0);
    margin-bottom: 14px;
    line-height: 1.6;
}

.confirmation-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.confirmation-btn {
    flex: 1;
    min-width: 140px;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.facebook-btn {
    background: #1877f2;
    color: #ffffff;
}

.facebook-btn:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.zalo-btn {
    background: #0068ff;
    color: #ffffff;
}

.zalo-btn:hover {
    background: #0057e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.4);
}

.confirmation-btn i {
    font-size: 1.1rem;
}

.delivery-note {
    margin: 0;
    padding: 10px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4caf50;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-note i {
    font-size: 0.9rem;
}

/* Mobile Styles for Payment Lightbox */
@media (max-width: 767px) {
    .payment-lightbox-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .payment-lightbox-content {
        padding: 16px;
        padding-top: 56px;
    }

    .payment-product-card-mini {
        padding: 10px;
        margin-bottom: 20px;
    }

    .payment-product-card-image {
        width: 50px;
        height: 50px;
    }

    .payment-product-card-name {
        font-size: 0.85rem;
    }

    .payment-product-card-price {
        font-size: 0.9rem;
    }

    .payment-lightbox-close {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }

    .payment-lightbox-title h2 {
        font-size: 1.2rem;
    }

    .payment-lightbox-message {
        padding: 12px 14px;
    }

    .payment-lightbox-message p {
        font-size: 0.85rem;
    }

    .bank-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .bank-info-label {
        min-width: auto;
        font-size: 0.85rem;
    }

    .bank-info-value {
        text-align: left;
        font-size: 0.9rem;
    }

    .bank-info-value-with-copy {
        width: 100%;
        justify-content: space-between;
    }

    .confirmation-buttons {
        flex-direction: column;
    }

    .confirmation-btn {
        width: 100%;
        min-width: auto;
    }

    .qr-code-image {
        max-height: 220px;
    }

    .confirmation-label {
        font-size: 0.85rem;
    }

    .confirmation-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .delivery-note {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

