/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Description: Child theme of Twenty Twenty-Five with a custom dynamic header.
Version: 1.0
*/

/* =========================================
   CUSTOM HEADER STYLES
   ========================================= */

/* Reset block wrapper injected by WordPress */
.wp-block-ctg-custom-header {
	background-color: #fff !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Reset template-part wrapper gap */
.wp-block-template-part:has(.ctg-header) {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
	line-height: 0;
	font-size: 0;
}

.ctg-header {
	width: 100%;
	font-family: inherit;
	line-height: normal;
	font-size: 14px;
	display: flex;
	flex-direction: column;
}

/* 1. Top announcement bar */
.ctg-top-bar {
	background-color: #f2f2f2 !important;
	color: #000 !important;
	text-align: center;
	padding: 7px 16px;
	font-size: 13px;
	letter-spacing: 0.02em;
}

.ctg-top-bar a {
	color: #fff;
	text-decoration: underline;
}

/* 2. Logo section and header top layout */
.ctg-header-top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 12px 20px;
	background-color: #fff;
	border-top: 1px solid #ececec;
	gap: 20px;
}

.ctg-logo-section {
	display: flex;
	justify-content: center;
	align-items: center;
	grid-column: 2;
	padding: 6px 0;
	background-color: #fff;
}

.ctg-logo-box {
	display: inline-block;
	text-decoration: none;
}

.ctg-logo-box img {
	display: block;
	max-height: 60px;
	width: auto;
}

/* 2b. Account & Cart section */
.ctg-account-cart {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	grid-column: 3;
	justify-self: end;
	gap: 24px;
	padding: 0;
	background-color: transparent;
	border-top: none;
	flex-shrink: 0;
}

.ctg-account-link,
.ctg-signin-link,
.ctg-cart-link {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #2ecbc1;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: color 0.2s ease, opacity 0.2s ease;
	position: relative;
}

.ctg-account-link:hover,
.ctg-signin-link:hover,
.ctg-cart-link:hover {
	color: #1fa39d;
	opacity: 0.85;
}

.ctg-account-link svg,
.ctg-signin-link svg,
.ctg-cart-link svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Cart count badge */
.ctg-cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	background-color: #2ecbc1;
	color: white;
	font-size: 10px;
	font-weight: 800;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-shadow: 0 2px 4px rgba(46, 203, 193, 0.3);
}

/* Mobile account/cart section */
@media (max-width: 768px) {
	.ctg-account-cart {
		gap: 16px;
		padding: 10px 16px;
	}

	.ctg-account-label,
	.ctg-signin-label {
		display: none;
	}

	.ctg-account-link svg,
	.ctg-signin-link svg,
	.ctg-cart-link svg {
		width: 24px;
		height: 24px;
	}

	.ctg-account-cart {
		gap: 12px;
	}

	.ctg-account-label,
	.ctg-signin-label {
		display: none;
	}
}

/* 3. Category navigation bar */
.ctg-nav {
	background-color: #fff !important;
	/* border-top: 1px solid #ddd !important; */
	border-bottom: 20px solid #252525 !important;
	margin-bottom: 0 !important;
}

.ctg-nav-list {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.ctg-nav-list li {
	margin: 0;
	padding: 0;
}

.ctg-nav-list li a {
	display: block;
	padding: 11px 18px;
	color: #222;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s, background-color 0.2s;
	white-space: nowrap;
}

.ctg-nav-list li a:hover,
.ctg-nav-list li.current-cat > a,
.ctg-nav-list li.current-menu-item > a {
	color: #2ecbc1;
}

.ctg-nav-toggle {
	display: none;
	width: 100%;
	border: 0;
	background: #fff;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #222;
	cursor: pointer;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #ececec;
}

.ctg-nav-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #1f2937;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.ctg-nav-toggle-icon svg {
	display: block;
}

.ctg-nav.is-open .ctg-nav-toggle-icon {
	transform: rotate(90deg);
	background: #2ecbc1;
	color: #fff;
}

/* Mobile – header */
@media (max-width: 768px) {
	.ctg-header-top {
		padding: 10px 12px;
		gap: 12px;
	}

	.ctg-logo-section {
		flex: 1;
		min-width: 0;
	}

	.ctg-nav-toggle {
		display: flex;
	}

	.ctg-nav-list {
		display: none;
		flex-direction: column;
		align-items: stretch;
		padding: 6px 0 10px;
		background: #fff;
	}

	.ctg-nav-list.is-open,
	.ctg-nav.is-open .ctg-nav-list {
		display: flex;
	}

	.ctg-nav-list li a {
		padding: 12px 16px;
		border-bottom: 1px solid #f0f0f0;
	}

	.ctg-nav-list li:last-child a {
		border-bottom: 0;
	}

	.ctg-logo-box {
		padding: 10px 30px;
		font-size: 18px;
	}
}

/* Prevent any gap / black bleed between header template part and page content */
.wp-site-blocks > * + * {
	margin-top: 0 !important;
}

.wp-block-template-part {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
}

/* =========================================
   CUSTOM FOOTER STYLES
   ========================================= */

.ctg-footer {
	background-color: #111827;
	color: #fff;
	font-size: 14px;
	width: 100%;
}

/* Main columns area */
.ctg-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 24px 48px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
}

/* Logo column */
.ctg-footer-logo a {
	display: inline-block;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1;
	margin-bottom: 8px;
}

.ctg-footer-logo img {
	max-height: 60px;
	width: auto;
	display: block;
}

/* Column headings */
.ctg-footer-col h3 {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 20px;
	letter-spacing: 0.01em;
}

/* Column link lists */
.ctg-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ctg-footer-col ul li {
	margin-bottom: 12px;
}

.ctg-footer-col ul li a {
	color: #b0b8c8;
	text-decoration: none;
	transition: color 0.2s;
	font-size: 14px;
}

.ctg-footer-col ul li a:hover {
	color: #2ecbc1;
}

/* Contact column */
.ctg-footer-contact p {
	color: #b0b8c8;
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.6;
}

.ctg-footer-contact a {
	color: #b0b8c8;
	text-decoration: none;
}

.ctg-footer-contact a:hover {
	color: #2ecbc1;
}

/* Social icons */
.ctg-footer-social {
	display: flex;
	gap: 14px;
	margin-top: 18px;
	align-items: center;
}

.ctg-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 2px solid #fff;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.ctg-footer-social a:hover {
	border-color: #2ecbc1;
	color: #2ecbc1;
}

.ctg-footer-social svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Copyright bar */
.ctg-footer-bottom {
	background-color: #000;
	text-align: center;
	padding: 14px 16px;
	color: #888;
	font-size: 13px;
}

/* Mobile – footer */
@media (max-width: 900px) {
	.ctg-footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 540px) {
	.ctg-footer-inner {
		grid-template-columns: 1fr;
	}
}

/* =========================================
   HOME CAROUSEL
   ========================================= */

.ctg-carousel-wrap {
	width: 100%;
	overflow: hidden;
	margin: 0;
	padding: 0;
	line-height: 0; /* kill inline gap */
}

/* Swiper container */
.ctg-carousel-wrap .swiper {
	width: 100%;
	height: 480px;
	line-height: normal;
}

/* Each slide */
.ctg-slide {
	position: relative;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* Hidden img tag (used for lazy load; bg-image handles visual display) */
.ctg-slide-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* Dark overlay so text stays readable */
.ctg-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient( to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%, transparent 100% );
	z-index: 1;
}

/* Slide text content */
.ctg-slide-content {
	position: relative;
	z-index: 2;
	max-width: 520px;
	padding: 0 60px;
	color: #fff;
}

.ctg-slide-title {
	font-size: clamp(24px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 12px;
	color: #fff;
}

.ctg-slide-text {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 24px;
	color: rgba(255,255,255,0.9);
}

.ctg-slide-btn {
	display: inline-block;
	background-color: #2ecbc1;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 32px;
	text-decoration: none;
	border-radius: 2px;
	transition: background-color 0.2s, transform 0.15s;
}

.ctg-slide-btn:hover {
	background-color: #25aaa1;
	transform: translateY(-1px);
	color: #fff;
}

/* Navigation arrows */
.ctg-carousel-wrap .swiper-button-prev,
.ctg-carousel-wrap .swiper-button-next {
	color: #fff;
	background: rgba(0,0,0,0.3);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transition: background 0.2s;
}

.ctg-carousel-wrap .swiper-button-prev:hover,
.ctg-carousel-wrap .swiper-button-next:hover {
	background: rgba(0,0,0,0.55);
}

.ctg-carousel-wrap .swiper-button-prev::after,
.ctg-carousel-wrap .swiper-button-next::after {
	font-size: 16px;
}

/* Pagination dots */
.ctg-carousel-wrap .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.6;
	width: 10px;
	height: 10px;
}

.ctg-carousel-wrap .swiper-pagination-bullet-active {
	background: #2ecbc1;
	opacity: 1;
}

/* Empty state */
.ctg-carousel-empty {
	padding: 48px 24px;
	text-align: center;
	color: #888;
	background: #f5f5f5;
}

/* Mobile */
@media (max-width: 768px) {
	.ctg-carousel-wrap .swiper {
		height: 260px;
	}

	.ctg-slide-content {
		padding: 0 24px;
	}

	.ctg-slide-title {
		font-size: 22px;
	}
}

/* =========================================
   SHARED SECTION HELPERS
   ========================================= */

.ctg-section-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.ctg-section-title {
	text-align: center;
	font-size: clamp(20px, 2.5vw, 28px);
	font-weight: 700;
	margin: 0 0 32px;
	color: #111;
}

.ctg-no-content {
	text-align: center;
	color: #888;
	padding: 24px;
}

/* =========================================
   FEATURE STRIP
   ========================================= */

.ctg-feature-strip {
	background: #fff;
	padding: 20px 24px;
	border-bottom: 1px solid #eee;
}

.ctg-feature-strip-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.ctg-feature-item {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #f0fdfb;
	border: 1px solid #b2ede9;
	border-radius: 8px;
	padding: 14px 16px;
}

.ctg-feature-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	color: #2ecbc1;
}

.ctg-feature-icon svg {
	width: 100%;
	height: 100%;
}

.ctg-feature-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ctg-feature-text strong {
	font-size: 14px;
	font-weight: 600;
	color: #111;
}

.ctg-feature-text span {
	font-size: 12px;
	color: #666;
}

@media (max-width: 900px) {
	.ctg-feature-strip-inner {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ctg-feature-strip-inner {
		grid-template-columns: 1fr;
	}
}

/* =========================================
   SHOP BY CATEGORY
   ========================================= */

.ctg-shop-categories {
	padding: 48px 0;
	background: #fafafa;
}

.ctg-cat-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

.ctg-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	width: 110px;
}

.ctg-cat-img-wrap {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #e8e8e8;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ctg-cat-item:hover .ctg-cat-img-wrap {
	border-color: #2ecbc1;
	box-shadow: 0 0 0 3px rgba(46,203,193,0.15);
}

.ctg-cat-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ctg-cat-name {
	font-size: 13px;
	font-weight: 500;
	color: #222;
	text-align: center;
}

.ctg-cat-item:hover .ctg-cat-name {
	color: #2ecbc1;
}

/* =========================================
   PRODUCT CARD (shared by featured + shop sections)
   ========================================= */

.ctg-product-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
	overflow: hidden;
}

.ctg-product-img-link {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f5;
}

.ctg-product-img-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.ctg-product-img-link:hover img {
	transform: scale(1.04);
}

.ctg-product-no-img {
	width: 100%;
	height: 100%;
	background: #eee;
}

.ctg-product-info {
	padding: 14px 14px 16px;
}

.ctg-product-title {
	display: block;
	font-size: 13px;
	color: #222;
	text-decoration: none;
	line-height: 1.4;
	margin-bottom: 6px;
}

.ctg-product-title:hover {
	color: #2ecbc1;
}

.ctg-product-price {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ctg-price-sale {
	font-size: 14px;
	font-weight: 700;
	color: #2ecbc1;
}

.ctg-price-orig {
	font-size: 12px;
	color: #999;
	text-decoration: line-through;
}

/* =========================================
   FEATURED PRODUCTS CAROUSEL
   ========================================= */

.ctg-featured-products {
	padding: 48px 0;
	background: #fff;
}

.ctg-fp-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ctg-fp-arrow {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s, background 0.2s;
	padding: 0;
}

.ctg-fp-arrow:hover {
	border-color: #2ecbc1;
	background: #f0fdfb;
}

.ctg-fp-arrow svg {
	width: 18px;
	height: 18px;
	color: #333;
}

.ctg-fp-wrapper .swiper {
	flex: 1;
	min-width: 0;
}

/* =========================================
   PROMO BANNERS
   ========================================= */

.ctg-promo-banners {
	padding: 48px 0;
	background: #f9f9f9;
}

.ctg-promo-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.ctg-promo-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 16 / 7;
	background: #333;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
}

.ctg-promo-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.ctg-promo-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
	z-index: 1;
}

.ctg-promo-content {
	position: relative;
	z-index: 2;
	padding: 24px;
	color: #fff;
}

.ctg-promo-title {
	font-size: clamp(16px, 2vw, 24px);
	font-weight: 700;
	margin: 0 0 6px;
	color: #fff;
}

.ctg-promo-text {
	font-size: 13px;
	margin: 0 0 12px;
	color: rgba(255,255,255,0.9);
}

.ctg-promo-btn {
	display: inline-block;
	background: #2ecbc1;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 20px;
	border-radius: 2px;
	text-decoration: none;
	transition: background 0.2s;
}

.ctg-promo-btn:hover {
	background: #25aaa1;
	color: #fff;
}

@media (max-width: 640px) {
	.ctg-promo-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================
   SHOP SECTIONS (Shop Women, Shop Men, etc.)
   ========================================= */

.ctg-shop-section {
	padding: 48px 0;
	background: #fff;
}

.ctg-shop-section:nth-child(even) {
	background: #fafafa;
}

.ctg-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.ctg-view-all-wrap {
	text-align: center;
	margin-top: 32px;
}

.ctg-view-all-btn {
	display: inline-block;
	background: #2ecbc1;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 48px;
	border-radius: 30px;
	text-decoration: none;
	text-transform: lowercase;
	transition: background 0.2s, transform 0.15s;
}

.ctg-view-all-btn:hover {
	background: #25aaa1;
	color: #fff;
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	.ctg-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ctg-product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

/* =========================================
   NEWSLETTER BANNER
   ========================================= */

.ctg-newsletter {
	background: #f5f0eb;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 56px 24px;
	position: relative;
}

.ctg-newsletter::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(245,240,235,0.8);
	z-index: 0;
}

.ctg-newsletter-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.ctg-newsletter-text h2 {
	font-size: clamp(18px, 2.5vw, 26px);
	font-weight: 700;
	color: #111;
	margin: 0 0 8px;
}

.ctg-newsletter-text p {
	font-size: 14px;
	color: #555;
	margin: 0;
}

.ctg-newsletter-btn {
	flex-shrink: 0;
	display: inline-block;
	background: #2ecbc1;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 14px 40px;
	border-radius: 2px;
	text-decoration: none;
	transition: background 0.2s;
}

.ctg-newsletter-btn:hover {
	background: #25aaa1;
	color: #fff;
}

@media (max-width: 640px) {
	.ctg-newsletter-inner {
		flex-direction: column;
		text-align: center;
	}
}

/* Fix nav border — remove the black bottom-border from earlier */
.ctg-nav {
	border-bottom: 1px solid #ddd !important;
}


/* Hide titles on hero carousel slides and promo banners */
.ctg-slide-title,
.ctg-promo-title {
	display: none !important;
}

/* =========================================
   CATEGORY ARCHIVE BANNER
   ========================================= */

.ctg-cat-banner {
position: relative;
width: 100%;
height: 360px;
background-color: #2ecbc1;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}

.ctg-cat-banner-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}

/* Dark overlay for readability */
.ctg-cat-banner::after {
content: '';
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.35);
z-index: 1;
}

.ctg-cat-banner-overlay {
position: relative;
z-index: 2;
text-align: center;
padding: 0 24px;
}

.ctg-cat-banner-title {
font-size: clamp(32px, 6vw, 72px);
font-weight: 800;
color: #fff;
letter-spacing: 0.08em;
text-transform: uppercase;
margin: 0 0 12px;
line-height: 1.1;
text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.ctg-cat-banner-desc {
font-size: 16px;
color: rgba(255,255,255,0.9);
margin: 0;
max-width: 600px;
}

@media (max-width: 640px) {
.ctg-cat-banner {
height: 220px;
}
}

/* =========================================
   CATEGORY PAGE GRID
   ========================================= */

.tax-category .wp-block-query {
	max-width: 1320px;
	margin: 0 auto;
}

.tax-category .wp-block-group:has(.ctg-category-posts) {
	background: #f6f7fb;
}

.ctg-category-posts {
	padding: 28px 0 32px;
}

.ctg-category-posts .ctg-section-inner {
	max-width: none;
}

.wp-block-group:has(.ctg-category-posts).is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: none !important;
}

.ctg-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
}

.ctg-category-card {
	height: 100%;
}

.ctg-category-card .ctg-product-img-link {
	aspect-ratio: 1 / 1.05;
}

.ctg-category-card .ctg-product-title {
	min-height: 3.4em;
	font-size: 15px;
}

.ctg-category-card .ctg-price-sale {
	font-size: 17px;
}

.ctg-category-card .ctg-price-orig {
	font-size: 13px;
}

.ctg-category-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 36px;
}

.ctg-category-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
	color: #222;
	text-decoration: none;
}

.ctg-category-pagination .page-numbers.current,
.ctg-category-pagination .page-numbers:hover {
	background: #2ecbc1;
	color: #fff;
}

.tax-category .wp-block-post-template.is-layout-grid {
	gap: 24px;
}

.tax-category .wp-block-post-featured-image {
	margin-bottom: 0;
	overflow: hidden;
	background: #f5f5f5;
}

.tax-category .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.tax-category .wp-block-post-template li:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.tax-category .wp-block-post-title {
	margin-top: 10px;
	margin-bottom: 4px;
	line-height: 1.4;
}

.tax-category .wp-block-post-title a {
	color: #222;
	text-decoration: none;
}

.tax-category .wp-block-post-title a:hover {
	color: #2ecbc1;
}

@media (max-width: 1200px) {
	.ctg-category-grid,
	.tax-category .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (max-width: 768px) {
	.ctg-category-grid,
	.tax-category .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.ctg-category-grid,
	.tax-category .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================================
   SINGLE PRODUCT PAGE
   ============================================================================ */

.ctg-single-product {
	background: #f6f7fb;
	padding-bottom: 60px;
}

.ctg-single-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px 0;
}

/* ── Top section: gallery + info ── */
.ctg-single-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: flex-start;
	margin-bottom: 48px;
}

/* Gallery */
.ctg-single-gallery {
	position: sticky;
	top: 24px;
}

.ctg-single-main-img-wrap {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 12px;
}

.ctg-single-main-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.15s ease;
}

.ctg-single-no-img {
	width: 100%;
	height: 100%;
	background: #eee;
}

.ctg-single-thumbs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ctg-single-thumb {
	width: 72px;
	height: 72px;
	border-radius: 10px;
	border: 2px solid transparent;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	padding: 0;
	transition: border-color 0.2s;
	flex-shrink: 0;
}

.ctg-single-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ctg-single-thumb.active,
.ctg-single-thumb:hover {
	border-color: #2ecbc1;
}

/* Product info */
.ctg-single-info {
	padding-top: 8px;
}

.ctg-single-title {
	font-size: clamp(20px, 2.5vw, 28px);
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.3;
	margin: 0 0 16px;
}

.ctg-single-price {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.ctg-single-price-sale {
	font-size: 26px;
	font-weight: 700;
	color: #2ecbc1;
}

.ctg-single-price-orig {
	font-size: 18px;
	font-weight: 400;
	color: #999;
	text-decoration: line-through;
}

/* Native WooCommerce add-to-cart form inside custom single product layout */
.ctg-single-add-to-cart {
	margin: 0 0 20px;
}

.ctg-single-add-to-cart form.cart {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0;
}

.ctg-single-add-to-cart .quantity {
	margin: 0;
}

.ctg-single-add-to-cart .quantity .qty {
	width: 78px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid #d8dbe3;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	color: #1a1a2e;
}

.ctg-single-add-to-cart .single_add_to_cart_button {
	height: 44px;
	padding: 0 22px;
	border: none;
	border-radius: 8px;
	background: #121212;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 44px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.ctg-single-add-to-cart .single_add_to_cart_button:hover {
	background: #2ecbc1;
}

.ctg-single-add-to-cart .single_add_to_cart_button:active {
	transform: translateY(1px);
}

.ctg-single-add-to-cart .single_add_to_cart_button:disabled,
.ctg-single-add-to-cart .single_add_to_cart_button.disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.ctg-single-desc {
	font-size: 15px;
	color: #444;
	line-height: 1.75;
}

.ctg-single-desc p {
	margin: 0 0 12px;
}

/* ── Tabs ── */
.ctg-single-tabs {
	border-top: 1px solid #e0e0e8;
	margin-bottom: 0;
}

.ctg-tabs-nav {
	display: flex;
	border-bottom: 1px solid #e0e0e8;
}

.ctg-tab-btn {
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.ctg-tab-btn:hover {
	color: #2ecbc1;
}

.ctg-tab-btn.active {
	color: #1a1a2e;
	border-bottom-color: #2ecbc1;
}

.ctg-tabs-body {
	padding: 28px 0;
}

.ctg-tab-panel {
	display: none;
	font-size: 15px;
	color: #444;
	line-height: 1.8;
}

.ctg-tab-panel.active {
	display: block;
}

.ctg-tab-panel p {
	margin: 0 0 12px;
}

/* ── Related products ── */
.ctg-single-related {
	background: #fff;
	padding: 56px 0;
	margin-top: 48px;
}

.ctg-single-related-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}


/* Fallback: hide WooCommerce default related products section site-wide on product pages. */
.single-product .related.products {
	display: none !important;
}

/* Force-hide WooCommerce default tabs/reviews and all related sections on single product pages. */
.single-product .woocommerce-tabs,
.single-product .woocommerce-Tabs-panel,
.single-product ul.tabs,
.single-product #reviews,
.single-product .upsells.products,
.single-product .related.products,
.single-product .ctg-single-related {
	display: none !important;
}
.ctg-single-related-title {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a2e;
	text-align: center;
	margin: 0 0 36px;
}

.ctg-single-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.ctg-related-card .ctg-product-img-link {
	aspect-ratio: 1 / 1.05;
}

.ctg-related-card .ctg-product-title {
	min-height: 3.4em;
	font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.ctg-single-top {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.ctg-single-gallery {
		position: static;
	}
}

@media (max-width: 768px) {
	.ctg-single-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ctg-tab-btn {
		padding: 12px 18px;
		font-size: 14px;
	}
	.ctg-single-add-to-cart form.cart {
		gap: 10px;
	}
	.ctg-single-add-to-cart .quantity .qty {
		width: 72px;
		height: 42px;
	}
	.ctg-single-add-to-cart .single_add_to_cart_button {
		height: 42px;
		line-height: 42px;
		padding: 0 18px;
	}
}

@media (max-width: 480px) {
	.ctg-single-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}
