* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #21201f;
    color: white;
    overflow-x: hidden;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}


.page {
    min-height: 100vh;
    padding: 30px;
    padding-top: 20px;
}

.page:not(.active) {
    display: none;
}

.glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(250,197,111,0.3);
    border-radius: 25px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.5), 
                0 0 20px rgba(250,197,111,0.1),
                inset 0 1px 0 rgba(255,255,255,0.1);
}

.form-container {
    width: 350px;
    margin: 100px auto;
    padding: 45px;
    text-align: center;
    animation: fade 1s ease;
    backdrop-filter: blur(20px);
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container h1 {
    margin-bottom: 10px;
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #fac56f 0%, #fae08f 50%, #fac56f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(250,197,111,0.3);
    letter-spacing: -0.5px;
}

.tagline {
    color: #fac56f;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-container h2 {
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.3px;
}

.form-container button {
    width: 100%;
    margin-top: 15px;
    font-size: 16px;
    padding: 16px 28px;
}

.form-container p {
    margin-top: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.form-container p span {
    color: #fac56f;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-container p span:hover {
    color: #fae08f;
    text-decoration: underline;
}

input {
    width: 100%;
    padding: 14px 16px;
    margin: 10px 0;
    border: 1.5px solid rgba(250,197,111,0.2);
    border-radius: 12px;
    outline: none;
    background: rgba(255,255,255,0.06);
    color: white;
    transition: all 0.3s ease;
    font-size: 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

input:focus {
    background: rgba(250,197,111,0.08);
    border-color: rgba(250,197,111,0.4);
    box-shadow: 0 0 20px rgba(250,197,111,0.2), inset 0 1px 3px rgba(0,0,0,0.1);
}

input::placeholder {
    color: rgba(255,255,255,0.4);
}

button {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #fac56f 0%, #fae08f 100%);
    color: #21201f;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(250,197,111,0.3);
}

button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fae08f 0%, #fac56f 100%);
    box-shadow: 0 8px 25px rgba(250,197,111,0.4);
}

button:active {
    transform: translateY(0px);
}

span {
    color: #fac56f;
    cursor: pointer;
    font-weight: 500;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 30px;
    background: rgba(255,255,255,0.06);
    border-radius: 20px;
    border: 1.5px solid rgba(250,197,111,0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(250,197,111,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
}

header h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #fac56f 0%, #fae08f 50%, #fac56f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 25px rgba(250,197,111,0.3);
    letter-spacing: -0.5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

header nav {
    display: flex;
    gap: 12px;
}

header nav button {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(250,197,111,0.2) 0%, rgba(250,197,111,0.1) 100%);
    color: #fac56f;
    border: 1px solid rgba(250,197,111,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

header nav button:hover {
    background: linear-gradient(135deg, rgba(250,197,111,0.3) 0%, rgba(250,197,111,0.15) 100%);
    border-color: rgba(250,197,111,0.5);
    box-shadow: 0 4px 12px rgba(250,197,111,0.2);
}

header nav button:active {
    transform: translateY(0px);
}

.section-title {
    margin-bottom: 35px;
    margin-top: 10px;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #fac56f 0%, #fae08f 50%, #fac56f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 25px rgba(250,197,111,0.3);
    letter-spacing: -0.3px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(33,32,31,0.95));
    pointer-events: none;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: 0.4s;
    display: block;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #fac56f;
    z-index: 2;
    margin: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 25px;
}

.product-card {
    background: linear-gradient(135deg, rgba(250,197,111,0.08) 0%, rgba(250,197,111,0.03) 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1.5px solid rgba(250,197,111,0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(250,197,111,0.3);
    box-shadow: 0 12px 35px rgba(250,197,111,0.2);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-info {
    padding: 18px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    margin: 6px 0;
    color: rgba(255,255,255,0.8);
}

.summary,
.payment-box,
.receipt {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 25px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

.payment-box h2 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
    color: rgba(255,255,255,0.9);
}

.payment-box h2 span {
    font-size: 24px;
    color: #f3782a;
    font-weight: 700;
}

.summary h2,
.payment-box h1,
.receipt h1 {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #f3782a 0%, #f59a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary p {
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.summary h3 {
    margin: 20px 0 0 0;
    padding-top: 20px;
    border-top: 2px solid rgba(243,120,42,0.4);
    font-size: 22px;
    background: linear-gradient(135deg, #f3782a 0%, #f59a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    justify-content: space-between;
}

.summary button {
    width: 100%;
    margin-top: 25px;
}

.cart-item {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(243,120,42,0.1) 0%, rgba(243,120,42,0.05) 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(243,120,42,0.2);
    transition: 0.3s;
}

.cart-item:hover {
    background: linear-gradient(135deg, rgba(243,120,42,0.15) 0%, rgba(243,120,42,0.1) 100%);
    border-color: rgba(243,120,42,0.4);
}

.cart-item h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.cart-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.payment-methods button {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, rgba(243,120,42,0.2) 0%, rgba(243,120,42,0.1) 100%);
    border: 2px solid rgba(243,120,42,0.3);
    color: #f3782a;
}

.payment-methods button:hover {
    background: linear-gradient(135deg, rgba(243,120,42,0.3) 0%, rgba(243,120,42,0.2) 100%);
    border-color: rgba(243,120,42,0.6);
}

.method-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(243,120,42,0.05);
    border-radius: 15px;
    border: 1px solid rgba(243,120,42,0.2);
}

.method-section input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 15px;
}

.hidden {
    display: none;
}

.qr {
    width: 220px;
    display: block;
    margin: auto;
    border-radius: 15px;
    padding: 10px;
    background: white;
}

.timer {
    margin-top: 20px;
    font-size: 24px;
    color: #fbbf24;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

.timer span {
    color: #fbbf24;
    font-size: 28px;
}

.pay-btn {
    margin-top: 25px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    background: linear-gradient(135deg, #fac56f 0%, #fae08f 100%) !important;
    color: #21201f !important;
    box-shadow: 0 6px 20px rgba(250,197,111,0.4) !important;
    font-weight: 700;
    letter-spacing: 1px;
}

.pay-btn:hover {
    background: linear-gradient(135deg, #fae08f 0%, #fac56f 100%) !important;
    box-shadow: 0 8px 25px rgba(250,197,111,0.5) !important;
}

#receiptDetails p {
    margin: 12px 0;
}

.receipt-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(243,120,42,0.3);
}

.receipt-header h1 {
    margin-bottom: 8px;
    font-size: 28px;
}

.receipt-header p {
    color: #f3782a;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.receipt-info {
    background: rgba(243,120,42,0.08);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(243,120,42,0.2);
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 14px;
}

.info-row span {
    color: rgba(255,255,255,0.7);
}

.info-row strong {
    color: #f3782a;
    font-weight: 600;
}

.receipt-divider {
    text-align: center;
    margin: 20px 0;
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    letter-spacing: 2px;
}

.receipt-items {
    margin-bottom: 20px;
}

.receipt-items h3 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #f3782a;
}

.receipt-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    font-size: 14px;
}

.receipt-item span {
    color: white;
}

.item-total {
    text-align: right;
    font-weight: 600;
    color: #f3782a;
}

.receipt-summary {
    background: rgba(243,120,42,0.08);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(243,120,42,0.2);
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 14px;
}

.summary-row span {
    color: rgba(255,255,255,0.8);
}

.summary-row strong {
    color: white;
    font-weight: 600;
}

.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(243,120,42,0.3);
    font-size: 16px;
}

.total-row strong {
    color: #10b981;
    font-size: 18px;
}

.payment-status {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(5,150,105,0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(16,185,129,0.2);
    margin-bottom: 20px;
}

.payment-status p {
    margin: 8px 0;
    font-size: 16px;
}

.payment-status p:first-child {
    color: #10b981;
    font-weight: 700;
    font-size: 18px;
}

.payment-status p:last-child {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.description {
    color: #bbb;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin: 14px 0;
    align-items: center;
}

.product-actions input {
    width: 70px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    background: rgba(255,255,255,0.05);
    font-size: 14px;
}

.like-btn {
    padding: 8px 12px;
    background: transparent;
    border: 2px solid #ff4757;
    color: #ff4757;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.like-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    transform: scale(1.15);
}

.product-info button {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    font-size: 14px;
}

@media(max-width:768px){

    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    header nav {
        flex-direction: column;
        width: 100%;
    }

    header nav button {
        width: 100%;
    }

    .form-container {
        width: 95%;
        margin: 50px auto;
        padding: 30px;
    }

    .payment-methods {
        flex-direction: column;
    }

    .payment-methods button {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
        gap: 15px;
    }

    .categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .summary,
    .payment-box,
    .receipt {
        padding: 25px;
        margin: 20px auto;
    }
}

@media(max-width:480px){
    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media(max-width:360px){
    .categories {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Filters Section */
.filters-section {
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(250,197,111,0.2);
    backdrop-filter: blur(15px);
}

.filters-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #fac56f;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

.filter-group select {
    padding: 10px 12px;
    border: 1px solid rgba(250,197,111,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #fac56f;
    background: rgba(250,197,111,0.1);
    box-shadow: 0 0 15px rgba(250,197,111,0.3);
}

.reset-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #fac56f 0%, #fae08f 100%);
    color: #21201f;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(250,197,111,0.3);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250,197,111,0.4);
}

.reset-btn:active {
    transform: translateY(0px);
}

.brand {
    color: #fac56f;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}