/* Desktop homepage redesign (front-page.php) */

.gp-home-desktop{
  padding: 18px 18px 70px;
}

/* Ensure third-party shortcode content (opening times / store-hours) stays readable */
.gp-strip-action,
.gp-strip-action * {
  color: rgba(236, 236, 241, 0.92) !important;
}
.gp-strip-action a {
  color: #ff97cd !important;
}

/* ================================
   Home hero: force a clean 2x2 grid
   (WooCommerce template uses .gp-menu-card)
   ================================ */

@media (min-width: 980px){
  /* Turn the hero <ul class="products ... gp-home-hero-products"> into a real grid */
  ul.products.gp-home-hero-products{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Kill WC column floats/widths inside hero */
  ul.products.gp-home-hero-products > li.product{
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Make cards more square + consistent */
  ul.products.gp-home-hero-products li.product .gp-menu-card{
    height: clamp(320px, 26vw, 460px);
  }
  ul.products.gp-home-hero-products li.product .gp-menu-card-inner{
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  ul.products.gp-home-hero-products li.product .gp-menu-thumb{
    flex: 0 0 56%;
    display: block;
  }
  ul.products.gp-home-hero-products li.product .gp-menu-thumb img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
  }
  ul.products.gp-home-hero-products li.product .gp-menu-body{
    flex: 1 1 auto;
    min-height: 0;
  }
  /* Keep CTA area visible but not massive */
  ul.products.gp-home-hero-products li.product .gp-menu-footer{
    margin-top: auto;
  }
}

.gp-home-wrap{
  max-width: 1500px;
  margin: 0 auto;
}

/* Shell: keep layout centred but avoid the "boxed WordPress" feel */
.gp-home-shell{
  padding: 10px;
  border-radius: 28px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.gp-home-hero{
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
  align-items: start;
}

.gp-home-promo-stack{
  display: grid;
  gap: 18px;
}

.gp-card{
  border: 0;
  border-radius: 26px;
  background: rgba(11,11,13,0.38);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  overflow: hidden;
  position: relative;
}

.gp-card:before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(1200px 360px at 20% 0%, rgba(255,151,205,0.25), transparent 55%),
              radial-gradient(900px 300px at 90% 100%, rgba(255,151,205,0.18), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gp-card-inner{
  padding: 22px 24px;
}

.gp-card-title{
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  color: #ff97cd;
  text-shadow: 0 0 10px rgba(255,151,205,0.35);
}

.gp-card-text{
  margin: 0;
  color: rgba(236,236,241,0.88);
  font-size: 16px;
  line-height: 1.45;
}

.gp-card-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.gp-card-actions .gp-btn{
  min-width: 160px;
}

.gp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,151,205,0.55);
  background: linear-gradient(180deg, rgba(255,151,205,0.95), rgba(255,106,178,0.95));
  color: #0b0b0d;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35), 0 0 20px rgba(255,151,205,0.22);
}

.gp-btn:hover{
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.gp-btn:active{
  transform: translateY(0);
}

.gp-btn.secondary{
  background: rgba(11,11,13,0.45);
  color: #ff97cd;
}

.gp-home-quick{
  padding: 18px;
}

.gp-home-quick .gp-quick-title{
  margin: 0 0 10px;
  font-size: 18px;
  color: rgba(236,236,241,0.92);
}

.gp-home-quick .gp-quick-sub{
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(236,236,241,0.72);
}

.gp-home-quick-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gp-home-chooser{
  margin-top: 16px;
}

.gp-home-strip{
  margin-top: 18px;
}

.gp-home-strip-inner{
  padding: 18px;
}

.gp-home-strip-title{
  margin: 0 0 10px;
  font-size: 18px;
  color: rgba(236,236,241,0.92);
}

.gp-home-strip-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gp-home-strip-card{
  padding: 16px;
}

.gp-home-strip-card h3{
  margin: 0 0 6px;
  font-size: 16px;
  color: #ff97cd;
}

.gp-home-strip-card p{
  margin: 0;
  font-size: 14px;
  color: rgba(236,236,241,0.78);
}

/* Featured product galleries (Collection offers / New burgers etc.) */
.gp-home-featured{
  margin-top: 18px;
}

.gp-home-featured-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gp-home-section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.gp-home-section-title{
  font-size: 18px;
  color: #ff97cd;
  font-weight: 700;
}

.gp-home-section-sub{
  font-size: 13px;
  color: rgba(236,236,241,0.72);
  text-align: right;
}

.gp-prod-strip{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.gp-prod-strip::-webkit-scrollbar{ height: 8px; }

.gp-prod-card{
  min-width: 220px;
  max-width: 260px;
  scroll-snap-align: start;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(255,151,205,0.35);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(11,11,13,0.75);
}

.gp-prod-thumb{
  width: 100%;
  height: 140px;
  background: rgba(255,255,255,0.04);
}

.gp-prod-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gp-prod-meta{
  padding: 12px;
}

.gp-prod-meta .gp-prod-name{
  margin: 0 0 8px;
  font-size: 15px;
  color: rgba(236,236,241,0.92);
  line-height: 1.2;
}

.gp-prod-meta .gp-prod-price{
  margin: 0;
  color: #ff97cd;
  font-weight: 700;
}

.gp-prod-focal{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: stretch;
}

.gp-prod-focal .gp-prod-focal-hero{
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,151,205,0.35);
  text-decoration: none;
  display: block;
}

.gp-prod-focal .gp-prod-focal-hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gp-prod-focal .gp-prod-strip{ padding: 0; }

/* Ensure product links don't appear default-blue anywhere inside home cards */
.gp-home-desktop a{ color: inherit; }
.gp-home-desktop a:hover{ color: #ff97cd; }

/* HERO GALLERY (big focal card like modern landing pages) */
.gp-home-hero-gallery{ padding: 0; }
.gp-featured{
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,151,205,0.18);
  box-shadow: 0 0 0 1px rgba(255,151,205,0.08), 0 18px 60px rgba(0,0,0,0.65);
}
.gp-featured-media{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
}
.gp-featured-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35), rgba(0,0,0,0.78));
}
.gp-featured-body{
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
}
.gp-featured-title{
  font-size: 34px;
  line-height: 1.1;
  color: #ff97cd;
  text-shadow: 0 0 18px rgba(255,151,205,0.45);
  margin: 0;
}
.gp-featured-meta{ color: rgba(236,236,241,0.92); font-size: 14px; }
.gp-featured-actions{ display:flex; gap: 12px; flex-wrap: wrap; }
.gp-featured-actions .gp-btn{ padding: 12px 18px; border-radius: 14px; }

/* Product grid cards used by collection/new sections */
.gp-prod-grid{ display: grid; gap: 14px; }
.gp-prod-grid.cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.gp-prod-grid.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.gp-prod-grid.cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
.gp-prod-grid .gp-prod-card{ height: 100%; }
.gp-prod-card .gp-prod-imgwrap{ position: relative; border-radius: 18px; overflow: hidden; }
.gp-prod-card .gp-prod-img{ width: 100%; height: 160px; object-fit: cover; display:block; }
.gp-prod-card .gp-prod-meta{ padding: 12px; }
.gp-prod-card .gp-prod-name{ font-weight: 800; color: #ff97cd; text-shadow: 0 0 14px rgba(255,151,205,0.35); }
.gp-prod-card .gp-prod-price{ margin-top: 6px; }

@media (max-width: 1200px){
  .gp-prod-grid.cols-4{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 980px){
  .gp-prod-grid.cols-3, .gp-prod-grid.cols-4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gp-featured{ min-height: 320px; }
}

@media (max-width: 1200px){
  .gp-home-featured-grid{ grid-template-columns: 1fr; }
  .gp-prod-focal{ grid-template-columns: 1fr; }
  .gp-prod-focal .gp-prod-focal-hero{ height: 260px; }
}

/* Keep the existing content area available, but tame spacing */
.gp-home-content{
  margin-top: 20px;
}

/* Responsive fallbacks: even on "desktop" template, don't break mid widths */
@media (max-width: 1200px){
  .gp-home-hero{ grid-template-columns: 1fr; }
}

/* --- Homepage: WooCommerce card grids for featured blocks --- */
.gp-home-wc-products ul.products{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.gp-home-wc-products ul.products.columns-1{ grid-template-columns: 1fr; }
.gp-home-wc-products ul.products.columns-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.gp-home-wc-products ul.products.columns-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

/* Hero gallery (desktop): use a clean grid + square-ish visuals */
.gp-home-hero-gallery.gp-home-wc-products ul.products{
  align-items:stretch;
}
.gp-home-hero-gallery.gp-home-wc-products ul.products li.product{
  margin:0;
}
.gp-home-hero-gallery.gp-home-wc-products ul.products li.product a.woocommerce-LoopProduct-link,
.gp-home-hero-gallery.gp-home-wc-products ul.products li.product a.woocommerce-loop-product__link{
  display:block;
}
.gp-home-hero-gallery.gp-home-wc-products ul.products li.product img{
  width:100%;
  display:block;
  aspect-ratio: 1 / 1;
  height:auto;
  object-fit:cover;
  border-radius:16px;
}

@media (max-width: 1200px){
  .gp-home-wc-products ul.products.columns-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px){
  .gp-home-wc-products ul.products.columns-2,
  .gp-home-wc-products ul.products.columns-3{ grid-template-columns: 1fr; }
}

/*
  Mobile safety:
  Hide the custom desktop homepage layout and show the original homepage content.
  This avoids mobile being affected if wp_is_mobile() mis-detects due to caching.
*/
.gp-home-mobile-fallback{display:none;}

@media (max-width: 980px){
  .gp-home-desktop-only{display:none !important;}
  .gp-home-mobile-fallback{display:block; max-width:980px; margin:0 auto; padding:24px 18px;}
}


/* === HERO 2x2 grid (desktop only) ===================================== */
@media (min-width: 1025px){
  .gp-home-hero-grid.products{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:18px;
    margin:0;
    padding:0;
    list-style:none;
  }
  .gp-home-hero-grid.products > li.product{
    width:auto !important;
    margin:0 !important;
    float:none !important;
  }
  /* Make hero cards feel squarer + consistent */
  .gp-home-hero-grid .gp-menu-card-inner{
    height:100%;
    display:flex;
    flex-direction:column;
  }
  .gp-home-hero-grid .gp-menu-thumb{
    display:block;
    aspect-ratio: 1 / 1;
    overflow:hidden;
  }
  .gp-home-hero-grid .gp-menu-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .gp-home-hero-grid .gp-menu-body{ flex:1; }
  .gp-home-hero-grid .gp-menu-desc{ display:none; }
  .gp-home-hero-grid .gp-menu-footer{ margin-top:auto; }
}

/* Hero grid should be 2x2 (homepage desktop) */
@media (min-width: 881px) {
  .gp-home-hero-grid.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch;
  }
  .gp-home-hero-grid.products > li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
  }

  /* Make hero cards feel more square/compact */
  .gp-home-hero-grid .gp-list-card {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
  }
  .gp-home-hero-grid .gp-item-top {
    grid-template-columns: 1fr !important;
  }
  .gp-home-hero-grid .gp-item-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
  }
  .gp-home-hero-grid .gp-item-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
  }
  .gp-home-hero-grid .gp-item-body {
    padding-top: 10px;
  }
  .gp-home-hero-grid .gp-item-actions {
    margin-top: 14px;
  }
}

/* =================================================
   Home hero: if class is on the <ul.products> itself
   ================================================= */
@media (min-width: 980px){
  ul.products.gp-home-hero-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  ul.products.gp-home-hero-grid > li.product{
    float: none !important;
    width: auto !important;
    margin: 0 !important;
  }
}

@media (min-width: 980px){
  ul.products.gp-home-hero-grid .gp-menu-card{
    /* Allow the card to grow naturally; keep a sensible minimum
       so the hero block feels "premium" and aligned. */
    height: auto;
    min-height: 420px;
  }
  ul.products.gp-home-hero-grid .gp-menu-card-inner{
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  ul.products.gp-home-hero-grid .gp-menu-thumb{
    /* Make hero tiles feel squarer (image is 1:1), not tall rectangles */
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
  }
  ul.products.gp-home-hero-grid .gp-menu-thumb img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
  }
  ul.products.gp-home-hero-grid .gp-menu-body{
    flex: 1 1 auto;
    min-height: 0;
  }
  ul.products.gp-home-hero-grid .gp-menu-title{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  ul.products.gp-home-hero-grid .gp-menu-excerpt{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
}


/* --- Fix homepage product card images: prevent global square-image rule from shrinking thumbs --- */
@media (min-width: 980px){
  .gp-home-wrap ul.products li.gp-menu-card a.gp-menu-thumb{
    height: 220px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    display:block;
  }
  .gp-home-wrap ul.products li.gp-menu-card a.gp-menu-thumb img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: auto !important;
    display: block;
  }
}
