/* Side advertisements sit outside the content column (which is exactly the header container) and are shown only
   when the screen has room for both; below that the content keeps its full width and stays aligned with the logo. */
@media(min-width:1880px) {
  .marketplace-shell {
    grid-template-columns:130px minmax(0,var(--container-width)) 130px;
    justify-content:center;
    padding:0;
    gap:20px
  }
  /* Explicit columns: the page keeps its width even when a side ad is missing. */
  .marketplace-shell>.side-ad.left {
    grid-column:1;
    grid-row:1
  }
  .marketplace-shell>.marketplace-main {
    grid-column:2;
    grid-row:1
  }
  .marketplace-shell>.side-ad.right {
    grid-column:3;
    grid-row:1
  }
  .side-ad {
    display:flex;
    position:sticky;
    top:150px;
    align-self:start;
    flex-direction:column;
    align-items:flex-start;
    background:#e8edf3;
    margin-top:46px;
    padding:24px 15px 18px;
    border-radius:8px;
    overflow:hidden;
    min-height:485px
  }
  .side-ad.right {
    background:#efece6
  }
  .side-ad .eyebrow {
    font-size:7px;
    letter-spacing:1px
  }
  .side-ad h2 {
    font-size:23px;
    margin-top:20px;
    line-height:1.2
  }
  .side-ad img {
    width:160px;
    max-width:none;
    margin:18px -30px 5px
  }
  .side-ad p {
    font-size:11px;
    line-height:1.7
  }
  .side-ad a {
    font-size:10px;
    font-weight:600;
    color:var(--color-primary);
    margin-top:20px
  }
  .side-ad a>span {
    display:block;
    margin-top:8px
  }
  .side-ad>small {
    font-size:7px;
    color:#9aa2ab;
    margin-top:auto;
    padding-top:25px
  }
  .listing-grid {
    grid-template-columns:repeat(5,minmax(0,1fr))
  }
}

@media(min-width:2100px) {
  .marketplace-shell {
    max-width:1930px;
    grid-template-columns:140px minmax(0,1fr) 140px;
    gap:25px
  }
}

@media(max-width:1399px) {
  .header-main {
    gap:22px
  }
  .nav-row {
    gap:25px
  }
  .nav-note {
    display:none
  }
  .hero-copy {
    padding:33px 0 0 27px
  }
  .hero-copy h1 {
    font-size:32px
  }
  .hero-copy p {
    font-size:11px
  }
  .hero-art {
    width:57%;
    right:-2%
  }
  .product-grid {
    grid-template-columns:repeat(5,minmax(0,1fr))
  }
  .product-grid:not(.listing-grid)>.product-card:nth-child(6) {
    display:none
  }
  .catalog-card {
    grid-template-columns:110px minmax(0,1fr);
    padding:14px;
    gap:16px
  }
  .catalog-card>div:last-child h3 {
    font-size:14px
  }
  .section-heading h2 {
    font-size:21px
  }
  .basket-item {
    gap:12px;
    grid-template-columns:65px minmax(0,1fr) 95px 75px 22px
  }
  .basket-item img {
    width:65px
  }
  .basket-layout {
    grid-template-columns:minmax(0,1fr) 310px
  }
  .footer-grid {
    gap:20px
  }
}

@media(max-width:1199px) {
  .container {
    width:calc(100% - 40px)
  }
  .marketplace-shell {
    padding:0 20px
  }
  /* the contact pill becomes two round icon buttons; the number and the address stay in the accessible name */
  .header-contact {
    flex-direction:row;
    gap:8px;
    padding:0;
    border:0;
    background:none
  }
  .header-contact .contact-link {
    justify-content:center;
    width:38px;
    height:38px;
    border:1px solid var(--color-border);
    border-radius:50%;
    background:var(--color-primary-light)
  }
  .header-contact .contact-link:hover {
    border-color:var(--color-primary)
  }
  .header-contact .contact-link .icon {
    width:18px;
    height:18px
  }
  .header-contact .contact-link span:not(.sr-only) {
    position:absolute;
    width:1px;
    height:1px;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap
  }
  .header-main {
    gap:20px
  }
  .nav-row {
    gap:24px
  }
  .logo,.categories-toggle {
    flex-basis:175px;
    min-width:175px
  }
  .logo img {
    width:175px
  }
  .hero-copy h1 {
    font-size:27px
  }
  .hero-copy {
    padding:31px 0 0 24px;
    width:62%
  }
  .hero-copy p {
    max-width:235px
  }
  .hero-copy .eyebrow {
    font-size:8px
  }
  .hero-footnote {
    font-size:8px
  }
  .hero-art {
    width:56%;
    right:-4%;
    bottom:-10%
  }
  .product-grid {
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
  .product-grid:not(.listing-grid)>.product-card:nth-child(5) {
    display:none
  }
  .business-banner h2 {
    font-size:21px
  }
  .business-banner {
    gap:18px;
    padding:24px
  }
  .business-icon {
    display:none
  }
  .catalog-grid {
    gap:14px
  }
  .catalog-card {
    grid-template-columns:1fr
  }
  .catalog-cover {
    height:155px
  }
  .catalog-cover img {
    width:150px;
    right:0;
    height:140px
  }
  .catalog-cover-title {
    max-width:120px;
    font-size:17px
  }
  .catalog-card>div:last-child h3 {
    font-size:15px;
    margin-bottom:10px
  }
  .footer-grid {
    grid-template-columns:1.25fr 1fr 1fr 1.2fr
  }
  .footer-grid>div:last-child {
    grid-column:1/-1;
    display:flex;
    gap:25px;
    align-items:center
  }
  .footer-grid>div:last-child h2 {
    margin:0
  }
  .footer-grid>div:last-child small {
    margin-left:auto;
    max-width:170px
  }
  .product-detail {
    gap:35px
  }
  .product-summary h1 {
    font-size:29px
  }
  .basket-layout {
    grid-template-columns:minmax(0,1fr) 280px;
    gap:16px
  }
  .basket-panel {
    padding:20px
  }
  .basket-item {
    grid-template-columns:60px minmax(0,1fr) 80px 25px
  }
  .basket-item .quantity-control {
    grid-column:2;
    width:105px;
    grid-row:2
  }
  .basket-item .item-total {
    grid-column:3;
    grid-row:1/3
  }
  .basket-item .remove-item {
    grid-column:4;
    grid-row:1/3
  }
  .basket-item img {
    grid-row:1/3
  }
  .basket-item h3 {
    font-size:12px
  }
  .three-columns {
    gap:16px
  }
  .panel {
    padding:23px
  }
}

@media(max-width:991px) {
  .header-main {
    height:72px
  }
  .header-nav .nav-row {
    gap:22px
  }
  .header-nav .nav-row>a:nth-last-of-type(2),.header-nav .nav-row>a:last-of-type {
    display:none
  }
  .basket-shortcut {
    padding-left:16px
  }
  .hero-copy {
    padding:35px 0 0 32px;
    width:57%
  }
  .hero-copy h1 {
    font-size:35px
  }
  .hero-copy p {
    font-size:12px;
    max-width:320px
  }
  .hero-art {
    width:56%;
    right:0;
    bottom:-5%
  }
  .benefit-strip {
    gap:10px;
    padding:20px 0
  }
  .benefit-strip>.benefit-item {
    gap:8px
  }
  .benefit-strip strong {
    font-size:12px
  }
  .benefit-strip small {
    font-size:11px
  }
  .benefit-strip .icon {
    width:21px;
    height:21px
  }
  .product-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .product-grid:not(.listing-grid)>.product-card:nth-child(4) {
    display:none
  }
  .business-banner h2 {
    font-size:19px
  }
  .business-banner p {
    font-size:11px;
    max-width:350px
  }
  .business-banner>.button {
    padding:10px 14px;
    font-size:10px
  }
  .blog-grid {
    gap:14px
  }
  .blog-card>div {
    padding:16px
  }
  .blog-card h3 {
    font-size:15px
  }
  .blog-card p {
    font-size:11px
  }
  .blog-meta {
    flex-wrap:wrap;
    gap:8px
  }
  .basket-layout {
    grid-template-columns:1fr
  }
  .request-summary {
    grid-column:1;
    grid-row:auto;
    position:static
  }
  .request-form-panel {
    grid-row:3
  }
  .request-summary>div {
    margin:13px 0
  }
  .request-summary>.info-note {
    margin-bottom:0
  }
  .basket-item {
    grid-template-columns:70px minmax(0,1fr) 110px 95px 25px
  }
  .basket-item .quantity-control {
    grid-column:3;
    grid-row:1/3
  }
  .basket-item .item-total {
    grid-column:4
  }
  .basket-item .remove-item {
    grid-column:5
  }
  .product-detail {
    gap:25px
  }
  .product-summary h1 {
    font-size:26px
  }
  .detail-meta {
    gap:10px;
    font-size:11px
  }
  .product-information {
    grid-template-columns:1fr 1fr
  }
  .three-columns {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .about-hero {
    padding:30px
  }
  .about-hero h1 {
    font-size:30px
  }
  .about-hero p {
    font-size:13px
  }
  .contact-layout {
    grid-template-columns:1fr 1.3fr
  }
  .form-grid {
    gap:17px
  }
  .contact-layout .form-grid {
    grid-template-columns:1fr
  }
  .footer-bottom {
    flex-wrap:wrap
  }
  .footer-bottom>span:nth-child(2) {
    order:3;
    width:100%
  }
}

@media(max-width:767px) {
  :root {
    --header-height:116px
  }
  html {
    scroll-padding-top:130px
  }
  .container {
    width:calc(100% - 32px)
  }
  .header-main {
    height:112px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:8px 15px;
    align-content:center;
    padding:10px 0
  }
  .logo {
    grid-column:1;
    grid-row:1;
    width:153px
  }
  .logo img {
    width:153px
  }
  .search {
    grid-column:1;
    grid-row:2;
    width:100%;
    margin-top:5px
  }
  .search input {
    height:37px;
    font-size:12px
  }
  .search>button {
    width:43px
  }
  .language-switcher,.header-nav {
    display:none
  }
  /* the two contact icons sit at the end of the search row, so the logo row keeps its original widths */
  .header-contact {
    grid-column:2/4;
    grid-row:2;
    justify-self:end;
    gap:6px;
    margin-top:5px
  }
  .header-contact .contact-link {
    width:37px;
    height:37px
  }
  .basket-shortcut {
    grid-column:2;
    grid-row:1;
    border:0;
    padding:0
  }
  .basket-shortcut>span:not(.basket-count) {
    display:none
  }
  .basket-shortcut>.icon {
    width:23px;
    height:23px
  }
  .basket-count {
    min-width:17px;
    height:17px;
    font-size:9px
  }
  .mobile-menu-toggle {
    display:grid;
    grid-column:3;
    grid-row:1;
    width:30px;
    height:30px
  }
  .marketplace-shell {
    padding:0 16px
  }
  .hero-copy {
    padding:30px 0 0 23px;
    width:64%
  }
  .hero-copy h1 {
    font-size:30px;
    margin:15px 0 12px;
    letter-spacing:-.8px
  }
  .hero-copy p {
    font-size:11px;
    max-width:240px
  }
  .hero-copy .button {
    font-size:11px;
    min-height:38px;
    padding:9px 13px;
    margin-top:19px
  }
  .hero-copy .eyebrow {
    font-size:7px;
    letter-spacing:1px
  }
  .hero-art {
    width:56%;
    right:-5%;
    bottom:-8%
  }
  .hero-footnote {
    font-size:8px
  }
  .hero-index {
    font-size:8px;
    bottom:13px;
    right:13px
  }
  .benefit-strip {
    grid-template-columns:1fr 1fr;
    gap:16px;
    padding:19px 4px
  }
  .benefit-strip>.benefit-item {
    justify-content:flex-start;
    gap:12px
  }
  .benefit-strip>.benefit-item:nth-child(2) {
    border:0
  }
  .benefit-strip strong {
    font-size:13px
  }
  .benefit-strip small {
    font-size:11px
  }
  .category-icon {
    width:35px;
    height:35px
  }
  .category-icon .icon {
    width:23px;
    height:23px
  }
  .home-section {
    margin-top:27px
  }
  .section-heading {
    gap:10px;
    margin-bottom:14px
  }
  .section-heading h2 {
    font-size:19px;
    letter-spacing:-.4px
  }
  .section-heading p {
    font-size:10px
  }
  .section-heading>a {
    font-size:10px
  }
  .product-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px
  }
  .product-info {
    padding:11px 10px 10px
  }
  .product-info h3 {
    font-size:11px;
    min-height:33px
  }
  .product-price {
    gap:4px
  }
  .product-price strong {
    font-size:16px
  }
  .product-price small {
    font-size:8px;
    margin-left:0
  }
  .product-price del {
    font-size:9px
  }
  .add-button {
    font-size:9px
  }
  .business-banner {
    padding:22px;
    flex-wrap:wrap;
    gap:15px
  }
  .business-banner h2 {
    font-size:21px
  }
  .business-banner>.button {
    margin-left:0
  }
  .business-banner p {
    font-size:11px;
    max-width:none
  }
  .catalog-grid {
    grid-template-columns:1fr;
    gap:14px
  }
  .catalog-card {
    grid-template-columns:130px 1fr;
    padding:16px
  }
  .catalog-cover {
    height:165px
  }
  .catalog-card>div:last-child h3 {
    font-size:18px
  }
  .catalog-card>div:last-child a {
    font-size:11px
  }
  .blog-grid {
    grid-template-columns:1fr;
    gap:17px
  }
  .blog-card {
    display:grid;
    grid-template-columns:42% 1fr
  }
  .blog-card>a {
    height:100%;
    aspect-ratio:auto;
    min-height:180px
  }
  .blog-card>div {
    padding:18px
  }
  .blog-card h3 {
    font-size:16px
  }
  .blog-card p {
    font-size:11px
  }
  .blog-meta {
    margin-top:12px;
    font-size:9px
  }
  .seo-copy {
    padding:27px 0
  }
  .seo-copy h2 {
    font-size:16px
  }
  .seo-copy p {
    font-size:11px
  }
  .footer-grid {
    grid-template-columns:1fr 1fr;
    gap:30px
  }
  .footer-intro {
    grid-column:1/-1
  }
  .footer-intro img {
    width:175px;
    margin-bottom:14px
  }
  .footer-grid>div:last-child {
    display:block;
    grid-column:auto
  }
  .footer-grid>div:last-child h2 {
    margin:3px 0 17px
  }
  .footer-grid>div:last-child small {
    display:block
  }
  .footer-bottom {
    font-size:9px;
    gap:15px
  }
  .page-content {
    padding-top:19px;
    padding-bottom:35px
  }
  .breadcrumbs {
    font-size:10px;
    margin-bottom:20px
  }
  .page-heading h1 {
    font-size:29px
  }
  .page-heading p {
    font-size:13px
  }
  .product-detail {
    grid-template-columns:1fr;
    gap:25px
  }
  .product-summary h1 {
    font-size:29px
  }
  .product-information {
    grid-template-columns:1fr
  }
  .basket-item {
    grid-template-columns:60px minmax(0,1fr) 80px 25px;
    gap:10px
  }
  .basket-item .quantity-control {
    grid-column:2;
    grid-row:2
  }
  .basket-item .item-total {
    grid-column:3
  }
  .basket-item .remove-item {
    grid-column:4
  }
  .form-grid {
    gap:16px
  }
  .consent {
    font-size:11px
  }
  .request-form-panel {
    padding:22px
  }
  .confirmation {
    padding:33px 23px;
    margin:20px auto
  }
  .confirmation h1 {
    font-size:29px
  }
  .contact-layout {
    grid-template-columns:1fr
  }
  .contact-layout .form-grid {
    grid-template-columns:1fr 1fr
  }
  .contact-information dl {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px 18px
  }
  .contact-information dt {
    margin-top:8px;
    grid-column:1
  }
  .contact-information dd {
    grid-column:2
  }
  .map-placeholder {
    height:140px
  }
  .about-hero {
    grid-template-columns:1fr;
    padding:27px
  }
  .about-hero img {
    max-height:220px;
    margin:auto
  }
  .about-hero h1 {
    font-size:32px
  }
  .three-columns {
    grid-template-columns:1fr 1fr
  }
  .three-columns .panel {
    padding:20px
  }
  .three-columns h2 {
    font-size:19px
  }
  .three-columns p {
    font-size:12px
  }
  .article h1 {
    font-size:30px
  }
  .article-intro {
    font-size:15px
  }
  .article section p {
    font-size:14px
  }
  .toast {
    font-size:12px;
    bottom:15px
  }
}

@media(max-width:479px) {
  .hero-copy {
    padding:25px 0 0 20px;
    width:88%
  }
  .hero-copy h1 {
    font-size:29px;
    line-height:1.15;
    max-width:270px
  }
  .hero-copy p {
    font-size:10px;
    max-width:225px;
    line-height:1.7
  }
  .hero-copy .button {
    margin-top:15px;
    font-size:10px;
    padding:8px 12px;
    min-height:36px
  }
  .hero-art {
    width:58%;
    height:62%;
    right:-7%;
    bottom:-6%;
    opacity:.98
  }
  .hero-copy .hero-footnote {
    max-width:130px;
    line-height:1.5;
    font-size:8px;
    margin-top:12px
  }
  .hero-index {
    display:none
  }
  .category-icon {
    width:32px;
    height:32px
  }
  .category-icon .icon {
    width:22px;
    height:22px
  }
  .section-heading h2 {
    font-size:18px
  }
  .section-heading p {
    font-size:10px;
    max-width:220px
  }
  .section-heading>a {
    font-size:9px;
    white-space:normal;
    text-align:right;
    max-width:80px;
    flex-shrink:0
  }
.product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px
  }
  .product-grid:not(.listing-grid)>.product-card:nth-child(4) {
    display:flex
  }
  .product-image {
    aspect-ratio:1.12;
    margin:5px 5px 0
  }
  .product-info h3 {
    font-size:11px
  }
  .product-brand {
    font-size:7px
  }
  .product-brand .product-code {
    font-size:9px
  }
  .product-meta {
    font-size:8px
  }
  .product-price {
    margin:10px 0
  }
  .product-price strong {
    font-size:16px
  }
  .product-price small {
    font-size:8px
  }
  .product-price del {
    font-size:9px
  }
  .add-button {
    font-size:10px;
    min-height:35px
  }
  .business-banner {
    padding:22px 20px
  }
  .business-banner h2 {
    font-size:22px
  }
  .business-banner .eyebrow {
    font-size:8px
  }
  .business-banner p {
    line-height:1.7
  }
  .blog-card {
    display:block
  }
  .blog-card>a {
    display:block;
    aspect-ratio:1.9;
    min-height:0
  }
  .blog-card h3 {
    font-size:18px
  }
  .blog-card p {
    font-size:12px
  }
  .blog-card>div {
    padding:20px
  }
  .blog-meta {
    margin-top:16px;
    justify-content:space-between
  }
  .catalog-card {
    grid-template-columns:110px 1fr;
    gap:17px
  }
  .catalog-card>div:last-child h3 {
    font-size:16px
  }
  .catalog-cover-title {
    font-size:14px
  }
  .catalog-cover {
    height:160px
  }
  .footer-grid {
    gap:25px 20px
  }
  .footer-grid h2 {
    font-size:12px
  }
  .footer-grid>div>a:not(:first-child) {
    font-size:11px
  }
  .footer-grid p {
    font-size:11px
  }
  .footer-bottom>span:nth-child(2) {
    font-size:8px
  }
  .page-heading h1 {
    font-size:27px
  }
  .page-heading p {
    font-size:12px
  }
  .form-grid,.contact-layout .form-grid {
    grid-template-columns:1fr
  }
  .basket-item {
    grid-template-columns:50px minmax(0,1fr) 65px 18px;
    gap:8px
  }
  .basket-item img {
    width:50px
  }
  .basket-item h3 {
    font-size:11px
  }
  .basket-item p {
    font-size:9px
  }
  .basket-item .item-total {
    font-size:12px
  }
  .basket-item .quantity-control {
    width:93px
  }
  .basket-item .remove-item {
    padding:0
  }
  .basket-panel {
    padding:16px
  }
  .basket-panel h2 {
    font-size:17px
  }
  .request-form-panel {
    padding:20px
  }
  .panel {
    padding:21px
  }
  .three-columns {
    grid-template-columns:1fr
  }
  .contact-information dl {
    display:block
  }
  .contact-information dt {
    margin-top:20px
  }
  .product-summary h1 {
    font-size:27px
  }
  .detail-price strong {
    font-size:29px
  }
  .breadcrumbs li:last-child {
    max-width:260px
  }
  .confirmation h1 {
    font-size:26px
  }
  .confirmation p {
    font-size:13px
  }
  .prose h1 {
    font-size:29px
  }
  .article h1 {
    font-size:28px
  }
  .footer-grid>div:last-child small {
    font-size:9px
  }
}

@media(max-width:359px) {
  .container {
    width:calc(100% - 24px)
  }
  .marketplace-shell {
    padding:0 12px
  }
  .hero-copy h1 {
    font-size:26px
  }
  .hero-copy {
    padding-left:16px
  }
  .hero-art {
    right:-10%;
    width:57%
  }
  .product-info {
    padding:10px 8px
  }
  .product-price {
    gap:3px
  }
  .product-price small {
    width:100%
  }
  .benefit-strip strong {
    font-size:12px
  }
  .benefit-strip small {
    font-size:10px
  }
  .section-heading h2 {
    font-size:17px
  }
  .basket-item {
    grid-template-columns:42px minmax(0,1fr) 60px 15px;
    gap:6px
  }
  .basket-item .item-total {
    font-size:11px
  }
  .catalog-card {
    grid-template-columns:95px 1fr
  }
  .hero-copy p {
    max-width:195px
  }
  .contact-information dd {
    font-size:12px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto;
    transition:none;
    animation:none
  }
}

@media print {
.site-header,
.site-footer,
.side-ad,
.toast,
.add-button {
    display:none
  }
  .container {
    width:100%
  }
  .page-content {
    padding:0
  }
  .panel {
    break-inside:avoid
  }
}

@media(min-width:1880px) {
  .inline-ads {
    display:none
  }
}

@media(max-width:767px) {
  .inline-ads {
    gap:12px
  }
  .inline-ads .side-ad {
    padding:17px;
    grid-template-columns:1fr 70px
  }
  .inline-ads h2 {
    font-size:18px
  }
  .inline-ads img {
    width:95px;
    margin-right:-20px
  }
  .inline-ads p {
    display:none
  }
  .product-brand {
    font-size:9px
  }
  .product-brand .product-code {
    font-size:11px
  }
  .product-meta {
    font-size:10px
  }
  .product-info h3 {
    font-size:12px
  }
  .add-button {
    font-size:11px
  }
}

@media(max-width:479px) {
  .inline-ads {
    grid-template-columns:1fr;
    gap:10px
  }
  .inline-ads .side-ad {
    grid-template-columns:1fr 90px;
    min-height:120px
  }
  .inline-ads h2 {
    font-size:20px
  }
  .inline-ads p {
    display:block;
    font-size:10px
  }
  .inline-ads img {
    width:105px
  }
  .product-brand {
    font-size:8px
  }
  .product-meta {
    font-size:9px
  }
  .product-price del {
    font-size:10px
  }
  .product-info h3 {
    font-size:12px;
    min-height:36px
  }
}

/* Tablet navigation uses the same drill-down interaction as phones. */
@media(max-width:1024px) {
  .header-main {
    height:128px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:8px 15px;
    align-content:center;
    padding:10px 0;
  }
  .header-main .logo {
    grid-column:1;
    grid-row:1;
    width:170px;
  }
  .header-main .logo img {
    width:170px;
  }
  .header-main .search {
    grid-column:1;
    grid-row:2;
    width:100%;
    margin-top:5px;
  }
  .header-main .search input {
    height:44px;
  }
  .header-main .search>button {
    width:44px;
  }
  .header-main .language-switcher, .header-nav, .mega-menu {
    display:none;
  }
  .header-main .header-contact {
    grid-column:2/4;
    grid-row:2;
    justify-self:end;
    margin-top:5px;
    gap:8px;
  }
  .header-main .header-contact .contact-link {
    width:44px;
    height:44px;
  }
  .header-main .basket-shortcut {
    grid-column:2;
    grid-row:1;
    border:0;
    padding:0;
    min-height:44px;
  }
  .header-main .basket-shortcut>span:not(.basket-count) {
    display:none;
  }
  .header-main .mobile-menu-toggle {
    display:grid;
    grid-column:3;
    grid-row:1;
    width:44px;
    height:44px;
  }
  .product-detail {
    gap:28px;
  }
  .purchase-panel {
    padding:20px;
  }
}

@media(min-width:768px) and (max-width:1024px) {
  .detail-actions {
    flex-wrap:wrap;
  }
  .detail-actions>.button {
    flex-basis:100%;
  }
}

@media(max-width:767px) {
  .gallery-main {
    aspect-ratio:1.3;
  }
  .gallery-zoom {
    padding:18px;
  }
  .gallery-thumbs button {
    flex-basis:70px;
  }
  .gallery-thumbs img {
    height:56px;
  }
  .gallery-lightbox {
    padding:14px;
  }
  .lightbox-heading {
    font-size:12px;
  }
  .lightbox-stage {
    height:55dvh;
  }
  .purchase-panel {
    padding:20px;
  }
  .variant-chip {
    padding-inline:10px;
  }
  .variant-choice input:checked+.variant-chip {
    padding-inline:9px;
  }
  .variant-selected {
    font-size:11px;
  }
}

@media(max-width:479px) {
  .drawer {
    padding:18px;
  }
  .gallery-main {
    aspect-ratio:1.2;
  }
  .gallery-arrow {
    width:44px;
    height:44px;
  }
  .gallery-arrow.previous {
    left:8px;
  }
  .gallery-arrow.next {
    right:8px;
  }
  .gallery-caption {
    font-size:11px;
  }
  .gallery>p {
    font-size:10px;
  }
  .purchase-panel {
    padding:17px;
  }
  .variant-chip {
    gap:6px;
    min-width:46px;
  }
  .detail-actions {
    gap:10px;
    flex-wrap:wrap;
  }
  .detail-actions>.button {
    min-width:150px;
    font-size:12px;
  }
  .mobile-category-heading h2 {
    font-size:18px;
  }
  .search-suggestions {
    padding:10px;
  }
  .search-suggestions a {
    padding:8px 4px;
    font-size:11px;
    gap:8px;
  }
}

@media(max-width:359px) {
  .detail-actions>.button {
    flex-basis:100%;
  }
  .variant-selected {
    width:100%;
    margin-left:0;
  }
}

@media(max-width:767px) {
  .add-button {
    min-height:44px;
  }
  .card-action .quantity-control {
    min-height:44px;
  }
  .card-action .quantity-control button {
    min-height:44px;
    min-width:40px;
  }
}

/* Tablet and phone: categories live in the drill-down drawer instead of the hero sidebar. */
@media(max-width:1024px) {
  .home-hero {
    display:block;
  }
  .home-hero .category-sidebar {
    display:none;
  }
}
