/* People Fashion: iPad / touch fixes (2026-11-18). Kept outside vendor files so theme updates do not overwrite it. */

/* 1. Product miniatures: hover-only action icons (quick view / add to cart / compare)
      were always visible or "stuck" on touch screens (customer complaints). */
@media (hover: none), (pointer: coarse) {
  .product-miniature .pm-actions.show-on-hover { display: none !important; }
}
.touch .product-miniature .pm-actions.show-on-hover { display: none !important; }

/* 2. Category tree: Safari adds its own disclosure triangle next to our "+" icon. */
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }

/* 3. Product grid (details layout 1): long names overlapped the absolutely positioned price. */
@media (max-width: 1366px) {
  .pm-details-layout1 #main-content .view_grid .product-miniature .product-description {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: start;
  }
  .pm-details-layout1 #main-content .view_grid .product-miniature .product-description > * { grid-column: 1 / -1; }
  .pm-details-layout1 #main-content .view_grid .product-miniature .product-title {
    grid-column: 1; width: auto; max-width: none; float: none;
  }
  .pm-details-layout1 #main-content .view_grid .product-miniature .product-price-and-shipping {
    grid-column: 2; grid-row: 2; position: static; width: auto; white-space: nowrap;
  }
}

/* 4. Header (iPad portrait 768-1024px): search box covered the logo, cart icon overlapped search,
      menu icon touched the logo. */
@media (min-width: 768px) and (max-width: 1024px) {
  .header-1 .elementor-column { min-width: 0; }
  .header-1 .elementor-element-2c2be94a .icon_menu { justify-content: flex-start !important; gap: 12px; }
  .header-1 .elementor-element-7d8f93f { flex: 1 1 auto !important; width: auto !important; min-width: 0; max-width: calc(100% - 44px); }
  .header-1 .elementor-element-7d8f93f .pk-search-widget,
  .header-1 .elementor-element-7d8f93f form,
  .header-1 .elementor-element-7d8f93f input { width: 100% !important; max-width: 100% !important; min-width: 0; }
  .header-1 .elementor-element-7d8f93f .pk-search-widget input[type="search"] { position: relative !important; right: auto !important; }
  .header-1 .elementor-element-ac68715 { flex: 0 0 auto; }
}

/* 4b. Product grid <=1024px: fixed 4x130px columns did not fit the content column -> page wider than screen. */
@media (max-width: 1024px) {
  #js-product-list .product-list-container.grid-container { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }
}

/* 5. Category page (iPad portrait): left category column was ~138px, names truncated ("Dame…", "Blu…"). */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-element-2635fbfa { width: 230px !important; flex: 0 0 230px !important; max-width: 230px; }
  .elementor-element-cfae010 { width: auto !important; flex: 1 1 0 !important; min-width: 0; }
}

/* 6. Footer: "Kontaktoplysninger" title (letter-spacing 2.5px) pushed the page wider than the screen
      -> sideways scrolling on iPad portrait. */
@media (max-width: 1024px) {
  .elementor-element-6a4cc00d .module-title { letter-spacing: 1px; overflow-wrap: anywhere; }
}

/* 7. Product page (iPad portrait): "STØRRELSESGUIDE" button text was cut (fixed 117px box, overflow hidden). */
@media (max-width: 1024px) {
  #product .buttons_bottom_block.additional_button { width: auto; min-width: max-content; }
}

/* 8. Top green announcement bar: text touched the screen edges on tablets. */
@media (max-width: 1024px) {
  .elementor-element-bf759ec p { padding-left: 12px; padding-right: 12px; }
}
