/* ── Verlag font-face ── */

@font-face {
	font-family: 'Verlag';
	src: url( '../fonts/Verlag-XLight.otf' ) format( 'opentype' );
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Verlag';
	src: url( '../fonts/Verlag-Bold.otf' ) format( 'opentype' );
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Verlag';
	src: url( '../fonts/Verlag-Book.otf' ) format( 'opentype' );
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Verlag';
	src: url( '../fonts/Verlag-Book.otf' ) format( 'opentype' );
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

/* Bamboo Bikes block */

.wp-block-bamboo-bikes {
	margin: 0;
	--bamboo-bikes-icon-size: 1rem;
}

/* ── Header: title + tabs ── */
.bamboo-bikes-header {
	padding-top: 4rem;
	padding-bottom: 1rem;
}

.bamboo-bikes-title-row {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: flex-start;
}

@media ( min-width: 768px ) {
	.bamboo-bikes-title-row {
		flex-direction: row;
		align-items: baseline;
		gap: 3rem;
	}
}

.bamboo-bikes-title {
	font-size: 1.875rem;
	font-weight: 900;
	text-transform: uppercase;
	margin: 0;
	line-height: 1;
}

/* Tabs nav */
.bamboo-bikes-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	align-items: baseline;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bamboo-bikes-tab {
	background: none;
	border: none;
	border-right: 1px solid #878787;
	padding: 0 0.65rem;
	color: #878787;
	cursor: pointer;
	line-height: 1;
	white-space: nowrap;
    font-size: 1.25rem;
    font-family: 'Verlag Bold';
}

.bamboo-bikes-tab:first-child {
	padding-left: 0;
}

.bamboo-bikes-tab:last-child {
	border-right: none;
}

.bamboo-bikes-tab.is-active {
	color: #7CB179 !important;
	font-weight: 700 !important;
}

.bamboo-bikes-tab:hover:not( .is-active ) {
	color: #7CB179 !important;
}

/* ── Panels ── */
.bamboo-bikes-panel {
	display: none;
}

.bamboo-bikes-panel.is-active {
	display: block;
}

/* ── Featured product ── */
.bamboo-bikes-featured {
	background: #f9fafb;
	border-top: 1px solid #f3f4f6;
	border-bottom: 1px solid #f3f4f6;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bamboo-bikes-featured-inner {
	display: grid;
	grid-template-columns: 1fr 2fr;
}

@media ( max-width: 767px ) {
	.bamboo-bikes-featured-inner {
		grid-template-columns: 1fr;
	}
}

.bamboo-bikes-featured-image {
	background: transparent;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bamboo-bikes-featured-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.bamboo-bikes-featured-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-height: 20rem;
	display: block;
}

.bamboo-bikes-featured-placeholder {
	width: 100%;
	height: 28rem;
	background: #e5e7eb;
}

.bamboo-bikes-featured-content {
	padding: 2rem 3rem 3rem;
}

.bamboo-bikes-featured-name {
	font-family: 'Verlag XLight', sans-serif;
	font-size: 4rem;
	font-weight: 200;
	letter-spacing: -0.025em;
	margin: 0 0 -0.75rem;
	line-height: 1.1;
}

.bamboo-bikes-featured-name a {
	color: inherit;
	text-decoration: none;
}

/* Badge (category label) */
.bamboo-bikes-badge {
	display: inline-block;
	font-family: 'Verlag Bold', sans-serif;
	background: #95e37a;
	font-size: 1.375rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

/* Price */
.bamboo-bikes-price {
	margin-bottom: 1.25rem;
}

.bamboo-bikes-price del,
.bamboo-bikes-price .bamboo-bikes-regular-price {
	display: block;
	font-size: 0.8125rem;
	color: #9ca3af;
	font-weight: 400;
	text-decoration: line-through;
	margin-bottom: 0.25rem;
	font-family: 'Verlag XLight', sans-serif;
	font-style: italic;
}

.bamboo-bikes-price ins,
.bamboo-bikes-price .bamboo-bikes-sale-price {
	display: block;
	font-size: 1.125rem;
	font-weight: 300;
	font-style: italic;
	font-family: 'Verlag Bold', sans-serif;
	text-decoration: none;
}

.bamboo-bikes-featured-excerpt {
	font-size: 1.1rem;
	color: #4b5563;
	line-height: 1.1;
	margin-bottom: 1.25rem;
}

.bamboo-bikes-featured-tagline {
	font-family: 'Verlag Light', sans-serif;
    font-size: 2rem;
    line-height: 1.1;
}

.bamboo-bikes-featured-specs {
	list-style: none;
	padding: 0;
	margin: 0 0 1.75rem;
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 0.35rem 1.25rem;
}

.bamboo-bikes-featured-spec-item {
	display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.25rem;
    color: #1f2937;
    font-family: 'Verlag Light';
}

.bamboo-bikes-featured-spec-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var( --bamboo-bikes-icon-size );
	height: var( --bamboo-bikes-icon-size );
	font-size: calc( var( --bamboo-bikes-icon-size ) * 0.85 );
	color: #374151;
}

.bamboo-bikes-featured-spec-icon img,
.bamboo-bikes-featured-spec-label img {
	width: var( --bamboo-bikes-icon-size );
	height: var( --bamboo-bikes-icon-size );
	display: inline-block;
	object-fit: contain;
	vertical-align: -0.1em;
}

.bamboo-attribute-icon {
	width: 1.25rem !important;
	height: 1.25rem !important;
	display: inline-block !important;
	object-fit: contain !important;
	margin-right: 0.35rem !important;
	vertical-align: middle !important;
	flex-shrink: 0 !important;
}

.bamboo-bikes-featured-spec-label img {
	margin-right: 0.35rem;
}

@media ( max-width: 767px ) {
	.bamboo-bikes-featured-specs {
		grid-template-columns: 1fr;
	}
}

.bamboo-bikes-cta {
	display: inline-block;
    border: 2px solid #111827;
    padding: 0.75rem 2rem;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    font-family: 'Verlag Black';
    color: #111827;
    text-transform: uppercase;
    transition: background 0.15s, color 0.15s;
}

.bamboo-bikes-cta:hover {
	background: #111827;
	color: #fff;
}

/* ── Product grid ── */
.bamboo-bikes-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 2rem;
	padding-top: 3rem;
	padding-bottom: 2rem;
}

@media ( max-width: 767px ) {
	.bamboo-bikes-grid {
		grid-template-columns: 1fr;
	}
}

@media ( min-width: 768px ) and ( max-width: 1023px ) {
	.bamboo-bikes-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( min-width: 1024px ) and ( max-width: 1279px ) {
	.bamboo-bikes-grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}

.bamboo-bikes-grid-item {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 0;
}

.bamboo-bikes-grid-image-link {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f4f6;
	margin-bottom: 1rem;
}

.bamboo-bikes-grid-image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.bamboo-bikes-grid-image-link:hover img {
	transform: scale( 1.03 );
}

.bamboo-bikes-featured-img-wrap img,
.bamboo-bikes-featured-image img {
	width: 100%;
	height: 100%;
	min-height: 28rem;
	object-fit: contain;
	display: block;
}

@media ( max-width: 767px ) {
	.bamboo-bikes-featured-img-wrap img,
	.bamboo-bikes-featured-image img,
	.bamboo-bikes-featured-placeholder {
		min-height: 20rem;
		height: 20rem;
	}
}

.bamboo-bikes-grid-placeholder {
	width: 100%;
	height: 100%;
	background: #e5e7eb;
}

.bamboo-bikes-grid-name {
	font-family: Verlag XLight, sans-serif;
	font-size: 2rem;
	font-weight: 200;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	margin: 0.75rem 0 0.5rem;
	line-height: 1.05;
	min-height: 0; /* Let content determine height */
}

.bamboo-bikes-grid-name a {
	color: inherit;
	text-decoration: none;
}

.bamboo-bikes-grid-item .bamboo-bikes-badge {
	display: inline-block;
	font-family: 'Verlag Bold', sans-serif;
	background: #95e37a;
	font-size: 1.375rem;
	font-weight: 700;
	margin: 0.-0.5rem 0 0;
	width: fit-content;
}

.bamboo-bikes-grid-price {
	display: block;
	font-size: 1.125rem;
	font-weight: 400;
	font-style: italic;
	font-family: 'Verlag', sans-serif;
	text-decoration: none;
}

/* Empty */
.bamboo-bikes-empty {
	padding: 3rem 0;
	color: #6b7280;
	text-align: center;
}

/* ── Footer: Ver todas ── */
.bamboo-bikes-footer {
	padding: 1.5rem 0 4rem;
	text-align: center;
}

.bamboo-bikes-view-all {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 200;
	font-family: 'Verlag', sans-serif;
	color: #374151;
}

.bamboo-bikes-view-all img {
	width: 1em;
	height: 1em;
	display: inline-block;
	object-fit: contain;
	flex-shrink: 0;
}

.bamboo-bikes-view-all:hover {
	color: #111827;
}

/* ── Editor only helpers ── */

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor {
	margin-bottom: 1rem;
	padding-top: 4rem;
	padding-bottom: 1rem;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.04 );
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor__title {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111827;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor__hint {
	margin: 0.35rem 0 0.75rem;
	font-size: 0.75rem;
	color: #6b7280;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: block;
	padding-bottom: 0.25rem;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor > .block-editor-inner-blocks > .block-editor-block-list__layout > * {
	margin: 0 0 0.55rem;
	width: 100%;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block {
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #f8fafc;
	padding: 0.5rem 0.7rem;
	box-shadow: inset 0 0 0 1px rgba( 255, 255, 255, 0.6 );
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block:hover {
	border-color: #94a3b8;
	background: #f1f5f9;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block.is-selected {
	border-color: #2563eb;
	box-shadow: 0 0 0 2px rgba( 37, 99, 235, 0.15 );
	background: #eff6ff;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-title:not([class*="has-"]) {
	font-size: 1.875rem;
	font-weight: 900;
	text-transform: uppercase;
	font-style: italic;
	line-height: 1;
	margin: 0;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-all-tab:not([class*="has-"]),
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-view-all:not([class*="has-"]),
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-cta:not([class*="has-"]),
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-empty:not([class*="has-"]) {
	font-size: 0.875rem;
	margin: 0;
	color: #374151;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-tagline:not([class*="has-"]) {
	font-size: 1.5rem;
	line-height: 1.1;
	font-weight: 500;
	text-transform: uppercase;
	margin: 0;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-description:not([class*="has-"]),
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-1:not([class*="has-"]),
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-2:not([class*="has-"]),
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-3:not([class*="has-"]),
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-4:not([class*="has-"]),
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-5:not([class*="has-"]) {
	font-size: 0.875rem;
	line-height: 1.45;
	margin: 0;
	color: #374151;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-1,
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-2,
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-3,
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-4,
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-5 {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-1 img,
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-2 img,
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-3 img,
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-4 img,
.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-featured-spec-5 img {
	width: var( --bamboo-bikes-icon-size );
	height: var( --bamboo-bikes-icon-size );
	display: inline-block;
	object-fit: contain;
	vertical-align: middle;
	margin: 0;
}

.editor-styles-wrapper .wp-block-bamboo-bikes .bamboo-bikes-inline-editor .bamboo-bikes-inline-all-tab {
	color: #4d7c0f;
	font-weight: 700;
}
