#deals-section > h2 { margin:0; }
#deals-section > p { margin:6px 0 0; }
#deals-grid {
  --deal-columns: 2;
  --deal-gap: clamp(10px, 1vw, 16px);
  --deal-card-width: calc((100% - (var(--deal-columns) - 1) * var(--deal-gap)) / var(--deal-columns));
  grid-template-columns: repeat(var(--deal-columns), minmax(0, 1fr));
  gap: var(--deal-gap);
  margin-block: 12px 20px;
}
#deals-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, var(--deal-card-width)));
  justify-content: start;
}
#deals-grid:has(> :nth-child(2):last-child) .picture img {
  max-height:130px;
  padding:8px;
}
.store-order-short { display:none; }
@media (min-width: 540px) {
  #deals-grid:has(> :nth-child(2):last-child) .store-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #deals-grid:has(> :nth-child(2):last-child) .store-order-action { padding-inline:4px; }
  #deals-grid:has(> :nth-child(2):last-child) .store-order-action svg { width:14px; height:14px; }
  #deals-grid:has(> :nth-child(2):last-child) .store-order-full { display:none; }
  #deals-grid:has(> :nth-child(2):last-child) .store-order-short { display:inline; }
}
@media (min-width: 1000px) {
  #deals-grid { --deal-columns: 4; }
}
@media (min-width: 1350px) {
  #deals-grid { --deal-columns: 5; }
}

.card.store-product-card { border:1px solid #e5d8c5; border-radius:17px; overflow:hidden; background:#fff; }
.store-product-card .picture { background:#f2ebdf; }
.store-product-card .picture img { display:block; width:100%; height:auto; aspect-ratio:4 / 3; max-height:175px; padding:clamp(8px, 1vw, 14px); object-fit:contain; }
.store-product-card .card-content { gap:4px; padding:10px 11px 11px; }
.store-product-card .title { color:#27231f; text-align:left; font-size:15px; line-height:1.3; height:2.6em; min-height:0; margin:0; overflow-wrap:anywhere; }
.store-product-card .stock { min-height:0; margin:0; }
.store-product-card .stock[data-deal-end] { font-variant-numeric:tabular-nums; }
.store-product-card .store-card-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; }
.store-product-card .store-card-details { align-self:flex-start; padding:2px 0; background:none; color:#60442e; font-size:13px; }
.store-product-card .store-card-details:hover { text-decoration:underline; }
.store-card-actions { display:grid; gap:5px; margin-top:auto; padding-top:4px; }
.store-order-action { display:flex; align-items:center; justify-content:center; gap:6px; min-height:42px; box-sizing:border-box; width:100%; border:1px solid transparent; border-radius:999px; padding:7px 10px; color:#fff; text-align:center; text-decoration:none; font-size:13px; font-weight:650; line-height:1.2; }
.store-order-action svg { width:17px; height:17px; flex:none; }
.store-order-action.store-order-whatsapp { background:#08783f; color:#fff; }
.store-order-action.store-order-whatsapp:hover { background:#075f33; }
.store-order-action.store-order-website { background:#29251f; color:#fff; }
.store-order-action.store-order-website:hover { background:#46382b; }
.store-order-action.store-order-enquiry { background:#fff; border-color:#dfcfb8; color:#29251f; }
.store-order-action.store-order-enquiry:hover { background:#f8f2e9; }
.store-order-action:focus-visible,.store-card-details:focus-visible { outline:2px solid #89663d; outline-offset:2px; }
.product-order-actions :is(.store-order-whatsapp,.store-order-enquiry) {
  width:auto;
  padding-inline:12px;
}
.product-order-actions button[data-add] {
  min-height:42px;
  padding:7px 12px;
  border:1px solid #dfcfb8;
  border-radius:999px;
  background:#fff;
  color:#29251f;
  font-size:13px;
}
.product-order-actions button[data-add]:hover { background:#f8f2e9; }
.product-order-actions button[data-add]:focus-visible { outline:2px solid #89663d; outline-offset:2px; }
@media(max-width:480px) {
  .store-product-card .card-content { padding:10px; }
  .store-product-card .title { font-size:14px; }
  .store-order-action { padding-inline:5px; font-size:12px; }
  .store-order-action svg { width:14px; height:14px; }
}

body.store-direct-order > :not(#modal,header,.preview,script) { display:none !important; }
body.store-direct-order > header input, body.store-direct-order > header button { display:none; }
body.store-direct-order #modal:not([hidden]) { display:block; position:static; transform:none; width:min(calc(100% - 24px),820px); max-width:none; max-height:none; height:auto; margin:20px auto; overflow:visible; border-radius:16px; background:#fff; }
body.store-direct-order #modal-body { max-height:none; overflow:visible; }
body.store-direct-order .modal-head { position:static; }

#checkout-form { display:grid; gap:14px; color:#142e3e; }
#checkout-form .checkout-intro p { margin:0 0 4px; }
#checkout-form .checkout-intro > p:last-child,#checkout-form small,#checkout-form .checkout-payment-note { color:#4a5c67; font-size:13px; line-height:1.45; }
#checkout-form .checkout-panel { min-width:0; margin:0; padding:16px; border:1px solid #e6dac8; border-radius:14px; background:#fff; }
#checkout-form .checkout-products { background:#faf6ee; }
#checkout-form .checkout-panel h3 { margin:0 0 10px; font-size:17px; }
#checkout-form .checkout-panel h4 { margin:12px 0 5px; font-size:14px; }
#checkout-form .checkout-panel label { display:grid; gap:5px; font-weight:600; }
#checkout-form .checkout-panel label[hidden] { display:none; }
#checkout-form .checkout-panel .payment label { display:flex; align-items:center; font-weight:400; }
#checkout-form .checkout-panel :is(input,select,textarea):not([type=radio],[type=hidden]) { width:100%; min-height:42px; box-sizing:border-box; border-color:#cbd2d6; border-radius:9px; margin:0; }
#checkout-form .checkout-products [data-checkout-line] { margin:0 0 8px; font-weight:650; overflow-wrap:anywhere; }
#checkout-form .checkout-whatsapp { display:grid; gap:4px; text-align:center; }
#checkout-form .checkout-whatsapp a { min-height:46px; }
#checkout-form .checkout-totals button[type=submit] { width:100%; min-height:46px; border-radius:999px; }
#checkout-form #order-error:empty,#checkout-form #delivery-estimate:empty { display:none; }
@media(max-width:600px) { #checkout-form .form-grid { grid-template-columns:minmax(0,1fr); } #checkout-form .checkout-panel { padding:12px; } }
