:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
--dark-color: #34495e;
--light-color: #ecf0f1;
--disabled-color: #bdc3c7;
}


* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
}

body {
background-color: #f5f7fa;
color: #333;
line-height: 1.6;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}

.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
padding: 15px 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    z-index: 9999;
}

.points-display {
font-size: 18px;
font-weight: bold;
}

.total-points {
color: var(--primary-color);
}

.used-points {
color: var(--secondary-color);
}

.stages {
display: flex;
flex-direction: column;
gap: 30px;
}

.stage {
background-color: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
opacity: 0.5;
transition: opacity 0.3s;
}

.stage.active {
opacity: 1;
}

.stage-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}

.stage-title {
font-size: 22px;
color: var(--dark-color);
}

.stage-requirement {
font-size: 16px;
color: #7f8c8d;
}

.stage-requirement.met {
color: var(--secondary-color);
font-weight: bold;
}

.products-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
}

.product-card {
border: 1px solid #eee;
border-radius: 8px;
padding: 15px;
transition: transform 0.2s, box-shadow 0.2s;
position: relative;
}

.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card.disabled {
opacity: 0.5;
pointer-events: none;
}

.product-image {
width: 50px;
height: 50px;
object-fit: contain;
margin: 0 auto 10px;
display: block;
background-color: #f8f9fa;
border-radius: 4px;
display:none;
}

.product-name {
font-size: 16px;
font-weight: bold;
margin-bottom: 5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
}

.product-points {
color: var(--primary-color);
font-weight: bold;
margin-bottom: 10px;
text-align: center;
}

.product-stock {
font-size: 14px;
color: #7f8c8d;
margin-bottom: 10px;
text-align: center;
}

.quantity-control {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 10px;
}

.quantity-btn {
width: 25px;
height: 25px;
background-color: var(--light-color);
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}

.quantity-btn:hover {
background-color: #d5dbdb;
}

.quantity-display {
width: 40px;
text-align: center;
margin: 0 5px;
font-weight: bold;
}

.redeem-btn {
width: 100%;
padding: 8px 0;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.2s;
}

.redeem-btn:hover {
background-color: #2980b9;
}

.redeem-btn:disabled {
background-color: var(--disabled-color);
cursor: not-allowed;
}

.progress-bar {
height: 4px;
background-color: #eee;
border-radius: 2px;
margin-top: 10px;
overflow: hidden;
}

.progress-fill {
height: 100%;
background-color: var(--secondary-color);
width: 0%;
transition: width 0.3s;
}

@media (max-width: 1200px) {
.products-grid {
grid-template-columns: repeat(4, 1fr);
}
}

@media (max-width: 768px) {
.products-grid {
grid-template-columns: repeat(2, 1fr);
}
}