/* Indulgence Classic Child 1.6.1: mobile horizontal-overflow fix. Loaded after ic-160.css. Additive: nothing is removed or restyled.

   ROOT CAUSE
   "Worn With Ease" (.ic-show > .ic-showgrid, inc/home-sections.php ic_section_look) is a one-column grid whose column was left at the
   default "auto" size. Inside it, .ic-side holds the thumbnail strip (.ic-thumbs: six 72px buttons that scroll horizontally, no wrap).
   A grid item's automatic minimum width is its content's min-content width, and a scroll strip's min-content width is the whole strip
   (about 480px), so the column grew to ~480px on every phone, dragging the section, the page width and the fixed header with it.
   1.2.0 fixed this only for the category-driven variant (.ic-hx-look). 1.6.0 began auto-detecting existing Women / Men categories, which
   switches the department variant of the section on, and that variant never received the fix.
   Fix: give the column an explicit minmax(0,1fr) track and let the grid items shrink (min-width:0), so the strip scrolls inside its box.
   The same one-line pattern is applied to the other single-column grids that hold images, scroll strips or unbreakable text, as a guard.
   Every grid/min-width rule below is limited to widths under 960px (or the breakpoint where that grid turns multi-column), so desktop is untouched. */

/* 1. Worn With Ease (department variant). Phones and tablets only: from 960px up the original columns are left exactly as they were. */
@media(max-width:959px){
	.ic-showgrid{grid-template-columns:minmax(0,1fr)}
	.ic-showgrid>*,.ic-side{min-width:0}
	.ic-thumbs{max-width:100%}
}
.ic-tabs2{flex-wrap:wrap;gap:.3rem 1.4rem}

/* 2. Guard the other one-column grids on phones/tablets (breakpoints match where each becomes multi-column) */
@media(max-width:959px){
	.ic-edit__grid,.ic-keep__grid,.ic-art__grid,.ic-bt-hero__in,.ic-feat{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:899px){
	.ic-visit,.ic-hx-fab,.ic-split{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:959px){.ic-fendi{grid-template-columns:minmax(0,1fr)}}
@media(max-width:699px){.ic-duo{grid-template-columns:minmax(0,1fr)}}
@media(max-width:799px){.ic-fcols,.ic-hx-pillars,.ic-values3{grid-template-columns:minmax(0,1fr)}}
@media(max-width:959px){.ic-art__grid>*,.ic-keep__grid>*,.ic-edit__grid>*,.ic-visit>*,.ic-hx-fab>*,.ic-fendi>*,.ic-feat>*,.ic-fcols>*{min-width:0}}

/* 3. Long unbreakable text (emails, URLs) in the Visit block and footer must wrap instead of widening the page */
.ic-visit dl{grid-template-columns:auto minmax(0,1fr)}
.ic-visit dd,footer.ic-ft .ic-fcols :is(a,p){min-width:0;overflow-wrap:anywhere}

/* 4. Intentional horizontal rails: swiping stays inside the rail and never drags the whole page sideways */
.ic-product-rail,.ic-edit__rail,.ic-hx-newrail,.ic-nrail,.ic-thumbs{overscroll-behavior-x:contain}
