/* Grille des coffrets */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(32px,4vw,48px) clamp(16px,3vw,34px);margin:0;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product{margin:0;padding:0;width:auto;float:none;text-align:center}
.woocommerce ul.products li.product a.woocommerce-loop-product__link{display:block}
.woocommerce ul.products li.product a img{width:min(100%,250px);aspect-ratio:1;object-fit:cover;border-radius:50%;margin:0 auto 20px;transition:transform .6s var(--ease)}
.woocommerce ul.products li.product h2{font-size:20px;line-height:1.3;margin-bottom:6px}
.woocommerce ul.products li.product .price{display:block;font-size:14px;font-weight:300;color:var(--ink-soft);margin-bottom:14px}
.woocommerce ul.products li.product .button{display:none}
@media(max-width:640px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 16px}}
.bs-coffrets{padding-top:clamp(24px,3vw,40px);padding-bottom:clamp(40px,6vw,72px)}
.bs-coffrets h2{font-size:clamp(26px,3.6vw,36px);margin-bottom:40px}

/* Fiche d'un coffret */
.bs-shop h1.product_title,.woocommerce ul.products li.product h2{font-family:var(--serif);font-weight:300}
.bs-shop div.product{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,5.4vw,64px);align-items:start;padding-top:clamp(28px,4vw,56px);padding-bottom:clamp(56px,7vw,90px)}
.bs-shop .woocommerce-product-gallery{width:100%!important;opacity:1!important;max-width:460px;justify-self:center}
.bs-shop .woocommerce-product-gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:50%}
.bs-shop .woocommerce-product-gallery__trigger{display:none}
.bs-shop h1.product_title{font-size:clamp(30px,4.4vw,46px);margin-bottom:14px}
.bs-shop .summary>.price{font-size:18px;font-weight:300;color:var(--ink-soft);margin-bottom:24px}
.bs-product-text{color:var(--ink-soft);margin-bottom:30px}
.bs-product-text p+p{margin-top:14px}
.bs-product-text a{color:inherit}
.bs-shop table.variations{border-collapse:collapse;width:100%;margin-bottom:14px}
.bs-shop table.variations th,.bs-shop table.variations td{display:block;text-align:left;padding:0}
.bs-shop table.variations label{display:block;font-size:14px;font-weight:400;margin-bottom:6px}
.bs-shop table.variations td{margin-bottom:16px}
.bs-shop select,.bs-shop input.qty,.bs-shop .input-text,.bs-shop .select2-selection{width:100%;max-width:100%;height:auto;padding:14px 16px;font:inherit;font-size:16px;color:var(--ink);background-color:var(--field);border:1px solid var(--line);border-radius:0}
.bs-shop .reset_variations{display:inline-block;font-size:13px;color:var(--ink-soft);margin-top:8px}
.bs-shop .woocommerce-variation-price{font-size:26px;font-weight:300;margin-bottom:18px}
.bs-shop .quantity{display:inline-block;width:92px;margin:0 12px 12px 0;vertical-align:top}
.bs-shop .quantity input.qty{padding:16px 10px;text-align:center}
.bs-shop .single_add_to_cart_button.disabled{opacity:.45;cursor:not-allowed}
.bs-shop .stock{display:none}
@media(max-width:699px){.bs-shop div.product{grid-template-columns:minmax(0,1fr);gap:26px;padding-top:28px;padding-bottom:56px}.bs-shop .woocommerce-product-gallery{max-width:min(280px,72vw)}}

/* Messages */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-error,.woocommerce-info{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;list-style:none;margin:24px auto;padding:16px 20px;background:var(--field);border:1px solid var(--line);font-size:15px}
.woocommerce-error{border-color:#c0634a}
.woocommerce-message .button,.woocommerce-info .button{padding:12px 22px;font-size:11px;letter-spacing:.16em}

/* Panier, commande et compte */
.entry-content>.woocommerce{padding-top:24px;padding-bottom:clamp(56px,7vw,90px)}
.woocommerce table.shop_table{width:100%;border-collapse:collapse;font-size:15px}
.woocommerce table.shop_table th{font-weight:400;font-size:14px;text-align:left;padding:12px 10px;border-bottom:1px solid var(--ink)}
.woocommerce table.shop_table td{padding:16px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
.woocommerce table.shop_table img{width:64px;height:64px;object-fit:cover;border-radius:50%}
.woocommerce a.remove{font-size:20px;color:var(--ink-soft)}
.woocommerce .cart_totals{max-width:420px;margin:40px 0 0 auto}
.woocommerce .cart_totals h2,.woocommerce-checkout h3,.woocommerce-order-details h2{font-size:24px;margin-bottom:18px}
.woocommerce .actions{padding-top:18px}
.woocommerce .actions button[name=update_cart]{color:var(--ink-soft);border-color:var(--line);padding:14px 22px;font-size:12px;letter-spacing:.14em}
.woocommerce .actions button[name=update_cart]:disabled{opacity:.5;cursor:default}
.woocommerce .wc-proceed-to-checkout{margin-top:20px}
.woocommerce .wc-proceed-to-checkout .button,.woocommerce #place_order{display:flex;align-items:center;justify-content:center;width:100%;font-family:inherit;font-size:12px;letter-spacing:.22em;text-transform:uppercase;background:var(--ink);color:var(--paper);padding:18px 24px;border:1px solid var(--ink);border-radius:0;cursor:pointer;transition:background .45s var(--ease),color .45s var(--ease)}
.woocommerce form .form-row{margin:0 0 16px;padding:0}
.woocommerce form .form-row label{display:block;font-size:14px;font-weight:400;margin-bottom:6px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.woocommerce .select2-container .select2-selection{width:100%;padding:14px 16px;font:inherit;font-size:16px;color:var(--ink);background:var(--field);border:1px solid var(--line);border-radius:0;height:auto}
.woocommerce-checkout .col2-set{display:block}
@media(min-width:1000px){
  form.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:clamp(40px,5vw,72px);align-items:start}
  form.woocommerce-checkout #customer_details{grid-column:1;grid-row:1/3}
  form.woocommerce-checkout #order_review_heading{grid-column:2;margin-top:0}
  form.woocommerce-checkout #order_review{grid-column:2}
  form.woocommerce-checkout .woocommerce-NoticeGroup{grid-column:1/-1}
}
@media(max-width:999px){.woocommerce-checkout #order_review_heading{margin-top:36px}}
.woocommerce ul.wc_payment_methods{margin:24px 0;padding:0;list-style:none}
.woocommerce ul.wc_payment_methods .payment_box{font-size:14px;color:var(--ink-soft);padding:8px 0}
.woocommerce-account .woocommerce{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px}
.woocommerce-account .woocommerce-notices-wrapper{grid-column:1/-1}
.woocommerce-account .woocommerce-MyAccount-navigation li{margin-bottom:8px}
.woocommerce-account .u-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;grid-column:1/-1}
.woocommerce-account h2{font-size:24px;margin-bottom:18px}
.woocommerce .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:760px){.woocommerce-account .woocommerce,.woocommerce-account .u-columns{grid-template-columns:minmax(0,1fr)}.woocommerce .cart_totals{margin-left:0;max-width:none}}

/* Survol, seulement avec une souris */
@media(hover:hover){
  .woocommerce ul.products li.product:hover a img{transform:scale(1.03)}
}

/* Listes déroulantes identiques partout, iOS compris */
.bs-shop select,.woocommerce form .form-row select{-webkit-appearance:none;appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af6e' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}

/* Champs de commande : deux par ligne quand il y a la place */
.woocommerce form .form-row-first,.woocommerce form .form-row-last{width:calc(50% - 8px);float:left}
.woocommerce form .form-row-last{margin-left:16px}
.woocommerce form .form-row-wide,.woocommerce form .form-row{clear:none}
.woocommerce form .form-row-wide{clear:both}
.woocommerce-billing-fields__field-wrapper::after,.woocommerce-shipping-fields__field-wrapper::after{content:"";display:block;clear:both}
.woocommerce form .form-row .required{color:var(--gold-text);text-decoration:none}
.woocommerce form .form-row input[type=checkbox]{width:20px;height:20px;margin:0 10px 0 0;vertical-align:-4px}
.woocommerce ul.wc_payment_methods li{padding:12px 0;border-bottom:1px solid var(--line)}
.woocommerce ul.wc_payment_methods label{display:inline-flex;align-items:center;min-height:44px}
.woocommerce ul.shipping_methods{list-style:none;margin:0;padding:0}
.woocommerce .show-password-input,.woocommerce-store-notice{display:none}
.woocommerce .password-input{display:block}
.woocommerce a.remove{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;font-size:22px}
.woocommerce .quantity input.qty{width:76px;padding:12px 8px;font:inherit;font-size:16px;text-align:center;border:1px solid var(--line);border-radius:0;background:var(--field)}
.bs-shop .reset_variations{display:inline-flex;align-items:center;min-height:44px;margin-top:0}
.woocommerce-order-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;list-style:none;margin:24px 0;padding:0;font-size:15px}
.woocommerce-order-overview strong{display:block;font-weight:400}
.woocommerce-order-details,.woocommerce-customer-details{margin-top:36px}
.woocommerce-customer-details address{font-style:normal;color:var(--ink-soft)}

@media(pointer:coarse),(max-width:1024px){.woocommerce td.product-name a{display:inline-flex;align-items:center;min-height:44px}}

/* Téléphone : le tableau du panier devient une liste */
@media(max-width:760px){
  .woocommerce table.shop_table_responsive thead{display:none}
  .woocommerce table.shop_table_responsive,.woocommerce table.shop_table_responsive tbody{display:block;width:100%}
  .woocommerce-cart-form tr.cart_item{display:grid;grid-template-columns:64px minmax(0,1fr) 44px;column-gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
  .woocommerce-cart-form tr.cart_item td{display:block;padding:0;border:0}
  .woocommerce-cart-form td.product-thumbnail{grid-column:1;grid-row:1/5}
  .woocommerce-cart-form td.product-name{grid-column:2;grid-row:1;font-weight:400}
  .woocommerce-cart-form td.product-remove{grid-column:3;grid-row:1}
  .woocommerce-cart-form td.product-price{display:none!important}
  .woocommerce-cart-form td.product-quantity{grid-column:2/4;grid-row:2;margin-top:10px}
  .woocommerce-cart-form td.product-subtotal{grid-column:2/4;grid-row:3;margin-top:10px;font-size:18px}
  .woocommerce-cart-form tr:not(.cart_item),.woocommerce-cart-form tr:not(.cart_item) td{display:block;border:0;padding-left:0;padding-right:0}
  .woocommerce-cart-form .actions button[name=update_cart]{width:100%}
  .cart_totals table.shop_table_responsive tr{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
  .cart_totals table.shop_table_responsive th,.cart_totals table.shop_table_responsive td{display:block;padding:0;border:0}
  .cart_totals table.shop_table_responsive td{text-align:right}
  .bs-shop .single_add_to_cart_button{width:100%}
  .bs-shop .quantity{display:block;margin-right:0}
}
@media(max-width:480px){
  .woocommerce form .form-row-first,.woocommerce form .form-row-last{width:100%;float:none;margin-left:0}
  .woocommerce-message,.woocommerce-error,.woocommerce-info{flex-direction:column;align-items:flex-start}
}

/* Totaux : un seul style de filet, libellés sur une ligne */
.woocommerce table.shop_table tfoot th,.woocommerce table.shop_table tbody th,.cart_totals table.shop_table th{font-size:15px;padding:14px 10px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:top}
.woocommerce table.shop_table tfoot td,.cart_totals table.shop_table td{vertical-align:top}
.woocommerce table.shop_table .order-total th,.woocommerce table.shop_table .order-total td{font-weight:400;font-size:17px}
.woocommerce-shipping-destination,.woocommerce-shipping-calculator{font-size:14px;color:var(--ink-soft)}
.woocommerce-shipping-destination{margin:4px 0 0}

/* Options d'un coffret dans le panier et la commande */
.woocommerce dl.variation{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 8px;margin:6px 0 0;font-size:14px;font-weight:300;color:var(--ink-soft)}
.woocommerce td.product-name{min-width:0;overflow-wrap:anywhere}
@media(max-width:400px){.woocommerce dl.variation{grid-template-columns:minmax(0,1fr)}}
.woocommerce dl.variation dt{font-weight:300}
.woocommerce dl.variation dd{margin:0}
.woocommerce dl.variation p{margin:0}

/* Commande */
#ship-to-different-address{font-size:16px;font-weight:400;line-height:1.5;margin:0 0 16px}
#ship-to-different-address label{display:inline-flex;align-items:center;min-height:44px}
.woocommerce form .form-row textarea{min-height:120px}
.woocommerce-terms-and-conditions-wrapper{margin:16px 0}
.woocommerce-terms-and-conditions-wrapper label{display:flex;align-items:center;min-height:44px;font-size:15px;font-weight:300}
.bs-shop .reset_variations{display:none!important}
#ship-to-different-address input[type=checkbox]{width:20px;height:20px;margin:0 10px 0 0;flex:none}
@media(max-width:760px){
  .woocommerce .cart_totals table.shop_table_responsive th,.woocommerce .cart_totals table.shop_table_responsive td{padding:0;border:0;vertical-align:baseline}
  .woocommerce .cart_totals table.shop_table_responsive tr{align-items:baseline}
}
