/* ========================================
   PRODUCT PAGES CSS
   Detail, Category, Product Listing
   ======================================== */

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.75rem;
    margin-bottom: 1.5rem !important;
}

.breadcrumb-item a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #94a3b8;
    opacity: 0.7;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #475569;
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    padding: 0 10px;
}

/* ========================================
   PRODUCT DETAIL PAGE - CLEAN COMPACT
   ======================================== */

/* Sections (Unified for consistent navbar clearing) */
.detail-section,
.category-section,
.product-all-section {
    padding: 100px 0 2.5rem 0 !important;
    min-height: 80vh !important;
}

.detail-container,
.category-container,
.product-all-container {
    margin-top: 0 !important;
}

/* Glassmorphism Card for Product Info */
.detail-glass-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

@media (max-width: 767px) {
    .detail-glass-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
}

/* Detail Image */
.detail-image-wrapper {
    position: relative !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 300px !important;
    margin: 0 auto !important;
}

.detail-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

/* Product Badge Premium */
.product-badge-premium {
    font-size: 0.55rem !important;
    background: rgba(249, 115, 22, 0.1) !important;
    color: #f97316 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
}

/* Product Title Premium */
.product-title-premium {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
}

/* Product Meta */
.product-meta {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 0.78rem !important;
    color: #64748b !important;
    margin-bottom: 15px !important;
}

.product-meta i {
    color: #f97316 !important;
    font-size: 0.7rem !important;
}

/* Product Price Display */
.product-price-display {
    font-weight: 700 !important;
    color: #f97316 !important;
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
}

/* Product Description */
.product-desc {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

/* Seller Box */
.seller-info-box {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
}

/* Quantity Control Premium */
.qty-control-premium {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 42px;
    display: flex;
    align-items: center;
    min-width: 120px;
}

.qty-control-premium .btn {
    font-size: 0.8rem;
    padding: 0 15px !important;
    height: 100%;
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
    transition: all 0.2s;
}

.qty-control-premium .btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent) !important;
}

.qty-input {
    width: 60px !important;
    font-size: 1rem !important;
    background: transparent !important;
    border: 0 !important;
    color: white !important;
    font-weight: 700 !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button */
.add-to-cart-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

.btn-add-to-cart {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    height: 42px;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-add-to-cart:hover {
    background: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
    color: white;
}

/* Seller Info Box */
.seller-info-box {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.seller-label {
    color: #64748b;
    font-size: 0.75rem;
}

.seller-link {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.seller-link:hover {
    color: #fb923c;
}

/* Own Product Notice */
.own-product-notice {
    background: rgba(249,115,22,0.06);
    border: 1px solid rgba(249,115,22,0.12);
    border-radius: 10px;
    color: #f97316;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 10px 14px;
    display: flex;
    align-items: center;
}

/* ========================================
   LOGIN MODAL (Product Page)
   ======================================== */
.modal-content {
    background: rgba(25, 25, 25, 0.95);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.modal-header {
    border: 0;
    padding-bottom: 0;
}

.modal-title {
    color: #fff;
    font-weight: 700;
}

.modal-body {
    padding: 1.5rem;
}

.form-label-modal {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.input-group-modal {
    position: relative;
}

.input-icon-modal {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 2;
}

.form-control-modal {
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    color: #fff;
    padding: 10px 16px 10px 40px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.form-control-modal:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.25);
}

.btn-login-modal {
    background: #ea580c;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 10px;
    transition: all 0.3s ease;
}

.btn-login-modal:hover {
    background: #c2410c;
    transform: translateY(-2px);
}

.modal-footer-divider {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

.register-link {
    color: #ea580c;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.register-link:hover {
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .detail-section,
    .category-section,
    .product-all-section {
        padding: 90px 0 2rem 0 !important;
    }

    .detail-container,
    .category-container,
    .product-all-container {
        margin-top: 0 !important;
    }

    .product-title-premium {
        font-size: 1.3rem !important;
    }

    .detail-image-wrapper {
        padding: 0 !important;
        max-width: 200px !important;
        margin-bottom: 20px !important;
    }

    .qty-control-premium {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .qty-input {
        flex-grow: 1;
        width: auto !important;
        min-width: 50px;
        font-size: 1.1rem !important;
    }

    .qty-control-premium .btn {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        width: 45px;
        padding: 0 !important;
        justify-content: center;
    }

    .add-to-cart-container {
        padding: 20px;
        margin-top: 1.5rem;
    }

    .btn-add-to-cart {
        width: 100%;
        min-width: auto;
        height: 48px;
        font-size: 1rem;
    }
}

/* ========================================
   CATEGORY PAGE
   ======================================== */

/* Section styling moved to unified block at top */

/* Mobile Search */
.search-input-mobile {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    color: white;
    border-radius: 10px;
    padding-left: 35px;
    height: 42px;
    font-size: 14px;
}

.search-icon-mobile {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 12px;
}

/* Dropdown Game Icon */
.dropdown-game-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 6px;
}

/* Sidebar Icon Placeholder */
.sidebar-icon-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(234, 88, 12, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-icon-placeholder i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* Sort Section */
.sort-section {
    border-top: 1px solid var(--border-glass);
}

/* Empty State */
.empty-state-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    backdrop-filter: blur(5px);
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #f97316;
}

.empty-state-desc {
    max-width: 320px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn-explore-games {
    background: #f97316;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-explore-games:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

/* Product Image Placeholder */
.product-image-placeholder {
    background: rgba(255,255,255,0.02);
}

/* ========================================
   PRODUCT ALL PAGE
   ======================================== */

/* Section */
.product-all-section {
    padding: 2.5rem 0;
    min-height: 75vh;
}

@media (max-width: 767px) {
    .product-all-section {
        padding: 1rem 0;
    }
}

.product-all-container {
    margin-top: 50px;
}

/* Pagination Modern */
.pagination-modern {
    margin-top: 2rem;
}

.pagination-modern .page-link {
    background: rgba(255,255,255,0.05);
    border: 0;
    color: #fff;
    border-radius: 12px;
    padding: 8px 14px;
    transition: all 0.3s ease;
}

.pagination-modern .page-link:hover {
    background: rgba(234, 88, 12, 0.2);
    color: #fff;
}

.pagination-modern .page-item.active .page-link {
    background: var(--accent);
    color: #fff;
}

.pagination-modern .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Price Val */
.price-val {
    font-size: 1rem;
    font-weight: 600;
}
