/* Crystal Catalog — follows the Figma layout of the Crystal Bay product pages (Inter, lime #baf814, green #224432). */

.cc-catalog {
	--cc-lime: #baf814;
	--cc-green: #224432;
	--cc-panel: #f6f6f6;
	--cc-radius: 20px;
	--cc-gap: 24px;
	max-width: 1360px;
	margin: 0 auto;
	font-family: Inter, "Helvetica Neue", Arial, sans-serif;
	color: #000;
}

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

.cc-catalog h2,
.cc-catalog h3,
.cc-catalog p {
	padding: 0;
	font-family: inherit;
}

.cc-catalog img {
	display: block;
	max-width: 100%;
}

.cc-empty {
	padding: 24px;
	border: 1px dashed #9cb59f;
	border-radius: var(--cc-radius);
	text-align: center;
}

/* Lime bars under headings */
.cc-bar {
	display: block;
	width: 224px;
	height: 5px;
	background: var(--cc-lime);
}

.cc-bar--intro {
	background: rgba(186, 248, 20, 0.68);
}

.cc-bar--short {
	width: 120px;
}

/* ---------- Main photo ---------- */

.cc-hero {
	overflow: hidden;
	aspect-ratio: 1360 / 511;
	margin-bottom: 70px;
	border-radius: var(--cc-radius);
}

.cc-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Intro: heading, bar, grey panel ---------- */

.cc-intro {
	margin-bottom: 107px;
}

.cc-intro-title {
	margin: 0;
	color: #000;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
}

.cc-intro-box {
	max-width: 1225px;
	margin-top: 30px;
	padding: 36px 39px;
	border-radius: var(--cc-radius);
	background: var(--cc-panel);
	font-size: 24px;
	line-height: 1.2;
}

.cc-intro-box p {
	margin: 0 0 0.8em;
}

.cc-intro-box p:last-child {
	margin-bottom: 0;
}

/* ---------- Category ---------- */

.cc-category {
	margin-bottom: 120px;
	scroll-margin-top: 120px;
}

.cc-category:last-child {
	margin-bottom: 0;
}

.cc-banner {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 380px;
	overflow: hidden;
	margin-bottom: 40px;
	padding: 56px;
	border-radius: var(--cc-radius);
	background: var(--cc-green);
}

.cc-banner-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cc-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(34, 68, 50, 0.95) 0%, rgba(34, 68, 50, 0.6) 60%, rgba(34, 68, 50, 0.1) 100%);
}

.cc-banner-text {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.cc-banner-title {
	margin: 0 0 6px;
	color: #fff;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.2;
}

.cc-banner .cc-banner-desc {
	max-width: 640px;
	margin: 20px 0 0;
	color: #fff;
	font-size: 20px;
	line-height: 1.5;
}

/* ---------- Product cards ---------- */

.cc-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px var(--cc-gap);
}

/* Photo, heading and text box line up across a row (subgrid). */
.cc-card {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 16px;
}

.cc-card-img {
	overflow: hidden;
	aspect-ratio: 322 / 220;
	border-radius: var(--cc-radius);
	background: #eef1ec;
}

.cc-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cc-card-title {
	margin: 0 0 6px;
	color: #000;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.cc-card-text {
	min-height: 96px;
	padding: 24px;
	border-radius: var(--cc-radius);
	background: var(--cc-green);
}

.cc-card-text p {
	margin: 0;
	color: var(--cc-lime);
	font-size: 16px;
	line-height: 1.5;
}

/* ---------- Tablet: same layout, everything proportionally smaller ---------- */

@media (max-width: 980px) {
	.cc-catalog { --cc-radius: 16px; --cc-gap: 14px; }
	.cc-hero { margin-bottom: 48px; }
	.cc-intro { margin-bottom: 72px; }
	.cc-intro-title { font-size: 32px; }
	.cc-intro-box { margin-top: 24px; padding: 28px 30px; font-size: 19px; line-height: 1.35; }
	.cc-category { margin-bottom: 80px; }
	.cc-banner { min-height: 300px; margin-bottom: 28px; padding: 40px; }
	.cc-banner-title { font-size: 34px; }
	.cc-banner .cc-banner-desc { margin-top: 16px; font-size: 17px; }
	.cc-bar { width: 170px; }
	.cc-bar--short { width: 70px; height: 4px; }
	.cc-grid { row-gap: 28px; }
	.cc-card { row-gap: 12px; }
	.cc-card-title { font-size: 17px; }
	.cc-card-text { min-height: 0; padding: 14px; }
	.cc-card-text p { font-size: 13px; }
}

/* ---------- Phone: two cards per row, banner text over a darker bottom ---------- */

@media (max-width: 600px) {
	.cc-catalog { --cc-radius: 14px; --cc-gap: 12px; }
	.cc-hero { aspect-ratio: 3 / 2; margin-bottom: 32px; }
	.cc-intro { margin-bottom: 48px; }
	.cc-intro-title { font-size: 24px; }
	.cc-bar { width: 120px; height: 4px; }
	.cc-intro-box { margin-top: 18px; padding: 20px; font-size: 16px; line-height: 1.45; }
	.cc-category { margin-bottom: 56px; }
	.cc-banner { min-height: 260px; margin-bottom: 20px; padding: 22px 20px; }
	.cc-banner::after { background: linear-gradient(to top, rgba(34, 68, 50, 0.95) 0%, rgba(34, 68, 50, 0.7) 50%, rgba(34, 68, 50, 0.15) 100%); }
	.cc-banner-title { font-size: 24px; }
	.cc-banner .cc-banner-desc { margin-top: 12px; font-size: 14px; }
	.cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
	.cc-card { row-gap: 10px; }
	.cc-bar--short { width: 56px; height: 3px; }
	.cc-card-title { margin-bottom: 5px; font-size: 15px; }
	.cc-card-text { padding: 12px; }
	.cc-card-text p { font-size: 12.5px; line-height: 1.45; }
}

/* ==========================================================================
   Home page "Our Products": [crystal_sections]
   ========================================================================== */

.cc-home {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

/* Green background across the whole screen width, whatever the Divi row width is */
.cc-home--bg {
	padding: 110px 0;
	background: var(--cc-green);
	box-shadow: 0 0 0 100vmax var(--cc-green);
	clip-path: inset(0 -100vmax);
}

.cc-home-label {
	display: flex;
	align-items: center;
	gap: 29px;
}

.cc-home-icon {
	flex: 0 0 auto;
}

.cc-home .cc-home-title {
	margin: 0;
	color: #fff;
	font-size: 34px;
	font-weight: 500;
	line-height: 1.2;
}

.cc-home .cc-home-text {
	max-width: 1073px;
	margin: 0;
	color: #fff;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.cc-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

/* An odd last tile takes the full width */
.cc-tile:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.cc-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 400px;
	overflow: hidden;
	padding: 32px;
	border-radius: var(--cc-radius);
	background: var(--cc-green);
	color: #fff;
	text-decoration: none;
}

.cc-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(34, 68, 50, 0.97) 0%, rgba(34, 68, 50, 0.55) 55%, rgba(34, 68, 50, 0) 100%);
}

.cc-tile-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.cc-tile-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	max-width: 560px;
}

.cc-tile-name {
	color: #fff;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.2;
}

.cc-tile-text {
	max-width: 520px;
	color: #e5ede5;
	font-size: 18px;
	line-height: 1.4;
}

.cc-tile-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cc-tag {
	padding: 6px 14px;
	border-radius: 100px;
	background: var(--cc-lime);
	color: #021a0d;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

.cc-tile-arrow {
	position: absolute;
	top: 32px;
	right: 32px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--cc-lime);
	color: #021a0d;
	font-size: 26px;
	font-weight: 600;
	line-height: 1;
	transition: transform 0.25s ease;
}

a.cc-tile:hover .cc-tile-img,
a.cc-tile:focus-visible .cc-tile-img {
	transform: scale(1.04);
}

a.cc-tile:hover .cc-tile-arrow,
a.cc-tile:focus-visible .cc-tile-arrow {
	transform: translateX(4px);
}

@media (max-width: 980px) {
	.cc-home { gap: 28px; }
	.cc-home--bg { padding: 72px 0; }
	.cc-home .cc-home-title { font-size: 28px; }
	.cc-home-icon { width: 56px; height: 28px; }
	.cc-home-label { gap: 20px; }
	.cc-home .cc-home-text { font-size: 30px; }
	.cc-tiles { gap: 16px; }
	.cc-tile { min-height: 340px; padding: 22px; }
	.cc-tile-body { gap: 10px; }
	.cc-tile-name { font-size: 26px; }
	.cc-tile-text { font-size: 15px; }
	.cc-tag { padding: 5px 11px; font-size: 13px; }
	.cc-tile-arrow { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 21px; }
}

@media (max-width: 600px) {
	.cc-home { gap: 20px; }
	.cc-home--bg { padding: 48px 0; }
	.cc-home .cc-home-title { font-size: 24px; }
	.cc-home-icon { width: 46px; height: 23px; }
	.cc-home-label { gap: 14px; }
	.cc-home .cc-home-text { font-size: 21px; }
	.cc-tiles { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.cc-tile { min-height: 320px; padding: 20px; }
	.cc-tile-name { font-size: 24px; }
	.cc-tag { white-space: normal; }
}
