/* assets/style.css — Le Goût d'Épices Boutique */

/* Grille produits */
.lgde-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.lgde-product {
    border: 1px solid #e0d5c8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.lgde-product:hover {
    box-shadow: 0 4px 16px rgba(27, 40, 56, 0.12);
}

.lgde-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.lgde-product-info {
    padding: 16px;
}

.lgde-product-title {
    margin: 0 0 8px;
    font-size: 1.1em;
    color: #1B2838;
}

.lgde-product-desc {
    color: #555;
    font-size: 0.9em;
    margin: 0 0 8px;
}

.lgde-product-weight {
    display: inline-block;
    font-size: 0.85em;
    color: #888;
    margin-right: 8px;
}

.lgde-product-price {
    display: inline-block;
    font-size: 1.2em;
    font-weight: bold;
    color: #E07B39;
}

.lgde-product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.lgde-qty {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

/* Boutons */
.lgde-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #E07B39;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    text-decoration: none;
    transition: background 0.2s;
}

.lgde-btn:hover {
    background: #c96a2e;
    color: #fff;
}

.lgde-btn-outline {
    background: transparent;
    color: #E07B39;
    border: 2px solid #E07B39;
}

.lgde-btn-outline:hover {
    background: #E07B39;
    color: #fff;
}

.lgde-btn-pay {
    background: #1B2838;
    font-size: 1.1em;
    padding: 12px 32px;
}

.lgde-btn-pay:hover {
    background: #2a3d52;
}

/* Panier */
.lgde-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.lgde-cart-table th,
.lgde-cart-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0d5c8;
}

.lgde-cart-table th {
    background: #F5E6D3;
    color: #1B2838;
}

.lgde-cart-qty {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

.lgde-remove-item {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 1.2em;
    padding: 4px 8px;
}

.lgde-cart-summary {
    text-align: right;
    padding: 16px 0;
    font-size: 1.1em;
}

.lgde-cart-link {
    text-align: center;
    margin: 24px 0;
}

.lgde-cart-count {
    background: #E07B39;
    color: #fff;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.85em;
}

/* Checkout */
.lgde-checkout-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    color: #1B2838;
}

.lgde-checkout-form input[type="text"],
.lgde-checkout-form input[type="email"],
.lgde-checkout-form input[type="tel"],
.lgde-checkout-form textarea,
.lgde-checkout-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.lgde-checkout-summary {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.lgde-checkout-summary td {
    padding: 6px 8px;
    border-bottom: 1px solid #e0d5c8;
}

.lgde-checkout-subtotal td {
    font-weight: bold;
    border-top: 2px solid #1B2838;
}

.lgde-contact-hint {
    font-size: 0.9em;
    color: #555;
    font-style: italic;
    margin: 0 0 8px;
}

/* Messages */
.lgde-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin: 16px 0;
}

.lgde-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

/* Order form */
.lgde-order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 2rem;
}

.lgde-order-table th,
.lgde-order-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.lgde-order-table thead th {
    color: #111;
    font-weight: bold;
}

.lgde-order-table tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.lgde-cat-row td {
    background: #f0f0f0 !important;
    padding: 10px 18px;
}

.lgde-col-right {
    text-align: right;
    white-space: nowrap;
}

.lgde-col-nowrap {
    white-space: nowrap;
}

.lgde-col-center {
    text-align: center;
    width: 80px;
}

.lgde-order-qty {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

.lgde-order-options {
    max-width: 500px;
    margin: 0 auto;
}

.lgde-order-delivery {
    margin-bottom: 1.5rem;
}

.lgde-order-delivery label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #111;
}

.lgde-order-delivery select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.lgde-order-summary {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.lgde-order-summary td {
    padding: 8px 18px;
    border-bottom: 1px solid #eee;
}

.lgde-total-row td {
    border-top: 2px solid #111;
    font-size: 1.15em;
}

.lgde-order-submit {
    text-align: center;
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 600px) {
    .lgde-products {
        grid-template-columns: 1fr;
    }
    .lgde-cart-table th:nth-child(2),
    .lgde-cart-table td:nth-child(2) {
        display: none;
    }
    .lgde-order-table th:nth-child(2),
    .lgde-order-table td:nth-child(2),
    .lgde-order-table th:nth-child(5),
    .lgde-order-table td:nth-child(5) {
        display: none;
    }
    .lgde-order-table th,
    .lgde-order-table td {
        padding: 10px 8px;
        font-size: 0.92em;
    }
    .lgde-order-options {
        padding: 0 4px;
    }
}
