* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 70px;
    height: 35px;
    --light: #d8dbe0;
    --dark: #28292c;
}

.switch-label {
    position: absolute;
    width: 100%;
    height: 35px;
    background-color: var(--dark);
    border-radius: 17.5px;
    cursor: pointer;
    border: 3px solid var(--dark);
}

.checkbox {
    position: absolute;
    display: none;
}

.slider {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 17.5px;
    transition: 0.3s;
}

.checkbox:checked ~ .slider {
    background-color: var(--light);
}

.slider::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    box-shadow: inset 8px -2px 0px 0px var(--light);
    background-color: var(--dark);
    transition: 0.3s;
}

.checkbox:checked ~ .slider::before {
    transform: translateX(35px);
    background-color: var(--dark);
    box-shadow: none;
}

/* Language Button */
.language-button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

body.light-theme .language-button {
    background-color: #ccc;
    color: #000;
}

.language-button:focus {
    outline: none;
    border: 1px solid #1e90ff;
}

body.light-theme .language-button:focus {
    border-color: #0d74d9;
}

/* Language Modal */
.language-modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.language-modal.active {
    display: flex;
}

.modal-content {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}

body.light-theme .modal-content {
    background-color: #ddd;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.language-option {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

body.light-theme .language-option {
    background-color: #ccc;
    color: #000;
}

.language-option:hover {
    background-color: #1e90ff;
}

body.light-theme .language-option:hover {
    background-color: #0d74d9;
}

.modal-close {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #dc3545;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

body.light-theme .modal-close {
    background-color: #c82333;
}

/* Search Container */
.search-container {
    position: relative;
    width: 50%;
}

.header-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #dc3545;
    color: #fff;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #1e1e1e;
    border: 1px solid #1e90ff;
    border-radius: 5px;
    padding: 10px;
    min-width: 200px;
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow-x: hidden;
}

body.light-theme .cart-dropdown {
    background-color: #ddd;
    border-color: #0d74d9;
}

.cart-icon:hover .cart-dropdown {
    display: block;
}

.cart-dropdown-item, .cart-dropdown-total {
    padding: 5px 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #39ff14;
}

body.light-theme .cart-dropdown-item, body.light-theme .cart-dropdown-total {
    color: #32cd32;
}

.cart-dropdown-total {
    font-weight: bold;
    margin-top: 10px;
    border-top: 1px solid #555;
    padding-top: 10px;
}

.cart-dropdown-item::before, .cart-dropdown-total::before {
    content: attr(data-currency-symbol);
    font-size: 14px;
    margin-right: 5px;
    color: #1e90ff;
}

body.light-theme .cart-dropdown-item::before, body.light-theme .cart-dropdown-total::before {
    color: #0d74d9;
}

.cart-dropdown-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #1e90ff;
    text-decoration: none;
}

body.light-theme .cart-dropdown-link {
    color: #0d74d9;
}

.cart-dropdown-link:hover {
    text-decoration: underline;
}

.cart-empty {
    text-align: center;
    font-style: italic;
    color: #bbb;
}

body.light-theme .cart-empty {
    color: #555;
}

/* Banner */
.banner {
    background-color: #2a2a2a;
    text-align: center;
    padding: 50px 20px;
    margin: 20px;
    border-radius: 10px;
}

body.light-theme .banner {
    background-color: #ccc;
}

.banner .commission {
    background-color: #28a745;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner p {
    font-size: 18px;
    margin-bottom: 20px;
}

.banner button {
    padding: 10px 20px;
    background-color: #1e90ff;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

body.light-theme .banner button {
    background-color: #0d74d9;
}

/* Sub-Products Banner */
.sub-products-banner {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 20px;
    overflow: hidden;
}

.sub-products-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-products-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.7) 70%);
    border-radius: 20px;
}

.sub-products-banner-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Categories */
.categories {
    padding: 20px;
}

.category-section {
    margin-bottom: 40px;
}

.category-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.category-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: #fff;
}

body.light-theme .category-section h2::after {
    background-color: #000;
}

.pc-mobile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pc-games {
    flex: 1 1 50%;
}

.mobile-apps {
    flex: 1 1 25%;
}

.social-apps {
    flex: 1 1 25%;
}

/* Product Details Page */
.product-details {
    display: flex;
    padding: 40px 20px;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.product-image img {
    width: 180px;
    height: 180px;
    border: none;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-description {
    font-size: 14px;
    margin-bottom: 10px;
    color: #bbb;
}

body.light-theme .product-description {
    color: #555;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1e90ff;
}

body.light-theme .product-price {
    color: #0d74d9;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart, .purchase-now {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.add-to-cart {
    background-color: #1e90ff;
    color: #fff;
}

body.light-theme .add-to-cart {
    background-color: #0d74d9;
}

.purchase-now {
    background-color: #28a745;
    color: #fff;
}

body.light-theme .purchase-now {
    background-color: #218838;
}

.add-to-cart:disabled, .purchase-now:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Cart Page */
.cart-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th, .cart-table td {
    padding: 10px;
    border: 1px solid #555;
    text-align: center;
}

body.light-theme .cart-table th, body.light-theme .cart-table td {
    border-color: #bbb;
}

.cart-table th {
    background-color: #2a2a2a;
}

body.light-theme .cart-table th {
    background-color: #ccc;
}

.cart-table button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.cart-table button:first-child {
    margin-right: 5px;
}

.cart-table button:last-child {
    margin-left: 5px;
    background-color: #dc3545;
    color: #fff;
}

.cart-table td:nth-child(3), .cart-table td:nth-child(4) {
    color: #39ff14;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

body.light-theme .cart-table td:nth-child(3), body.light-theme .cart-table td:nth-child(4) {
    color: #32cd32;
}

.cart-table td:nth-child(3)::before, .cart-table td:nth-child(4)::before {
    content: attr(data-currency-symbol);
    font-size: 16px;
    margin-right: 5px;
    color: #1e90ff;
}

body.light-theme .cart-table td:nth-child(3)::before, body.light-theme .cart-table td:nth-child(4)::before {
    color: #0d74d9;
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    margin-bottom: 20px;
    position: relative;
}

.cart-total::before {
    content: attr(data-currency-symbol);
    font-size: 24px;
    color: #1e90ff;
    margin-right: 5px;
}

body.light-theme .cart-total::before {
    color: #0d74d9;
}

.checkout-button {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.checkout-button:hover, .checkout-button:active {
    box-shadow: 0 0 15px #28a745, 0 0 30px #28a745;
}

body.light-theme .checkout-button {
    background-color: #218838;
}

body.light-theme .checkout-button:hover, body.light-theme .checkout-button:active {
    box-shadow: 0 0 15px #218838, 0 0 30px #218838;
}

/* Form Styles */
.form-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    text-align: center;
}

body.light-theme .form-container {
    background-color: #ddd;
}

.form-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 16px;
}

body.light-theme .form-group input {
    background-color: #ccc;
    color: #000;
}

.form-container button {
    width: 100%;
    padding: 10px 20px;
    background-color: #1e90ff;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

body.light-theme .form-container button {
    background-color: #0d74d9;
}

.form-container button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.form-container p {
    margin-top: 15px;
    font-size: 14px;
}

.form-container a {
    color: #1e90ff;
    text-decoration: none;
}

body.light-theme .form-container a {
    color: #0d74d9;
}

.form-container a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .banner button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .sub-products-banner {
        height: 150px;
    }

    .sub-products-banner-text {
        font-size: 24px;
    }

    .game-grid, .category-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        justify-content: center;
        gap: 8px;
    }

    .game-item, .category-item {
        flex: none;
    }

    .game-item img, .category-item img {
        width: 80px;
        height: 80px;
    }

    .product-name {
        font-size: 12px;
    }

    .form-container h2 {
        font-size: 20px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input {
        font-size: 14px;
        padding: 8px;
    }

    .form-container button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .form-container p {
        font-size: 12px;
    }

    .category-section h2 {
        font-size: 20px;
    }

    .category-section h2::after {
        width: 40%;
        height: 3px;
    }

    .product-info h1 {
        font-size: 20px;
    }

    .product-price {
        font-size: 16px;
    }

    .add-to-cart, .purchase-now {
        padding: 6px 12px;
        font-size: 12px;
    }

    .cart-table th, .cart-table td {
        font-size: 12px;
        padding: 6px;
    }

    .cart-table button {
        padding: 2px 6px;
        font-size: 10px;
    }

    .cart-total {
        font-size: 16px;
    }

    .checkout-button {
        width: 150px;
        font-size: 14px;
        padding: 8px 16px;
    }

    .pc-mobile-container {
        flex-direction: column;
    }

    .pc-games, .mobile-apps, .social-apps {
        flex: 1 1 100%;
    }
}

@media (max-width: 1024px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 20px;
    }

    .logo-container {
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
    }

    .logo {
        margin-left: 10px;
    }

    .toggle-switch {
        margin-right: 5px;
        margin-left: 5px;
    }

    .language-button {
        margin-right: 10px;
    }

    .search-container {
        width: 100%;
        margin-top: 10px;
        padding: 0 10px;
    }

    .header-links {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #1e1e1e;
        padding: 20px 0;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    body.light-theme .header-links {
        background-color: #ddd;
    }

    .cart-dropdown {
        top: auto;
        bottom: 50px;
        right: 10px;
        max-width: 250px;
    }

    .game-grid, .category-grid {
        padding-bottom: 90px;
    }

    .form-container {
        max-width: 90%;
        margin: 20px auto;
        padding: 15px;
    }

    .pc-games {
        flex: 1 1 50%;
    }

    .mobile-apps, .social-apps {
        flex: 1 1 25%;
    }

    .product-details {
        flex-direction: column;
        align-items: center;
    }

    .product-image img {
        width: 120px;
        height: 120px;
        border: none;
    }

    .product-info {
        text-align: center;
    }

    .product-actions {
        justify-content: center;
    }

    .cart-table th, .cart-table td {
        font-size: 14px;
        padding: 8px;
    }

    .cart-table button {
        padding: 3px 8px;
        font-size: 12px;
    }
}