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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #f0f8ff 100%);
    color: #5a5a5a;
    line-height: 1.6;
    min-height: 100vh;
}

.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(255, 182, 193, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    color: #ff69b4;
    font-size: 24px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(255, 182, 193, 0.3);
}

.header p {
    color: #8e8e8e;
    font-size: 14px;
}

.container {
    padding: 20px;
    max-width: 100vw;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffb6c1, #87ceeb, #98fb98, #dda0dd);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 182, 193, 0.25);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffeef8, #f0f8ff);
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-description {
    font-size: 14px;
    color: #7a7a7a;
    margin-bottom: 10px;
}

.product-cost {
    font-size: 18px;
    font-weight: 600;
    color: #ff69b4;
    text-align: center;
    margin: 10px 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ffeef8, #f0f8ff);
    border-radius: 12px;
    border: 2px solid #ffb6c1;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff69b4;
    margin-bottom: 15px;
}

.buy-button {
    width: 100%;
    background: linear-gradient(135deg, #ff69b4, #ffc0cb);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    background: linear-gradient(135deg, #ff1493, #ff69b4);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #ffb6c1;
    font-size: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ffeef8;
    border-top: 4px solid #ff69b4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.age-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #87ceeb, #b0e0e6);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffeef8 0%, #f0f8ff 100%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.welcome-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 4px solid #ffb6c1;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.4);
    animation: gentle-float 3s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.welcome-title {
    font-size: 32px;
    color: #ff69b4;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(255, 182, 193, 0.3);
    font-weight: 700;
}

.welcome-subtitle {
    font-size: 18px;
    color: #8e8e8e;
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 300px;
}

.enter-button {
    background: linear-gradient(135deg, #ff69b4, #ffc0cb);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.enter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
    background: linear-gradient(135deg, #ff1493, #ff69b4);
}

.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease 0.3s, visibility 0.5s ease 0.3s;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
}

.gift-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gift-form-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.gift-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gift-form-overlay.visible .gift-form {
    transform: translateY(0);
}

.selected-product-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 2px solid #ffb6c1;
}

.gift-form h2 {
    color: #ff69b4;
    font-size: 20px;
    margin-bottom: 10px;
}

.gift-form p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.name-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ffb6c1;
    border-radius: 15px;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s ease;
}

.name-input:focus {
    border-color: #ff69b4;
}

.form-buttons {
    display: flex;
    gap: 10px;
}

.form-button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-button {
    background: #f0f0f0;
    color: #666;
}

.cancel-button:hover {
    background: #e0e0e0;
}

.proceed-button {
    background: linear-gradient(135deg, #ff69b4, #ffc0cb);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.proceed-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.proceed-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.delivery-address {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 13px;
    color: #495057;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.delivery-address::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    opacity: 0.7;
}

.delivery-address:hover {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Taken product styles */
.product-card.taken {
    opacity: 0.6;
    background: rgba(240, 240, 240, 0.95);
    pointer-events: none;
}

.product-card.taken::before {
    opacity: 0;
}

.product-card.taken:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(200, 200, 200, 0.15);
}

.product-card.taken .product-image {
    filter: grayscale(100%);
    opacity: 0.7;
}

.product-card.taken .product-title,
.product-card.taken .product-description {
    color: #999;
}

.product-card.taken .buy-button {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
    cursor: not-allowed;
    box-shadow: none;
}

.product-card.taken .buy-button:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #6c757d, #adb5bd);
}

/* Admin Panel Styles */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.admin-content h3 {
    color: #ff69b4;
    font-size: 20px;
    margin-bottom: 20px;
}

.admin-button {
    width: 100%;
    padding: 15px;
    margin: 5px 0;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff69b4, #ffc0cb);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.admin-button.cancel-button {
    background: #f0f0f0;
    color: #666;
    box-shadow: none;
}

.admin-button.cancel-button:hover {
    background: #e0e0e0;
    box-shadow: none;
}

.admin-info {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
    text-align: center;
    font-style: italic;
}

.admin-button.danger {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
}

.admin-button.danger:hover {
    background: linear-gradient(135deg, #ff3742, #ff2f3a);
    transform: translateY(-2px);
} 