@charset "utf-8";

/* ==========================================================================
   CamTalk / biz/goods.php - 굿즈, the wide window (gdd1).

   SCOPE. Every rule is inside `@media only screen and (min-width: 1001px)`,
   the other side of the project's breakpoint (css/camtalk-goods-mobile.css
   is `max-width: 1000px` from its first rule to its last), and under
   `.cgd-page`, the class only this page puts on <body>, or `.cgd`, the
   page's own <main>. The phone is not touched by a line of this file. It is
   linked from goods.php itself.

   ONE PAGE FOR BOTH WIDTHS. The wide window lays out the phone's own markup
   and copy (goods_mobile.*), in the phone's order:
     hero      the goods photograph under the site's white bar, edge to edge;
               CAMTALK GOODS, the lead, CamTalk 굿즈, the line and the button
               at its foot, left, on a pale wash local to them
     plates    the four plates of the phone, one row of equal columns
     lineup    OFFICIAL GOODS (gdr1): the phone's drifting strip, full
               width, ~300px cards; "전체 보기" swaps it for the grid of every
               product, 4 columns (3 below 1300px), and "접기" back
     banner    the model and the goods, full width at 16:9, the red button
               at its foot

   SCALE at 1440: container 1200 (1280 from 1680); hero name 72, lead 27,
   line 21; section heading 44, copy 19; product names 21. Type is the
   site's Paperozi.

   STABILITY. No pinning, no snap, no scroll handler; every picture has
   width and height in the markup (the wide <source>s carry their own). The
   hero and the banner are `isolation: isolate` at z-index 0, so their layers
   stay under the fixed bar.
   ========================================================================== */

@media only screen and (min-width: 1001px) {

	.cgd-page {
		--gk-max: 1200px;
		--gk-gutter: clamp(40px, 6vw, 120px);
		--gk-w: min(var(--gk-max), calc(100% - 2 * var(--gk-gutter)));
		--gk-side: calc((100% - var(--gk-w)) / 2);
		--gk-air: clamp(88px, 7.2vw, 112px);
		--gk-header: 96px;               /* .gnb on a wide window (camtalk-header.css) */
		--gk-hero-side: clamp(48px, 7vw, 140px);   /* the hero's own side */

		--gd-red: #f5123f;
		--gd-label: #d6083a;             /* small red labels: 4.6:1 on the blush pill */
		--gd-ink: #16161c;
		--gd-ink-2: #464853;             /* 9.1:1 on white */
	}

	.cgd, .cgd *, .cgd *::before, .cgd *::after { box-sizing: border-box; }

	.cgd-page .cgd[hidden] { display: block; }
	.cgd {
		color: var(--gd-ink);
		background: #fff;
		overflow-x: clip;
	}
	.cgd img { display: block; max-width: 100%; }
	.cgd picture { display: block; }
	.cgd em { font-style: normal; }
	:where(.cgd) :where(h1, h2, p, ul, li) { margin: 0; padding: 0; }
	:where(.cgd) :where(ul) { list-style: none; }
	.cgd li { word-break: keep-all; }
	.cgd a { text-decoration: none; }

	/* phone-only breaks ([data-cgd-flow]); the script has spaced them */
	.cgd [data-cgd-flow] br { display: none; }

	html[lang="en"] .cgd-hero__title,
	html[lang="en"] .cgd-hero__desc,
	html[lang="en"] .cgd-title,
	html[lang="en"] .cgd-desc,
	html[lang="en"] .cgd-feat__desc { word-break: normal; overflow-wrap: break-word; }

	/* ---- shared type ------------------------------------------------------ */

	.cgd-tag {
		display: inline-block;
		padding: 8px 15px 8px 16px;
		border-radius: 999px;
		background: #ffe9ef;
		color: var(--gd-label);
		font-size: 14px;
		font-weight: 800;
		line-height: 1.2;
		letter-spacing: .16em;
		text-transform: uppercase;
	}

	.cgd-title {
		margin-top: 18px;
		font-size: clamp(38px, 3.06vw, 48px);   /* 44 at 1440 */
		font-weight: 800;
		line-height: 1.24;
		letter-spacing: -.045em;
		color: var(--gd-ink);
		word-break: keep-all;
		text-wrap: balance;
	}
	html[lang="en"] .cgd-title { letter-spacing: -.035em; }

	.cgd-desc {
		max-width: 620px;
		margin-top: 18px;
		font-size: clamp(18px, 1.32vw, 20px);   /* 19 at 1440 */
		font-weight: 400;
		line-height: 1.66;
		letter-spacing: -.02em;
		color: var(--gd-ink-2);
		word-break: keep-all;
		text-wrap: balance;
	}
	html[lang="en"] .cgd-desc { letter-spacing: -.005em; }

	/* ---- buttons ------------------------------------------------------------ */

	.cgd-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		min-height: 56px;
		padding: 0 30px 0 32px;
		border-radius: 999px;
		font-size: 17px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: -.03em;
		white-space: nowrap;
		transition: transform .2s ease, box-shadow .2s ease;
	}
	.cgd-btn__arrow { width: 20px; height: 20px; flex: 0 0 auto; }
	.cgd-btn--red {
		background: linear-gradient(90deg, #ff2a55 0%, #f20a3c 100%);
		box-shadow: 0 16px 28px -14px rgba(242, 10, 60, .62), inset 0 1px 0 rgba(255, 255, 255, .2);
	}
	.cgd-btn--red span,
	.cgd-btn--red .cgd-btn__arrow { color: #fff; }
	.cgd-btn--red:hover {
		transform: translateY(-1px);
		box-shadow: 0 20px 32px -14px rgba(242, 10, 60, .72), inset 0 1px 0 rgba(255, 255, 255, .2);
	}
	.cgd-btn:focus-visible { outline: 3px solid var(--gd-ink); outline-offset: 4px; }

	/* ======================================================================
	   1. HERO - the photograph under the bar, the words at its foot
	   ====================================================================== */

	/* Header + hero = one screen: the white bar lies over the top 96px and
	   the photograph fills what is under it, so the bar's height is counted
	   once. A min-height, so a short window or a long translation grows the
	   hero rather than cutting the line or the button. */
	.cgd-hero {
		position: relative;
		z-index: 0;
		isolation: isolate;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: flex-start;
		min-height: 100vh;
		min-height: 100svh;
		padding: calc(var(--gk-header) + 40px) var(--gk-hero-side) clamp(64px, 8vh, 80px);
		overflow: hidden;
		background: #eee6e5;                       /* the photograph's own floor, while it loads */
	}

	/* The user's 1672 x 941 photograph, `cover` under the bar. At 1440 x 900
	   the box (1440 x 804) is its own 16:9 and nothing goes; a narrower
	   window gives up the sides, held 60% across so the tote (CAM TALK PLAY)
	   and the fan stay and the cap at the left gives way first; a short wide
	   one gives up the top and foot, held 40% down, which keeps the tote's
	   print and the fan's head. */
	.cgd .cgd-hero__img {
		position: absolute;
		top: var(--gk-header);
		left: 0;
		z-index: -2;
		width: 100%;
		height: calc(100% - var(--gk-header));
		max-width: none;
		object-fit: cover;
		object-position: 60% 40%;
	}

	/* A pale wash local to the words - a soft radial from the lower left
	   corner - so dark and red type read over the ribbons and the goods
	   there (the slides, the notebook and the cap's brim are softened under
	   the words: the photograph has goods in every corner). It is gone
	   before the middle: the fan, the tote, the photo card and the right
	   half keep their full colour. No plate, no edge. */
	.cgd-hero__wash {
		position: absolute;
		inset: var(--gk-header) 0 0 0;
		z-index: -1;
		pointer-events: none;
		background:
			radial-gradient(ellipse 76% 92% at 0% 100%,
				rgba(255, 252, 252, .96) 0%,
				rgba(255, 252, 252, .94) 40%,
				rgba(255, 252, 252, .86) 56%,
				rgba(255, 252, 252, .55) 72%,
				rgba(255, 252, 252, .18) 88%,
				rgba(255, 252, 252, 0) 100%),
			linear-gradient(0deg, rgba(255, 252, 252, .42) 0%, rgba(255, 252, 252, 0) 30%);
	}

	/* a faint halo of the wash's own white, not a shadow: it only lifts the
	   letters off the last ribbons under the line */
	.cgd-hero__lead,
	.cgd-hero__name,
	.cgd-hero__desc { text-shadow: 0 0 16px rgba(255, 252, 252, .8); }

	.cgd-hero__tag { flex: 0 0 auto; margin-bottom: 24px; }

	.cgd-hero__words {
		position: relative;
		max-width: 580px;
	}
	.cgd-hero__title {
		display: block;
		font-weight: 800;
		color: var(--gd-ink);
		word-break: keep-all;
	}
	.cgd-hero__lead,
	.cgd-hero__name { display: block; }
	.cgd-hero__lead {
		font-size: clamp(24px, min(1.9vw, 3.4vh), 30px);   /* 27 at 1440 x 900 */
		font-weight: 700;
		line-height: 1.3;
		letter-spacing: -.04em;
	}
	.cgd-hero__name {
		margin-top: 6px;
		font-size: clamp(54px, min(5vw, 8.4vh), 76px);     /* 72 at 1440 x 900 */
		line-height: 1.08;
		letter-spacing: -.05em;
	}
	.cgd-hero__name em { color: var(--gd-red); }

	/* The phone's four short lines are dropped; the line runs in two or
	   three balanced lines in a 470px measure. */
	.cgd-hero__desc {
		max-width: 470px;
		margin-top: 22px;
		font-size: clamp(20px, 1.46vw, 22px);   /* 21 at 1440 */
		font-weight: 500;
		line-height: 1.55;
		letter-spacing: -.03em;
		color: #2f3039;
		word-break: keep-all;
		text-wrap: balance;
	}
	.cgd-hero__cta { margin-top: 30px; }

	html[lang="en"] .cgd-hero__lead { letter-spacing: -.025em; }
	html[lang="en"] .cgd-hero__name { letter-spacing: -.035em; }
	html[lang="en"] .cgd-hero__desc { letter-spacing: -.01em; }

	/* A short window: the gaps give way first, then the type (vh). */
	@media (max-height: 800px) {
		.cgd-hero { padding-bottom: clamp(44px, 6.5vh, 60px); }
		.cgd-hero__tag { margin-bottom: 16px; }
		.cgd-hero__desc { margin-top: 16px; }
		.cgd-hero__cta { margin-top: 22px; min-height: 52px; }
	}

	/* ======================================================================
	   2. THE PLATES - one row of equal columns on the blush band
	   ====================================================================== */

	/* The phone's four plates, all of them, in their order: each a white
	   surface with its red line icon, its name and its line. They are not
	   links - they have no action of their own. */
	.cgd-feats-row {
		padding: 36px var(--gk-side) 40px;
		background: linear-gradient(180deg, #fff3f6 0%, #ffeef3 100%);
	}
	.cgd .cgd-feats {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 24px;
	}
	.cgd-feat {
		padding: 26px 26px 28px;
		border-radius: 20px;
		background: #fff;
		box-shadow: 0 16px 30px -22px rgba(130, 30, 62, .38), 0 1px 3px rgba(20, 20, 30, .06);
	}
	.cgd-feat__head {
		display: flex;
		align-items: center;
		gap: 12px;
	}
	.cgd-feat__icon {
		width: 32px;
		height: 32px;
		flex: 0 0 auto;
		fill: none;
		stroke: var(--gd-red);
		stroke-width: 1.6;
		stroke-linecap: round;
		stroke-linejoin: round;
	}
	.cgd-feat__head strong {
		font-size: 21px;
		font-weight: 800;
		line-height: 1.25;
		letter-spacing: -.04em;
		color: var(--gd-ink);
		word-break: keep-all;
	}
	.cgd-feat__desc {
		margin-top: 12px;
		font-size: 17px;
		font-weight: 500;
		line-height: 1.5;
		letter-spacing: -.03em;
		color: var(--gd-ink-2);
		word-break: keep-all;
		text-wrap: balance;
	}
	html[lang="en"] .cgd-feat__head strong { letter-spacing: -.02em; }
	html[lang="en"] .cgd-feat__desc { letter-spacing: -.01em; }

	/* ======================================================================
	   3. OFFICIAL GOODS - every product, a grid
	   ====================================================================== */

	/* The section is full width; its heading and its strip each keep the
	   container's side as their own padding (a percentage inside --gk-side
	   resolves against the element that uses it, so negative margins on the
	   strip would not reach the window's edges). */
	.cgd-lineup {
		padding: var(--gk-air) 0 var(--gk-air);
		scroll-margin-top: var(--gk-header);
		background:
			radial-gradient(60% 30% at 50% 0%, rgba(255, 214, 226, .34) 0%, rgba(255, 214, 226, 0) 72%),
			linear-gradient(180deg, #fff 0%, #fffafb 70%, #f8eeee 100%);
	}
	.cgd-lineup:focus { outline: none; }
	.cgd-lineup__head .cgd-tag { display: block; width: fit-content; }

	/* The heading's words on the left, the "전체 보기" button on the right,
	   on the line of the description's foot (under it on a narrow window). */
	.cgd-lineup__head {
		padding: 0 var(--gk-side);
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 40px;
		align-items: end;
	}
	.cgd-lineup__head > :not(.cgd-more) { grid-column: 1; }
	.cgd-more--head { grid-column: 2; grid-row: 1 / span 3; margin-bottom: 2px; }

	/* the toggle: a quiet outlined capsule; its chevron turns when open */
	.cgd-page .cgd-more--head[hidden] { display: inline-flex; }
	.cgd-more {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 50px;
		padding: 0 22px 0 26px;
		border: 1.5px solid rgba(22, 22, 28, .18);
		border-radius: 999px;
		background: #fff;
		color: var(--gd-ink);
		font: inherit;
		font-size: 16px;
		font-weight: 700;
		letter-spacing: -.02em;
		white-space: nowrap;
		cursor: pointer;
		transition: border-color .2s ease, color .2s ease, background-color .2s ease;
	}
	/* the class's own display outranks the UA's [hidden]: the foot button is
	   hidden while the strip shows, so [hidden] is restated (the head one is
	   shown on purpose by the rule above, which is more specific) */
	.cgd-more[hidden] { display: none; }
	.cgd-more:hover { border-color: var(--gd-red); color: var(--gd-label); }
	.cgd-more:focus-visible { outline: 3px solid var(--gd-red); outline-offset: 3px; }
	.cgd-more__icon { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .25s ease; }
	.cgd-more[aria-expanded="true"] .cgd-more__icon { transform: rotate(180deg); }

	/* THE STRIP (default): the phone's own mechanism - a native sideways
	   scroller the script drifts at 28px/s, with copies at both ends for
	   the seam - across the whole width; its first card starts on the
	   container line. Hover or focus inside holds it; the mouse can drag it;
	   the wheel's vertical turn stays the page's. No scrollbar is drawn. */
	.cgd-strip {
		--gk-card: clamp(280px, 21vw, 320px);
		margin: 40px 0 0;
		padding: 14px var(--gk-side) 40px;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		scroll-padding-inline: var(--gk-side);
		cursor: grab;
		user-select: none;
		-webkit-user-select: none;
	}
	.cgd-strip::-webkit-scrollbar { display: none; }
	.cgd-strip.is-dragging { cursor: grabbing; }
	.cgd-strip.is-dragging .cgd-card__link { pointer-events: none; }
	.cgd-strip:focus-visible { outline: 3px solid var(--gd-red); outline-offset: -3px; }
	.cgd .cgd-strip__list {
		display: flex;
		gap: 24px;
		width: max-content;
	}
	.cgd-card { display: flex; flex: 0 0 var(--gk-card); width: var(--gk-card); min-width: 0; }
	.cgd .cgd-card__img { -webkit-user-drag: none; }

	/* THE GRID ("전체 보기"): every product once, no copies (the script has
	   taken them away), no drift, no transform, the page's own scroll. */
	.is-grid .cgd-strip {
		margin: 44px 0 0;
		padding: 0 var(--gk-side);
		overflow: visible;
		cursor: auto;
		user-select: auto;
		-webkit-user-select: auto;
	}
	.cgd .is-grid .cgd-strip__list {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px 24px;
		width: auto;
		transform: none !important;
	}
	.is-grid .cgd-card { flex: none; width: auto; }

	.is-grid .cgd-lineup__foot {
		display: flex;
		justify-content: center;
		margin-top: 48px;
	}
	.cgd-card__link {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
		border-radius: 22px;
		background: #fff;
		box-shadow: 0 18px 34px -24px rgba(130, 30, 62, .42), 0 2px 6px -2px rgba(20, 20, 30, .08);
		transition: box-shadow .25s ease, transform .25s ease;
	}
	.cgd-card__link:hover {
		transform: translateY(-3px);
		box-shadow: 0 26px 44px -24px rgba(130, 30, 62, .5), 0 2px 8px -2px rgba(20, 20, 30, .1);
	}
	.cgd-card__link:focus-visible { outline: 3px solid var(--gd-red); outline-offset: 4px; }

	/* The square cut of each store photo, whole (contain), on its own photo
	   ground - the inline background-color - so the square's edge melts away.
	   The files are 600-1000px; the square is ~280px at 1440. */
	.cgd-card__media {
		display: flex;
		align-items: center;
		justify-content: center;
		aspect-ratio: 1 / 1;
		padding: 6%;
	}
	.cgd .cgd-card__img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 100%;
		transition: transform .35s ease;
	}
	.cgd-card__link:hover .cgd-card__img { transform: scale(1.03); }
	.cgd .cgd-card__media--tile { padding: 8%; }
	.cgd .cgd-card__media--tile .cgd-card__img { border-radius: 14px; }

	/* the series line, then the name beside the arrow - nothing cut */
	.cgd-card__foot {
		position: relative;
		display: block;
		flex: 1 0 auto;
		padding: 18px 20px 22px 22px;
		border-top: 1px solid rgba(22, 22, 28, .06);
	}
	.cgd-card__text { display: flex; flex-direction: column; min-width: 0; }
	.cgd-card__series {
		min-height: 1.35em;
		font-size: 14.5px;
		font-weight: 600;
		line-height: 1.35;
		letter-spacing: -.02em;
		color: #74767f;                  /* 4.7:1 on white */
		word-break: keep-all;
	}
	.cgd-card__name {
		min-height: 2.6em;
		margin-top: 5px;
		padding-right: 46px;
		font-size: clamp(19px, 1.46vw, 22px);   /* 21 at 1440 */
		font-weight: 700;
		line-height: 1.3;
		letter-spacing: -.04em;
		color: var(--gd-ink);
		word-break: keep-all;
	}
	html[lang="en"] .cgd-card__name { letter-spacing: -.02em; word-break: normal; overflow-wrap: break-word; }
	html[lang="en"] .cgd-card__series { letter-spacing: -.005em; word-break: normal; }

	.cgd-card__foot .cgd-card__go {
		position: absolute;
		right: 20px;
		bottom: 22px;
	}
	.cgd-card__go {
		width: 34px;
		height: 34px;
		border: 1.7px solid var(--gd-red);
		border-radius: 50%;
		transition: background-color .2s ease;
	}
	.cgd-card__go::before,
	.cgd-card__go::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
	}
	.cgd-card__go::before {
		width: 13px;
		height: 1.8px;
		margin: -.9px 0 0 -7px;
		border-radius: 1px;
		background: var(--gd-red);
	}
	.cgd-card__go::after {
		width: 7px;
		height: 7px;
		margin: -4px 0 0 -1px;
		border-top: 1.8px solid var(--gd-red);
		border-right: 1.8px solid var(--gd-red);
		transform: rotate(45deg);
	}
	.cgd-card__link:hover .cgd-card__go { background: #fff0f4; }

	/* ======================================================================
	   4. BANNER - the model and the goods, full width, the button at its foot
	   ====================================================================== */

	/* The photograph at its own 16:9 across the whole width, never cut: the
	   face (upper right), the tote, the slides and the pouch all stay. The
	   lineup ends in the photograph's own top-row colour (#e0d1d0, sampled)
	   and a short veil continues it over the wall at the top, so there is no
	   seam. The red button sits centred at the foot, over ribbons and the
	   keyring only, on a faint shade local to it. */
	.cgd-banner {
		position: relative;
		z-index: 0;
		isolation: isolate;
		background: #e0d1d0;
	}
	.cgd .cgd-banner__img {
		position: relative;
		z-index: 0;
		width: 100%;
		height: auto;
		aspect-ratio: 1672 / 941;
	}
	.cgd-banner::before {
		content: "";
		position: absolute;
		z-index: 1;
		left: 0;
		right: 0;
		top: 0;
		height: 64px;
		pointer-events: none;
		background: linear-gradient(180deg, rgba(248, 238, 238, .9) 0%, rgba(240, 228, 228, .45) 40%, rgba(224, 209, 208, 0) 100%);
	}
	.cgd-banner__shade {
		position: absolute;
		z-index: 1;
		left: 25%;
		right: 25%;
		bottom: 0;
		height: 28%;
		pointer-events: none;
		background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(40, 10, 20, .20) 0%, rgba(40, 10, 20, .08) 55%, rgba(40, 10, 20, 0) 100%);
	}
	.cgd-banner__cta {
		position: absolute;
		z-index: 2;
		left: 50%;
		bottom: clamp(40px, 3.6vw, 56px);
		min-height: 58px;
		padding: 0 32px 0 34px;
		font-size: 18px;
		transform: translateX(-50%);
		box-shadow: 0 16px 30px -12px rgba(40, 6, 18, .55), 0 2px 6px rgba(40, 6, 18, .12);
	}
	.cgd-banner__cta:hover { transform: translateX(-50%) translateY(-1px); }
	.cgd-banner__cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

	/* ======================================================================
	   NARROW AND WIDE
	   ====================================================================== */

	/* the grid: 3 columns until 4 of them are at least ~280px wide */
	@media (max-width: 1299px) {
		.cgd .is-grid .cgd-strip__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	}
	@media (max-width: 1179px) {
		.cgd .cgd-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
		/* the button under the description, on the words' line */
		.cgd-lineup__head { grid-template-columns: minmax(0, 1fr); }
		.cgd-more--head { grid-column: 1; grid-row: auto; justify-self: start; margin: 26px 0 0; }
	}

	@media (min-width: 1680px) {
		.cgd-page { --gk-max: 1280px; }
	}

	@media (prefers-reduced-motion: reduce) {
		.cgd-btn, .cgd-card__link, .cgd .cgd-card__img, .cgd-card__go, .cgd-more, .cgd-more__icon { transition: none; }
		.cgd-btn--red:hover, .cgd-card__link:hover { transform: none; }
		.cgd-card__link:hover .cgd-card__img { transform: none; }
		.cgd-banner__cta:hover { transform: translateX(-50%); }
	}
}
