/* Enhanced font imports */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* AWGE SHOP inspired color variables - Red Theme */
:root {
    --color-main: #dc2626;
    --color-main-opa-75: #dc262675;
    --color-main-opa-50: #dc262650;
    --color-main-opa-25: #dc262625;
    --color-main-opa-15: #dc262615;
    --color-main-opa-30: #dc262630;
    --color-main-opa-60: #dc262660;
    --color-main-opa-80: #dc262680;
    --color-main-opa-90: #dc262690;
    --color-main-opa-95: #dc262695;

    --color-button: #ef4444;
    --color-button-opa-75: #ef444475;
    --color-button-opa-50: #ef444450;
    --color-button-opa-25: #ef444425;
    --color-button-opa-15: #ef444415;

    /* Legacy variable support */
    --red-primary: var(--color-main);
    --red-secondary: var(--color-button);

    --color-text: #ffffff;
    --color-text-opa-85: #ffffff85;
    --color-text-opa-75: #ffffff75;
    --color-text-opa-50: #ffffff50;
    --color-text-opa-25: #ffffff25;
    --color-text-opa-15: #ffffff15;

    --color-border: #fff;
    --color-bg-theme: #000;
    --color-text-theme: #fff;
    --color-text-theme-opa-25: #fff25;
    --color-text-theme-opa-50: #fff50;
    --color-text-theme-opa-75: #fff75;
    --color-text-theme-opa-85: #fff85;

    --font-primary: 'Kanit', sans-serif;
    --font-display: 'Orbitron', monospace;
    --font-body: 'Kanit', sans-serif;
}

/* Modern Typography */
*:not(i) {
    font-family: var(--font-primary);
    font-weight: normal !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600 !important;
}


/* AWGE SHOP Styling Classes */
.text-main {
    color: var(--color-main) !important;
}

.text-main,
.text-main i {
    color: var(--color-main) !important;
}

.text-theme,
.text-theme i {
    color: var(--color-text-theme) !important;
}

.active-main {
    color: #000 !important;
    background-color: var(--color-main) !important;
}

.custom-badge-success {
    background-color: var(--color-button);
    color: var(--color-text);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
}

/* AWGE Button Styling */
.btn-awge {
    background: linear-gradient(135deg, var(--color-button), var(--color-main));
    border: 1px solid var(--color-button);
    color: var(--color-text);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-awge:hover {
    background: linear-gradient(135deg, var(--color-main), var(--color-button));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-main-opa-50);
    color: var(--color-text);
    text-decoration: none;
}

/* AWGE Product Card Styling */
.awge-product-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.9));
    border: 1px solid var(--color-main-opa-25);
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.awge-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--color-main-opa-50);
    border-color: var(--color-main);
}

.awge-product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.awge-product-card:hover .awge-product-image {
    transform: scale(1.05);
}

.image-size-tag {
    position: relative;
    width: max-content;
    height: fit-content;
    top: -3px;
    padding-left: 1vh;
    padding-right: 1vh;
    padding-top: 0.3vh;
    padding-bottom: 0.3vh;
    border-radius: 90vh;
    font-size: 11px;
    line-height: 0.5vh;
    font-weight: 500 !important;
    background-color: var(--color-main-opa-25);
    color: var(--color-main);
    border: 1.5px solid var(--color-main);
}

/* Text Theme Classes */
.text-theme,
.text-theme i {
    color: var(--color-text-theme) !important;
}

.text-main {
    color: var(--color-main) !important;
}

.text-main-gradient {
    background: linear-gradient(135deg, var(--color-main), var(--color-button));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600 !important;
}

/* Border Utilities */
.border {
    border: 1px solid var(--color-border) !important;
}




/* EnhancedNavbar Styling */
.navbar {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(15px);
    border: none;
    padding: 10px 0;
    z-index: 1030 !important;
    position: sticky !important;
    top: 10px !important;
    margin: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 5px 30px var(--color-main-opa-30);
}

/* เพิ่ม padding-top ให้ body เพื่อไม่ให้ navbar บัง content */
body {
    padding-top: 20px !important;
}

/* Responsive adjustments สำหรับ navbar */
@media (max-width: 991.98px) {
    .navbar {
        margin: 5px 10px;
        top: 5px !important;
    }
    
    body {
        padding-top: 15px !important;
    }
}



/* Navigation Links */
.nav-v1 {
    color: var(--color-text-theme) !important;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-v1:hover {
    background-color: var(--color-main-opa-25);
    color: var(--color-main) !important;
    transform: translateY(-2px);
}

.nav-v1-active {
    background-color: var(--color-main);
    color: #000 !important;
}

/* CustomNavbar Toggler */
.custom-toggler {
    border: 2px solid var(--color-main);
    border-radius: 10px;
    background: var(--color-main-opa-15);
    backdrop-filter: blur(10px);
}

/* Search Button */
.nav-search {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-theme);
    transition: all 0.3s ease;
}

.nav-search:hover {
    background: var(--color-main-opa-25);
    color: var(--color-main);
}

/* Button Styles */
.btn-main {
    background: var(--color-main);
    border: 1px solid var(--color-main);
    color: #000 !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-main:hover {
    background: var(--color-button);
    border-color: var(--color-button);
    color: #000 !important;
    transform: translateY(-2px);
}

.btn-main-gradient {
    background: linear-gradient(135deg, var(--color-main), var(--color-button));
    border: none;
    color: #000 !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-main-gradient:hover {
    background: linear-gradient(135deg, var(--color-button), var(--color-main));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--color-main-opa-50);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-text-theme);
    color: var(--color-text-theme) !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-text-theme);
    color: #000 !important;
    transform: translateY(-2px);
}

.btn-theme {
    background: transparent;
    border: 1px solid var(--color-main);
    color: var(--color-main) !important;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-theme:hover {
    background: var(--color-main);
    color: #000 !important;
    transform: translateY(-2px);
}

.btn-danger-gradient {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border: none;
    color: white !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-danger-gradient:hover {
    background: linear-gradient(135deg, #e74c3c, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Static Count Cards */
.static-count-v2 {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-main-opa-50);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
}

.static-count-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--color-main-opa-25);
    border-color: var(--color-main);
}

.static-count-v2-icon {
    width: 50px;
    height: 50px;
    background: var(--color-main-opa-25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-main);
    font-size: 20px;
    margin-right: 15px;
}

.static-count-v2-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Product Category Cards */
.product-category-v2 {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-main-opa-50);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-category-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--color-main-opa-25);
    border-color: var(--color-main);
}

.category-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-category-v2:hover .category-img img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Product Cards V4 */
.product-v4 {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-main-opa-50);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-v4:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--color-main-opa-25);
    border-color: var(--color-main);
}

.product-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-v4:hover .product-img img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.product-name {
    color: var(--color-text-theme);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description {
    color: var(--color-text-theme-opa-75);
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.2);
}

/* Last Order Marquee */
.last-order {
    overflow: hidden;
    white-space: nowrap;
    border-radius: 10px;
    border: 1px solid var(--color-main-opa-25);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
}

.last-order-item {
    background-color: var(--color-main-opa-15);
    border-radius: 10px;
    width: fit-content;
    height: fit-content;
    display: inline-block;
    white-space: nowrap;
    transition: all 0.5s;
    text-decoration: none;
    color: inherit;
}

.last-order-item:hover {
    transform: scale(0.9);
    background-color: var(--color-main-opa-25);
}

/* Custom Badges */
.custom-badge-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 15px;
    padding: 3px 8px;
    border: none;
}

/* Best Seller Tag */
.best-seller-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: auto;
    z-index: 10;
    border-radius: 5px;
}

/* Mobile Help Buttons */
.btn-help {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.btn-help:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--color-main-opa-25);
}

.btn-help img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.btn-help:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Product Grid Layout */
.row-product-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
    max-width: none;
}

.product-item-md {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Out of Stock Filter */
.filters-out-stock {
    filter: grayscale(80%) opacity(0.7);
}

.product-v4:has(.filters-out-stock) {
    opacity: 0.8;
}

/* Image Size Tag */
.image-size-tag {
    position: relative;
    width: max-content;
    height: fit-content;
    top: -3px;
    padding: 0.3vh 1vh;
    border-radius: 90vh;
    font-size: 11px;
    line-height: 0.5vh;
    font-weight: 500 !important;
    background-color: var(--color-main-opa-25);
    color: var(--color-main);
    border: 1.5px solid var(--color-main);
}

/* Table Styling */
table:not(.not-td-hover) tbody tr:nth-of-type(odd) {
    background-color: var(--color-main-opa-15) !important;
}

table:not(.not-td-hover) tr:hover td {
    background-color: var(--color-main-opa-25) !important;
}

td, th {
    color: #fff !important;
}

/* Active States */
.active-main {
    color: #000 !important;
    background-color: var(--color-main) !important;
}

/* Dropdown Styling */
.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #434343;
}

.dropdown-menu {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-main-opa-50);
    border-radius: 15px;
}

.dropdown-item {
    color: var(--color-text-theme);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--color-main-opa-25);
    color: var(--color-main);
}

/* Form Controls */
.form-control {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-main-opa-50);
    color: var(--color-text-theme);
    border-radius: 10px;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--color-main);
    color: var(--color-text-theme);
    box-shadow: 0 0 15px var(--color-main-opa-25);
}

/* Modal Styling */
.modal-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-main-opa-50);
    border-radius: 20px;
    color: var(--color-text-theme);
}

.modal-header {
    border-bottom: 1px solid var(--color-main-opa-25);
}

.modal-body {
    color: var(--color-text-theme);
}

/* Carousel Styling */
.carousel-inner {
    border-radius: 15px;
    overflow: hidden;
}

.carousel-item img {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Status Messages Fix */
.text-success, .alert-success,
.text-warning, .alert-warning,
.text-info, .alert-info,
.text-danger, .alert-danger {
    color: #000 !important;
    font-weight: bold;
    text-shadow: none !important;
}

/* SweetAlert2 Theme Fix */
.swal2-popup,
.swal2-popup *,
.swal2-title,
.swal2-content,
.swal2-html-container {
    color: #000 !important;
    text-shadow: none !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    .row-product-card {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }

    .static-count-v2 {
        padding: 10px;
    }

    .static-count-v2-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 10px;
    }

    .product-img img {
        height: 150px;
    }

    .btn-help img {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .row-product-card {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
    }

    .product-v4 {
        border-radius: 10px;
    }

    .product-img img {
        height: 120px;
    }

    .static-count-v2 {
        padding: 8px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--color-main), var(--color-button));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--color-button), var(--color-main));
}

/* Enhanced Login Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-main-opa-50);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 40px var(--color-main-opa-25);
}

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.login-title {
    color: var(--color-main);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.login-subtitle {
    color: var(--color-text-theme-opa-75);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
}

.form-control-custom {
    width: 100%;
    padding: 15px 50px 15px 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-main-opa-50);
    border-radius: 10px;
    color: #000;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 20px var(--color-main-opa-25);
    background: rgba(255, 255, 255, 1);
    color: #000;
}

.btn-login {
    background: linear-gradient(135deg, var(--color-main), var(--color-button));
    border: none;
    color: #000 !important;
    font-weight: 700;
    padding: 15px 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--color-button), var(--color-main));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--color-main-opa-25);
}

.btn-register {
    background: transparent;
    border: 1px solid var(--color-main);
    color: var(--color-main) !important;
    font-weight: 700;
    padding: 15px 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: var(--color-main);
    color: #000 !important;
    transform: translateY(-2px);
}

/* DataTables Styling */
.dataTables_length {
    color: var(--color-text-theme);
    font-weight: bold;
}

.dataTables_filter label {
    color: var(--color-text-theme);
    margin-right: 10px;
}

.dataTables_info {
    color: var(--color-text-theme);
    font-weight: bold;
}

.paginate_button {
    background-color: var(--color-main);
    color: #000 !important;
}

/* Background Theme Classes */
.bg-dark {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(15px);
}

.bg-theme {
    background: var(--color-main-opa-15);
    backdrop-filter: blur(10px);
}

/* Utility Classes */
.border-glowing {
    border: 1px solid var(--color-main) !important;
    box-shadow: 0 0 15px var(--color-main-opa-25);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-main), var(--color-button));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive Enhancements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 15px;
        margin-top: 10px;
        border: 1px solid var(--color-main-opa-50);
        padding: 15px;
    }

    .offcanvas {
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(20px);
    }
}

/* Search Popup Styling */
#search_menu_popup_product_list_scroll {
    overflow: scroll !important;
    max-height: 300px !important;
    max-width: 100% !important;
}

#search_menu_popup_product_list_scroll a {
    transition: all 0.2s;
    border-radius: 10px;
    padding: 10px;
    margin: 2px 0;
}

#search_menu_popup_product_list_scroll a:hover {
    background-color: var(--color-main-opa-15);
    transform: translateX(5px);
}

/* Enhanced Button Animations */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
}

/* AWGE Shop Input Number Buttons */
.input-number-button {
    background: var(--color-main);
    border: 1px solid var(--color-main);
    color: #000 !important;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 18px;
    min-width: 40px;
}

.input-number-button:hover {
    background: var(--color-button);
    border-color: var(--color-button);
    transform: translateY(-1px);
}

.input-number-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-main-opa-50);
    color: var(--color-text-theme);
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    width: 80px;
    transition: all 0.3s ease;
}

.input-number-input:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 15px var(--color-main-opa-25);
    background: rgba(0, 0, 0, 0.7);
}

/* AWGE Shop Border Hover Effect */
.border-hov {
    transition: all 0.3s ease;
}

.border-hov:hover {
    border-color: var(--color-main) !important;
    box-shadow: 0 0 15px var(--color-main-opa-25);
}

/* Modern Card Shadows */
.card-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-shadow-hover:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Notification Styles */
.notification-badge {
    background: var(--color-button);
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Footer Styling */
.footer {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--color-main-opa-25);
    color: var(--color-text-theme);
    padding: 40px 0;
}

/* Banner Fullwidth */
.banner-fullwidth-img {
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    width: 100%;
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.05);
}

.default-banner {
    background: linear-gradient(135deg, 
        var(--color-main-opa-75), 
        var(--color-button-opa-50));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    height: 250px;
    border-radius: 15px;
}

/* Mobile Banner Responsive */
@media (max-width: 768px) {
    .default-banner {
        height: 150px;
        font-size: 1.5rem;
    }

    .banner-fullwidth-img {
        height: 150px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .default-banner {
        height: 120px;
        font-size: 1.2rem;
    }
}

/* Enhanced Product Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Modern Stats Cards */
.stats-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-main-opa-50);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--color-main-opa-25);
    border-color: var(--color-main);
}

/* Additional AWGE-inspired elements */
.awge-gradient-text {
    background: linear-gradient(135deg, var(--color-main), var(--color-button), #ff6b35);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Modern Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced Hover States */
.interactive-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-hover:hover {
    transform: translateY(-3px) scale(1.02);
}


@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced font imports */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');





@keyframes progressSlide {
    0% { 
        width: 0%;
        transform: translateX(-100%);
    }
    50% { 
        width: 100%;
        transform: translateX(0%);
    }
    100% { 
        width: 100%;
        transform: translateX(100%);
    }
}

/* Page transition effects */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(248, 113, 113, 0.95));
    z-index: 8888;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

.page-transition-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: column;
}

.transition-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-bottom: 20px;
    animation: logoFloat 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

.transition-text {
    color: white;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Mobile responsive for loading screen */
@media (max-width: 768px) {
    .loading-logo {
        width: 100px;
        height: 100px;
    }
    
    .loading-text {
        font-size: 1.2rem;
    }
    
    .loading-progress {
        width: 150px;
    }
    
    .transition-logo {
        width: 60px;
        height: 60px;
    }
    
    .transition-text {
        font-size: 1rem;
    }
}

/* Enhanced typography */
*:not(i) {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 0 20px var(--color-main-opa-30);
}

.display-font {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.body-font {
    font-family: var(--font-body);
    font-weight: 400;
}

.primary-font {
    font-family: var(--font-primary);
    font-weight: 500;
}



.hologram-text {
    background: linear-gradient(
        45deg,
        var(--red-primary),
        var(--red-neon),
        var(--red-bright),
        var(--red-secondary)
    );
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hologramShift 4s ease-in-out infinite;
}

@keyframes hologramShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes floatingElements {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Modal styles */
.modal-content {
    background: rgba(220, 38, 38, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid var(--red-primary);
    color: #fff;
    border-radius: 20px;
    padding: 20px;
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Banner container */
.banner-container {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 0 30px var(--red-glow);
    animation: pulseGlow 4s ease-in-out infinite;
}

.banner-container img {
    width: 120%;
    height: 400px;
    object-fit: cover;
    border-radius: 25px;
}

/* Stats cards */
.stats-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(239, 68, 68, 0.1));
    backdrop-filter: blur(10px);
    border: 2px solid var(--red-primary);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    animation: floatingElements 6s ease-in-out infinite;
    box-shadow: 0 8px 32px var(--color-main-opa-30);
}

.stats-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 45px rgba(220, 38, 38, 0.5);
    border-color: var(--red-secondary);
}

.stats-card img {
    filter: drop-shadow(0 0 10px var(--red-glow));
    transition: all 0.3s ease;
}

.stats-card:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--red-glow));
}

.stats-card h5 {
    color: var(--red-light);
    font-weight: 700;
    margin-top: 15px;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.stats-card p {
    color: var(--red-secondary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Marquee container */
.marquee-container {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.2), rgba(239, 68, 68, 0.2));
    backdrop-filter: blur(10px);
    border: 2px solid var(--red-primary);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 0 20px var(--color-main-opa-30);
    animation: pulseGlow 5s ease-in-out infinite;
}

/* Section titles */
.section-title {
    color: var(--red-light);
    font-weight: 700,
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.7);
    margin-bottom: 20px;
}

.section-title i {
    color: var(--red-secondary);
    margin-right: 10px;
    filter: drop-shadow(0 0 5px var(--red-glow));
}

/* Button styles */
.btn-thxk {
    background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
    border: 2px solid var(--red-glow);
    color: white;
    font-weight: 600;
    border-radius: 15px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.btn-thxk:hover {
    background: linear-gradient(135deg, var(--red-secondary), var(--red-primary));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.6);
    color: white;
}

/* Category cards */
.category-card {
    background: transparent;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(220, 38, 38, 0.2);
    aspect-ratio: 4/3;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--color-main-opa-30);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    border-radius: 15px;
    border: none;
}

.category-card:hover img {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Hero Banner Section */
.hero-banner-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(27, 18, 18, 0.9));
}

.hero-movies-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    grid-template-rows: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 20px;
    z-index: 1;
    opacity: 0.3;
    filter: blur(1px);
}

.movie-poster {
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    margin-bottom: 30px;
}

.logo-main {
    width: 150px;
    height: 150px;
    border-radius: 25px;
    box-shadow: 0 0 50px rgba(220, 38, 38, 0.8);
    margin-bottom: 20px;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { 
        box-shadow: 0 0 50px rgba(220, 38, 38, 0.8);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 80px rgba(220, 38, 38, 1);
        transform: scale(1.05);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--red-primary), var(--red-neon), var(--red-bright));
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hologramShift 4s ease-in-out infinite;
    text-shadow: none;
    margin: 0;
}

.hero-announcement {
    margin-top: 30px;
    padding: 20px;
    background: rgba(220, 38, 38, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--red-primary);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--color-main-opa-30);
}

.announcement-text {
    font-size: 1.1rem;
    color: var(--red-light);
    margin: 0;
    line-height: 1.6;
}

/* Modern Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Fix text colors for status messages - Enhanced */
.text-success, .alert-success {
    color: #000 !important;
    font-weight: bold;
    text-shadow: none !important;
}

.text-warning, .alert-warning {
    color: #000 !important;
    font-weight: bold;
    text-shadow: none !important;
}

.text-info, .alert-info {
    color: #000 !important;
    font-weight: bold;
    text-shadow: none !important;
}

.text-danger, .alert-danger {
    color: #000 !important;
    font-weight: bold;
    text-shadow: none !important;
}

/* SweetAlert comprehensive text color fix */
.swal2-popup,
.swal2-popup *,
.swal2-title,
.swal2-content,
.swal2-html-container,
.swal2-input,
.swal2-textarea,
.swal2-select,
.swal2-radio,
.swal2-checkbox,
.swal2-validationerror,
.swal2-progresssteps,
.swal2-progresssteps li,
.swal2-loader {
    color: #000 !important;
    text-shadow: none !important;
}

/* Force black text for all SweetAlert states */
.swal2-success .swal2-title,
.swal2-error .swal2-title,
.swal2-warning .swal2-title,
.swal2-info .swal2-title,
.swal2-question .swal2-title {
    color: #000 !important;
    text-shadow: none !important;
}

.swal2-success .swal2-content,
.swal2-error .swal2-content,
.swal2-warning .swal2-content,
.swal2-info .swal2-content,
.swal2-question .swal2-content {
    color: #000 !important;
    text-shadow: none !important;
}

/* Custom SweetAlert black text classes */
.swal-popup-black-text,
.swal-popup-black-text *,
.swal-popup-black-text .swal2-title,
.swal-popup-black-text .swal2-content,
.swal-popup-black-text .swal2-html-container {
    color: #000 !important;
    text-shadow: none !important;
    font-weight: bold;
}

/* Status messages comprehensive fix */
.status-message,
.success-message,
.waiting-message,
.error-message,
.info-message,
.status-text,
.order-status-text,
.purchase-status,
.transaction-status,
.notification-text,
.alert-text,
.response-text {
    color: #000 !important;
    font-weight: bold;
    text-shadow: none !important;
}

/* Fix all status badges to have black text */
.badge,
.status-badge,
.alert-badge,
.label,
.tag {
    color: #000 !important;
    text-shadow: none !important;
    font-weight: bold;
}

/* Bootstrap alert comprehensive text fixes */
.alert,
.alert-success,
.alert-warning,
.alert-info,
.alert-danger,
.alert-primary,
.alert-secondary,
.alert-light,
.alert-dark {
    color: #000 !important;
    text-shadow: none !important;
}

.alert *,
.alert-success *,
.alert-warning *,
.alert-info *,
.alert-danger *,
.alert-primary *,
.alert-secondary *,
.alert-light *,
.alert-dark * {
    color: #000 !important;
    text-shadow: none !important;
}

/* Toast and notification fixes */
.toast,
.toast *,
.notification,
.notification *,
.message,
.message * {
    color: #000 !important;
    text-shadow: none !important;
}

/* Modal status text fixes */
.modal-content .status-text,
.modal-content .success-text,
.modal-content .error-text,
.modal-content .warning-text,
.modal-content .info-text {
    color: #000 !important;
    text-shadow: none !important;
    font-weight: bold;
}

/* AJAX response text fixes */
.ajax-response,
.ajax-success,
.ajax-error,
.ajax-warning,
.ajax-info {
    color: #000 !important;
    text-shadow: none !important;
    font-weight: bold;
}

/* Form validation text fixes */
.invalid-feedback,
.valid-feedback,
.form-text,
.help-text {
    color: #000 !important;
    text-shadow: none !important;
}

/* Button text that might show status */
.btn-success,
.btn-warning,
.btn-info,
.btn-danger {
    color: #fff !important;
}

.btn-success:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-danger:hover {
    color: #fff !important;
}

.product-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.4);
    border-color: var(--red-secondary);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-modern .product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-card-modern .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product-card-modern:hover .product-image {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.product-card-modern .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(239, 68, 68, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.product-action {
    text-align: center;
    color: white;
    font-weight: 600;
}

.product-action i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-card-modern .product-name {
    color: var(--red-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Enhanced Product cards */
.product-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(239, 68, 68, 0.1));
    backdrop-filter: blur(15px);
    border: none;
    border-radius: 20px;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.2);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 15px;
    aspect-ratio: 16/9;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.category-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.05));
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.2);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--color-main-opa-30);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.border-glowing {
    border: none !important;
}


.product-card:hover img {
    filter: brightness(1.1) saturate(1.05);
    transform: scale(1.02);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* Enhanced Stock Indicator */
.stock-indicator {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.1));
    border: 1px solid #10b981;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    margin: 8px 0;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* 10% Discount Badge */
.discount-badge-10 {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    animation: discountBounce 2s ease-in-out infinite;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes discountBounce {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.1) rotate(2deg); 
        opacity: 1;
    }
}

/* White stock text */
.stock-text-white {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stock-indicator.low-stock {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.1));
    border-color: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.stock-indicator.out-of-stock {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.1));
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* Enhanced Buy Button */
.product-card .btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border: 2px solid #b91c1c;
    border-radius: 15px;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    position: relative;
    overflow: hidden;
}

.product-card .btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.product-card .btn-danger:hover::before {
    left: 100%;
}

.product-card .btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #f87171);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.6);
    border-color: #dc2626;
}

.product-card .btn-danger:active {
    transform: translateY(-1px) scale(0.98);
}

.product-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
    color: var(--red-light);
    font-weight: 600;
}

.price-text {
    color: var(--red-light);
    font-weight: 600;
}

.stock-text {
    color: var(--red-secondary);
    font-weight: 500;
}

/* Enhanced Discount badge */
.discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.6);
    animation: discountPulse 2s ease-in-out infinite;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes discountPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(3deg); }
}

/* Enhanced Price Display */
.price-container {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(239, 68, 68, 0.1));
    border: 1px solid var(--red-primary);
    border-radius: 15px;
    padding: 12px;
    margin: 10px 0;
    position: relative;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: priceGlow 3s ease-in-out infinite;
}

.original-price {
    font-size: 16px;
    color: var(--red-secondary);
    text-decoration: line-through;
    opacity: 0.8;
    margin-left: 8px;
}

@keyframes priceGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
    50% { text-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }
}

/* Discount banner */
.discount-banner {
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b, #ff9999);
    border: 2px solid #ff1a1a;
    border-radius: 15px;
    padding: 12px;
    margin: 15px 0;
    animation: discountShine 3s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(255, 59, 59, 0.6);
    position: relative;
    overflow: hidden;
}

.discount-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: discountShine 3s ease-in-out infinite;
    z-index: 1;
}

.discount-banner p {
    position: relative;
    z-index: 2;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes discountShine {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}




/* App cards */
.app-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--color-main-opa-30);
    animation: floatingElements 10s ease-in-out infinite;
}

.app-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.5);
}

.app-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid var(--red-primary);
    transition: all 0.3s ease;
}

.app-card:hover img {
    border-color: var(--red-secondary);
    filter: brightness(1.2);
}

.grayscale {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(239, 68, 68, 0.1));
    backdrop-filter: blur(20px);
    border: 2px solid var(--red-primary);
    border-radius: 25px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 50px rgba(220, 38, 38, 0.4);
    animation: floatingElements 8s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--color-main-opa-30);
    transition: all 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.5);
}

.login-title {
    color: var(--red-light);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
}

.login-subtitle {
    color: var(--red-secondary);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red-secondary);
    font-size: 18px;
    z-index: 2;
    transition: all 0.3s ease;
}

.form-control-custom {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid var(--red-primary);
    border-radius: 15px;
    color: var(--red-light);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.2);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--red-secondary);
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.5);
    background: rgba(220, 38, 38, 0.15);
}

.form-control-custom:focus + .floating-label,
.form-control-custom:not(:placeholder-shown) + .floating-label {
    transform: translateY(-35px) scale(0.85);
    color: var(--red-secondary);
}

.form-control-custom:focus ~ .input-icon {
    color: var(--red-light);
    transform: translateY(-50%) scale(1.1);
}

.floating-label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red-secondary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 5px;
}

.form-control-custom::placeholder {
    color: transparent;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.btn-login, .btn-register {
    position: relative;
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-login {
    background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
    color: white;
    border: 2px solid var(--red-glow);
}

.btn-register {
    background: linear-gradient(135deg, rgba(27, 18, 18, 0.8), rgba(49, 28, 28, 0.8));
    color: var(--red-light);
    border: 2px solid var(--red-primary);
    margin-top: 15px;
}

.btn-login:hover, .btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.6);
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--red-secondary), var(--red-primary));
}

.btn-register:hover {
    background: linear-gradient(135deg, rgba(49, 28, 28, 0.9), rgba(76, 21, 21, 0.9));
    color: white;
    text-decoration: none;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover .btn-glow,
.btn-register:hover .btn-glow {
    left: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
}

.decoration-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.decoration-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-secondary);
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--red-glow);
}

.decoration-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.decoration-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}



/* AWGE SHOP Style Navbar */
.navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 20px 0;
    z-index: 1030 !important;
    position: relative !important;
}

/* AWGE Style Navigation Links */
.nav-link-awge {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 25px;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-link-awge:hover {
    color: var(--red-primary) !important;
    text-decoration: none;
}

.nav-link-awge.active {
    color: var(--red-primary) !important;
    font-weight: 700;
}

.nav-link-awge::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--red-primary);
    transition: width 0.3s ease;
}

.nav-link-awge:hover::after,
.nav-link-awge.active::after {
    width: 80%;
}

.logo-glow {
    border-radius: 10px;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.logo-glow:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
}

/* Custom navbar toggler */
.custom-toggler {
    border: 2px solid var(--red-primary);
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.custom-toggler:hover {
    border-color: var(--red-secondary);
    background: rgba(220, 38, 38, 0.2);
    transform: scale(1.05);
}

.custom-toggler .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%28220, 38, 38, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    filter: drop-shadow(0 0 5px var(--red-glow));
}

/* Nav links */
.nav-link-custom {
    color: var(--red-light) !important;
    font-weight: 600;
    padding: 10px 15px !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-main-opa-30), transparent);
    transition: left 0.5s ease;
}

.nav-link-custom:hover {
    background: rgba(220, 38, 38, 0.2);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.nav-link-custom:hover::before {
    left: 100%;
}

.nav-link-custom i {
    margin-right: 8px;
    filter: drop-shadow(0 0 5px var(--red-glow));
}

/* AWGE Dropdown styles */
.dropdown-menu-custom {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    padding: 8px;
    z-index: 9999 !important;
    position: absolute !important;
    min-width: 200px;
}

.dropdown-item-custom {
    color: #ffffff !important;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 2px 0;
    font-weight: 500;
    font-size: 14px;
}

.dropdown-item-custom:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--red-primary) !important;
    transform: translateX(3px);
}

.dropdown-item-custom i {
    margin-right: 8px;
    color: var(--red-secondary);
}

.dropdown-divider-custom {
    border-top: 1px solid var(--red-primary);
    margin: 8px 0;
    opacity: 0.7;
}

/* Mobile buttons */
.mobile-btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 3px 10px var(--color-main-opa-30);
}

.btn-outline-light.mobile-btn {
    border: 2px solid var(--red-primary);
    color: var(--red-light);
    background: rgba(220, 38, 38, 0.15);
    backdrop-filter: blur(10px);
}

.btn-outline-light.mobile-btn:hover {
    background: var(--red-primary);
    border-color: var(--red-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.5);
}

.btn-light.mobile-btn {
    background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
    border: 2px solid var(--red-glow);
    color: white;
}

.btn-light.mobile-btn:hover {
    background: linear-gradient(135deg, var(--red-secondary), var(--red-primary));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.5);
    color: white;
}

/* Mobile navbar collapse */
.navbar-collapse {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding: 15px;
    }

    .nav-link-awge {
        margin: 8px 0;
        text-align: center;
        display: block;
        padding: 12px 15px;
        border-radius: 8px;
    }

    .nav-link-awge:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu-custom {
        position: static !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        box-shadow: none;
    }
}

/* Hero Banner Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .logo-main {
        width: 100px;
        height: 100px;
    }

    .announcement-text {
        font-size: 0.9rem;
    }

    .hero-movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        grid-template-rows: repeat(auto-fit, minmax(120px, 1fr));
        gap: 5px;
        padding: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .logo-main {
        width: 80px;
        height: 80px;
    }

    .hero-announcement {
        padding: 15px;
        margin-top: 20px;
    }

    .announcement-text {
        font-size: 0.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 15px;
    }

    .login-card {
        padding: 30px 25px;
        max-width: 100%;
        margin: 10px;
    }

    .login-logo {
        width: 100px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .form-control-custom {
        padding: 12px 12px 12px 45px;
        font-size: 14px;
    }

    .input-icon {
        left: 12px;
        font-size: 16px;
    }


    .btn-login, .btn-register {
        padding: 12px 20px;
        font-size: 16px;
    }

    .banner-container img {
        height: 200px;
    }

    .stats-card {
        margin-bottom: 20px;
        padding: 20px 15px;
    }

    .product-card {
        margin-bottom: 25px;
        padding: 15px;
    }

    .product-card img {
        height: 150px;
    }

    .discount-badge {
        font-size: 10px;
        padding: 4px 8px;
        top: -5px;
        right: -5px;
    }

    .current-price {
        font-size: 18px;
    }

    .original-price {
        font-size: 14px;
    }

    .stock-indicator {
        font-size: 11px;
        padding: 4px 8px;
    }

    .price-container {
        padding: 10px;
        margin: 8px 0;
    }

    .discount-banner {
        padding: 8px;
        margin: 10px 0;
    }

    .discount-banner p {
        font-size: 11px !important;
    }

    .product-card .btn-danger {
        font-size: 14px;
        padding: 10px 15px;
    }

    .app-card img {
        height: 100px;
    }

    .section-title {
        font-size: 22px;
    }

    .marquee-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 22px;
    }

    .form-control-custom {
        padding: 10px 10px 10px 40px;
    }

    .input-icon {
        left: 10px;
        font-size: 14px;
    }

    .floating-label {
        left: 40px;
        font-size: 13px;
    }
}


/* History table button styling */
.table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown {
    z-index: 9999 !important;
    position: relative !important;
}

.dropdown.show .dropdown-menu {
    z-index: 9999 !important;
    display: block !important;
}

/* Custom CSS */
/* ปรับขนาดรูปภาพหน้าแบนเนอร์ */
.banner-fullwidth-img {
        height: 250px;
        object-fit: cover;
        border-radius: 18px;
        width: 100%;
        transition: all 0.3s ease;
        filter: brightness(1.1) contrast(1.05);
        aspect-ratio: 16/6;
    }

    /* ปรับขนาด default banner */
    .default-banner {
        background: linear-gradient(135deg, 
            rgba(220, 38, 38, 0.8), 
            rgba(239, 68, 68, 0.6), 
            rgba(248, 113, 113, 0.4));
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-family: var(--font-display);
        font-size: 2rem;
        font-weight: 700;
        text-shadow: 0 0 20px rgba(220, 38, 38, 0.8);
        height: 250px;
        border-radius: 18px;
        aspect-ratio: 16/6;
    }

    /* Responsive ขนาด banner ใน mobile */
    @media (max-width: 768px) {
        .default-banner {
            height: 150px;
            font-size: 1.5rem;
            aspect-ratio: 16/7;
        }

        .banner-fullwidth-img {
            height: 150px;
            border-radius: 13px;
            aspect-ratio: 16/7;
        }
    }

    /* Responsive ขนาด banner ใน mobile เล็ก */
    @media (max-width: 480px) {
        .default-banner {
            height: 120px;
            font-size: 1.2rem;
            aspect-ratio: 16/8;
        }
    }