/* SECTION-04 only: catalog, product details and WhatsApp inquiry. */
#products.section-04 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 28px 64px;
  background: #fff;
  color: #111;
  scroll-margin-top: 72px;
}
#products .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#products .s04-shell { position: relative; z-index: 1; width: min(100%, 1390px); margin: auto; }
#products .s04-topline { position: relative; display: flex; justify-content: center; min-height: 152px; }
#products .s04-brand { display: flex; flex-direction: column; align-items: center; gap: 0; font-size: 29px; font-weight: 900; line-height: 1.15; color: #111; text-align: center; }
#products .s04-brand img { width: 90px; height: 90px; object-fit: contain; }
#products .s04-brand span b { font-weight: 900; }
#products .s04-brand span b:last-of-type { color: #d5000c; }
#products .s04-brand small { display: block; font-family: Inter, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
#products .s04-heading { text-align: center; margin: 0 auto 24px; }
#products .s04-title-line { display: flex; justify-content: center; align-items: center; gap: 26px; }
#products .s04-title-line span { width: 56px; height: 3px; background: #ed0b18; }
#products .s04-title-line h2 { margin: 0; color: #09090b; font-size: clamp(38px, 4vw, 62px); line-height: 1.25; font-weight: 900; }
#products .s04-heading p { max-width: 760px; margin: 8px auto 0; color: #454a52; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.55; }
#products .s04-search {
  box-sizing: border-box; width: min(100%, 520px); min-height: 54px; margin: 0 auto 25px;
  display: flex; align-items: center; gap: 10px; padding: 0 18px;
  border: 1px solid #e0e1e4; border-radius: 99px; background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.1); color: #5a5e65;
}
#products .s04-search:focus-within { border-color: #df1420; box-shadow: 0 0 0 3px rgba(223,20,32,.11), 0 6px 20px rgba(0,0,0,.08); }
#products .s04-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: #16181c; font: 700 17px Cairo, sans-serif; }
#products .s04-search input::placeholder { color: #74767a; }
#products .s04-search button { flex: none; border: 0; background: transparent; color: #555; font-size: 24px; cursor: pointer; }
#products .s04-search button[hidden] { display: none; }
#products .s04-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
#products .s04-card {
  min-width: 0; display: flex; flex-direction: column; padding: 9px 9px 13px;
  border: 1px solid #e9e9e9; border-radius: 22px; background: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.055); text-align: center;
}
#products .s04-card[hidden] { display: none; }
#products .s04-card-media { display: grid; place-items: center; height: 240px; overflow: hidden; border-radius: 16px; background: #fff; }
#products .s04-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
#products .s04-card[data-product-id="small-bags"] .s04-card-media img,
#products .s04-card[data-product-id="bbq-bags"] .s04-card-media img { transform: scale(1.1); }
#products .s04-card[data-product-id="grooved-charcoal"] .s04-card-media img { transform: scale(1.12); object-position: center 65%; }
#products .s04-card[data-product-id="bulk-sacks"] .s04-card-media img { transform: scale(1.1); object-position: center 70%; }
#products .s04-card h3 { min-height: 52px; margin: 6px 0 8px; display: grid; place-items: center; color: #0b0b0d; font-size: 19px; font-weight: 900; line-height: 1.26; }
#products .s04-card button {
  width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 99px; background: linear-gradient(180deg,#f3131c,#bd000a);
  color: #fff; box-shadow: 0 8px 15px rgba(193,0,7,.2); font: 900 15px Cairo, sans-serif; cursor: pointer;
}
#products .s04-card button:hover { background: linear-gradient(180deg,#ff2932,#ca000b); }
#products .s04-empty { margin: 30px auto; padding: 25px; text-align: center; color: #555; }
#products .s04-empty { max-width: 560px; font-size: 19px; font-weight: 800; line-height: 1.8; }
#products .s04-empty[hidden] { display: none; }
#products .s04-empty button { margin-inline-start: 10px; padding: 6px 16px; border: 1px solid #d30b18; border-radius: 99px; background: #fff; color: #b9000c; font: 800 14px Cairo,sans-serif; cursor: pointer; }
#products .s04-empty button[hidden] { display: none; }

.s04-detail, .s04-inquiry, .s04-zoom { box-sizing: border-box; font-family: Cairo, sans-serif; color: #111; }
.s04-detail::backdrop, .s04-inquiry::backdrop, .s04-zoom::backdrop { background: rgba(8,8,10,.64); }
.s04-detail::backdrop { background: rgba(255,255,255,.94); }
.s04-detail { position: fixed; inset: 0; margin: auto; width: min(1240px, calc(100vw - 36px)); max-width: none; max-height: calc(100dvh - 36px); padding: 0; border: 1px solid #e6e6e6; border-radius: 28px; background: #fff; box-shadow: 0 25px 60px rgba(0,0,0,.3); overflow: auto; }
.s04-dialog-close { position: absolute; z-index: 3; top: 18px; right: 18px; width: 43px; height: 43px; border: 0; border-radius: 50%; background: #f2f2f3; color: #111; font-size: 29px; cursor: pointer; }
.s04-detail-layout { display: grid; grid-template-columns: 1fr 1fr; direction: ltr; }
.s04-detail-media { min-width: 0; padding: 50px 26px 30px; direction: rtl; }
.s04-main-image { position: relative; width: 100%; height: min(55vh, 495px); display: grid; place-items: center; padding: 0; border: 0; border-radius: 20px; background: #fbfbfb; overflow: hidden; cursor: zoom-in; }
.s04-main-image img { width: 100%; height: 100%; object-fit: contain; }
.s04-main-image span { position: absolute; bottom: 9px; left: 9px; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.85); color: #555; font-size: 11px; }
.s04-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; }
.s04-thumbs button { flex: 0 0 92px; width: 92px; height: 78px; padding: 3px; border: 2px solid transparent; border-radius: 12px; background: #f6f6f6; cursor: pointer; }
.s04-thumbs button[aria-pressed="true"] { border-color: #e00011; }
.s04-thumbs img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.s04-detail-copy { min-width: 0; padding: 38px 45px 34px 24px; direction: rtl; }
.s04-detail-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 20px; font-weight: 900; line-height: 1.1; }
.s04-detail-brand img { width: 54px; height: 54px; object-fit: contain; }
.s04-detail-brand small { display: block; font-family: Inter,sans-serif; font-size: 8px; letter-spacing: .14em; }
.s04-chip { display: inline-block; padding: 3px 12px; border-radius: 99px; background: #e10916; color: #fff; font-size: 13px; font-weight: 800; }
.s04-detail-copy h2 { margin: 12px 0 8px; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.25; font-weight: 900; }
.s04-detail-copy h2::after { content: ""; display: block; width: 60px; height: 3px; margin-top: 8px; background: #e40012; }
.s04-detail-copy > p { margin: 12px 0 20px; color: #4c5058; font-size: 17px; line-height: 1.65; }
.s04-detail-features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 0 0 18px; }
.s04-detail-features .s04-detail-feature { display: flex; align-items: center; gap: 7px; padding: 10px; border-radius: 14px; background: #f8f8f8; font-size: 14px; font-weight: 800; }
.s04-detail-features svg { width: 21px; height: 21px; color: #de0010; }
.s04-detail-copy > .s04-primary { margin-top: 22px; }
.s04-primary { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 99px; background: linear-gradient(180deg,#f3131c,#bd000a); box-shadow: 0 10px 18px rgba(200,0,10,.2); color: #fff; font: 900 23px Cairo,sans-serif; text-decoration: none; cursor: pointer; }
.s04-primary:hover { background: linear-gradient(180deg,#ff2530,#c9000c); }
.s04-zoom { width: min(94vw, 1100px); max-width: none; max-height: 92dvh; padding: 48px 15px 15px; border: 0; border-radius: 18px; background: #fff; overflow: auto; }
.s04-zoom > button { position: absolute; right: 12px; top: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2f2f2; font-size: 25px; cursor: pointer; }
.s04-zoom-stage { overflow: auto; text-align: center; }
.s04-zoom-stage img { max-width: 100%; max-height: 76dvh; object-fit: contain; cursor: zoom-in; }
.s04-zoom-stage img.is-zoomed { max-width: none; max-height: none; width: 160%; cursor: zoom-out; }

.s04-inquiry { position: fixed; inset: 0; margin: auto; width: min(520px, calc(100vw - 24px)); max-width: none; max-height: min(92dvh, 850px); padding: 26px 30px 24px; border: 1px solid #e8e8e8; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.22); overflow-y: auto; }
.s04-inquiry-head { padding-inline-start: 46px; }
.s04-inquiry-head h2 { margin: 10px 0 14px; font-size: 28px; line-height: 1.3; font-weight: 900; }
.s04-inquiry-product { display: flex; align-items: center; gap: 12px; min-height: 70px; margin-bottom: 16px; padding: 6px 10px; border: 1px solid #ededed; border-radius: 15px; background: #fafafa; font-size: 17px; }
.s04-inquiry-product img { width: 68px; height: 68px; flex: none; border-radius: 10px; object-fit: cover; }
.s04-inquiry-product img[hidden] { display: none; }
#s04InquiryForm label { display: block; margin: 11px 0 5px; font-size: 14px; font-weight: 800; }
#s04InquiryForm label span, .s04-location-head span span { color: #d0000b; }
#s04InquiryForm input, #s04InquiryForm select { box-sizing: border-box; display: block; width: 100%; min-height: 45px; padding: 7px 12px; border: 1px solid #dedede; border-radius: 11px; background: #fff; color: #111; font: 700 14px Cairo, sans-serif; }
#s04InquiryForm input:focus, #s04InquiryForm select:focus { outline: 2px solid rgba(210,0,18,.4); border-color: #d0000b; }
#s04InquiryForm [aria-invalid="true"] { border-color: #d0000b; }
.s04-field-error { display: block; min-height: 0; color: #bd0010; font-size: 12px; }
.s04-location-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; font-size: 14px; font-weight: 800; }
.s04-location-head button { min-height: 40px; padding: 5px 15px; border: 1px solid #cd0011; border-radius: 99px; background: #fff; color: #bd0010; font: 800 13px Cairo, sans-serif; cursor: pointer; }
.s04-location-head button:disabled { opacity: .55; cursor: wait; }
.s04-location-note, .s04-inquiry-note, .s04-osm-credit { margin: 7px 0; color: #626873; font-size: 12px; line-height: 1.5; }
.s04-location-status { min-height: 18px; margin: 6px 0 3px; font-size: 12px; line-height: 1.5; color: #515761; }
.s04-location-status[data-state="warning"] { color: #a41b21; }
.s04-location-status[data-state="success"] { color: #28714a; }
.s04-inquiry-submit { min-height: 52px; margin-top: 18px; font-size: 18px; }
.s04-inquiry-fallback { display: block; margin-top: 10px; color: #b5000e; text-align: center; font-size: 13px; font-weight: 800; }
.s04-inquiry-fallback[hidden] { display: none; }
.s04-inquiry-note, .s04-osm-credit { text-align: center; }
.s04-osm-credit a { color: inherit; text-decoration: underline; }
#products button:focus-visible, .s04-detail button:focus-visible, .s04-inquiry button:focus-visible, .s04-inquiry a:focus-visible, .s04-zoom button:focus-visible { outline: 3px solid #e00013; outline-offset: 2px; }

@media (max-width: 1439px) { #products .s04-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; } }
@media (max-width: 767px) {
  #products.section-04 { padding: 22px 14px 50px; }
  #products .s04-brand { font-size: 23px; }
  #products .s04-brand img { width: 76px; height: 76px; }
  #products .s04-topline { min-height: 120px; }
  #products .s04-title-line h2 { font-size: 38px; }
  #products .s04-heading p { max-width: 550px; font-size: 16px; }
  #products .s04-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  #products .s04-card:nth-child(1) { order: 5; }
  #products .s04-card:nth-child(2) { order: 6; }
  #products .s04-card:nth-child(3) { order: 3; }
  #products .s04-card:nth-child(4) { order: 4; }
  #products .s04-card:nth-child(5) { order: 1; }
  #products .s04-card:nth-child(6) { order: 2; }
  #products .s04-card-media { height: 225px; }
  .s04-detail { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .s04-detail-layout { display: block; }
  .s04-detail-media { padding: 56px 18px 12px; }
  .s04-main-image { height: min(46vh, 350px); }
  .s04-detail-copy { padding: 10px 20px 30px; }
  .s04-detail-brand { display: none; }
  .s04-detail-copy h2 { font-size: 34px; }
  .s04-detail-copy > p { font-size: 16px; }
}
@media (max-width: 480px) {
  #products.section-04 { padding-inline: 10px; }
  #products .s04-brand { font-size: 20px; gap: 0; }
  #products .s04-brand img { width: 70px; height: 70px; }
  #products .s04-brand small { font-size: 8px; }
  #products .s04-title-line { gap: 14px; }
  #products .s04-title-line span { width: 30px; }
  #products .s04-title-line h2 { font-size: 33px; }
  #products .s04-heading { margin-bottom: 14px; }
  #products .s04-heading p { font-size: 13px; }
  #products .s04-search { min-height: 45px; margin-bottom: 15px; }
  #products .s04-search input { font-size: 14px; }
  #products .s04-grid { gap: 7px; }
  #products .s04-card { padding: 6px 6px 9px; border-radius: 17px; }
  #products .s04-card-media { height: 190px; border-radius: 11px; }
  #products .s04-card h3 { min-height: 45px; margin: 6px 0 8px; font-size: 15px; }
  #products .s04-card button { min-height: 44px; font-size: 12px; }
  .s04-detail-media { padding: 50px 14px 8px; }
  .s04-main-image { height: min(42vh, 300px); }
  .s04-thumbs button { flex-basis: 68px; width: 68px; height: 58px; }
  .s04-detail-copy { padding: 10px 15px 25px; }
  .s04-detail-copy h2 { font-size: 29px; }
  .s04-detail-copy > p { font-size: 14px; }
  .s04-detail-features .s04-detail-feature { font-size: 11px; padding: 7px; }
  .s04-primary { min-height: 50px; font-size: 18px; }
  .s04-inquiry { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); padding: 20px 18px 18px; border-radius: 18px; }
  .s04-inquiry-head h2 { font-size: 24px; }
  .s04-inquiry-submit { font-size: 17px; }
}

/* SECTION-04 desktop spacing. */
@media (min-width: 1440px) {
  #products.section-04 { padding-inline: 10px; }
  #products .s04-shell { width: min(100%, 1440px); }
  #products .s04-grid { gap: 13px; }
  #products .s04-card { padding-inline: 7px; }
}
