
/*Custom FE*/
html,
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background: #0a0f1a;
}

.nav-glass {
    background: rgba(10, 15, 26, .55);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-link,
.navbar-brand {
    color: #e8eefc !important;
}

.nav-link:hover {
    color: #ffd86b !important;
}

.btn-pill {
    border-radius: 50rem;
    padding: .55rem 1rem;
    font-weight: 600;
}

footer {
    background: #0b1220;
    color: #9fb0d0;
}

/* Drawer Styles */
.offcanvas {
    background: linear-gradient(135deg, #0a0f1a 0%, #1a1f3a 100%);
    width: 300px !important;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    color: #e8eefc;
    font-weight: 600;
}

.offcanvas .btn-close {
    filter: invert(1);
}

.offcanvas .nav-link {
    color: #e8eefc !important;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.offcanvas .nav-link:hover {
    background: rgba(255, 216, 107, 0.1);
    color: #ffd86b !important;
    transform: translateX(5px);
}

.offcanvas .dropdown-menu {
    background: rgba(26, 31, 58, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas .dropdown-item {
    color: #e8eefc;
    padding: 0.5rem 1rem;
}

.offcanvas .dropdown-item:hover {
    background: rgba(255, 216, 107, 0.1);
    color: #ffd86b;
}

/* Responsive navbar */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

    .navbar-brand img {
        height: 60px;
    }
}

/* Footer responsive */
@media (max-width: 767.98px) {
    footer .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    footer img {
        height: 80px !important;
    }
}

.hero {
    position: relative;
    min-height: 120vh;
    color: #eef3ff;
    background: url("/images/background/hero-1.jpg") center/cover no-repeat;
    z-index: 66;
    padding-bottom: 20rem
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #000);
    pointer-events: none;
    z-index: 99;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 25% 40%, rgba(36, 79, 170, .35), transparent 60%),
    linear-gradient(180deg,
        rgba(0, 0, 0, .85) 0%,
        rgba(7, 11, 22, .3) 25%,
        rgba(7, 11, 22, .25) 50%,
        rgba(7, 11, 22, .4) 75%,
        rgba(0, 0, 0, .9) 100%);
    pointer-events: none;
}

/* ==================== RESET & BASE STYLES ==================== */
.shop-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(10, 20, 40, 0.85) 30%,
        rgba(20, 40, 80, 0.75) 50%,
        rgba(10, 20, 40, 0.85) 70%,
        rgba(0, 0, 0, 0.95) 100%),
        url('https://images.unsplash.com/photo-1614732414444-096e5f1122d5?w=1920') center/cover no-repeat;
    z-index: -1;
}

.shop-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(30, 100, 200, 0.3), transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(50, 80, 150, 0.2), transparent 50%);
}

/* ==================== SHOP CONTAINER ==================== */
.shop-container {
    position: relative;
    z-index: 10;
    padding-top: 3rem;
    padding-bottom: 5rem;
    max-width: 1400px;
}

/* ==================== SHOP TITLE ==================== */
.shop-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: 4px;
    text-shadow:
        0 0 20px rgba(100, 150, 255, 0.8),
        0 0 40px rgba(50, 100, 200, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ==================== CATEGORY NAVIGATION ==================== */
.category-nav-wrapper {
    margin-bottom: 1.5rem;
}

.category-nav {
    background: rgba(15, 15, 20, 0.95);
    border: 2px solid rgba(80, 100, 140, 0.4);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.category-tab {
    background: transparent;
    border: none;
    color: #aabbcc;
    padding: 0.6rem 1.3rem;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.category-tab:hover {
    color: #fff;
    background: rgba(50, 100, 180, 0.2);
    transform: translateY(-1px);
}

.category-tab.active {
    color: #6dd5ff;
    background: rgba(50, 100, 180, 0.3);
    box-shadow: 0 0 15px rgba(100, 180, 255, 0.3);
}

/* ==================== SEARCH BAR ==================== */
.search-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.search-box {
    width: 450px;
    background: rgba(15, 15, 20, 0.95);
    border: 2px solid rgba(80, 100, 140, 0.5);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.search-box:focus {
    outline: none;
    border-color: rgba(100, 150, 255, 0.7);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(100, 150, 255, 0.3);
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-clear,
.btn-search {
    background: rgba(15, 15, 20, 0.95);
    border: 2px solid rgba(80, 100, 140, 0.5);
    color: #fff;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-clear {
    min-width: 50px;
    font-size: 1.1rem;
}

.btn-search {
    min-width: 100px;
}

.btn-clear:hover,
.btn-search:hover {
    background: rgba(40, 60, 100, 0.8);
    border-color: rgba(100, 150, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 100, 200, 0.4);
}

.btn-clear:active,
.btn-search:active {
    transform: translateY(0);
}

/* ==================== SHOP TABLE ==================== */
.table-wrapper {
    background: rgba(10, 10, 15, 0.85);
    border: 2px solid rgba(60, 80, 110, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
}

.shop-table thead {
    background: rgba(5, 5, 10, 0.95);
    border-bottom: 1px solid rgba(60, 80, 110, 0.3);
}

.shop-table th {
    padding: 1.2rem 1.5rem;
    text-align: left;
    color: #b0c0d0;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.shop-table th:first-child {
    padding-left: 2rem;
}

.shop-table td {
    padding: 1.3rem 1.5rem;
    color: #d0dae5;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    border-bottom: 1px solid rgba(40, 50, 70, 0.25);
}

.shop-table td:first-child {
    padding-left: 2rem;
}

.shop-table tbody tr {
    background: rgba(15, 20, 30, 0.5);
    transition: all 0.3s ease;
}

.shop-table tbody tr:hover {
    background: rgba(30, 45, 70, 0.4);
    box-shadow: inset 0 0 20px rgba(40, 80, 140, 0.15);
}

/* Item Cell with Image */
.item-cell {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.item-image {
    width: 55px;
    height: 55px;
    background: rgba(30, 40, 55, 0.6);
    border: 2px solid rgba(60, 80, 110, 0.4);
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.shop-table tbody tr:hover .item-image {
    border-color: rgba(80, 120, 180, 0.5);
    box-shadow:
        0 0 12px rgba(80, 120, 180, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Buy Button */
.btn-buy {
    background: rgba(15, 15, 20, 0.95);
    border: 2px solid rgba(200, 180, 100, 0.6);
    color: #ffd700;
    padding: 0.55rem 1.3rem;
    cursor: pointer;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-buy:hover {
    background: rgba(40, 35, 20, 0.95);
    border-color: rgba(255, 215, 0, 0.9);
    color: #ffed4e;
    transform: translateY(-2px);
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

.btn-buy:active {
    transform: translateY(0);
}

.btn-buy i {
    font-size: 1rem;
}

/* No Items Message */
.no-items {
    padding: 4rem 2rem;
    text-align: center;
    color: #8899aa;
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
}

/* ==================== PAGINATION ==================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.pagination-custom {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.pagination-custom li {
    margin: 0;
}

.pagination-custom button {
    background: rgba(15, 15, 20, 0.95);
    border: 2px solid rgba(80, 100, 140, 0.5);
    color: #aabbcc;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 42px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pagination-custom button:hover:not(:disabled) {
    background: rgba(40, 60, 100, 0.8);
    border-color: rgba(100, 150, 255, 0.7);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 100, 200, 0.4);
}

.pagination-custom button.active {
    background: rgba(50, 80, 140, 0.9);
    border-color: rgba(100, 150, 255, 0.8);
    color: #6dd5ff;
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.4);
}

.pagination-custom button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-custom button:disabled:hover {
    background: rgba(15, 15, 20, 0.95);
    border-color: rgba(80, 100, 140, 0.5);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==================== PAYMENT MODAL ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.payment-modal {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(100, 150, 255, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.description-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.description-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
}

.item-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.item-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #3498db;
}

.stock-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.stock-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
}

.stock-icon {
    font-size: 1.2rem;
}

.stock-label {
    color: #7f8c8d;
}

.stock-value {
    font-weight: 700;
    color: #f39c12;
}

.sold-value {
    font-weight: 700;
    color: #e74c3c;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: white;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: white;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input::placeholder {
    color: #bdc3c7;
}

.modal-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-modal {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancel {
    background: #ecf0f1;
    color: #7f8c8d;
}

.btn-cancel:hover {
    background: #bdc3c7;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-confirm {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-confirm:active,
.btn-cancel:active {
    transform: translateY(0);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .shop-title {
        font-size: 3.5rem;
    }

    .category-nav {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .shop-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        letter-spacing: 2px;
    }

    .category-nav {
        padding: 0.8rem;
        gap: 0.3rem;
    }

    .category-tab {
        font-size: 0.75rem;
        padding: 0.5rem 0.9rem;
    }

    .search-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .search-box {
        width: 100%;
    }

    .btn-clear,
    .btn-search {
        width: 100%;
    }

    /* Hide table on mobile, show card layout */
    .table-wrapper {
        border: none;
        background: transparent;
    }

    .shop-table thead {
        display: none;
    }

    .shop-table,
    .shop-table tbody,
    .shop-table tr,
    .shop-table td {
        display: block;
        width: 100%;
    }

    .shop-table tr {
        background: rgba(15, 20, 30, 0.85);
        border: 2px solid rgba(60, 80, 110, 0.3);
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1.2rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    .shop-table td {
        padding: 0.5rem 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .shop-table td:first-child {
        padding-left: 0;
        margin-bottom: 0.8rem;
        border-bottom: 1px solid rgba(60, 80, 110, 0.3);
        padding-bottom: 0.8rem;
    }

    .shop-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #b0c0d0;
        font-family: 'Orbitron', sans-serif;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .shop-table td:first-child::before {
        display: none;
    }

    .item-cell {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        width: 100%;
    }

    .item-image {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }

    .btn-buy {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .pagination-custom {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .pagination-custom button {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-width: 38px;
    }
}

@media (max-width: 576px) {
    .shop-container {
        padding-top: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .shop-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .category-nav {
        padding: 0.6rem;
    }

    .category-tab {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }

    .search-box {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .btn-clear,
    .btn-search {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .shop-table tr {
        padding: 1rem;
    }

    .shop-table td {
        font-size: 0.9rem;
    }

    .shop-table td::before {
        font-size: 0.75rem;
    }

    .item-cell span {
        font-size: 0.95rem;
    }

    .item-image {
        width: 60px;
        height: 60px;
    }

    .btn-buy {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .no-items {
        font-size: 1.1rem;
        padding: 3rem 1rem;
    }

    /* Modal Responsive */
    .payment-modal {
        width: 95%;
        max-width: 100%;
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .description-section {
        padding: 1rem;
    }

    .item-name {
        font-size: 0.95rem;
    }

    .item-price {
        font-size: 1rem;
    }

    .stock-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stock-item {
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 6px;
    }

    .form-select,
    .form-input {
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .btn-modal {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .pagination-custom button {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 32px;
    }
}

@media (max-width: 375px) {
    .shop-title {
        font-size: 1.6rem;
    }

    .category-tab {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
    }

    .shop-table tr {
        padding: 0.8rem;
    }

    .item-image {
        width: 50px;
        height: 50px;
    }

    .pagination-custom button {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        min-width: 28px;
    }
}

