/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

  :root {
    --gs-shelf-h: 340px; /* fixed desktop height */
    --gak-ink:#111826;
    --gak-border:rgba(11,29,43,0.12);
    --gak-hover:#706EF1;
  }

  /* Full width with slight side margins (desktop only) */
  .gs-hero-shelf.fw {
    position: relative;
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    margin-left: calc(50% - 50vw + 20px);
    margin-right: calc(50% - 50vw + 20px);
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
  }

  /* Layout */
  .gs-hero-shelf {
    display: flex;
    gap: 0;
    width: 100%;
    height: var(--gs-shelf-h);
    min-height: var(--gs-shelf-h);
    max-height: var(--gs-shelf-h);
    overflow: hidden;
  }

  .gs-panel {
    position: relative;
    flex: 1 1 15%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-decoration: none;
    background: var(--bg) center/cover no-repeat;
    border-radius: 0;
    transition: flex .45s cubic-bezier(0.25, 0.8, 0.25, 1), transform .45s ease, box-shadow .45s ease;
    will-change: flex;
  }

  /* Default: first visual expanded */
  .gs-panel:first-child {
    flex: 3 1 55%;
    border-top-left-radius: 12px;
  }

  /* Last visual rounded top-right */
  .gs-panel:last-child {
    border-top-right-radius: 12px;
  }

  /* Hover expand — width only, height stays fixed */
  .gs-hero-shelf:hover .gs-panel { flex: 1 1 15%; }
  .gs-hero-shelf .gs-panel:hover { flex: 3 1 55%; }

  /* Overlay and content */
  .gs-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
  }

  .gs-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 14px 18px;
  }

  .gs-inner h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
  }

  /* Tablet breakpoint: slightly shorter height */
  @media (max-width: 1400px) {
    :root { --gs-shelf-h: 320px; }
  }

  @media (max-width: 1280px) {
    :root { --gs-shelf-h: 300px; }
  }

  /* Mobile / tablet layout */
  @media (max-width: 1024px) {
    .gs-hero-shelf {
      flex-direction: column;
      height: auto;
      min-height: 0;
      max-height: none;
    }

    .gs-panel {
      min-height: 180px;
      border-radius: 0;
    }

    .gs-hero-shelf:hover .gs-panel { flex: 1 1 auto; }
    .gs-panel.is-active { min-height: 240px; }

    /* Full bleed on mobile */
    .gs-hero-shelf.fw {
      width: calc(100vw - 24px);
      margin-left: calc(50% - 50vw + 12px);
      margin-right: calc(50% - 50vw + 12px);
    }
  }

.gak-promos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.gak-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg, #f5f5f5);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  height: 110px;
  padding: 0 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.gak-promo:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.gak-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gak-content svg {
  flex-shrink: 0;
}

.gak-content .title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.gak-promo[style*="#f3f4f6"] .title { color: #111; }

.badge {
  display: inline-block;
  background: var(--clr, #111);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  padding: 6px 14px;
  flex-shrink: 0;
}

@media (max-width:1024px){
  .gak-promos { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width:640px){
  .gak-promos { grid-template-columns: 1fr; gap: 14px; }
  .gak-promo { height: 90px; padding: 0 20px; }
  .gak-content .title { font-size: 16px; }
  .badge { font-size: 14px; padding: 5px 12px; }
}

  .gak-cats.boxed{ width:100%; max-width:100%; margin:0; }
  .gak-cats{ background:#fff; border-top:1px solid rgba(11,29,43,0.06); border-bottom:1px solid rgba(11,29,43,0.06); overflow-x:auto; scrollbar-width:none; }
  .gak-cats::-webkit-scrollbar{ display:none; }

  .gak-track{ display:flex; align-items:center; justify-content:center; gap:80px; padding:22px 4vw; }

  .gak-item{ display:flex; flex-direction:column; align-items:center; text-decoration:none; color:var(--gak-ink); transition:color .25s ease, transform .25s ease; }

  .gak-icon{ width:50px; height:50px; border-radius:14px; border:1px solid var(--gak-border); display:grid; place-items:center; transition:border-color .25s ease, background-color .25s ease, transform .25s ease, color .25s ease; color:var(--gak-ink); }
  .gak-icon svg{ width:24px; height:24px; display:block; }
  /* force fills/strokes to currentColor so your SVGs tint properly */
  .gak-icon svg [fill]:not([fill="none"]){ fill: currentColor !important; }
  .gak-icon svg [stroke]:not([stroke="none"]){ stroke: currentColor !important; }

  .gak-label{ margin-top:10px; font-size:14px; font-weight:600; letter-spacing:.01em; text-align:center; color:var(--gak-ink); transition:color .25s ease; }

  .gak-item:hover .gak-icon{ border-color:var(--gak-hover); color:var(--gak-hover); background-color:rgba(112,110,241,0.08); transform:translateY(-2px); }
  .gak-item:hover .gak-label{ color:var(--gak-hover); }
  
  @media (max-width:1024px){
    .gak-track{ gap:48px; padding:18px 3vw; }
    .gak-icon{ width:44px; height:44px; }
    .gak-icon svg{ width:22px; height:22px; }
    .gak-label{ font-size:13px; }
  }
