/* Gmica Shade Catalogue. Colours and fonts follow Elementor Site Settings. */
.gfc {
	--gfc-accent: #DA5D01;
	--gfc-text: var(--e-global-color-text, currentColor);
	--gfc-radius: 8px;
	--gfc-line: color-mix(in srgb, var(--gfc-text) 16%, transparent);
	--gfc-soft: color-mix(in srgb, var(--gfc-text) 6%, transparent);
	--gfc-muted: color-mix(in srgb, var(--gfc-text) 62%, transparent);
	box-sizing: border-box;
	width: 100%;
	color: var(--gfc-text);
	container-type: inline-size;
	container-name: gfc;
}
.gfc *, .gfc *::before, .gfc *::after { box-sizing: border-box; }
.gfc button { font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; text-transform: none; letter-spacing: inherit; box-shadow: none; border-radius: 0; line-height: 1.2; min-height: 0; text-align: left; }
.gfc button:focus-visible, .gfc a:focus-visible { outline: 2px solid var(--gfc-accent); outline-offset: 3px; }

.gfc .gfc-title { font-family: var(--e-global-typography-primary-font-family); margin: 10px 0 0; font-size: clamp(30px, 4.2cqi, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; color: inherit; }
.gfc .gfc-sub, .gfc .gfc-cat-desc, .gfc .gfc-empty { font-family: var(--e-global-typography-text-font-family); color: var(--gfc-muted); font-size: 16px; line-height: 1.55; margin: 12px 0 0; max-width: 60ch; }
.gfc .gfc-name, .gfc .gfc-tab-name { font-family: var(--e-global-typography-secondary-font-family); }
.gfc .gfc-eyebrow, .gfc .gfc-count, .gfc .gfc-meta, .gfc .gfc-cta { font-family: var(--e-global-typography-accent-font-family); }

.gfc-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gfc-muted); }
.gfc-bar { width: 22px; height: 2px; background: var(--gfc-accent); }

/* category tabs */
.gfc-tabs { display: flex; gap: 12px; margin-top: 32px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; scrollbar-color: var(--gfc-line) transparent; }
.gfc .gfc-tab { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--gfc-line); background: var(--gfc-soft); transition: box-shadow .25s, background .25s, transform .25s; }
.gfc .gfc-tab:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--gfc-accent); }
.gfc .gfc-tab.is-on { background: var(--gfc-accent); color: #fff; box-shadow: none; }
.gfc-stack { display: flex; min-width: 24px; }
.gfc-stack i { width: 26px; height: 26px; margin-left: -10px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 2px var(--gfc-bg, #fff), inset 0 0 0 1px rgba(0,0,0,.12); }
.gfc-stack i:first-child { margin-left: 0; }
.gfc .gfc-tab.is-on .gfc-stack i { box-shadow: 0 0 0 2px var(--gfc-accent), inset 0 0 0 1px rgba(0,0,0,.12); }
.gfc-tab-text { display: flex; flex-direction: column; gap: 2px; }
.gfc .gfc-tab-name { font-size: 16px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.gfc .gfc-count { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.gfc .gfc-count::after { content: " shades"; }
.gfc .gfc-cat-desc { min-height: 1.55em; }
.gfc .gfc-cat-desc:empty { display: none; }

/* shade grid */
.gfc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.gfc-card { min-width: 0; }
.gfc-card[hidden] { display: none; }
.gfc-card.is-in { animation: gfc-in .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes gfc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gfc-swatch { position: relative; aspect-ratio: 4 / 5; border-radius: var(--gfc-radius); overflow: hidden; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 18px 34px -22px rgba(0,0,0,.55); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.gfc-swatch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.2), transparent 40%); pointer-events: none; }
.gfc-card:hover .gfc-swatch { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 26px 40px -22px rgba(0,0,0,.6); }
.gfc .gfc-cta { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; border-radius: calc(var(--gfc-radius) - 2px); background: rgba(10, 6, 14, .78); color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s, background .25s; }
.gfc .gfc-cta:hover { background: var(--gfc-accent); color: #fff; }
.gfc-card:hover .gfc-cta, .gfc-card:focus-within .gfc-cta { opacity: 1; transform: none; }
@media (hover: none) { .gfc .gfc-cta { opacity: 1; transform: none; } }
.gfc-info { padding: 12px 2px 0; }
.gfc .gfc-name { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.2; color: inherit; }
.gfc .gfc-meta { margin: 4px 0 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gfc-muted); }
.gfc .gfc-empty[hidden] { display: none; }

@container gfc (max-width: 900px) { .gfc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container gfc (max-width: 600px) { .gfc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@container gfc (max-width: 520px) {
	.gfc .gfc-tab { padding: 10px 14px 10px 12px; }
	.gfc .gfc-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.gfc *, .gfc { animation-duration: .01s !important; transition-duration: .01s !important; }
}

/* search */
.gfc-searchbox { position: relative; margin-top: 28px; max-width: 520px; color: var(--gfc-muted); }
.gfc-searchbox svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.gfc .gfc-search { width: 100%; height: 50px; padding: 0 18px 0 46px; border-radius: 999px; border: 1px solid var(--gfc-line); background: var(--gfc-soft); color: var(--gfc-text); font-size: 16px; font-family: var(--e-global-typography-text-font-family); box-shadow: none; outline: 0; -webkit-appearance: none; appearance: none; }
.gfc .gfc-search:focus { border-color: var(--gfc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gfc-accent) 25%, transparent); }
.gfc .gfc-search::placeholder { color: var(--gfc-muted); opacity: 1; }
.gfc-searchbox + .gfc-tabs { margin-top: 18px; }

/* description and add button */
.gfc .gfc-desc { font-family: var(--e-global-typography-text-font-family); margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--gfc-muted); }
.gfc .gfc-add { margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--gfc-accent); color: var(--gfc-accent); font-family: var(--e-global-typography-accent-font-family); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; text-align: center; transition: background .2s, color .2s; }
.gfc .gfc-add:hover { background: color-mix(in srgb, var(--gfc-accent) 12%, transparent); }
.gfc .gfc-add.is-on { background: var(--gfc-accent); color: #fff; }
.gfc-add-i { position: relative; width: 14px; height: 14px; flex: none; }
.gfc-add-i::before, .gfc-add-i::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.gfc-add-i::before { left: 6px; top: 1px; width: 2px; height: 12px; transition: transform .2s; }
.gfc-add-i::after { left: 1px; top: 6px; width: 12px; height: 2px; }
.gfc .gfc-add.is-on .gfc-add-i::before { transform: rotate(90deg) scaleX(.0); }
.gfc .gfc-add.is-on .gfc-add-i::after { left: 2px; top: 5px; width: 10px; height: 5px; background: none; border: solid currentColor; border-width: 0 0 2px 2px; border-radius: 0; transform: rotate(-45deg); }

/* floating basket bar */
.gfc-cart { position: fixed; z-index: 9990; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 22px; border-radius: 999px; background: #17101d; color: #fff; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); font-family: var(--e-global-typography-accent-font-family); font-size: 14px; animation: gfc-bar .35s cubic-bezier(.2,.8,.2,1); }
.gfc-cart[hidden] { display: none; }
.gfc-cart-n b { color: #DA5D01; font-size: 18px; }
.gfc-cart .gfc-cart-go { padding: 11px 20px; border-radius: 999px; background: #DA5D01; color: #fff; text-decoration: none; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
@keyframes gfc-bar { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* heading on the left, search (and category tabs, when switched on) on the right */
.gfc-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.gfc-side { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.gfc-side .gfc-searchbox { margin-top: 0; max-width: none; width: 100%; }
.gfc-side .gfc-tabs { margin-top: 18px; }
.gfc-side .gfc-cat-desc { max-width: none; }
.gfc-top .gfc-sub { max-width: 52ch; }
@container gfc (max-width: 820px) {
	.gfc-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.gfc-side .gfc-searchbox { margin-top: 4px; }
}
