/* Native collection grids share the existing filters, cards and decoded views. */
.gear-shop-page.xfg-collection-page .xfg-collection-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    width:var(--accessories-shell);
    margin-inline:auto;
    gap:20px 18px;
}
.gear-shop-page.xfg-collection-page .xfg-collection-grid .xfg-shop-product {
    width:auto;
    min-width:0;
    margin:0;
    border:0;
    border-radius:3px;
    background:var(--shop-card,#242629);
}
.gear-shop-page.xfg-collection-page .xfg-collection-grid .xfg-shop-product > a {
    height:100%;
    padding-bottom:14px;
}
.gear-shop-page.xfg-collection-page .xfg-collection-grid .xfg-shop-product__media {
    position:relative;
    width:100%;
    aspect-ratio:1;
    min-height:0;
    background:var(--shop-photo,#ebe8e4);
}
.gear-shop-page.xfg-collection-page .xfg-collection-grid .xfg-shop-product :is(small,h3,p) {
    margin-inline:13px;
}
.gear-shop-page.xfg-collection-page .xfg-collection-grid .xfg-shop-product small {
    margin-top:12px;
    color:#cfcdc6;
    font-size:10px;
}
.gear-shop-page.xfg-collection-page .xfg-collection-grid .xfg-shop-product h3 {
    min-height:2.4em;
    margin-top:6px;
    font-size:20px;
    line-height:1.2;
}
.gear-shop-page.xfg-collection-page .xfg-collection-grid .xfg-shop-product p { display:none; }
@media(min-width:821px) and (max-width:1200px) {
    .gear-shop-page.xfg-collection-page .xfg-collection-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(min-width:561px) and (max-width:820px) {
    .gear-shop-page.xfg-collection-page .xfg-collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Category pages follow the same inset heading, toolbar and product columns. */
.gear-shop-page.xfg-accessories-page .xfg-collection-breadcrumb {
    display:flex; align-items:center; flex-wrap:wrap; gap:8px;
    width:var(--accessories-shell); margin:20px auto 14px;
    color:var(--shop-muted); font:500 10px/1.4 var(--shop-text); text-transform:uppercase;
}
.gear-shop-page.xfg-accessories-page .xfg-collection-breadcrumb a,
.gear-shop-page.xfg-accessories-page .xfg-collection-breadcrumb .xfg-accessories-back {
    margin:0; color:var(--shop-ink); font:inherit; text-decoration:none;
}
.gear-shop-page.xfg-accessories-page .xfg-collection-breadcrumb a:hover { text-decoration:underline; }
.gear-shop-page.xfg-accessories-page .xfg-accessories-intro {
    width:var(--accessories-shell); margin:0 auto; padding:28px 32px;
    border-radius:3px; background:var(--shop-panel);
}
.gear-shop-page.xfg-accessories-page .xfg-accessories-intro p { max-width:930px; }
.gear-shop-page.xfg-accessories-page .xfg-accessories-grid { gap:20px 18px; }
.gear-shop-page.xfg-accessories-page .xfg-accessory-card { border-radius:4px; }
.gear-shop-page.xfg-accessories-page .xfg-accessory-card > a { height:100%; }
.gear-shop-page.xfg-accessories-page .xfg-collection-pagination {
    display:flex; justify-content:center; width:var(--accessories-shell); margin:28px auto 0;
}
.gear-shop-page.xfg-accessories-page .xfg-collection-pagination[hidden] { display:none; }
.gear-shop-page.xfg-accessories-page .xfg-collection-load-more {
    display:inline-flex; align-items:center; justify-content:center; min-height:44px;
    padding:10px 20px; border:1px solid #ffd000; border-radius:2px;
    color:#151515; background:#ffd000; cursor:pointer;
    font:600 16px/1.3 var(--shop-display);
}
.gear-shop-page.xfg-accessories-page .xfg-collection-load-more:hover { background:#ffdc40; }
.gear-shop-page.xfg-accessories-page .xfg-collection-load-more:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.gear-shop-page.xfg-accessories-page [data-collection-description-toggle] {
    display:block; margin:10px 0 0; padding:0; border:0; background:transparent;
    color:var(--shop-ink); cursor:pointer; font:600 11px/1.4 var(--shop-display); text-transform:uppercase;
}
.gear-shop-page.xfg-accessories-page [data-collection-description-toggle][hidden] { display:none; }
@media(min-width:1900px) {
    .gear-shop-page.xfg-accessories-page .xfg-collection-breadcrumb { margin-top:30px; margin-bottom:20px; gap:12px; font-size:12px; }
    .gear-shop-page.xfg-accessories-page .xfg-accessories-intro { padding:40px; }
    .gear-shop-page.xfg-accessories-page .xfg-accessories-grid { gap:24px 20px; }
    .gear-shop-page.xfg-accessories-page .xfg-accessory-card small { font-size:14px; }
    .gear-shop-page.xfg-accessories-page .xfg-collection-load-more { min-height:48px; font-size:20px; padding:10px 25px; }
}
@media(max-width:820px) {
    .gear-shop-page.xfg-accessories-page .xfg-collection-breadcrumb { margin-top:16px; margin-bottom:12px; }
    .gear-shop-page.xfg-accessories-page .xfg-accessories-intro { padding:22px 20px; }
}

/* Collection cards and their photographs share the same rounded silhouette. */
.gear-shop-page.xfg-accessories-page [data-accessories-grid] > [data-accessory-product] {
    --collection-card-radius:8px;
    border-radius:var(--collection-card-radius);
    overflow:hidden;
}
.gear-shop-page.xfg-accessories-page [data-accessories-grid] > [data-accessory-product] :is(.xfg-shop-product__media,.xfg-accessory-card__image) {
    border-radius:var(--collection-card-radius) var(--collection-card-radius) 0 0;
    overflow:hidden;
}
@media(min-width:1900px) {
    .gear-shop-page.xfg-accessories-page [data-accessories-grid] > [data-accessory-product] { --collection-card-radius:10px; }
}

/* Phone collection cards keep two equal columns and readable product details. */
@media(max-width:560px) {
    .gear-shop-page.xfg-accessories-page .xfg-accessories-grid[data-accessories-grid] {
        grid-template-columns:repeat(2,minmax(0,1fr));
        width:calc(100% - 32px);
        gap:16px 12px;
    }
    .gear-shop-page.xfg-accessories-page .xfg-accessories-grid[data-accessories-grid] > [data-accessory-product] > a {
        padding-bottom:12px;
    }
    .gear-shop-page.xfg-accessories-page .xfg-accessories-grid[data-accessories-grid] > [data-accessory-product] small {
        margin:10px 10px 0;
        font-size:10px;
        letter-spacing:.2px;
    }
    .gear-shop-page.xfg-accessories-page .xfg-accessories-grid[data-accessories-grid] > [data-accessory-product] :is(h2,h3) {
        min-height:2.4em;
        margin:6px 10px 0;
        font-size:16px;
        line-height:1.2;
    }
    .gear-shop-page.xfg-accessories-page .xfg-accessories-grid[data-accessories-grid] > [data-accessory-product] .xfg-product-price {
        margin:8px 10px 0;
        font-size:16px;
        line-height:1.3;
    }
}
