/* =========================
   BASE
   ========================= */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 0;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Sticky header */
header {
    position: sticky;
    top: 0;
    z-index: 1050;
}

/* Toast alert for cart */
.cart-alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0d6efd;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2000;
    font-weight: bold;
    opacity: 0.95;
    transition: opacity 0.3s;
}

/* =========================
   NAVBAR / HEADER
   ========================= */

.gj-navbar {
    background: linear-gradient(90deg, #111827, #1f2937);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    position: relative;
    z-index: 1050;
}

    .gj-navbar .navbar-brand {
        color: #facc15 !important;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

        .gj-navbar .navbar-brand:hover {
            color: #00AEEF !important;
        }

    .gj-navbar .nav-link {
        color: #e5e7eb !important;
        font-weight: 500;
        margin-right: 1rem;
    }

        .gj-navbar .nav-link:hover {
            color: #00AEEF !important;
        }

.header-bar {
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.gj-navbar .header-left {
    flex: 0 0 auto;
}

.gj-navbar .header-center {
    flex: 1 1 auto;
}

.gj-navbar .header-right {
    flex: 0 0 auto;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,174,239,0.9%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Logo */
.gj-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: 0.25s ease-in-out;
    filter: drop-shadow(0 0 1px rgba(255,255,255,0.4));
}

.navbar-brand:hover .gj-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 6px #00AEEF);
}

/* =========================
   SEARCH HEADER
   ========================= */

.search-form,
.header-search-form {
    width: 100%;
}

    .search-form .search-wrapper,
    .header-search-form .search-wrapper {
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .search-form input[type="text"],
    .header-search-form input[type="text"] {
        width: 100%;
        padding: 6px 12px;
        border-radius: 20px;
        border: none;
        outline: none;
        transition: border 0.3s;
    }

        .search-form input[type="text"]:hover,
        .search-form input[type="text"]:focus,
        .header-search-form input[type="text"]:hover,
        .header-search-form input[type="text"]:focus {
            border: 2px solid #00AEEF;
        }

#search-results-panel {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 350px;
    overflow-y: auto;
    display: none;
    z-index: 2000;
    padding: 8px 0;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .search-results-list li a {
        text-decoration: none;
        color: inherit;
    }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    transition: background-color 0.2s;
}

    .search-result-item:hover {
        background-color: #f3f4f6;
    }

    .search-result-item img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-name {
    font-size: 14px;
    font-weight: 600;
}

.search-result-price {
    font-size: 13px;
    color: #4b5563;
}

.search-empty {
    padding: 8px 12px;
    font-size: 13px;
    color: #6b7280;
}

/* =========================
   CART LINK HEADER
   ========================= */

.cart-link {
    position: relative;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

    .cart-link:hover {
        color: #00AEEF;
    }

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #dc3545;
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 50%;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

/* =========================
   CAROUSEL HOME
   ========================= */

.carousel {
    margin-top: 20px;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (max-width: 300px) {
    .carousel-inner img {
        height: 250px;
        object-fit: cover;
    }
}

/* =========================
   SALES SECTION HOME
   ========================= */

/* =========================
   SALES SECTION HOME
   ========================= */

.sales-section {
    margin: 32px 20px 20px;
    padding: 26px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a, #1e293b 55%, #0e7490);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    position: relative;
}

    .sales-section::before {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        right: -90px;
        top: -120px;
        background: rgba(250, 204, 21, 0.18);
        border-radius: 50%;
        pointer-events: none;
    }

.sales-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 22px;
}

.sales-kicker {
    display: inline-block;
    color: #facc15;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.sales-header h2 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    margin: 0;
}

.sales-header p {
    color: #cbd5e1;
    margin: 6px 0 0;
    font-size: 0.95rem;
}

.sales-view-all {
    color: #111827;
    background: #facc15;
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.25s;
}

    .sales-view-all:hover {
        color: #111827;
        background: #fde047;
        transform: translateY(-2px);
    }

/* SLIDER ON LAPTOP + PHONE */
.sales-grid {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

    .sales-grid::-webkit-scrollbar {
        height: 7px;
    }

    .sales-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.18);
        border-radius: 999px;
    }

    .sales-grid::-webkit-scrollbar-thumb {
        background: rgba(250, 204, 21, 0.9);
        border-radius: 999px;
    }

        .sales-grid::-webkit-scrollbar-thumb:hover {
            background: #facc15;
        }

.sale-card {
    position: relative;
    flex: 0 0 215px;
    width: 215px;
    min-width: 215px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.22);
    transition: 0.25s;
    scroll-snap-align: start;
}

    .sale-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 36px rgba(2, 6, 23, 0.32);
    }

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #dc2626;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 5px 9px;
    border-radius: 999px;
    box-shadow: 0 6px 12px rgba(220, 38, 38, 0.35);
}

.sale-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    height: 155px;
}

    .sale-image-link img {
        width: 100%;
        height: 145px;
        object-fit: contain;
        padding: 16px;
        transition: 0.25s;
    }

.sale-card:hover .sale-image-link img {
    transform: scale(1.04);
}

.sale-content {
    padding: 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sale-title-link {
    color: inherit;
    text-decoration: none;
}

    .sale-title-link h3 {
        font-size: 0.9rem;
        color: #111827;
        font-weight: 800;
        margin: 0 0 7px;
        line-height: 1.22;
        min-height: 43px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }


.sale-description {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.3;
    margin-bottom: 12px;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.sale-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 12px;
}

.sale-price {
    color: #0d6efd;
    font-size: 1rem;
    font-weight: 900;
}

.sale-old-price {
    color: #94a3b8;
    font-size: 0.75rem;
    text-decoration: line-through;
}

.sale-form {
    margin: 0;
}

.sale-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #0d6efd, #00AEEF);
    color: #ffffff;
    font-weight: 700;
    padding: 9px 10px;
    transition: 0.25s;
    font-size: 0.82rem;
}

    .sale-btn:hover {
        background: linear-gradient(90deg, #0b5ed7, #008AC0);
        transform: translateY(-1px);
    }

/* BIG LAPTOP */
@media (min-width: 1200px) {
    .sale-card {
        flex-basis: 220px;
        width: 220px;
        min-width: 220px;
    }
}

/* TABLET */
@media (max-width: 768px) {
    .sale-card {
        flex-basis: 180px;
        width: 180px;
        min-width: 180px;
    }

    .sale-image-link {
        height: 130px;
    }

        .sale-image-link img {
            height: 120px;
        }
}

/* PHONE */
@media (max-width: 576px) {
    .sales-section {
        margin: 18px 8px 14px;
        padding: 12px;
        border-radius: 16px;
        overflow: hidden;
    }

        .sales-section::before {
            width: 130px;
            height: 130px;
            right: -70px;
            top: -75px;
        }

    .sales-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        margin-bottom: 11px;
    }

    .sales-kicker {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
        margin-bottom: 2px;
    }

    .sales-header h2 {
        font-size: 18px;
        line-height: 1.15;
    }

    .sales-header p {
        font-size: 0.72rem;
        line-height: 1.25;
        margin-top: 4px;
    }

    .sales-view-all {
        width: auto;
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .sales-grid {
        gap: 9px;
        padding-bottom: 8px;
    }

        .sales-grid::-webkit-scrollbar {
            height: 4px;
        }

    .sale-card {
        flex: 0 0 138px;
        width: 138px;
        min-width: 138px;
        border-radius: 13px;
        box-shadow: 0 8px 18px rgba(2, 6, 23, 0.22);
    }

        .sale-card:hover {
            transform: none;
            box-shadow: 0 8px 18px rgba(2, 6, 23, 0.22);
        }

    .sale-badge {
        top: 7px;
        left: 7px;
        font-size: 0.55rem;
        padding: 3px 6px;
    }

    .sale-image-link {
        height: 82px;
    }

        .sale-image-link img {
            height: 78px;
            width: 100%;
            padding: 9px;
            object-fit: contain;
        }

    .sale-card:hover .sale-image-link img {
        transform: none;
    }

    .sale-content {
        padding: 7px;
    }

    .sale-title-link h3 {
        font-size: 0.68rem;
        line-height: 1.15;
        margin-bottom: 5px;
        min-height: 31px;
    }

    .sale-description {
        display: none;
    }

    .sale-price-row {
        gap: 4px;
        margin-bottom: 7px;
    }

    .sale-price {
        font-size: 0.76rem;
        line-height: 1;
    }

    .sale-old-price {
        font-size: 0.56rem;
        line-height: 1;
    }

    .sale-btn {
        padding: 6px 4px;
        font-size: 0.6rem;
        border-radius: 7px;
        line-height: 1.1;
    }
}
/* =========================
   CATEGORIES
   ========================= */

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 40px 20px;
}

.link {
    text-decoration: none;
}

.categories-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #00AEEF;
    border-radius: 12px;
    padding: 15px;
    transition: 0.5s;
}

    .categories-card:hover {
        box-shadow: 0 4px 12px #0d6efd;
    }

    .categories-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 10px;
    }

.cth2,
.prh2 {
    font-size: 26px;
    font-weight: 700;
    color: #1C2630;
    margin: 20px 20px;
    text-align: left;
}

.cardbody h4 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-top: 15px;
    text-align: center;
}

@media (max-width: 768px) {
    .categories {
        gap: 20px;
    }

    .link {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

/* =========================
   PRODUCT CARDS HOME & CATEGORY
   ========================= */

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

    .card-container a {
        text-decoration: none;
    }

.card {
    flex: 1 1 calc(20% - 20px);
    max-width: calc(20% - 20px);
    background-color: #fff;
    border: 1px solid #00AEEF;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: 0.5s;
}

    .card img {
        width: 100%;
        height: auto;
        display: block;
    }

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 24px;
    margin-top: auto;
}

.card-text {
    font-size: 20px;
    margin-top: auto;
    align-self: center;
}

.card:hover {
    box-shadow: 0 4px 12px #0d6efd;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    background-color: #0d6efd;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    border: none;
}

    .btn:hover {
        background-color: #007bff;
    }

@media (max-width: 768px) {
    .card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

/* =========================
   CART PAGE
   ========================= */

.cart-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

    .cart-container h1 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 1.8rem;
    }

.cart-empty {
    text-align: center;
    font-size: 1rem;
    color: #4b5563;
}

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

    .cart-item img {
        width: 160px;
        height: 160px;
        object-fit: cover;
        border-radius: 8px;
    }

.cart-info {
    flex: 1;
}

    .cart-info h3 {
        font-size: 1rem;
        margin: 0 0 5px 0;
        font-weight: 600;
    }

    .cart-info p {
        font-size: 0.9rem;
        margin: 0;
        color: #374151;
    }

.remove-btn {
    background-color: #d9534f;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    align-self: flex-start;
}

    .remove-btn:hover {
        background-color: #c0392b;
    }

#total-price {
    text-align: right;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 20px;
}

#clear-cart {
    display: block;
    margin: 20px auto 0 auto;
    background-color: #111827;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

    #clear-cart:hover {
        background-color: #0d6efd;
    }

.checkout-buy-btn {
    width: 100%;
    max-width: 220px;
    background-color: #00AEEF;
    color: #fff;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

    .checkout-buy-btn:hover {
        background-color: #008AC0;
    }

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

        .cart-item img {
            width: 100%;
            height: auto;
        }

    #total-price {
        text-align: center;
    }

    #clear-cart {
        width: 100%;
    }
}

/* =========================
   PRODUCT DETAILS QTY BUTTONS
   ========================= */

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    background: #f8f9fa;
    font-size: 22px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

    .qty-btn:hover {
        background: #e2e6ea;
    }

/* =========================
   RESPONSIVE HEADER
   ========================= */

@media (max-width: 992px) {
    .header-bar {
        flex-wrap: wrap;
    }

    .gj-navbar .header-center {
        flex: 1 0 100%;
        order: 3;
        margin-top: 0.5rem;
    }

    .gj-navbar .header-right {
        order: 2;
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .header-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .gj-navbar .header-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .gj-navbar .header-center {
        width: 100%;
        order: 2;
        margin-top: 0.5rem;
    }

    .gj-navbar .header-right {
        width: 100%;
        order: 3;
        margin-top: 0.5rem;
        justify-content: flex-end;
        display: flex;
        gap: 0.75rem;
    }

    .search-form .search-wrapper,
    .header-search-form .search-wrapper {
        max-width: 100%;
    }
}

/* =========================
   ADMIN DASHBOARD
   ========================= */

.admin-dashboard {
    color: #e5e7eb;
}

.admin-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f9fafb;
}

.admin-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
}

.admin-go-store {
    border-color: #facc15;
    color: #facc15;
}

    .admin-go-store:hover {
        background-color: #facc15;
        color: #111827;
    }

.admin-kpi-card {
    background: radial-gradient(circle at top left, #1d4ed8, #111827);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    height: 100%;
}

    .admin-kpi-card .kpi-label {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #bfdbfe;
        margin-bottom: 4px;
    }

    .admin-kpi-card .kpi-value {
        font-size: 1.8rem;
        font-weight: 700;
        color: #f9fafb;
        margin-bottom: 4px;
    }

    .admin-kpi-card .kpi-footer {
        font-size: 0.8rem;
        color: #9ca3af;
    }

.admin-section {
    background: #0b1120;
    border-radius: 16px;
    padding: 18px 18px 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e5e7eb;
}

.admin-section-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
}

.admin-alert {
    margin: 10px auto;
    max-width: 900px;
}

.admin-action-btn {
    background: #111827;
    border: 1px solid #1d4ed8;
    color: #e5e7eb;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .admin-action-btn:hover {
        background: #1d4ed8;
        border-color: #2563eb;
        color: #f9fafb;
    }

.admin-info-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #9ca3af;
}

    .admin-info-list li {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        border-bottom: 1px dashed rgba(55, 65, 81, 0.6);
    }

        .admin-info-list li:last-child {
            border-bottom: none;
        }

    .admin-info-list span {
        color: #e5e7eb;
    }

.admin-link-small {
    font-size: 0.85rem;
    color: #60a5fa;
    text-decoration: none;
}

    .admin-link-small:hover {
        color: #93c5fd;
        text-decoration: underline;
    }

.admin-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(55, 65, 81, 0.75);
}

.admin-table {
    background-color: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
}

    .admin-table thead {
        background: #020617;
        border-bottom: 1px solid rgba(55, 65, 81, 0.9);
    }

        .admin-table thead th {
            font-weight: 600;
            color: #9ca3af;
            padding-top: 10px;
            padding-bottom: 10px;
        }

    .admin-table tbody tr:nth-child(even) {
        background-color: #020617;
    }

    .admin-table tbody tr:nth-child(odd) {
        background-color: #020617;
    }

    .admin-table tbody tr:hover {
        background-color: #0f172a;
    }

.admin-mini-card {
    background: #020617;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(55, 65, 81, 0.8);
}

    .admin-mini-card .mini-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: #e5e7eb;
        margin-bottom: 2px;
    }

    .admin-mini-card .mini-sub {
        font-size: 0.8rem;
        color: #9ca3af;
    }

@media (max-width: 768px) {
    .admin-title {
        font-size: 1.4rem;
    }

    .admin-kpi-card .kpi-value {
        font-size: 1.4rem;
    }

    .admin-section {
        padding: 14px;
    }
}

/* =========================
   ADMIN TABLE PAGES
   ========================= */

.admin-page {
    padding: 25px;
}

    .admin-page .admin-title {
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #111827;
    }

    .admin-page .admin-table-wrapper {
        overflow-x: auto;
        background: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .admin-page .admin-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 15px;
        background-color: white;
        color: #111827;
    }

        .admin-page .admin-table th {
            background: #1C2630;
            color: white;
            padding: 12px;
            text-align: left;
        }

        .admin-page .admin-table td {
            padding: 12px;
            border-bottom: 1px solid #e5e7eb;
        }

        .admin-page .admin-table tr:hover {
            background: #f9fafb;
        }

.admin-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .admin-page .admin-title {
        font-size: 22px;
    }

    .admin-thumb {
        width: 45px;
        height: 45px;
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-add-btn {
    background-color: #00AEEF;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
}

    .admin-add-btn:hover {
        background-color: #008AC0;
    }

.admin-actions {
    display: flex;
    gap: 6px;
}

.admin-edit-btn {
    background-color: #4e73df;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.25s;
}

    .admin-edit-btn:hover {
        background-color: #3b5dc1;
    }

.admin-delete-btn {
    background-color: #e74a3b;
    color: white;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s;
}

    .admin-delete-btn:hover {
        background-color: #c0392b;
    }

/* =========================
   CATEGORY DROPDOWN NAVBAR
   ========================= */

.gj-navbar .dropdown-menu {
    background-color: #1C2630;
    border: none;
    min-width: 220px;
}

.gj-navbar .dropdown-item {
    color: #e5e7eb;
    font-weight: 500;
}

    .gj-navbar .dropdown-item:hover,
    .gj-navbar .dropdown-item:focus {
        background-color: #00AEEF;
        color: #111827;
    }

/* =========================
   FOOTER
   ========================= */

.gj-footer {
    width: 100%;
    background-color: #1C2630;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.footer-social {
    display: flex;
    align-items: center;
}

.social-icon {
    width: 18px;
    height: 18px;
    opacity: 0.85;
    transition: 0.25s;
    object-fit: contain;
    margin-left: 10px;
}

    .social-icon:hover {
        opacity: 1;
    }
/* =========================
   MODERN ADMIN PANEL FIX
   Blue modern style + visible text
   ========================= */

/* Main admin background */
.admin-dashboard,
.admin-page {
    background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a) !important;
    color: #f8fafc !important;
    min-height: 100vh;
}

/* Admin page spacing */
.admin-page {
    padding: 28px !important;
}

/* Main titles */
.admin-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
}

.admin-subtitle,
.admin-section-subtitle {
    color: #cbd5e1 !important;
}

/* Admin sections */
.admin-section {
    background: rgba(15, 23, 42, 0.92) !important;
    color: #ffffff !important;
    border: 1px solid rgba(96, 165, 250, 0.35) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 35px rgba(2, 6, 23, 0.45) !important;
}

/* Section titles */
.admin-section-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* KPI cards */
.admin-kpi-card {
    background: linear-gradient(135deg, #1d4ed8, #0f172a) !important;
    border: 1px solid rgba(147, 197, 253, 0.35) !important;
    color: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45) !important;
}

    .admin-kpi-card .kpi-label {
        color: #bfdbfe !important;
    }

    .admin-kpi-card .kpi-value {
        color: #ffffff !important;
    }

    .admin-kpi-card .kpi-footer {
        color: #dbeafe !important;
    }

/* Mini cards */
.admin-mini-card {
    background: #111827 !important;
    color: #ffffff !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
    border-radius: 12px !important;
}

    .admin-mini-card .mini-title {
        color: #ffffff !important;
    }

    .admin-mini-card .mini-sub {
        color: #cbd5e1 !important;
    }

/* Info list */
.admin-info-list {
    color: #cbd5e1 !important;
}

    .admin-info-list li {
        color: #cbd5e1 !important;
        border-bottom: 1px dashed rgba(148, 163, 184, 0.35) !important;
    }

    .admin-info-list span {
        color: #ffffff !important;
    }

/* Links */
.admin-link-small {
    color: #93c5fd !important;
    text-decoration: none !important;
}

    .admin-link-small:hover {
        color: #bfdbfe !important;
        text-decoration: underline !important;
    }

/* =========================
   ADMIN TABLES
   Products / Categories / Users
   ========================= */

.admin-table-wrapper,
.admin-page .admin-table-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(96, 165, 250, 0.35) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 35px rgba(2, 6, 23, 0.35) !important;
    overflow-x: auto !important;
}

/* Table itself */
.admin-table,
.admin-page .admin-table {
    width: 100% !important;
    background: #ffffff !important;
    color: #111827 !important;
    border-collapse: collapse !important;
}

    /* Table header */
    .admin-table thead,
    .admin-page .admin-table thead {
        background: #1d4ed8 !important;
    }

        .admin-table thead th,
        .admin-page .admin-table th {
            background: #1d4ed8 !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            padding: 13px 12px !important;
            border-bottom: none !important;
        }

    /* Table body */
    .admin-table tbody,
    .admin-page .admin-table tbody {
        background: #ffffff !important;
    }

        .admin-table tbody tr,
        .admin-page .admin-table tbody tr {
            background: #ffffff !important;
            color: #111827 !important;
        }

        /* Table cells */
        .admin-table tbody td,
        .admin-page .admin-table td {
            background: #ffffff !important;
            color: #111827 !important;
            padding: 12px !important;
            border-bottom: 1px solid #e5e7eb !important;
        }

            /* Make all table text visible */
            .admin-table td,
            .admin-table td *,
            .admin-page .admin-table td,
            .admin-page .admin-table td * {
                color: #111827 !important;
            }

        /* Remove ugly hover color problem */
        .admin-table tbody tr:hover,
        .admin-page .admin-table tr:hover {
            background: #f8fafc !important;
            color: #111827 !important;
        }

            .admin-table tbody tr:hover td,
            .admin-page .admin-table tr:hover td {
                background: #f8fafc !important;
                color: #111827 !important;
            }

        /* Alternating rows, still very clean */
        .admin-table tbody tr:nth-child(even) td,
        .admin-page .admin-table tbody tr:nth-child(even) td {
            background: #f9fafb !important;
        }

        .admin-table tbody tr:nth-child(odd) td,
        .admin-page .admin-table tbody tr:nth-child(odd) td {
            background: #ffffff !important;
        }

/* Thumbnail images */
.admin-thumb {
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
}

/* =========================
   ADMIN BUTTONS
   ========================= */

.admin-header {
    color: #ffffff !important;
}

/* Add button */
.admin-add-btn {
    background: linear-gradient(90deg, #2563eb, #0ea5e9) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35) !important;
}

    .admin-add-btn:hover {
        background: linear-gradient(90deg, #1d4ed8, #0284c7) !important;
        color: #ffffff !important;
    }

/* Edit button */
.admin-edit-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
}

    .admin-edit-btn:hover {
        background: #1d4ed8 !important;
        color: #ffffff !important;
    }

/* Delete button */
.admin-delete-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
}

    .admin-delete-btn:hover {
        background: #b91c1c !important;
        color: #ffffff !important;
    }

/* Quick action buttons */
.admin-action-btn {
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    border-radius: 10px !important;
}

    .admin-action-btn:hover {
        background: #2563eb !important;
        color: #ffffff !important;
        border-color: #60a5fa !important;
    }

/* Back to store button */
.admin-go-store {
    color: #facc15 !important;
    border-color: #facc15 !important;
}

    .admin-go-store:hover {
        background: #facc15 !important;
        color: #111827 !important;
    }

/* =========================
   ADMIN FORMS
   ========================= */

.admin-page label,
.admin-dashboard label {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.admin-page input,
.admin-page select,
.admin-page textarea,
.admin-dashboard input,
.admin-dashboard select,
.admin-dashboard textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
}

    .admin-page input:focus,
    .admin-page select:focus,
    .admin-page textarea:focus,
    .admin-dashboard input:focus,
    .admin-dashboard select:focus,
    .admin-dashboard textarea:focus {
        border-color: #60a5fa !important;
        box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.25) !important;
    }

/* Validation text */
.admin-page .text-danger,
.admin-dashboard .text-danger {
    color: #f87171 !important;
}

/* Alerts */
.admin-alert {
    border-radius: 10px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-page {
        padding: 16px !important;
    }

    .admin-title {
        font-size: 1.45rem !important;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .admin-actions {
        flex-direction: column;
        gap: 6px;
    }

    .admin-edit-btn,
    .admin-delete-btn {
        display: inline-block;
        width: 100%;
        text-align: center;
    }
}

/* =========================
   ADMIN CHECKBOX FIX
   Visible + clickable active checkbox
   ========================= */

.admin-check-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: fit-content !important;
    padding: 12px 16px !important;
    margin-top: 12px !important;
    margin-bottom: 18px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    color: #111827 !important;
}

.admin-check-input {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    min-height: 21px !important;
    margin: 0 !important;
    opacity: 1 !important;
    position: static !important;
    display: inline-block !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    border: 2px solid #2563eb !important;
    background-color: #ffffff !important;
    accent-color: #2563eb !important;
    box-shadow: none !important;
}

.admin-check-label {
    color: #111827 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    user-select: none !important;
    margin: 0 !important;
}

.admin-check-wrapper:hover {
    background: #ffffff !important;
    color: #111827 !important;
}

.admin-page .admin-check-wrapper label,
.admin-dashboard .admin-check-wrapper label {
    color: #111827 !important;
}
/* =========================
   GEMINI CHATBOT
   ========================= */

#gj-chatbot {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    font-family: inherit;
}

#gj-chatbot-toggle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: white;
    font-size: 30px;
    line-height: 1;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gj-chatbot-box {
    display: none;
    width: 340px;
    height: 460px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    border: 1px solid #dbeafe;
}

#gj-chatbot-header {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

#gj-chatbot-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

#gj-chatbot-messages {
    height: 335px;
    padding: 14px;
    overflow-y: auto;
    background: #f8fafc;
}

.gj-bot-message,
.gj-user-message {
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.gj-bot-message {
    background: #e0f2fe;
    color: #0f172a;
    margin-right: 25px;
}

.gj-user-message {
    background: #2563eb;
    color: #ffffff;
    margin-left: 25px;
    text-align: right;
}

#gj-chatbot-input-area {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

#gj-chatbot-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px;
    outline: none;
}

#gj-chatbot-send {
    border: none;
    background: #2563eb;
    color: #ffffff;
    border-radius: 8px;
    padding: 0 12px;
    cursor: pointer;
}

@media (max-width: 480px) {
    #gj-chatbot {
        right: 12px;
        bottom: 12px;
    }

    #gj-chatbot-box {
        width: calc(100vw - 24px);
        height: 430px;
    }

    #gj-chatbot-messages {
        height: 305px;
    }
}
.google-login-btn {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

    .google-login-btn:hover {
        background: #f9fafb;
        color: #111827;
        border-color: #9ca3af;
        text-decoration: none;
    }

.google-icon {
    width: 22px;
    height: 22px;
}