*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #fff1f2, #ffe4e6, #fda4af); background-attachment: fixed; min-height: 100vh; }
a { color: #be185d; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

header { background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 2px solid #c9a44a; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: #be185d; }
.logo:hover { text-decoration: none; }
nav a { margin-left: 20px; font-weight: 500; color: #555; }
nav a:hover { color: #c9a44a; text-decoration: none; }
.cart-link { position: relative; }
.cart-badge { background: #c9a44a; color: #fff; font-size: 0.75rem; border-radius: 50%; padding: 1px 6px; margin-left: 3px; }

main { min-height: 60vh; padding: 30px 0; }

.hero { text-align: center; padding: 80px 0 200px; background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.5)), url('/static/hero-bg.jpg') center 40%/cover no-repeat; color: #fff; border-radius: 12px; margin: 20px 0; position: relative; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 3rem; margin-bottom: 20px; color: #fce7c8; text-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 4px 15px rgba(0,0,0,0.4), 0 0 60px rgba(201,164,74,0.3); letter-spacing: 2px; position: relative; display: inline-block; }
.hero h1::after { content: ''; display: block; width: 80px; height: 3px; background: #c9a44a; margin: 10px auto 0; border-radius: 2px; box-shadow: 0 0 10px rgba(201,164,74,0.5); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.95); margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 30px rgba(0,0,0,0.3); letter-spacing: 1px; }
.hero .btn { background: #c9a44a; margin-top: 40px; padding: 14px 36px; font-size: 1.05rem; border-radius: 8px; }
.hero .btn:hover { background: #b8922e; }

h1 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 20px; color: #be185d; }
h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin: 30px 0 15px; color: #be185d; }

.btn { display: inline-block; padding: 10px 20px; border-radius: 6px; border: none; cursor: pointer; font-size: 0.95rem; background: #be185d; color: #fff; text-decoration: none; }
.btn:hover { background: #9d174d; text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-outline { background: transparent; color: #be185d; border: 1px solid #be185d; }
.btn-outline:hover { background: #fff1f2; }
.btn-danger { background: #ef4444; }
.btn-danger:hover { background: #dc2626; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; text-decoration: none; }
.btn-commande { background: #c9a44a; font-size: 1.1rem; padding: 12px 30px; color: #fff; }
.btn-commande:hover { background: #b8922e; }

.commande-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 15px 0; }
.option-group { display: flex; align-items: center; gap: 5px; }
.option-group label { font-weight: 500; font-size: 0.9rem; }
.option-group select, .commande-form input[type="number"] { padding: 8px; border: 1px solid #ccc; border-radius: 5px; font-size: 0.9rem; }
.option-group select { min-width: 70px; }
.commande-form input[type="number"] { width: 60px; }
.item-options { font-size: 0.85rem; color: #666; line-height: 1.5; }
.product-video { margin: 20px 0; }
.product-video h3 { font-size: 1rem; margin-bottom: 10px; color: #555; }
.video-embed iframe { width: 100%; max-width: 560px; height: 315px; border-radius: 8px; }
.file-info { font-size: 0.85rem; color: #666; margin-top: 4px; }

.mini-cart { background: rgba(255,255,255,0.9); border: 1px solid #c9a44a; border-radius: 8px; padding: 12px 15px; margin: 15px 0; }
.mini-cart h3 { font-size: 0.95rem; margin-bottom: 8px; color: #be185d; }
.mini-cart-item { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 3px 0; }
.mini-cart-total { border-top: 1px solid #c9a44a; padding-top: 8px; margin-top: 5px; font-size: 0.95rem; }
.mini-cart .btn-sm { margin-top: 8px; background: #be185d; }
.mini-cart .btn-sm:hover { background: #9d174d; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.product-card { background: rgba(255,255,255,0.95); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: box-shadow 0.2s; padding: 15px; border: 1px solid rgba(253,164,175,0.3); }
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-color: #c9a44a; }
.product-card a { color: inherit; text-decoration: none; }
.product-card-img { position: relative; overflow: hidden; border-radius: 6px; }
.product-card-img img { width: 100%; height: 280px; object-fit: cover; display: block; }
.video-badge { position: absolute; bottom: 14px; left: 8px; background: rgba(0,0,0,0.7); color: #fff; font-size: 0.75rem; padding: 3px 8px; border-radius: 4px; z-index: 2; }
.product-card h3 { font-size: 1rem; margin: 8px 0 5px; }
.price { color: #c9a44a; font-weight: 600; font-size: 1.1rem; }
.card-description { color: #666; font-size: 0.85rem; margin: 6px 0 0; line-height: 1.4; }
.product-card .btn-add-cart { width: 100%; margin-top: 10px; transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover .btn-add-cart { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(190,24,93,0.3); }
.product-card:hover { border-color: #c9a44a; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-image img { width: 100%; border-radius: 8px; border: 1px solid rgba(253,164,175,0.3); display:block; }
.main-image-wrapper { position: relative; }
.img-arrow { position:absolute; top:50%; transform:translateY(-50%) scale(0.85); background:rgba(255,255,255,0.15); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); color:#fff; border:none; width:48px; height:48px; border-radius:50%; font-size:1.1rem; cursor:pointer; z-index:2; display:flex; align-items:center; justify-content:center; transition:all 0.3s cubic-bezier(0.4,0,0.2,1); opacity:0; box-shadow:0 2px 12px rgba(0,0,0,0.2); border:1px solid rgba(255,255,255,0.15); }
.main-image-wrapper:hover .img-arrow { opacity:1; transform:translateY(-50%) scale(1); }
.img-arrow:hover { background:rgba(255,255,255,0.35); border-color:rgba(255,255,255,0.4); transform:translateY(-50%) scale(1.1); }
.img-arrow:active { transform:translateY(-50%) scale(0.95); }
.img-arrow-prev { left:14px; padding-right:2px; }
.img-arrow-next { right:14px; padding-left:2px; }
@media (max-width:768px) {
  .img-arrow { width:40px; height:40px; font-size:0.95rem; opacity:0.7; transform:translateY(-50%) scale(1); }
  .img-arrow-prev { left:8px; }
  .img-arrow-next { right:8px; }
}
.product-info h1 { font-size: 2rem; }
.category { color: #888; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 10px; }
.price-lg { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #c9a44a; font-weight: 700; margin: 15px 0; }
.description { color: #555; margin: 20px 0; line-height: 1.8; }
.add-to-cart-form { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.add-to-cart-form input[type="number"] { width: 60px; padding: 8px; border: 1px solid #ccc; border-radius: 5px; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h2 { margin: 0; }

.best-sellers { margin: 40px 0; }
.carousel-wrapper { position: relative; display: flex; align-items: center; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding: 10px 0; flex: 1; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { min-width: 220px; flex-shrink: 0; background: rgba(255,255,255,0.95); border-radius: 8px; padding: 12px; border: 1px solid rgba(253,164,175,0.3); transition: box-shadow 0.2s; }
.carousel-slide:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-color: #c9a44a; }
.carousel-slide a { color: inherit; text-decoration: none; }
.carousel-img { overflow: hidden; border-radius: 6px; }
.carousel-img img { width: 100%; height: 240px; object-fit: cover; display: block; }
.carousel-slide h3 { font-size: 0.95rem; margin: 8px 0 4px; }
.carousel-slide .price { font-size: 1rem; }
.carousel-slide .btn-sm { width: 100%; margin-top: 8px; }
.carousel-btn { position: absolute; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: all 0.2s; color: #555; }
.carousel-btn:hover { background: #be185d; color: #fff; border-color: #be185d; }
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }

@media (max-width: 640px) {
    .carousel-slide { min-width: 180px; padding: 10px; }
    .carousel-slide h3 { font-size: 0.85rem; }
    .carousel-img img { height: 200px; }
    .carousel-btn { width: 30px; height: 30px; font-size: 0.85rem; }
    .carousel-prev { left: -8px; }
    .carousel-next { right: -8px; }
    .carousel-track { gap: 12px; }
}

.filters { margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { padding: 6px 16px; border-radius: 20px; border: 1px solid #ddd; color: #555; font-size: 0.9rem; text-decoration: none; }
.filter-btn.active { background: #be185d; color: #fff; border-color: #be185d; }
.filter-btn:hover { text-decoration: none; background: #fff1f2; }
.filter-btn.active:hover { background: #9d174d; }

.cart-list { display: flex; flex-direction: column; gap: 15px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.95); padding: 15px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid rgba(253,164,175,0.3); }
.cart-item-info h3 { font-size: 1rem; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; }
.qty-input { width: 50px; padding: 5px; border: 1px solid #ccc; border-radius: 4px; }
.produit-qty-controls { display: flex; align-items: center; gap: 0; border: 1px solid #ccc; border-radius: 5px; overflow: hidden; }
.produit-qty-btn { width: 36px; height: 36px; border: none; background: #f3f4f6; cursor: pointer; font-size: 1.2rem; font-weight: 600; color: #555; display: flex; align-items: center; justify-content: center; }
.produit-qty-btn:hover { background: #e5e7eb; }
.produit-qty-btn:active { background: #d1d5db; }
.produit-qty-display { width: 40px; text-align: center; font-size: 1rem; font-weight: 600; padding: 6px 0; }
.produit-total { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #c9a44a; font-weight: 700; margin: 10px 0 0; }
.cart-total { font-size: 1.4rem; text-align: right; margin: 20px 0; color: #be185d; }

.checkout-form { max-width: 500px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { border-color: #be185d; outline: none; box-shadow: 0 0 0 2px rgba(190,24,93,0.15); }

.confirmation { text-align: center; max-width: 700px; margin: 0 auto; }
.confirmation h1 { color: #be185d; }
.order-summary { background: rgba(255,255,255,0.95); padding: 25px; border-radius: 8px; margin: 25px 0; text-align: left; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid rgba(253,164,175,0.3); }
.order-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.order-table th, .order-table td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.order-table th { background: rgba(253,164,175,0.15); }
.total { font-size: 1.2rem; text-align: right; color: #be185d; }

.flash { padding: 12px 18px; border-radius: 6px; margin-bottom: 15px; font-weight: 500; }
.flash.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash.info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.empty { color: #888; font-style: italic; margin: 20px 0; }

.admin-login-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #be185d, #9d174d); }
.admin-login { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); max-width: 400px; width: 100%; }
.admin-login h1 { text-align: center; margin-bottom: 25px; }

.admin-header-bar { background: #9d174d; border-bottom: 2px solid #c9a44a; }
.admin-header-bar .logo, .admin-header-bar nav a { color: #fff; }
.admin-header-bar nav a:hover { color: #c9a44a; text-decoration: none; }

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: rgba(255,255,255,0.95); padding: 25px; border-radius: 8px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid rgba(253,164,175,0.3); }
.stat-card h3 { font-size: 2.2rem; color: #c9a44a; margin-bottom: 5px; }
.stat-card p { color: #888; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.admin-table th { background: rgba(253,164,175,0.15); padding: 12px 15px; text-align: left; font-weight: 600; border-bottom: 2px solid #c9a44a; }
.admin-table td { padding: 12px 15px; border-bottom: 1px solid #f3f4f6; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .actions { display: flex; gap: 6px; }
.admin-table td form { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.admin-table td select { width: auto; min-width: 100px; }
.thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }

.status { padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.status.pending { background: #fef3c7; color: #92400e; }
.status.confirmed { background: #dbeafe; color: #1e40af; }
.status.completed { background: #d1fae5; color: #065f46; }
.status.cancelled { background: #fee2e2; color: #991b1b; }
.status.no_answer_1 { background: #f3e8ff; color: #6b21a8; }
.status.no_answer_2 { background: #fce7f3; color: #9d174d; }
.status.no_answer_3 { background: #e0e7ff; color: #3730a3; }

.row-confirmed { background-color: #d1fae5 !important; }
.row-no_answer_1 { background-color: #fef9c3 !important; }
.row-no_answer_2 { background-color: #fde047 !important; }
.row-no_answer_3 { background-color: #fed7aa !important; }
.row-cancelled { background-color: #fee2e2 !important; }

footer { background: #be185d; border-top: 2px solid #c9a44a; text-align: center; padding: 20px 0; color: #fff; font-size: 0.9rem; margin-top: 40px; }

.delivery-options { display: flex; gap: 20px; padding: 10px 0; }
.radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 1rem; }
.radio-label input[type="radio"] { width: auto; }
.delivery-price-display, .delivery-total-display { font-size: 1.1rem; margin: 5px 0; }
.delivery-info { font-weight: 600; margin: 5px 0; }
.checkout-summary { background: rgba(255,255,255,0.9); padding: 15px 20px; border-radius: 8px; margin-bottom: 25px; border: 1px solid rgba(253,164,175,0.3); }
.checkout-summary p { margin: 5px 0; }
.subtotal { font-size: 1.1rem; margin-top: 10px; padding-top: 10px; border-top: 1px solid #c9a44a; }

@media (max-width: 768px) {
    .thumb-gallery { justify-content: center; }
    .product-detail { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 60px 0 140px; min-height: 360px; }
    .header-inner { flex-direction: column; gap: 10px; }
    nav a { margin: 0 8px; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card img { height: 160px; }
    .product-card { padding: 8px; }
    .product-card h3 { font-size: 0.8rem; margin: 6px 0 3px; }
    .price { font-size: 0.85rem; }
    .product-card .btn-add-cart { font-size: 0.75rem; padding: 5px 10px; }
    .hero { padding: 40px 0 100px; min-height: 280px; }
    .hero h1 { font-size: 1.4rem; }
    .hero p { font-size: 0.95rem; }
    .checkout-form { max-width: 100%; }
    .container { padding: 0 12px; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 15px; }
    .stat-card h3 { font-size: 1.5rem; }
}
