#general
{
    padding: 34px 34px 0;
}

.shop-hero
{
    align-items: flex-end;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-bottom: 26px;
    padding: 42px;
}

#titre-comp
{
    max-width: 560px;
}

#error-message
{
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-muted);
    font-size: 0.98em;
    line-height: 1.45;
    margin: 0;
    max-width: 270px;
    padding: 14px 16px;
}

#error-message.error-color
{
    border-color: #cc3639;
    color: #cc3639;
}

.shop-layout
{
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 295px;
}

.shop-products,
.shop-summary,
.shop-address,
.shop-submit
{
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.shop-products
{
    overflow: hidden;
}

.shop-filters
{
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
}

.shop-filter
{
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    cursor: pointer;
    font-weight: 700;
    min-height: 36px;
    padding: 0 14px;
}

.shop-filter:hover,
.shop-filter.active
{
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.shop-summary
{
    position: sticky;
    top: 18px;
}

#shop-table,
#total-table,
#port-table
{
    border-collapse: collapse;
    width: 100%;
}

#shop-table
{
    font-size: 0.98em;
}

#shop-table thead td
{
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 700;
    padding: 16px 18px;
}

#shop-table tbody td
{
    border-bottom: 1px solid rgba(223, 206, 194, 0.68);
    padding: 13px 18px;
    vertical-align: middle;
}

#shop-table tbody tr:last-child td
{
    border-bottom: 0;
}

tr.category-row .category-name
{
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding-bottom: 11px;
    padding-top: 20px;
    text-transform: uppercase;
}

tr.category-row td:not(.category-name)
{
    background: var(--color-accent-soft);
}

tr.wine-row
{
    color: var(--color-muted);
}

tr.wine-row:hover
{
    background: #fffaf8;
}

tr.wine-row.is-linked
{
    background: #fff7f5;
    box-shadow: inset 4px 0 0 var(--color-accent);
}

tr.wine-row.is-selected
{
    background: #f8f2ee;
    box-shadow: inset 4px 0 0 #8f171d;
}

tr.wine-row.is-linked.is-selected
{
    background: #fff0ec;
}

td.product-name
{
    color: var(--color-text);
    font-weight: 700;
    min-width: 250px;
    position: relative;
}

.wine-name,
.wine-meta
{
    display: block;
}

.wine-meta
{
    color: var(--color-muted);
    font-size: 0.86em;
    font-weight: 400;
    line-height: 1.35;
    margin-top: 4px;
}

td.product-price,
td.product-total,
td.total-sans-port,
td.port-total,
td.total-total
{
    text-align: right;
    white-space: nowrap;
}

td.product-price,
td.product-total
{
    color: var(--color-muted);
}

td.product-quantity
{
    width: 112px;
}

.bouteille
{
    filter: drop-shadow(0 8px 12px rgba(47, 40, 37, 0.18));
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) scale(0.82);
    transition: opacity 0.18s ease-in-out, transform 0.18s ease-in-out;
    width: 0;
    z-index: 2;
}

.quantity-control
{
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: center;
    min-width: 112px;
}

.minus,
.plus
{
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    cursor: pointer;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.minus:hover,
.plus:hover
{
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.input-quantity
{
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    height: 32px;
    text-align: center;
    width: 38px;
}

.pruduct-rupture
{
    color: #cc3639;
    font-weight: 700;
}

#total-table
{
    font-size: 1em;
    table-layout: fixed;
}

#total-table td
{
    padding: 12px 16px;
}

#total-table td:empty
{
    display: none;
}

#total-table tr:not(:last-child) td
{
    border-bottom: 1px solid rgba(223, 206, 194, 0.68);
}

td.total-name,
td.port-name
{
    color: var(--color-muted);
    font-weight: 700;
    text-align: left;
    width: 58%;
}

#total-table tr.total td
{
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.18em;
    font-weight: 700;
}

#port-table
{
    border-top: 1px solid var(--color-border);
    font-size: 0.88em;
}

#port-table td
{
    padding: 9px 16px;
}

td.port-titre
{
    color: var(--color-accent);
    font-weight: 700;
    padding-top: 16px;
}

tr.port-row
{
    color: var(--color-muted);
}

tr.port-row td
{
    border-top: 1px solid rgba(223, 206, 194, 0.62);
}

tr.port-row td p
{
    margin: 0;
}

.port-price
{
    text-align: right;
    white-space: nowrap;
}

.port-note td
{
    border-top: 1px solid rgba(223, 206, 194, 0.62);
    color: var(--color-muted);
    font-size: 0.92em;
    line-height: 1.35;
}

.shop-address
{
    margin-top: 26px;
    padding: 28px;
}

#check-adress
{
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 24px;
}

#label-check-adress
{
    color: var(--color-muted);
    font-weight: 700;
}

#adresse-differente
{
    accent-color: var(--color-accent);
    cursor: pointer;
    height: 18px;
    width: 18px;
}

#adresse-info
{
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#adresse-facturation,
#adresse-livraison
{
    display: flex;
    flex-direction: column;
}

#adresse-livraison.hide
{
    display: none;
}

#adresse-facturation h2,
#adresse-livraison h2
{
    color: var(--color-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8em;
    font-weight: 400;
    line-height: 1.05;
    margin: 0 0 22px;
}

#adresse-livraison label:after,
#adresse-facturation label:after
{
    color: #cc3639;
    content: " *";
}

#adresse-livraison label,
#adresse-facturation label
{
    color: var(--color-muted);
    font-size: 0.9em;
    font-weight: 700;
    margin-bottom: 6px;
}

.livraison-adress,
.facturation-adress
{
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--color-text);
    height: 42px;
    margin: 0 0 16px;
    padding: 0 12px;
    width: 100%;
}

.livraison-adress:focus,
.facturation-adress:focus,
.input-quantity:focus
{
    border-color: var(--color-accent);
    outline: none;
}

.facturation-adress.empty-error,
.livraison-adress.empty-error
{
    background: #fff2f2;
    border-color: #cc3639;
}

.nom-prenom
{
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
}

.nom-prenom div
{
    display: flex;
    flex-direction: column;
}

.shop-submit
{
    align-items: center;
    background: var(--color-accent-soft);
    display: flex;
    flex-direction: column;
    margin-top: 26px;
    padding: 28px;
    text-align: center;
}

#message-reponse
{
    color: var(--color-muted);
    font-size: 1.04em;
    line-height: 1.5;
    margin: 0;
}

#submit
{
    display: inline-block;
    margin: 22px 0 0;
    position: relative;
}

#submit button
{
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    min-height: 46px;
    padding: 0 22px;
}

#submit button:hover:not(:disabled)
{
    background: #741015;
}

#submit button:disabled
{
    cursor: not-allowed;
    opacity: 0.55;
}

#submit-tooltip
{
    background: var(--color-text);
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    left: 0;
    opacity: 0;
    padding: 6px 10px;
    pointer-events: none;
    position: fixed;
    top: 0;
    transform: translate(-9999px, -9999px);
    transition: opacity 0.1s ease-in-out;
    white-space: nowrap;
    z-index: 999;
}

#submit-tooltip.visible
{
    opacity: 1;
}

#order-status
{
    color: var(--color-muted);
    margin: 12px 0 0;
}

@media screen and (max-width: 900px) {
    .shop-hero
    {
        align-items: flex-start;
        flex-direction: column;
    }

    #error-message
    {
        max-width: none;
    }

    .shop-layout,
    #adresse-info
    {
        grid-template-columns: 1fr;
    }

    .shop-summary
    {
        position: static;
    }
}

@media screen and (max-width: 600px), screen and (max-device-width: 700px) {
    #general
    {
        padding: 18px 14px 0;
    }

    .shop-hero,
    .shop-address,
    .shop-submit
    {
        padding: 24px 18px;
    }

    #shop-table
    {
        font-size: 0.9em;
    }

    #shop-table thead td,
    #shop-table tbody td
    {
        padding-left: 10px;
        padding-right: 10px;
    }

    td.product-name
    {
        min-width: 190px;
    }

    .nom-prenom
    {
        grid-template-columns: 1fr;
    }
}
