/* AvaClik Editor 0.5.65 — desktop microinteractions for preset / tool cards.
 * CSS only: no global palette overrides, no JS, no preset data edits.
 * Hover effects are intentionally unavailable on touch / reduced-motion UIs.
 */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Interactive card surfaces only — not buttons, fields, headers, payment or
     account cards. Each type retains its own normal and selected styling. */
  html[data-ava-editor-theme] #fotor-root .editor-shell:not(.is-mobile) :is(
    .left-panel .ai-hair-tile.sg-desktop-preset-choice,
    .left-panel .ai-styles-tile.sg-desktop-preset-choice,
    .left-panel .sg-action-card.sg-desktop-preset-choice,
    .left-panel .sg-add-person-description-tile.sg-desktop-preset-choice,
    .left-panel .ai-correction-card,
    .left-panel .lp-cat-card,
    .left-panel .product-creative-settings-tile,
    .text-image-page .ava-create-preset,
    .text-image-page .ti-preset-card,
    .left-panel .sg-add-person-prompt__preset
  ),
  html[data-ava-editor-theme] #fotor-root .text-image-popup .ti-preset-card,
  html[data-ava-editor-theme] #fotor-root :is(.sg168-preset-option, .sg169-preset-option),
  html[data-ava-editor-theme] .sg-looks-desktop-pane .sg-looks-tile,
  html[data-ava-editor-theme] .ava-tryon-modal .ava-tryon-tile,
  html[data-ava-editor-theme] body > .sg-add-person-prompt-backdrop .sg-add-person-prompt__preset {
    transition: transform 280ms cubic-bezier(.2,.7,.2,1),
                border-color 280ms ease, box-shadow 280ms ease,
                filter 280ms ease !important;
    transform-origin: center center;
  }

  /* Small lift. No enlargement of the card itself — the grid stays still. */
  html[data-ava-editor-theme] #fotor-root .editor-shell:not(.is-mobile) :is(
    .left-panel .ai-hair-tile.sg-desktop-preset-choice,
    .left-panel .ai-styles-tile.sg-desktop-preset-choice,
    .left-panel .sg-action-card.sg-desktop-preset-choice,
    .left-panel .sg-add-person-description-tile.sg-desktop-preset-choice,
    .left-panel .ai-correction-card,
    .left-panel .lp-cat-card,
    .left-panel .product-creative-settings-tile,
    .text-image-page .ava-create-preset,
    .text-image-page .ti-preset-card,
    .left-panel .sg-add-person-prompt__preset
  ):hover:not(:disabled),
  html[data-ava-editor-theme] #fotor-root .text-image-popup .ti-preset-card:hover:not(:disabled),
  html[data-ava-editor-theme] #fotor-root :is(.sg168-preset-option,.sg169-preset-option):hover:not(:disabled),
  html[data-ava-editor-theme] .sg-looks-desktop-pane .sg-looks-tile:hover:not(:disabled),
  html[data-ava-editor-theme] .ava-tryon-modal .ava-tryon-tile:hover,
  html[data-ava-editor-theme] body > .sg-add-person-prompt-backdrop .sg-add-person-prompt__preset:hover:not(:disabled) {
    transform: translate3d(0,-2px,0) !important;
  }

  /* Neutral glow on unselected tiles. Active / checked cards keep their
     existing selection border, checkmark and box-shadow. */
  html[data-ava-editor-theme] #fotor-root .editor-shell:not(.is-mobile) :is(
    .left-panel .ai-hair-tile.sg-desktop-preset-choice,
    .left-panel .ai-styles-tile.sg-desktop-preset-choice,
    .left-panel .sg-action-card.sg-desktop-preset-choice,
    .left-panel .sg-add-person-description-tile.sg-desktop-preset-choice,
    .left-panel .ai-correction-card,
    .left-panel .lp-cat-card,
    .left-panel .product-creative-settings-tile,
    .text-image-page .ava-create-preset,
    .text-image-page .ti-preset-card,
    .left-panel .sg-add-person-prompt__preset
  ):hover:not(:disabled):not(.active):not(.selected):not(.is-selected):not([aria-pressed="true"]):not([aria-selected="true"]):not(:has(input:checked)),
  html[data-ava-editor-theme] #fotor-root .text-image-popup .ti-preset-card:hover:not(:disabled):not(.active),
  html[data-ava-editor-theme] #fotor-root :is(.sg168-preset-option,.sg169-preset-option):hover:not(:disabled):not(.is-active),
  html[data-ava-editor-theme] .sg-looks-desktop-pane .sg-looks-tile:hover:not(:disabled):not(.active),
  html[data-ava-editor-theme] .ava-tryon-modal .ava-tryon-tile:hover:not(:has(input:checked)),
  html[data-ava-editor-theme] body > .sg-add-person-prompt-backdrop .sg-add-person-prompt__preset:hover:not(:disabled):not(.active):not([aria-pressed="true"]) {
    border-color: rgba(160,158,172,.68) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
  }

  html[data-ava-editor-theme="dark"] #fotor-root .editor-shell:not(.is-mobile) :is(
    .left-panel .ai-hair-tile.sg-desktop-preset-choice,
    .left-panel .ai-styles-tile.sg-desktop-preset-choice,
    .left-panel .sg-action-card.sg-desktop-preset-choice,
    .left-panel .ai-correction-card,
    .left-panel .lp-cat-card
  ):hover:not(:disabled):not(.active):not(.selected):not(.is-selected):not([aria-pressed="true"]):not([aria-selected="true"]):not(:has(input:checked)),
  html[data-ava-editor-theme="dark"] .sg-looks-desktop-pane .sg-looks-tile:hover:not(:disabled):not(.active) {
    box-shadow: 0 9px 22px rgba(0,0,0,.34) !important;
  }

  /* Photo zoom is applied inside the tile so it never resizes the layout.
     Captions, selected ticks and badges remain above the photo. */
  html[data-ava-editor-theme] #fotor-root .editor-shell:not(.is-mobile) :is(
    .left-panel .ai-hair-tile.sg-desktop-preset-choice .ai-hair-thumb img,
    .left-panel .ai-hair-tile.sg-desktop-preset-choice .ai-hair-thumb video,
    .left-panel .ai-styles-tile.sg-desktop-preset-choice img,
    .left-panel .ai-correction-card img,
    .left-panel .product-creative-settings-tile img,
    .text-image-page .ava-create-preset img,
    .text-image-page .ti-preset-card img
  ),
  html[data-ava-editor-theme] #fotor-root .text-image-popup .ti-preset-card img,
  html[data-ava-editor-theme] .sg-looks-desktop-pane .sg-looks-tile .ai-hair-thumb img,
  html[data-ava-editor-theme] .ava-tryon-modal .ava-tryon-tile img {
    transition: transform 300ms cubic-bezier(.2,.7,.2,1),
                filter 300ms ease !important;
    transform-origin: center center;
    backface-visibility: hidden;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell:not(.is-mobile) :is(
    .left-panel .ai-hair-tile.sg-desktop-preset-choice,
    .left-panel .ai-styles-tile.sg-desktop-preset-choice,
    .left-panel .ai-correction-card,
    .left-panel .product-creative-settings-tile,
    .text-image-page .ava-create-preset,
    .text-image-page .ti-preset-card
  ):hover:not(:disabled) :is(.ai-hair-thumb img,.ai-hair-thumb video,img),
  html[data-ava-editor-theme] #fotor-root .text-image-popup .ti-preset-card:hover:not(:disabled) img,
  html[data-ava-editor-theme] .sg-looks-desktop-pane .sg-looks-tile:hover:not(:disabled) .ai-hair-thumb img,
  html[data-ava-editor-theme] .ava-tryon-modal .ava-tryon-tile:hover img {
    transform: scale(1.05) !important;
    filter: brightness(1.06) contrast(1.02) !important;
  }

  /* Tool-catalog thumbnails are CSS backgrounds; animate their containing
     media block, not hidden img elements or the card's text overlay. */
  html[data-ava-editor-theme] #fotor-root .editor-shell:not(.is-mobile) .left-panel .lp-cat-card .lp-cat-media {
    transition: transform 300ms cubic-bezier(.2,.7,.2,1), filter 300ms ease !important;
    transform-origin: center center;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell:not(.is-mobile) .left-panel .lp-cat-card:hover:not(:disabled) .lp-cat-media {
    transform: scale(1.045) !important;
    filter: brightness(1.06) !important;
  }

  /* Overlay labels become just a little more prominent. Avoid moving text
     beyond the card or suppressing its two-line truncation. */
  html[data-ava-editor-theme] #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-tile.sg-desktop-preset-choice .ai-hair-title,
  html[data-ava-editor-theme] .sg-looks-desktop-pane .sg-looks-tile > .ai-hair-title {
    transition: filter 280ms ease, box-shadow 280ms ease !important;
  }
  html[data-ava-editor-theme] #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-tile.sg-desktop-preset-choice:hover:not(:disabled) .ai-hair-title,
  html[data-ava-editor-theme] .sg-looks-desktop-pane .sg-looks-tile:hover:not(:disabled) > .ai-hair-title {
    filter: brightness(1.14) !important;
    box-shadow: 0 5px 12px rgba(0,0,0,.46) !important;
  }
}
