/* Golden Aroy Catering Manager v1.0.1 — full-bleed storefront and transparent header integration.
   This file only changes the storefront layout. Original calculations, checkout, and
   WordPress theme/header templates remain untouched.
*/
/* The shortcode can live inside an Elementor/Astra constrained column.
   Centre the actual storefront against the viewport, not the theme content column.
   JS supplies documentElement.clientWidth so desktop scrollbars do not create x-overflow. */
.ga-store {
  --ga-page-width: 100vw;
  width: var(--ga-page-width);
  max-width: none;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
  isolation: auto;
}
.ga-store .ga-store-head,
.ga-store .ga-mode-wrap,
.ga-store .ga-progress { width: 100%; max-width: none; }
/* Keep the background full width but protect readability of controls and inputs. */
.ga-store .ga-mode-wrap { padding-inline: clamp(18px, 3vw, 46px); }
.ga-store .ga-mode-intro,
.ga-store .ga-mode-tabs { width: 100%; max-width: 1360px; margin-inline: auto; }
.ga-store .ga-workspace { width: 100%; max-width: 1440px; margin-inline: auto; padding: clamp(24px, 3.4vw, 47px) clamp(18px, 3vw, 48px); }
.ga-store .ga-progress { padding: 0 clamp(18px, 3vw, 46px); }
.ga-store .ga-progress-inner { width: 100%; max-width: 1360px; margin: 0 auto; padding: 18px 0; display: flex; align-items: center; gap: 14px; min-width: 0; }
.ga-store .ga-alert-preview { width: calc(100% - 36px); max-width: 1324px; margin: 13px auto 0; }
/* Hero: full-bleed plum, editorial title remains aligned to site content grid. */
.ga-store .ga-store-head { min-height: 330px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.ga-store .ga-hero-content {
  padding-top: 52px;
  padding-bottom: 48px;
  padding-left: max(30px, calc((var(--ga-page-width) - 1360px) / 2 + 34px));
  padding-right: clamp(22px, 3vw, 55px);
}
.ga-store .ga-store-head h2 { font-size: clamp(30px, 3.35vw, 50px); }
.ga-store .ga-hero-photo { min-height: 330px; }
/* Only when the real site's transparent/sticky header overlays our banner.
   Calculated from the actual header rectangle, not a hard-coded header height.
   Never reserve this space for ordinary non-overlapping headers. */
.ga-store.ga-overlay-header .ga-hero-content {
  padding-top: max(52px, var(--ga-hero-header-clearance, 52px));
}
/* Wide desktop: keep mode cards in one readable row and avoid edge-to-edge forms. */
@media (min-width: 1450px) {
  .ga-store .ga-store-head { min-height: 385px; }
  .ga-store .ga-hero-content { padding-bottom: 59px; }
}
@media (max-width: 970px) {
  .ga-store .ga-store-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .ga-store .ga-hero-content { padding-left: clamp(22px, 4.5vw, 42px); padding-right: 25px; }
  .ga-store .ga-workspace { padding: 31px clamp(16px, 3.3vw, 32px); }
}
@media (max-width: 660px) {
  .ga-store { margin: 0; border-radius: 0; }
  .ga-store .ga-store-head { grid-template-columns: 1fr; min-height: 0; }
  .ga-store .ga-hero-content { padding: 29px 21px 28px; }
  .ga-store.ga-overlay-header .ga-hero-content { padding-top: max(29px, var(--ga-hero-header-clearance, 29px)); }
  .ga-store .ga-hero-photo { display: none; }
  .ga-store .ga-mode-wrap { padding: 19px 16px 15px; }
  .ga-store .ga-progress { padding: 0 13px; }
  .ga-store .ga-progress-inner { padding: 14px 0; gap: 6px; justify-content: space-between; }
  .ga-store .ga-workspace { padding: 23px 16px 32px; }
  .ga-store .ga-alert-preview { width: calc(100% - 32px); }
}
/* Old themes may globally style header/section; limit all changes to .ga-store. */

/* v1.0.7: display-only for included set items and single-spec dishes.
   Only real choices show a native <select>; static values have no select arrow. */
.ga-store .ga-line .ga-static-value {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 8px 0;
  color: #584350;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}
.ga-store .ga-line .ga-line-title { min-width: 0; overflow-wrap: anywhere; }
.ga-store .ga-line .ga-choice-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 7px;
  padding: 2px 8px;
  background: #f9e9ef;
  border: 1px solid #ead1dc;
  border-radius: 5px;
  color: #822b5c;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.ga-store .ga-food-body .ga-static-food-option {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  color: #6f5767;
  font-size: 13px;
  line-height: 1.5;
  padding: 7px 0;
}
.ga-store .ga-food-body .ga-static-food-option b {
  color: #76234f;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 660px) {
  .ga-store .ga-line .ga-static-value { padding: 3px 0; }
  .ga-store .ga-food-body .ga-static-food-option { font-size: 12px; }
}


/* v1.1.6: two readable A La Carte cards even on narrow portrait phones.
   No forced change to Set Menu or Smart Quotation card layouts. */
@media (max-width: 660px) {
  .ga-store [data-panel="alacarte"] .ga-food-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .ga-store [data-panel="alacarte"] .ga-food-card { min-width: 0; }
  .ga-store [data-panel="alacarte"] .ga-food-body { min-width: 0; padding: 10px; }
  .ga-store [data-panel="alacarte"] .ga-food-body h4 { font-size: 13px; overflow-wrap: anywhere; }
  .ga-store [data-panel="alacarte"] .ga-category { font-size: 10px; margin: 6px 0 8px; }
  .ga-store [data-panel="alacarte"] .ga-food-body select { min-width: 0; width: 100%; font-size: 11px; padding: 6px 4px; text-overflow: ellipsis; }
  .ga-store [data-panel="alacarte"] .ga-food-body .ga-static-food-option { font-size: 11px; overflow-wrap: anywhere; }
  .ga-store [data-panel="alacarte"] .ga-food-body .ga-static-food-option b { white-space: normal; }
  .ga-store [data-panel="alacarte"] .ga-qty-row { gap: 5px; }
  .ga-store [data-panel="alacarte"] .ga-ala-stepper { min-width: 0; width: 100%; }
  .ga-store [data-panel="alacarte"] .ga-ala-stepper button { width: 36px; min-width: 36px; min-height: 43px; }
  .ga-store [data-panel="alacarte"] .ga-ala-stepper input { min-width: 0; width: 100%; min-height: 43px; padding: 4px 0; font-size: 15px; }
  .ga-store [data-panel="alacarte"] .ga-rule { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .ga-store [data-panel="alacarte"] .ga-food-grid { gap: 7px; }
  .ga-store [data-panel="alacarte"] .ga-food-body { padding: 8px; }
  .ga-store [data-panel="alacarte"] .ga-ala-stepper button { width: 32px; min-width: 32px; }
  .ga-store [data-panel="alacarte"] .ga-ala-stepper input { font-size: 14px; }
}
/* Direct call: optional, configured separately from the WhatsApp business number. */
.ga-store .ga-direct-call {
  margin: 8px 26px 13px;
  padding: 15px 18px;
  text-align: center;
  border: 1px solid #e8d9c4;
  border-radius: 10px;
  background: #fffaf3;
  color: #563e4b;
}
.ga-store .ga-direct-call strong { display:block; font-size: 15px; color:#592044; }
.ga-store .ga-direct-call p { font-size: 13px; line-height: 1.65; margin: 6px 0 10px; }
.ga-store .ga-direct-call .ga-call-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 9px 17px;
  border: 1px solid #b78b47; border-radius: 8px;
  color: #67234c; background: #fff; font-weight: 750;
  text-decoration: none; overflow-wrap: anywhere;
}
.ga-store .ga-direct-call .ga-call-link:hover { background: #fbeddc; }
@media (max-width: 660px) {
  .ga-store .ga-direct-call { margin: 8px 16px 12px; padding: 13px; }
  .ga-store .ga-direct-call .ga-call-link { width:100%; }
}
