/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: rgb(113, 57, 0);
    color: #ffffff;
    line-height: 1.6;
}

.heure {
    color: #ffffff;
        /* font-family: none; */
        font-weight: bold;
        font-size: 50px;
        text-align: center;
        position: relative;
        top: -50px;
        display: flex;
        justify-content: center;
}

/* Navigation */
av {
    background-color: rgba(0, 0, 0, 0.321);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    text-align: center;
    height: 60PX;
    top: 0;
    z-index: 100;
}

/* Responsive pour tablettes */
@media (max-width: 768px) {
    .heure {
        font-size: 13px;
    }
}

/* Responsive pour mobiles */
@media (max-width: 480px) {

    .heure {
        font-size: 12px;
    }
}

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

.cart-title {
    text-align: center;
    font-size: 2.5rem;
    padding-top: 10px;
}
.caisse {
    position: fixed;
    top: 0px;
    left: 0;
    margin-bottom: 20px;
    width: 100%;
    height: 100px;
    background-image: url(4.jpg);
}

/* Tabs */
.cart-tabs {
    text-decoration: none;
        /* background: #000000; */
        /* color: #ffffff; */
        /* border-radius: 15px 15px; */
        /* font-weight: 400; */
        /* letter-spacing: 0.3px; */
        margin-top: 40px;
        text-align: center;
        cursor: pointer;
}

.tab-btn {  
  font-weight: bold;
  max-width: 70px;
  height: 30px;
  color: #ffffff;
  background: rgb(0, 0, 0);
  border: 1px solid rgb(255, 255, 255);
  border-radius: 15px;
  cursor: pointer;
  padding: 0 15px;
  position: relative;
  top: -60px;
}
.tab-btn.active {
  border: 1px solid rgb(253, 253, 253);
  background: #007908;
  transform: translateY(-1px);
}

.tab-btn:hover {
    background: #00000091;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Cart Content */
.cart-content {
    background: #64260000;
    border: 1px solid #a4a3a200;
    border-radius: 50px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0);
    margin-top: 50px;
}

.fa-shopping-cart .x {
    width: 30px;
    height: 30px;
    background: red;
    border-radius: 5px;
    display: flex;
}

#favorites-content {
    display: none;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #faff69b3; 
    transition: all 0.3s ease;
    gap: 15px;
}

.cart-item-image {
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}


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

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

/* ici je cache la somme en double */
.cart-item-price {
    color: #99999984;
    font-size: 1px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #d4af37;
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #442d0a;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
}

.remove-item {
    background: #e74c3c;
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #c0392b;
}

.remove-favorite {
    background: #e74c3c;
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-favorite:hover {
    background: #c0392b;
}

.add-to-cart-from-fav  {
    background: linear-gradient(
    135deg,
    hsla(120, 65%, 59%, 0.616),
    hwb(120 36% 8%)
  );
  color: black;
  border: 1px solid rgba(212, 175, 55, 0.5);
  width: 50px;
  height: 35px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.637);
}

.add-to-cart-btn:hover {
  background: linear-gradient(
    135deg,
    hsl(60, 59%, 45%),
    hsla(120, 59%, 35%, 0.459)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Cart Summary */
.cart-summary {
    border-top: 2px solid #d4af37e8;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total h3 {
    font-size: 1.3rem;
    color: #ece9e9;
}

.checkout-btn {
    background: linear-gradient(135deg, hsla(120, 65%, 59%, 0),
    hwb(120 36% 8% / 0));
    border: none;
    color: #ffffff;
    padding: 10px 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 4rem;
    color: #d4af37;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-cart p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.empty-cart .back-to-menu-btn {
    background: linear-gradient(135deg, #442d0a 0%, #d4af37 100%);
    border: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.empty-cart .back-to-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #442d0a;
}

/* Order Form */
#orderForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #442d0a;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-order-btn {
    background: linear-gradient(135deg, #442d0a 0%, #d4af37 100%);
    border: none;
    color: #fff;
    padding: 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-message i {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.8rem;
    color: #442d0a;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

.back-to-menu-btn {
    background: linear-gradient(135deg, #442d0a 0%, #d4af37 100%);
    border: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.back-to-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-haut {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cart-title {
        font-size: 2rem;
    }

    .cart-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 200px;
        margin: 5px 0;
    }

    .cart-summary {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}