/* --- Base Variables & Reset --- */
:root {
    --primary-color: #F27922;
    --secondary-color: #283C89;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: var(--text-color); background-color: #fdfdfd; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 20px 0; }
h2, h3, h4 { font-weight: 700; color: var(--secondary-color); }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px; }
section { padding: 60px 0; }

/* --- Header --- */
header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.logo { height: 50px; }
header nav ul { list-style: none; display: flex; gap: 30px; }
header nav a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: color 0.3s ease; }
header nav a:hover { color: var(--primary-color); }

/* --- Spin Wheel Section --- */
.spin-wheel-section {
    background: linear-gradient(45deg, var(--secondary-color), #3b5998);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.spin-wheel-section.hidden { display: none; }
.spin-wheel-section .subtitle { font-size: 1.2rem; max-width: 600px; margin: -20px auto 40px; opacity: 0.9; }
.wheel-container { position: relative; display: inline-block; }
#spin-wheel { display: block; transition: transform 5s cubic-bezier(0.25, 1, 0.5, 1); }
.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid var(--primary-color);
}
#spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.5rem;
    border: 5px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}
#spin-btn:hover { background: #f0f0f0; }
#spin-btn:disabled { cursor: not-allowed; background: #ccc; }


/* --- Products Section --- */
.products-section { background-color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; display: flex; flex-direction: column; padding: 15px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--border-radius); }
.product-card h3 { font-size: 1.3rem; margin: 20px 0 10px; color: #333; }
.size-selection { margin-bottom: 15px; }
.size-selection select { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #ccc; font-family: 'Poppins', sans-serif; font-size: 1rem; }
.product-price { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); margin-bottom: 20px; }
.add-to-cart-btn { background: var(--secondary-color); color: var(--white); border: none; padding: 15px; width: 100%; font-size: 1.1rem; font-weight: 600; cursor: pointer; margin-top: auto; border-radius: 8px; transition: background-color 0.3s ease; }
.add-to-cart-btn:hover { background-color: #3b5998; }

/* --- Info & Footer --- */
.info-section { background-color: var(--light-gray); }
.info-section ul { list-style: none; max-width: 800px; margin: 0 auto; }
footer { background: #1e293b; color: var(--white); padding: 40px 0 20px; }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 40px; }
.footer-column h4 { color: var(--white); margin-bottom: 15px; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; display: inline-block; }
.footer-column a { color: var(--white); text-decoration: none; opacity: 0.8; transition: opacity 0.3s ease; }
.footer-column a:hover { opacity: 1; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; opacity: 0.6; }

/* --- Floating Action Buttons --- */
.floating-actions { position: fixed; bottom: 20px; right: 20px; z-index: 1010; display: flex; flex-direction: column; gap: 15px; }
.fab { width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 15px rgba(0,0,0,0.2); cursor: pointer; border: none; transition: transform 0.2s ease; }
.fab:hover { transform: scale(1.1); }
.fab svg { width: 28px; height: 28px; }
.whatsapp-fab { background-color: #25D366; }
.cart-fab { background-color: var(--primary-color); position: relative; }
#fab-cart-count { position: absolute; top: -5px; right: -5px; background: var(--secondary-color); color: white; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; font-weight: 600; display: flex; justify-content: center; align-items: center; border: 2px solid white; }

/* --- Checkout Section --- */
.checkout-section { background-color: #e9eafc; padding: 60px 0; }
.checkout-section.hidden { display: none; }
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.cart-details h3, .customer-details h3 { text-align: center; margin-bottom: 20px; }
#cart-items-container .cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding: 15px; background: white; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.cart-item-details { text-align: left; flex-grow: 1; }
.cart-item-details p { margin: 0; font-size: 1rem; font-weight: 600; }
.cart-item-details span { font-size: 0.9rem; color: #666; }
.quantity-controls { display: flex; align-items: center; gap: 10px; margin-left: 15px; }
.quantity-btn { background: var(--light-gray); border: 1px solid #ccc; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-weight: bold; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.item-quantity { font-weight: 600; }
#customer-checkout-form { display: flex; flex-direction: column; gap: 15px; background: white; padding: 20px; border-radius: var(--border-radius); box-shadow: var(--shadow); }
#order-summary { margin-top: 20px; text-align: right; border-top: 1px solid var(--light-gray); padding-top: 15px; }
#order-summary p { margin: 5px 0; font-weight: 600; }
#order-summary p:last-child { font-size: 1.3rem; color: var(--primary-color); }
#order-summary span { font-weight: normal; color: #333; }
#customer-checkout-form input, #customer-checkout-form select { padding: 12px; border-radius: 8px; border: 1px solid #ccc; font-family: 'Poppins', sans-serif; font-size: 1rem; }
.modal-button { background: var(--primary-color); color: var(--white); border: none; padding: 15px; font-size: 1.1rem; font-weight: 600; cursor: pointer; border-radius: 8px; }
#form-error-message { color: red; margin-top: 10px; font-weight: bold; text-align: center; }
#thank-you-view { text-align: center; background: white; padding: 40px; border-radius: var(--border-radius); }
#thank-you-view hr { margin: 20px 0; }
.trust-badges { display: flex; justify-content: space-around; gap: 15px; padding: 15px 0; border-top: 1px solid var(--light-gray); margin-top: 10px; }
.badge-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.8rem; color: #555; font-weight: 600; }
.badge-item svg { width: 32px; height: 32px; color: var(--secondary-color); }

/* --- Incentive Modal --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.incentive-popup { background: var(--white); padding: 30px; border-radius: var(--border-radius); width: 90%; max-width: 600px; position: relative; text-align: center; }
.close-button { position: absolute; top: 10px; right: 15px; background: transparent; border: none; font-size: 2rem; cursor: pointer; color: #aaa; }
#incentive-message { font-size: 1.2rem; margin-bottom: 25px; line-height: 1.5; }
#incentive-message strong { color: var(--primary-color); font-size: 1.5rem; }

/* New Winner Discount Cards */
.winner-discount-cards { display: flex; justify-content: center; gap: 15px; margin-top: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.winner-discount-cards .discount-card { background: var(--light-gray); padding: 15px; border-radius: var(--border-radius); border: 2px solid transparent; width: 150px; }
.winner-discount-cards .discount-card p { color: #333; }
.winner-discount-cards .discount-card span { color: var(--secondary-color); font-size: 2rem; }
.winner-discount-cards .discount-card.popular { border-color: var(--primary-color); background: #fff5e8; }
.winner-discount-cards .discount-card.popular span { color: var(--primary-color); }


/* --- Responsive --- */
@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 15px; }
    .spin-wheel-section h2 { font-size: 2rem; }
}