* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.7);
    font-family: Arial, sans-serif;
    color: rgba(200, 220, 240, 0.95);
    overflow: hidden;
}

.store-container {
    height: 100vh;
    width: 100vw;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Header Section */
.store-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(15, 20, 30, 0.9);
    border: 1px solid rgba(100, 150, 200, 0.4);
    border-radius: 4px;
    box-shadow:
        0 0 20px rgba(100, 150, 200, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.8);
}

.store-logo {
    width: 60px;
    height: 60px;
    background: rgba(20, 30, 45, 0.8);
    border: 2px solid rgba(100, 150, 200, 0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    font-size: 2rem;
}

.store-info {
    flex: 1;
}

.store-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(200, 220, 255, 1);
    margin-bottom: 0.25rem;
}

.store-subtitle {
    font-size: 0.875rem;
    color: rgba(140, 160, 180, 0.8);
    letter-spacing: 0.5px;
}

.balance-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: rgba(20, 30, 45, 0.7);
    border: 1px solid rgba(100, 200, 150, 0.4);
    border-radius: 4px;
}

.balance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(140, 160, 180, 0.8);
}

.balance-amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(100, 200, 150, 1);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    padding: 0.625rem 1.25rem;
    background: rgba(20, 30, 45, 0.7);
    border: 1px solid rgba(100, 150, 200, 0.4);
    border-radius: 4px;
    color: rgba(200, 220, 240, 0.95);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn:hover {
    background: rgba(30, 45, 70, 0.9);
    border-color: rgba(150, 200, 255, 0.7);
    box-shadow:
        0 0 15px rgba(100, 150, 200, 0.2),
        inset 0 0 20px rgba(100, 150, 200, 0.05);
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.cart-icon {
    font-size: 1.25rem;
}

.cart-count {
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: rgba(100, 150, 200, 0.3);
    border: 1px solid rgba(100, 150, 200, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.close-btn {
    border-color: rgba(200, 100, 100, 0.4);
}

.close-btn:hover {
    border-color: rgba(255, 100, 100, 0.7);
    box-shadow:
        0 0 15px rgba(200, 100, 100, 0.2),
        inset 0 0 20px rgba(200, 100, 100, 0.05);
}

/* Main Content */
.store-content {
    flex: 1;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    overflow: hidden;
}

.store-content.cart-open {
    grid-template-columns: 250px 1fr 350px;
}

/* Panels */
.store-panel {
    background: rgba(15, 20, 30, 0.9);
    border: 1px solid rgba(100, 150, 200, 0.4);
    border-left: 3px solid rgba(100, 150, 200, 0.5);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 20px rgba(100, 150, 200, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.6);
}

.panel-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(100, 150, 200, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(200, 220, 255, 1);
}

.panel-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Custom Scrollbar */
.panel-content::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-track {
    background: rgba(15, 20, 30, 0.5);
    border-radius: 4px;
}

.panel-content::-webkit-scrollbar-thumb {
    background: rgba(100, 150, 200, 0.3);
    border-radius: 4px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 150, 200, 0.5);
}

/* Search Box */
.search-box {
    flex: 1;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem;
    background: rgba(20, 30, 45, 0.7);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-radius: 4px;
    color: rgba(200, 220, 240, 0.95);
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(150, 200, 255, 0.6);
    box-shadow:
        0 0 15px rgba(100, 150, 200, 0.15),
        inset 0 0 20px rgba(100, 150, 200, 0.05);
}

.search-input::placeholder {
    color: rgba(100, 120, 140, 0.6);
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(20, 30, 45, 0.6);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-left: 3px solid rgba(100, 150, 200, 0.4);
    border-radius: 4px;
    color: rgba(200, 220, 240, 0.95);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.category-item:hover {
    background: rgba(30, 45, 70, 0.7);
    border-left-color: rgba(150, 200, 255, 0.7);
}

.category-item.active {
    background: rgba(30, 45, 70, 0.8);
    border-left-color: rgba(100, 200, 150, 0.8);
    box-shadow:
        0 0 15px rgba(100, 200, 150, 0.15),
        inset 0 0 20px rgba(100, 200, 150, 0.05);
}

.category-icon {
    font-size: 1.5rem;
}

.category-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.category-count {
    padding: 0.25rem 0.5rem;
    background: rgba(100, 150, 200, 0.2);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.item-card {
    background: rgba(20, 30, 45, 0.6);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-left: 3px solid rgba(100, 150, 200, 0.4);
    border-radius: 4px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item-card:hover {
    background: rgba(30, 45, 70, 0.7);
    border-left-color: rgba(150, 200, 255, 0.7);
    box-shadow:
        0 0 15px rgba(100, 150, 200, 0.15),
        inset 0 0 20px rgba(100, 150, 200, 0.05);
}

.item-icon {
    font-size: 3rem;
    text-align: center;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(200, 220, 255, 1);
    text-align: center;
}

.item-description {
    font-size: 0.75rem;
    color: rgba(140, 160, 180, 0.85);
    text-align: center;
    line-height: 1.3;
    min-height: 2.6rem;
}

.item-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(100, 200, 150, 1);
    text-align: center;
    margin-top: auto;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.add-to-cart-btn {
    flex: 1;
    padding: 0.625rem;
    background: rgba(100, 150, 200, 0.2);
    border: 1px solid rgba(100, 150, 200, 0.4);
    border-radius: 4px;
    color: rgba(200, 220, 240, 0.95);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.add-to-cart-btn:hover {
    background: rgba(100, 150, 200, 0.3);
    border-color: rgba(150, 200, 255, 0.6);
}

/* Cart Panel */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.empty-text {
    font-size: 0.875rem;
    color: rgba(140, 160, 180, 0.7);
}

.cart-item {
    padding: 1rem;
    background: rgba(20, 30, 45, 0.6);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-left: 3px solid rgba(100, 150, 200, 0.4);
    border-radius: 4px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(200, 220, 255, 1);
}

.cart-item-remove {
    padding: 0.25rem 0.5rem;
    background: rgba(200, 100, 100, 0.2);
    border: 1px solid rgba(200, 100, 100, 0.4);
    border-radius: 3px;
    color: rgba(255, 150, 150, 0.9);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cart-item-remove:hover {
    background: rgba(200, 100, 100, 0.3);
}

.cart-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(160, 180, 200, 0.85);
}

.cart-item-price {
    color: rgba(100, 200, 150, 1);
    font-weight: 600;
}

.clear-cart-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(200, 100, 100, 0.2);
    border: 1px solid rgba(200, 100, 100, 0.4);
    border-radius: 4px;
    color: rgba(255, 150, 150, 0.9);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.clear-cart-btn:hover {
    background: rgba(200, 100, 100, 0.3);
}

/* Cart Summary */
.cart-summary {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(100, 150, 200, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.summary-label {
    font-size: 0.875rem;
    color: rgba(160, 180, 200, 0.85);
}

.summary-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(200, 220, 240, 0.95);
}

.summary-total {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(100, 150, 200, 0.2);
    margin-top: 0.5rem;
}

.summary-total .summary-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(200, 220, 255, 1);
}

.summary-total .summary-value {
    font-size: 1.25rem;
    color: rgba(100, 200, 150, 1);
}

.action-btn-primary {
    width: 100%;
    padding: 0.875rem;
    margin-top: 1rem;
    background: rgba(100, 150, 200, 0.2);
    border: 1px solid rgba(100, 150, 200, 0.5);
}

.action-btn-primary:hover {
    background: rgba(100, 150, 200, 0.3);
    border-color: rgba(150, 200, 255, 0.7);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-btn:disabled:hover {
    background: rgba(100, 150, 200, 0.2);
    border-color: rgba(100, 150, 200, 0.5);
    box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 1200px) {
    .store-content {
        grid-template-columns: 1fr;
    }

    .store-content.cart-open {
        grid-template-columns: 1fr 350px;
    }

    .categories-panel {
        display: none;
    }
}
