/* DW-STORE | Mobile app-inspired shopper layout, 2026-10-09.
 * Scoped to the public store. No offers, inventory or pricing are invented.
 * Large-screen pages retain the accepted desktop storefront.
 */
.store-mobile-search,
.store-mobile-feature,
.store-mobile-categories,
.store-mobile-products-heading,
.store-mobile-bottom-nav {
  display:none;
}
.store-mobile-product-controls {display:contents;}

@media (max-width:620px) {
  .public-store-page {background:#f6f7fa;color:#10243e;}
  .public-store-page .public-store-shell {
    padding:7px 10px calc(77px + env(safe-area-inset-bottom));
  }
  .public-store-page .public-store-brand {
    gap:6px;min-height:37px;margin:0 0 4px;
  }
  .public-store-page .public-store-brand img {
    width:36px;height:36px;border-radius:10px;
  }
  .public-store-page .public-store-brand strong {
    font-size:16px;letter-spacing:-.2px;
  }
  .public-store-page .public-store-brand span {
    margin:0;font-size:9px;line-height:1.25;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  .public-store-page .public-cart-pill {
    min-height:34px;padding:6px 8px;font-size:11px;
    border-color:#dce4ef;
  }

  /* Search lives above every promotional/catalog element. GET-only and
     preserves the already validated attribution and filter parameters. */
  .public-store-page .store-mobile-search {
    display:flex;align-items:center;gap:7px;min-width:0;height:34px;
    box-sizing:border-box;padding:4px 5px 4px 9px;
    margin:0 0 5px;background:#fff;border:1px solid #e4e8ef;
    border-radius:11px;box-shadow:0 2px 8px rgba(16,36,62,.035);
  }
  .public-store-page .store-mobile-search:focus-within {
    border-color:#315b85;outline:1px solid #315b85;
  }
  .public-store-page .store-mobile-search-icon {
    width:17px;height:17px;flex:0 0 auto;color:#75839b;
  }
  .public-store-page .store-mobile-search input[type="search"] {
    flex:1;min-width:0;width:100%;height:29px;
    padding:4px 0;border:0;outline:0;background:transparent;
    font-size:12px;color:#0f1f35;
  }
  .public-store-page .store-mobile-search input[type="search"]::placeholder {
    color:#8391a2;opacity:1;
  }
  .public-store-page .store-mobile-search button {
    min-height:26px;flex:0 0 auto;padding:4px 9px;border:0;
    border-radius:8px;background:#193b60;color:#fff;font-size:11px;
  }

  /* A compact editorial panel using real catalog media, never fabricated
     promotion badges or advertised discounts. */
  .public-store-page .store-mobile-feature {
    display:flex;align-items:stretch;overflow:hidden;
    height:78px;max-height:78px;min-width:0;position:relative;
    margin:0 0 6px;border:1px solid #e4e5e9;border-radius:12px;
    background:linear-gradient(118deg,#f6eee2 0%,#fff9ec 70%,#fff 100%);
  }
  .public-store-page .store-mobile-feature-copy {
    flex:1;min-width:0;display:flex;flex-direction:column;
    align-items:flex-start;justify-content:center;gap:3px;
    position:relative;z-index:1;padding:6px 9px;
  }
  .public-store-page .store-mobile-feature-copy>span {
    font-size:9px;color:#9e6523;font-weight:700;
  }
  .public-store-page .store-mobile-feature-copy h1 {
    margin:0;color:#16263c;font-size:14px;line-height:1.3;
    font-weight:900;max-width:190px;
  }
  .public-store-page .store-mobile-feature-copy a {
    display:inline-flex;align-items:center;gap:4px;max-width:100%;
    background:#cc8d27;color:#fff;padding:4px 8px;border-radius:7px;
    font-size:10px;font-weight:800;white-space:nowrap;
  }
  .public-store-page .store-mobile-feature-photo {
    display:block;flex:0 0 39%;min-width:0;height:100%;
    overflow:hidden;background:#ece6de;
  }
  .public-store-page .store-mobile-feature-photo img {
    display:block;width:100%;height:100%;
    object-fit:cover;object-position:center 22%;
  }
  .public-store-page .store-mobile-feature-empty {
    flex:0 0 30%;display:grid;place-items:center;
    font-size:34px;color:#b9aa8d;background:#f2e5d2;
  }

  /* The original large sections still exist for desktop and for
     backwards-compatible category picker tests, but never occupy mobile space. */
  .public-store-page .public-shop-hero,
  .public-store-page .store-discovery {display:none!important;}
  .public-store-page .store-mobile-categories {
    display:block;position:relative;margin:0 0 4px;
    padding:0 0 2px;min-width:0;
  }
  .public-store-page .store-mobile-categories-heading {
    display:flex;justify-content:space-between;
    align-items:center;gap:7px;margin:0 1px 2px;
  }
  .public-store-page .store-mobile-categories-heading h2 {
    margin:0;font-size:13px;line-height:1.3;color:#102b49;
  }
  .public-store-page .store-mobile-category-more>summary {
    list-style:none;cursor:pointer;font-size:10px;
    font-weight:800;color:#9d691d;padding:3px 4px;
  }
  .public-store-page .store-mobile-category-more>summary::-webkit-details-marker {display:none;}
  .public-store-page .store-mobile-category-more[open]>summary {
    background:#fff3e0;border-radius:6px;
  }
  .public-store-page .store-mobile-category-menu {
    position:absolute;z-index:25;inset-inline:0;top:23px;
    max-height:205px;overflow-y:auto;display:grid;gap:2px;
    padding:7px;background:#fff;border:1px solid #d8e3ed;
    border-radius:12px;box-shadow:0 10px 24px rgba(24,48,76,.17);
  }
  .public-store-page .store-mobile-category-menu a {
    display:flex;justify-content:space-between;gap:6px;
    padding:9px 10px;color:#193b60;font-size:12px;
    border-radius:7px;background:#fafbfd;
  }
  .public-store-page .store-mobile-category-menu a[aria-current="page"] {
    background:#eef4fa;color:#0c385f;font-weight:800;
  }
  .public-store-page .store-mobile-category-menu a span {
    flex:0 0 auto;color:#71809a;
  }
  .public-store-page .store-mobile-category-circles {
    display:flex;flex-direction:row;flex-wrap:nowrap;gap:7px;
    margin:0 -2px;padding:0 2px 2px;min-height:61px;
    overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:thin;
  }
  .public-store-page .store-mobile-category-item {
    display:flex;flex-direction:column;align-items:center;
    flex:0 0 58px;gap:2px;min-width:0;max-width:58px;
    padding:1px 0;background:transparent;color:#354560;
    text-align:center;font-size:10px;line-height:1.35;
  }
  .public-store-page .store-mobile-category-item:hover {
    background:transparent;color:#193b60;
  }
  .public-store-page .store-mobile-category-item>span:last-child {
    max-width:100%;overflow:hidden;text-overflow:ellipsis;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
    font-size:10px;line-height:1.35;
  }
  .public-store-page .store-mobile-category-photo {
    display:grid;place-items:center;width:40px;height:40px;
    flex:0 0 40px;overflow:hidden;border-radius:50%;
    border:2px solid #e8e9ec;background:#efe9e2;
    color:#315676;font-size:19px;font-weight:900;
  }
  .public-store-page .store-mobile-category-photo img {
    display:block;width:100%;height:100%;
    object-fit:cover;object-position:center top;
  }
  .public-store-page .store-mobile-all-icon {
    background:#edf2f7;color:#173b61;
  }
  .public-store-page .store-mobile-all-icon svg {
    width:21px;height:21px;
  }
  .public-store-page .store-mobile-category-item.is-active {
    font-weight:800;color:#173b61;
  }
  .public-store-page .store-mobile-category-item.is-active .store-mobile-category-photo {
    border-color:#d59d3d;box-shadow:0 0 0 2px #fff4de;
  }

  /* Compact category/social landing: don't put an extra large card ahead of
     the originating product when a shopper enters from a campaign link. */
  .public-store-page .store-breadcrumbs {font-size:10px;margin:0 0 4px;}
  .public-store-page .store-section-title {display:none;}
  .public-store-page .store-section-title+.store-category-nav {
    margin:0 0 4px;gap:4px;
  }
  .public-store-page .store-section-title+.store-category-nav .store-category-chip {
    font-size:10px;padding:5px 8px;
  }
  .public-store-page .store-campaign-landing {
    margin:2px 0 5px;padding:6px 8px;border-radius:9px;
  }
  .public-store-page .store-campaign-landing strong {font-size:11px;}
  .public-store-page .store-campaign-landing>a {
    min-height:30px;padding:7px;font-size:10px;
  }

  /* Product title + compact sort/filter control on the same visual row. */
  .public-store-page .store-mobile-products-heading {
    display:flex;align-items:center;justify-content:space-between;
    gap:8px;margin:0;
  }
  .public-store-page .store-mobile-products-heading h2 {
    margin:0;font-size:15px;line-height:1.4;
  }
  .public-store-page .store-mobile-products-heading>span {display:none;}
  .public-store-page .store-mobile-product-controls {
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;gap:4px;align-items:center;
    margin:0 0 5px;
  }
  .public-store-page .store-mobile-filter-label {
    grid-column:2;grid-row:1;display:flex;
    margin:0;min-height:27px;height:27px;box-sizing:border-box;
    padding:4px 8px;gap:3px;border:1px solid #dce3ed;
    border-radius:8px;background:#fff;font-size:10px;
    white-space:nowrap;color:#193b60;
  }
  .public-store-page .store-mobile-filter-label::after {
    content:"";display:none;
  }
  .public-store-page .store-mobile-filter-label small {
    font-size:9px;color:#9d691d;
  }
  .public-store-page .store-filter-form {
    grid-column:1/-1;grid-row:2;
    margin:0 0 2px;
    border-radius:9px;
  }
  .public-store-page .store-shop-results-bar {display:none;}
  .public-store-page .store-shop-results-bar .store-count {
    display:none;
  }
  .public-store-page .store-mobile-sort-form {
    gap:4px;justify-content:flex-start;min-width:0;
  }
  .public-store-page .store-mobile-sort-form label {
    font-size:10px;color:#63758c;
  }
  .public-store-page .store-mobile-sort-form select {
    max-width:95px;min-height:31px;padding:5px 3px;
    font-size:10px;border-radius:8px;
  }
  .public-store-page .store-mobile-sort-form button {
    min-height:31px;padding:5px 7px;
    font-size:10px;border-radius:8px;
  }

  .public-store-page .public-shop-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  }
  .public-store-page .public-shop-product {
    min-width:0;overflow:hidden;border-radius:12px;
    border:1px solid #e5e8ee;box-shadow:0 3px 13px rgba(17,37,61,.045);
  }
  .public-store-page .public-shop-image {
    aspect-ratio:1/1;background:#f1f3f6;
  }
  .public-store-page .public-shop-product-body {
    display:grid;gap:5px;padding:8px;
    min-width:0;flex:1;
  }
  .public-store-page .public-shop-product-body h2 {
    margin:0;min-height:31px;font-size:12px;line-height:1.35;
    color:#102b49;
  }
  .public-store-page .public-shop-product .public-price {
    font-size:16px;font-weight:900;white-space:nowrap;
  }
  .public-store-page .public-shop-stock {
    font-size:9px;padding:3px 7px;
  }
  .public-store-page .public-shop-product-link {
    min-height:34px;margin-top:auto;padding:7px 5px;
    border-radius:8px;background:#173b61;color:#fff;
    font-size:10px;line-height:1.2;
  }

  /* Only real destinations are shown: home, categories, search, cart.
     No decorative fake wishlist, discount, profile or payment actions. */
  .public-store-page .store-mobile-bottom-nav {
    position:fixed;inset-inline:0;bottom:0;z-index:40;
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
    align-items:stretch;min-height:53px;
    padding:6px 7px calc(5px + env(safe-area-inset-bottom));
    border-top:1px solid #e2e7ef;border-radius:13px 13px 0 0;
    background:rgba(255,255,255,.98);
    box-shadow:0 -7px 24px rgba(25,49,76,.09);
    backdrop-filter:blur(9px);
  }
  .public-store-page .store-mobile-bottom-nav a {
    display:flex;flex-direction:column;justify-content:center;
    align-items:center;gap:3px;min-width:0;
    padding:2px;color:#718199;font-weight:700;
    font-size:9px;line-height:1.1;border-radius:9px;
  }
  .public-store-page .store-mobile-bottom-nav a svg {
    width:19px;height:19px;flex:0 0 19px;
  }
  .public-store-page .store-mobile-bottom-nav a.is-active {
    color:#173b61;background:#eef4fa;
  }
  .public-store-page .store-mobile-bottom-nav a:focus-visible,
  .public-store-page .store-mobile-category-item:focus-visible,
  .public-store-page .store-mobile-category-more>summary:focus-visible {
    outline:2px solid #ba882e;outline-offset:1px;
  }
  .public-store-page #store-categories,
  .public-store-page #store-products,
  .public-store-page #store-search {scroll-margin-top:12px;}
}
@media(max-width:359px) {
  .public-store-page .public-shop-grid {
    grid-template-columns:minmax(0,1fr);
  }
  .public-store-page .store-mobile-feature-copy h1 {font-size:13px;}
  .public-store-page .store-mobile-feature-photo {flex-basis:36%;}
  .public-store-page .store-mobile-sort-form label {display:none;}
}
