* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

body {
    min-height: 100vh;
    transition: all 0.3s ease;
    padding: 20px;
}

body.light-mode {
    background-color: #fff;
    color: #333;
}

body.dark-mode {
    background-color: #222;
    color: #fff;
}

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

.logo-container {
    text-align: center;
    margin: 20px 0 40px 0;
    padding: 20px;
}

.logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.theme-switch {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

#themeToggle {
    font-size: 24px;
    background: none;
    border: 2px solid #ff69b4;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#themeToggle:hover {
    transform: scale(1.1);
    background-color: rgba(255, 105, 180, 0.1);
}

.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    background: #ff69b4;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

#cart-count {
    background: white;
    color: #ff69b4;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 300px;
    margin-top: 10px;
    z-index: 1000;
    color: #333;
}

.cart-dropdown h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-align: center;
}

.cart-dropdown.hidden {
    display: none;
}

#cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1em;
    color: inherit;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #ff69b4;
    font-weight: bold;
    font-size: 1.2em;
    color: #ff69b4;
}

/* Dark mode adjustments for cart */
body.dark-mode .cart-dropdown {
    background: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    color: #fff;
}

body.dark-mode .cart-item {
    border-bottom-color: #444;
    color: #fff;
}

body.dark-mode .cart-total {
    color: #ff69b4;
}

body.dark-mode .cart-dropdown h3 {
    color: #ff69b4;
}

body.dark-mode #cart-count {
    background: #333;
    color: white;
}

/* Scrollbar styles for cart items */
#cart-items::-webkit-scrollbar {
    width: 8px;
}

#cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#cart-items::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 4px;
}

#cart-items::-webkit-scrollbar-thumb:hover {
    background: #ff4da6;
}

body.dark-mode #cart-items::-webkit-scrollbar-track {
    background: #444;
}

/* Empty cart message */
#cart-items:empty::after {
    content: 'Ton panier est vide 🛍️';
    display: block;
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

body.dark-mode #cart-items:empty::after {
    color: #999;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.price {
    color: #ff69b4;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.quantity-btn {
    background: #ff69b4;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: transform 0.2s;
}

.quantity-btn:hover {
    transform: scale(1.1);
}

.quantity {
    font-size: 1.2em;
    min-width: 30px;
    text-align: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 40px auto;
}

input {
    padding: 15px;
    border: 2px solid #ff69b4;
    border-radius: 15px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
}

.buy-button {
    display: block;
    width: 200px;
    margin: 30px auto;
    padding: 15px 30px;
    font-size: 20px;
    background-color: #ff69b4;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}

.buy-button:hover {
    transform: scale(1.05);
}

/* Dark mode adjustments */
body.dark-mode .product-card {
    background: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

body.dark-mode .product-card h3 {
    color: #fff;
}

body.dark-mode input {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.circles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.oval-circles {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.middle-circles {
    display: flex;
    gap: 20px;
}

.circle {
    background-color: #87ceeb;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
    text-align: center;
    min-width: 120px;
}

.circle:hover {
    transform: scale(1.05);
}

.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 30px 0;
}

.calculator {
    position: relative;
}

#calcToggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

#calculator {
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#calculator.hidden {
    display: none;
}

#calcDisplay {
    width: 100%;
    margin-bottom: 10px;
    text-align: right;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.calc-buttons button {
    padding: 10px;
    border: 1px solid #ff69b4;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
} 