/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #008080, #E56717, #C38D4F);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: #333;
    transition: opacity 0.35s ease, filter 0.35s ease; /* smooth page transition */
}
/* Page exit transition */
body.is-exiting {
    opacity: 0;
    filter: blur(2px);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Shop Container */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* admin badge/styles removed */

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #F3E5AB;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Product Section */
.product-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Product Card */
.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Product Image */
.product-image {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding: 2rem;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #F3E5AB;
    margin-bottom: 0.5rem;
    text-align: center;
}

.product-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Countdown Timer */
.countdown-timer {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 128, 128, 0.1); /* Teal blue background */
    border-radius: 20px;
    border: 1px solid rgba(0, 128, 128, 0.3); /* Teal blue border */
}

.countdown-timer h3 {
    color: #008080; /* Teal blue color */
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.timer-display {
    font-size: 3rem;
    font-weight: 700;
    color: #008080; /* Teal blue color */
    margin-bottom: 0.5rem;
    font-family: 'Inter', monospace;
}

.countdown-timer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Pricing */
.pricing {
    text-align: center;
    margin-bottom: 2rem;
}

.price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.original-price {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.offer-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F3E5AB;
}

.price-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Product Features */
.product-features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.feature i {
    font-size: 1.5rem;
    color: #F3E5AB;
}

.feature span {
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 2rem;
    text-align: center;
}

.quantity-selector label {
    display: block;
    color: white;
    margin-bottom: 1rem;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#quantity {
    width: 80px;
    height: 40px;
    text-align: center;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

#quantity:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

/* Checkout Form */
.checkout-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Total Price */
.total-price {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.total-price span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F3E5AB;
}

/* Checkout Button */
.checkout-btn {
    position: relative;
    width: 100%;
    padding: 1.5rem;
    border: none;
    background: linear-gradient(135deg, #F3E5AB, #E56717);
    color: #008080;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 229, 171, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: checkoutShine 3.5s linear infinite;
}

@keyframes checkoutShine {
    0% { left: -100%; }
    12%, 100% { left: 100%; }
}

/* Footer */
.shop-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-container {
        padding: 1rem;
    }
    
    .product-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .shop-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .timer-display {
        font-size: 2.5rem;
    }
    
    .offer-price {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .product-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        min-width: 100px;
    }
    
    .checkout-form {
        padding: 1.5rem;
    }
}
