.storefront-mobile-search-shell,
.storefront-mobile-category-nav,
.storefront-bottom-navigation,
.storefront-sheet {
  display: none;
}

.storefront-sheet[hidden],
.storefront-filter-indicator[hidden] {
  display: none !important;
}

@media (max-width: 1023px) {
  body[data-storefront-kind],
  body[data-mobile-navigation-kind] {
    --storefront-mobile-blue: #1879cd;
    --storefront-mobile-navy: #082641;
    --storefront-mobile-line: #dbe4ee;
    --storefront-mobile-soft: #f4f8fc;
    padding-bottom: calc(4.55rem + env(safe-area-inset-bottom));
  }

  body[data-storefront-kind] #henny-cookie-banner,
  body[data-mobile-navigation-kind] #henny-cookie-banner {
    bottom: calc(4.9rem + env(safe-area-inset-bottom));
    transform: none;
  }

  body.storefront-sheet-open {
    overflow: hidden;
  }

  .storefront-bottom-navigation {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(4.55rem + env(safe-area-inset-bottom));
    padding: 0.3rem max(0.35rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0.35rem, env(safe-area-inset-left));
    border-top: 1px solid rgb(203 213 225 / 88%);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -0.7rem 1.8rem rgb(15 23 42 / 10%);
    backdrop-filter: blur(18px);
  }

  .storefront-bottom-action {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 3.8rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.18rem;
    border: 0;
    border-radius: 0.8rem;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .storefront-bottom-action svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .storefront-bottom-action.is-primary {
    color: var(--storefront-mobile-blue);
  }

  .storefront-bottom-action:hover,
  .storefront-bottom-action:focus-visible,
  .storefront-bottom-action[aria-expanded='true'] {
    background: #eff6ff;
    color: var(--storefront-mobile-blue);
  }

  .storefront-bottom-action:focus-visible {
    outline: 3px solid rgb(24 121 205 / 25%);
    outline-offset: -2px;
  }

  .storefront-filter-indicator {
    position: absolute;
    top: 0.28rem;
    left: calc(50% + 0.45rem);
    display: grid;
    width: 1rem;
    height: 1rem;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-size: 0.52rem;
    font-weight: 900;
    line-height: 1;
  }

  .storefront-bottom-action.has-active-filters {
    color: var(--storefront-mobile-blue);
  }

  .storefront-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
  }

  .storefront-sheet-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgb(2 15 27 / 48%);
    opacity: 0;
    cursor: default;
    transition: opacity 200ms ease;
  }

  .storefront-sheet-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-width: 42rem;
    margin-inline: auto;
    padding: 0.55rem 1rem calc(1.1rem + env(safe-area-inset-bottom));
    border: 1px solid #dbe4ee;
    border-bottom: 0;
    border-radius: 1.35rem 1.35rem 0 0;
    background: #fff;
    box-shadow: 0 -1rem 3rem rgb(2 15 27 / 20%);
    transform: translateY(105%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .storefront-sheet.is-open .storefront-sheet-backdrop {
    opacity: 1;
  }

  .storefront-sheet.is-open .storefront-sheet-panel {
    transform: translateY(0);
  }

  .storefront-sheet-panel:focus {
    outline: none;
  }

  .storefront-sheet-handle {
    display: block;
    width: 2.75rem;
    height: 0.28rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    background: #cbd5e1;
  }

  .storefront-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }

  .storefront-sheet-header h2 {
    color: var(--storefront-mobile-navy);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.2;
  }

  .storefront-sheet-header p {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .storefront-sheet-close {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dbe4ee;
    border-radius: 0.8rem;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
  }

  .storefront-sheet-close svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .storefront-sheet-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .storefront-sheet-link {
    display: flex;
    min-width: 0;
    min-height: 5.15rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.65rem 0.3rem;
    border: 1px solid #dbe4ee;
    border-radius: 0.95rem;
    background: #f8fafc;
    color: #52657a;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  .storefront-sheet-link svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  .storefront-sheet-link[aria-current='page'] {
    border-color: #93c5fd;
    background: #eff6ff;
    color: var(--storefront-mobile-blue);
    box-shadow: inset 0 0 0 1px rgb(24 121 205 / 12%);
  }

  .storefront-sheet-link:focus-visible,
  .storefront-sheet-close:focus-visible {
    outline: 3px solid rgb(24 121 205 / 25%);
    outline-offset: 2px;
  }
}

@media (max-width: 767px) {
  body[data-storefront-kind] {
    --storefront-mobile-blue: #1879cd;
    --storefront-mobile-navy: #082641;
    --storefront-mobile-line: #dbe4ee;
    --storefront-mobile-soft: #f4f8fc;
  }

  .storefront-mobile-search-shell {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 220px;
    margin-left: auto;
    padding: 0;
    border: none;
    background: transparent;
  }

  .storefront-mobile-search-shell:empty {
    display: none !important;
  }

  .storefront-mobile-search-shell .storefront-search {
    width: 100%;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
  }

  .storefront-mobile-search-shell .storefront-search svg {
    position: absolute;
    left: 0.65rem;
    width: 0.85rem;
    height: 0.85rem;
    color: #64748b;
    pointer-events: none;
  }

  .storefront-mobile-search-shell .storefront-search input {
    width: 100%;
    min-height: 2.35rem;
    height: 2.35rem;
    padding: 0.35rem 0.6rem 0.35rem 1.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 500;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    text-overflow: ellipsis;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  }

  .storefront-mobile-search-shell .storefront-search input::placeholder {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .storefront-mobile-search-shell .storefront-search input:focus-visible,
  .storefront-mobile-search-shell .storefront-search input:focus {
    background: #ffffff;
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  }

  body[data-storefront-kind] .storefront-hero {
    padding-block: 1.25rem !important;
  }

  body[data-storefront-kind] .storefront-hero > div {
    padding-inline: 0.85rem !important;
  }

  body[data-storefront-kind] .storefront-hero h1 {
    margin-top: 0.65rem !important;
    font-size: clamp(1.55rem, 7vw, 2rem) !important;
    line-height: 1.05 !important;
  }

  body[data-storefront-kind] .storefront-hero h1 + p {
    margin-top: 0.65rem !important;
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
  }

  body[data-storefront-kind] .storefront-hero-kicker {
    margin-bottom: 0 !important;
    padding: 0.3rem 0.55rem !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.08em !important;
  }

  body[data-storefront-kind] .storefront-hero-meta,
  body[data-storefront-kind] .plugin-flow {
    display: none !important;
  }

  body[data-storefront-kind='plugins'] .storefront-hero > div > div {
    gap: 0 !important;
  }

  .storefront-mobile-category-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid #dbe4ee;
    background: #fff;
    box-shadow: 0 0.4rem 1rem rgb(15 23 42 / 5%);
  }

  .storefront-mobile-category-link {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1 1 25%;
    min-height: 4.25rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.45rem 0.2rem 0.55rem;
    border-right: 1px solid #eef2f7;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
  }

  .storefront-mobile-category-link:last-child {
    border-right: 0;
  }

  .storefront-mobile-category-nav::-webkit-scrollbar {
    display: none;
  }

  .storefront-mobile-category-link::after {
    position: absolute;
    right: 0.65rem;
    bottom: 0;
    left: 0.65rem;
    height: 0.18rem;
    border-radius: 999px 999px 0 0;
    background: transparent;
    content: '';
  }

  .storefront-mobile-category-link svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .storefront-mobile-category-link[aria-current='page'] {
    background: #eff6ff;
    color: var(--storefront-mobile-blue);
  }

  .storefront-mobile-category-link[aria-current='page']::after {
    background: var(--storefront-mobile-blue);
  }

  .storefront-mobile-category-link:focus-visible {
    z-index: 1;
    outline: 3px solid rgb(24 121 205 / 28%);
    outline-offset: -3px;
  }

  body[data-storefront-kind] .storefront-catalog {
    padding-block: 1rem 2.25rem !important;
  }

  body[data-storefront-kind] .storefront-catalog > div {
    padding-inline: 0.65rem !important;
  }

  body[data-storefront-kind] .storefront-toolbar {
    overflow-x: clip;
  }

  body[data-storefront-kind] .storefront-catalog-intro {
    display: none !important;
  }

  body[data-storefront-kind] .storefront-toolbar {
    margin-bottom: 0.75rem !important;
    padding: 0.7rem !important;
    border-radius: 0.9rem !important;
    box-shadow: 0 0.35rem 1rem rgb(15 23 42 / 5%) !important;
  }

  body[data-storefront-kind] .storefront-toolbar .storefront-search {
    display: none;
  }

  body[data-storefront-kind='plugins'] .plugin-toolbar {
    padding: 0.55rem 0.65rem !important;
    margin-bottom: 0.65rem !important;
    border-radius: 0.85rem !important;
  }

  .plugin-toolbar > div {
    gap: 0.4rem !important;
  }

  .plugin-toolbar .flex.flex-col.gap-3 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.4rem !important;
  }

  .plugin-toolbar .plugin-filter-scroll,
  .resource-filters-scroll {
    margin-inline: -0.15rem;
    padding: 0.05rem 0.15rem 0.15rem;
    scrollbar-width: none;
    flex: 0 1 auto;
  }

  .plugin-toolbar .plugin-filter-scroll::-webkit-scrollbar,
  .resource-filters-scroll::-webkit-scrollbar {
    display: none;
  }

  .plugin-filter-button,
  .resource-filter-btn {
    min-height: 1.85rem;
    padding: 0.25rem 0.55rem;
    border-radius: 0.55rem;
    font-size: 0.64rem;
  }

  .plugin-toolbar [data-plugin-count] {
    font-size: 0.63rem !important;
    font-weight: 750 !important;
    color: #64748b !important;
    white-space: nowrap !important;
    text-align: right !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .plugin-toolbar .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.35rem 0.45rem !important;
  }

  .plugin-toolbar .grid label {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.12rem !important;
    min-width: 0 !important;
    font-size: 0.55rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    color: #64748b !important;
  }

  .plugin-select,
  .storefront-toolbar select {
    min-width: 0;
    min-height: 1.95rem;
    height: 1.95rem;
    padding: 0.22rem 1.25rem 0.22rem 0.45rem;
    border-radius: 0.55rem;
    font-size: 0.64rem;
  }

  body[data-storefront-kind='scrapbooks'] .storefront-toolbar > div,
  body[data-storefront-kind='templates'] .storefront-toolbar > div,
  body[data-storefront-kind='blocks3d'] .storefront-toolbar > div {
    gap: 0.6rem !important;
  }

  body[data-storefront-kind='scrapbooks'] .storefront-toolbar .flex.flex-col,
  body[data-storefront-kind='templates'] .storefront-toolbar .flex.flex-col,
  body[data-storefront-kind='blocks3d'] .storefront-toolbar .flex.flex-col {
    gap: 0.35rem !important;
  }

  body[data-storefront-kind] .storefront-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
  }

  .plugin-card,
  .resource-card {
    min-width: 0;
    border-radius: 0.8rem !important;
    box-shadow: 0 0.3rem 0.9rem rgb(15 23 42 / 6%) !important;
  }

  .plugin-card:hover,
  .resource-card:hover {
    transform: none;
  }

  .plugin-card-cover,
  .resource-cover-wrapper {
    aspect-ratio: 4 / 3;
  }

  .plugin-card-cover img,
  .resource-cover-img {
    transform: none !important;
  }

  .plugin-status {
    top: 0.4rem;
    left: 0.4rem;
    padding: 0.18rem 0.35rem;
    font-size: 0.48rem;
    letter-spacing: 0.05em;
  }

  .plugin-card-body,
  .resource-card-body {
    padding: 0.62rem !important;
  }

  .plugin-category,
  .resource-card-badges {
    display: none !important;
  }

  .plugin-card-title,
  .resource-card-title {
    display: -webkit-box;
    min-height: 2.45em;
    margin-top: 0 !important;
    overflow: hidden;
    font-size: 0.78rem !important;
    line-height: 1.22 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .plugin-commerce {
    margin-top: auto;
    padding-top: 0.5rem;
  }

  .plugin-card .plugin-offer-box {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .plugin-card .plugin-offer-box label,
  .plugin-card .plugin-offer-box select,
  .plugin-card-state-description,
  .plugin-card-feedback {
    display: none !important;
  }

  .plugin-card-state,
  .plugin-card-free-price {
    margin: 0 !important;
    font-size: 0.6rem !important;
    line-height: 1.2 !important;
  }

  .plugin-card-price-area {
    min-height: 0 !important;
    margin-top: 0 !important;
  }

  .plugin-card-price-label {
    margin-bottom: 0.12rem;
    font-size: 0.52rem !important;
    line-height: 1.1;
  }

  .plugin-card-price-label[hidden] { display: none !important; }

  .plugin-card-description,
  .resource-card-description {
    margin-top: 0.35rem !important;
    font-size: 0.66rem !important;
    line-height: 1.35 !important;
  }

  .plugin-benefits { margin-top: 0.4rem; }
  .plugin-benefits li { font-size: 0.62rem; }
  .plugin-card-compatibility { margin-top: 0.4rem !important; font-size: 0.55rem !important; }
  .plugin-card-policy, .plugin-card-policy-link { margin-top: 0.4rem !important; font-size: 0.58rem !important; }

  .plugin-price {
    font-size: 0.94rem;
    line-height: 1.1;
  }

  .plugin-from-price {
    font-size: 0.55rem;
  }

  .plugin-card .plugin-primary-action,
  .plugin-card .plugin-secondary-action,
  .resource-card-action {
    min-height: 2.2rem;
    justify-content: center;
    border-radius: 0.58rem !important;
    padding: 0.42rem 0.4rem !important;
    font-size: 0.62rem !important;
    line-height: 1.15;
    text-align: center;
  }

  .plugin-card .plugin-primary-action {
    margin-top: 0.45rem !important;
  }

  .plugin-card .plugin-primary-action ~ .plugin-secondary-action {
    display: none !important;
  }

  .resource-card-commerce {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
    margin-top: 0.55rem !important;
    padding-top: 0.55rem !important;
  }

  .resource-card-price > span:first-child {
    font-size: 0.55rem !important;
  }

  .resource-card-price > span:last-child {
    font-size: 0.92rem !important;
    line-height: 1.1;
  }

  .resource-card-action {
    display: inline-flex;
    width: 100%;
  }

  .resource-card-price .line-through {
    font-size: 0.55rem !important;
  }

  .catalog-pagination-shell {
    margin-top: 1.1rem;
  }

  .catalog-pagination {
    gap: 0.3rem;
  }

  .catalog-pagination-button {
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.6rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-mobile-category-link,
  .storefront-bottom-action,
  .storefront-sheet-backdrop,
  .storefront-sheet-panel,
  .plugin-card,
  .resource-card {
    scroll-behavior: auto;
    transition: none !important;
  }
}
