/* ========================================================
   Woo Category & Product Cards — Frontend & Editor Styles
   ======================================================== */

/* ========================================================
   1. PRODUCT CARDS (Original Premium Design)
   ======================================================== */

/* ----- Grid ----- */
.wcc-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

/* ----- Card ----- */
.wcc-card {
	position: relative;
	display: flex;
	align-items: center; /* Default to middle vertically */
	overflow: hidden;
	text-decoration: none !important;
	min-height: 280px;
	border-radius: 10px;
	/* No default gradient – Elementor controls this 100% */
}

/* Hover gloss shimmer */
.wcc-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(
		to right,
		rgba(255,255,255,0.00) 0%,
		rgba(255,255,255,0.10) 50%,
		rgba(255,255,255,0.00) 100%
	);
	transform: skewX(-15deg);
	z-index: 10;
	pointer-events: none;
	transition: left 0.65s ease;
}
.wcc-card:hover::after {
	left: 140%;
}
.wcc-card:hover,
.wcc-card:focus {
	text-decoration: none !important;
}

/* ----- Product Image — right side ----- */
.wcc-card-image-wrap {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 55%;
	height: 95%;
	z-index: 5;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	pointer-events: none;
}
.wcc-card-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right bottom;
	display: block;
	transition: transform 0.5s ease;
}
.wcc-hover-zoom:hover .wcc-card-image-wrap img {
	transform: scale(1.08);
}

/* -------------------------------------------------------
   Full Card Gradient Overlay 
   ------------------------------------------------------- */
.wcc-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	background: linear-gradient(
		180deg,
		rgba(255,255,255,0.25) 0%,
		rgba(255,255,255,0.00) 40%,
		rgba(0,0,0,0.15) 70%,
		rgba(0,0,0,0.60) 100%
	);
	pointer-events: none;
}

/* ----- Content — bottom-left, z-index 3 ----- */
.wcc-card-content {
	position: relative;
	z-index: 3;
	width: 60%;
	padding: 20px 24px 28px 24px;
}

/* ----- Title ----- */
.wcc-card .wcc-card-title {
	margin: 0 0 8px 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
	text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* ----- Description ----- */
.wcc-card .wcc-card-desc,
.wcc-card .wcc-card-desc p {
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(255,255,255,0.90);
}
.wcc-card .wcc-card-desc p:last-child {
	margin-bottom: 0;
}
.wcc-card .wcc-card-desc .amount {
	font-weight: 700;
	font-size: 1.1em;
	color: #ffffff;
}

/* ========================================================
   2. CATEGORY CARDS (Apple-Style Design)
   ======================================================== */

.wcc-cat-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr); /* Default to 1 column for full width banners, can be changed in settings */
	gap: 20px;
}

.wcc-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	border-radius: 0; /* Apple style is often flat, but Elementor can add border-radius if wanted */
	text-decoration: none !important;
	background-color: #f5f5f7;
	padding-top: 55px;
	min-height: 500px;
	text-align: center;
	transition: background-color 0.3s ease;
}

.wcc-cat-card:hover {
	background-color: #ededef;
}

.wcc-cat-content {
	z-index: 2;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.wcc-cat-title {
	margin: 0;
	font-size: 36px;
	font-weight: 600;
	color: #1d1d1f;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.wcc-cat-desc,
.wcc-cat-desc p {
	margin: 0;
	font-size: 19px;
	color: #1d1d1f;
	line-height: 1.3;
}

.wcc-cat-btn {
	display: inline-block;
	background-color: #0071e3;
	color: #ffffff;
	font-size: 14px;
	font-weight: 400;
	padding: 8px 16px;
	border-radius: 20px;
	text-decoration: none;
	transition: background-color 0.3s;
}

.wcc-cat-btn:hover {
	background-color: #0077ed;
	color: #ffffff;
}

.wcc-cat-image-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.wcc-cat-footer {
	width: 100%;
	display: flex;
	justify-content: center;
}

.wcc-cat-image-wrap img {
	max-width: 80%;
	max-height: 100%; /* Never exceed the height of the flex container */
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: bottom;
	display: block;
	transition: transform 0.5s ease;
}

.wcc-cat-card:hover .wcc-cat-image-wrap img {
	transform: scale(1.03);
}
