/* Keep Gadgets' original blocks, product grid, spacing and responsive breakpoints.
   This layer changes navigation surfaces and touch feedback only. */
body.pelidox-storefront {
  --pelidox-glass-solid: #15171b;
  --pelidox-glass: rgba(18, 20, 25, .78);
  --pelidox-glass-line: rgba(255, 255, 255, .16);
  --pelidox-glass-highlight: rgba(255, 255, 255, .11);
}

/* The existing header remains in normal document flow. Blocksy owns sticky mode. */
.pelidox-storefront #header [data-row*="middle"] {
  background: var(--pelidox-glass-solid);
  border-bottom: 1px solid var(--pelidox-glass-line);
  box-shadow: inset 0 1px 0 var(--pelidox-glass-highlight), 0 8px 30px rgba(0, 0, 0, .10);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}
.pelidox-storefront #header [data-row*="middle"] > [class*="ct-container"] {
  transition: min-height 220ms ease;
}
.pelidox-storefront #header [data-row*="middle"] {
  --theme-link-initial-color: #f2f3f5;
  --theme-link-hover-color: #fff;
  --theme-icon-color: #f2f3f5;
  --theme-icon-hover-color: #fff;
}
.pelidox-storefront #header [data-row*="middle"] .site-title,
.pelidox-storefront #header [data-row*="middle"] .ct-label {
  color: #f2f3f5;
}
.pelidox-storefront #header .site-title {
  letter-spacing: .07em;
  font-weight: 750;
}
.pelidox-storefront #header [data-device] .ct-header-trigger,
.pelidox-storefront #header [data-device] .ct-header-search,
.pelidox-storefront #header [data-device] .ct-cart-item,
.pelidox-storefront #header [data-device] .ct-header-account {
  border-radius: 999px;
  transition: background-color 150ms ease, transform 150ms ease;
}
.pelidox-storefront #header [data-device] .ct-header-trigger:hover,
.pelidox-storefront #header [data-device] .ct-header-search:hover,
.pelidox-storefront #header [data-device] .ct-cart-item:hover,
.pelidox-storefront #header [data-device] .ct-header-account:hover {
  background-color: rgba(255, 255, 255, .08);
}
.pelidox-storefront :is(.single_add_to_cart_button, .add_to_cart_button, .ct-header-trigger, .ct-cart-item, .ct-header-search, .pelidox-demo-dismiss):active {
  transform: scale(.97);
}
.pelidox-storefront :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 4px;
}
.pelidox-storefront #header.pelidox-is-scrolled [data-row*="middle"] {
  background: #111318;
  box-shadow: inset 0 1px 0 var(--pelidox-glass-highlight), 0 12px 36px rgba(0, 0, 0, .19);
}
/* A gentle shrink, scoped to an actual Blocksy sticky clone, avoids page jumps. */
.pelidox-storefront #header.pelidox-is-scrolled [data-sticky*="yes"] [data-row*="middle"] > [class*="ct-container"],
.pelidox-storefront #header.pelidox-is-scrolled [data-sticky*="yes"][data-row*="middle"] > [class*="ct-container"] {
  min-height: min(var(--theme-header-height, 80px), 68px);
}
.pelidox-storefront #offcanvas .ct-panel-inner,
.pelidox-storefront #woo-cart-panel .ct-panel-inner {
  border: 1px solid var(--pelidox-glass-line);
  box-shadow: inset 0 1px 0 var(--pelidox-glass-highlight), -12px 0 40px rgba(0, 0, 0, .14);
}
.pelidox-storefront .ct-cart-content {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .18);
}
.pelidox-storefront .woocommerce-mini-cart__buttons a {
  min-height: 46px;
}
.pelidox-storefront .pelidox-cart-feedback {
  animation: pelidox-cart-tap 320ms ease;
}
@keyframes pelidox-cart-tap {
  50% { transform: scale(1.10); }
}

.pelidox-demo-notice {
  position: fixed;
  z-index: 990;
  inset-inline-start: max(16px, env(safe-area-inset-left));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: min(680px, calc(100vw - 32px));
  padding: 13px 16px;
  color: #f5f6f8;
  background: #202329;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 12px 36px rgba(0, 0, 0, .24);
  font: 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.pelidox-demo-notice[hidden] { display: none; }
.pelidox-demo-copy { display: grid; gap: 1px; }
.pelidox-demo-copy strong { font-size: 12px; color: #fff; }
.pelidox-demo-copy span { color: #d1d5dd; }
.pelidox-demo-notice nav { display: flex; gap: 14px; white-space: nowrap; }
.pelidox-demo-notice nav a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pelidox-demo-notice .pelidox-demo-dismiss {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  min-height: 36px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pelidox-storefront #header [data-row*="middle"] {
    background: var(--pelidox-glass);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    backdrop-filter: blur(22px) saturate(1.35);
  }
  .pelidox-storefront #header.pelidox-is-scrolled [data-row*="middle"] {
    background: rgba(17, 19, 24, .88);
  }
  .pelidox-demo-notice {
    background: rgba(24, 27, 32, .88);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    backdrop-filter: blur(22px) saturate(1.3);
  }
}
@media (max-width: 999.98px) {
  .pelidox-storefront #header [data-device="mobile"] :is(.ct-header-trigger, .ct-header-search, .ct-cart-item, .ct-header-account) {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  .pelidox-storefront :is(.single_add_to_cart_button, .woocommerce-cart .checkout-button, .woocommerce-mini-cart__buttons a) {
    min-height: 48px;
  }
  .pelidox-storefront .woocommerce-mini-cart__buttons {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
@media (max-width: 620px) {
  .pelidox-demo-notice { gap: 10px; padding: 10px 12px; }
  .pelidox-demo-notice nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pelidox-storefront #header *,
  .pelidox-storefront :is(.single_add_to_cart_button, .add_to_cart_button, .pelidox-demo-dismiss, .pelidox-cart-feedback) {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .pelidox-storefront #header [data-row*="middle"],
  .pelidox-storefront #header.pelidox-is-scrolled [data-row*="middle"],
  .pelidox-demo-notice {
    background: #15171b;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  .pelidox-storefront #header [data-row*="middle"], .pelidox-demo-notice {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
/* Exact original Gadgets block IDs only. Append to the child theme stylesheet.
   The real, unedited product photo moves into the existing empty second column;
   the first column retains its original heading/CTA and a dark readable surface. */
.pelidox-storefront .stk-b3b3150 {
  /* functions.php provides the current WooCommerce product image, when available. */
  --pelidox-hero-image: none;
  padding-top: clamp(112px, 12vw, 160px) !important;
  background-color: #111518 !important;
}
.pelidox-storefront .stk-b3b3150 .stk-11ce005 {
  background-image: none !important;
  background-color: transparent !important;
}
.pelidox-storefront .stk-b3b3150 .stk-b7c8615-column {
  align-items: center !important;
  --stk-column-gap: 40px !important;
  column-gap: 40px !important;
  padding-block: 32px 56px;
}
.pelidox-storefront .stk-b3b3150 .stk-3264b2b,
.pelidox-storefront .stk-b3b3150 .stk-2e76a7b {
  flex: 0 1 calc((100% - 40px) / 2) !important;
  min-width: 0;
}
.pelidox-storefront .stk-b3b3150 .stk-2e76a7b {
  align-self: center !important;
  background: #fff var(--pelidox-hero-image) center / contain no-repeat !important;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.pelidox-storefront .stk-b3b3150 .stk-76b34f4 {
  height: clamp(230px, 26vw, 350px) !important;
}
.pelidox-storefront .stk-b3b3150 .stk-f818617 { height: 0 !important; }
.pelidox-storefront .stk-b3b3150 .stk-b8fedda .stk-block-heading__text {
  color: #fff !important;
  font-size: clamp(38px, 4.3vw, 58px) !important;
  line-height: 1.08 !important;
}
.pelidox-storefront .stk-b3b3150 .stk-cc39220 .stk-block-text__text {
  color: #d8dce1 !important;
}

/* Site title wraps its own link. Color on the parent span is insufficient:
   Blocksy's link uses its local --theme-link-initial-color variable. */
.pelidox-storefront #header [data-id="logo"] .site-title,
.pelidox-storefront #header [data-id="logo"] .site-title a {
  --theme-link-initial-color: #f5f6f8 !important;
  --theme-link-hover-color: #fff !important;
  color: #f5f6f8 !important;
  opacity: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: .07em;
}

@media (max-width: 1023px) {
  .pelidox-storefront .stk-b3b3150 { padding-top: 104px !important; }
  .pelidox-storefront .stk-b3b3150 .stk-b7c8615-column { row-gap: 32px !important; }
  .pelidox-storefront .stk-b3b3150 .stk-3264b2b,
  .pelidox-storefront .stk-b3b3150 .stk-2e76a7b {
    flex: 0 1 100% !important;
    width: 100% !important;
  }
  .pelidox-storefront .stk-b3b3150 .stk-2e76a7b {
    max-width: 680px;
    margin-inline: auto;
  }
  .pelidox-storefront .stk-b3b3150 .stk-76b34f4 { height: clamp(190px, 35vw, 290px) !important; }
  .pelidox-storefront .stk-b3b3150 .stk-b8fedda .stk-block-heading__text {
    font-size: clamp(36px, 6vw, 48px) !important;
  }
}
@media (max-width: 767px) {
  .pelidox-storefront .stk-b3b3150 .stk-b7c8615-column { padding-block: 16px 32px; }
  .pelidox-storefront .stk-b3b3150 .stk-cc39220 .stk-block-text__text { font-size: 16px !important; }
  .pelidox-storefront .stk-b3b3150 .stk-5614d4f { height: 26px !important; }
  .pelidox-storefront .stk-b3b3150 .stk-ad2f8a4 .stk-inner-blocks { column-gap: 20px !important; }
  .pelidox-storefront .stk-b3b3150 .stk-76b34f4 { height: clamp(170px, 48vw, 250px) !important; }
}

/* Restore Blocksy's own height formula. The earlier visual-layer 68px rule
   should no longer override its native scroll-linked row shrink calculation. */
.pelidox-storefront #header.pelidox-is-scrolled [data-sticky*="yes"] [data-row*="middle"] > [class*="ct-container"],
.pelidox-storefront #header.pelidox-is-scrolled [data-sticky*="yes"][data-row*="middle"] > [class*="ct-container"] {
  min-height: var(--shrink-height, var(--height));
}

/* Preserve readable current-page states in the existing native mobile menu. */
.pelidox-storefront #offcanvas [data-id="mobile-menu"],
.pelidox-storefront #offcanvas [data-id="mobile-menu"] .sub-menu {
  --theme-link-active-color: #fff;
  --theme-icon-active-color: #fff;
}
.pelidox-storefront #offcanvas [data-id="mobile-menu"] .current-menu-item > .ct-menu-link,
.pelidox-storefront #offcanvas [data-id="mobile-menu"] .current_page_item > .ct-menu-link {
  text-decoration: underline;
  text-underline-offset: .22em;
}

/* Keep footer headings readable against Gadgets' original dark footer. */
.pelidox-storefront .ct-footer h3,
.pelidox-storefront .ct-footer .widget-title { color: #f4f6f8; }
.pelidox-storefront .stk-block-heading__text > a { color: inherit; }
.pelidox-storefront .stk-block-heading__text > a:hover { text-decoration: underline; }
