* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 12px 12px 30px;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 420px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 16px;
}

.logo {
    color: #640206;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

h1 {
    font-size: 22px;
    font-weight: 900;
    color: #7d0206;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0,255,0,0.1);
    line-height: 1.1;
}

.search {
    margin-bottom: 14px;
}

.search input {
    width: 100%;
    padding: 12px 16px;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
}

.search input:focus {
    outline: none;
    border-color: #00ff00;
}

.search input::placeholder {
    color: #555;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-card {
    background: #111;
    border-radius: 14px;
    padding: 10px 10px 12px;
    border: 1px solid #1e1e1e;
    text-align: center;
    text-decoration: none;
    display: block;
    color: #fff;
}

.product-card:active {
    transform: scale(0.96);
    border-color: #00ff00;
}

.product-card .img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
}

.product-card .img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .tag {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #7d0206;
    color: #0a0a0a;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.product-card .name {
    font-size: 12px;
    font-weight: 600;
    margin: 10px 0 3px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    color: #fff;
}

.product-card .price {
    font-size: 17px;
    font-weight: 800;
    color: #810102;
}

.product-card .price-stars {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.back-btn {
    display: inline-block;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 14px;
}

.product-page {
    background: #111;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #1e1e1e;
}

.product-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 14px;
    max-height: 300px;
    object-fit: cover;
}

.product-page h2 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.tag {
    display: inline-block;
    background: #00ff00;
    color: #0a0a0a;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.description {
    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.price-big {
    font-size: 26px;
    font-weight: 900;
    color: #00ff00;
    display: block;
}

.price-stars-big {
    font-size: 14px;
    color: #888;
    display: block;
    margin-bottom: 16px;
}

.btn-primary {
    background: #00ff00;
    color: #0a0a0a;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
}

.btn-primary:active {
    transform: scale(0.97);
}

.payment-page h2 {
    color: #00ff00;
    margin-bottom: 16px;
    font-size: 20px;
}

.payment-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #0a0a0a;
    border-radius: 12px;
    margin-bottom: 18px;
}

.payment-product img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.pay-product-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.pay-product-price {
    color: #00ff00;
    font-weight: 700;
    font-size: 16px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: #0a0a0a;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.payment-method:active {
    transform: scale(0.97);
    border-color: #00ff00;
}

.payment-method .method-icon {
    font-size: 22px;
    margin-right: 12px;
}

.payment-method .method-info {
    flex: 1;
}

.payment-method .method-name {
    font-weight: 600;
    font-size: 14px;
}

.payment-method .method-desc {
    font-size: 11px;
    color: #666;
}

.payment-method .method-price {
    font-weight: 700;
    color: #00ff00;
    font-size: 13px;
}

.payment-page {
    background: #111;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #1e1e1e;
}

@media (max-width: 380px) {
    .products-grid {
        gap: 8px;
    }

    .product-card .name {
        font-size: 11px;
        min-height: 28px;
    }

    .product-card .price {
        font-size: 15px;
    }

    h1 {
        font-size: 18px;
    }
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
}
