/**
 * Global Breadcrumbs Styles
 * Reusable across all pages (PDP, Collection, Shop, etc.)
 *
 * Usage: Add class .only-breadcrumb-wrapper to the container
 *
 * @package Onviqa
 * @since 1.0.0
 */

/* ==========================================================================
   Breadcrumb Container
   ========================================================================== */

.only-breadcrumb-wrapper {
	padding: 16px 0;
	margin-bottom: 0;
}

/* ==========================================================================
   Breadcrumb Navigation - Figma Specs
   ========================================================================== */

.only-breadcrumb-wrapper .woocommerce-breadcrumb,
.ksq-product-breadcrumb .woocommerce-breadcrumb {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0;
	gap: 12px;
	margin: 0;
	font-family: "Roboto Flex", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 19px;
}

/* ==========================================================================
   Link Styles - Figma: 16px, #222222
   ========================================================================== */

.only-breadcrumb-wrapper .woocommerce-breadcrumb a,
.ksq-product-breadcrumb .woocommerce-breadcrumb a {
	color: #222222;
	font-family: "Roboto Flex", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 19px;
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
}

.only-breadcrumb-wrapper .woocommerce-breadcrumb a:hover,
.only-breadcrumb-wrapper .woocommerce-breadcrumb a:focus,
.ksq-product-breadcrumb .woocommerce-breadcrumb a:hover,
.ksq-product-breadcrumb .woocommerce-breadcrumb a:focus {
	color: #FF6B35;
	text-decoration: none;
}

/* ==========================================================================
   Separator Arrow - Figma: 6px × 10px, #222222
   ========================================================================== */

.only-breadcrumb-wrapper .woocommerce-breadcrumb .breadcrumb-separator,
.ksq-product-breadcrumb .woocommerce-breadcrumb .breadcrumb-separator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 6px;
	height: 10px;
	margin: 0;
	font-size: 0;
	text-indent: -9999px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' viewBox='0 0 6 10' fill='none'%3E%3Cpath d='M1 1L5 5L1 9' stroke='%23222222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 6px 10px;
	background-repeat: no-repeat;
	background-position: center;
}

/* ==========================================================================
   Home Icon - Figma: 22px × 22px box, 1px #222222 stroke
   ========================================================================== */

.only-breadcrumb-wrapper .woocommerce-breadcrumb > span:first-child a,
.only-breadcrumb-wrapper .woocommerce-breadcrumb > a:first-child,
.ksq-product-breadcrumb .woocommerce-breadcrumb > span:first-child a,
.ksq-product-breadcrumb .woocommerce-breadcrumb > a:first-child {
	display: inline-block;
	width: 22px;
	height: 22px;
	text-indent: -9999px;
	overflow: hidden;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M4 10L11 4L18 10V18C18 18.5523 17.5523 19 17 19H5C4.44772 19 4 18.5523 4 18V10Z' stroke='%23222222' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9 19V13H13V19' stroke='%23222222' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 22px 22px;
	background-repeat: no-repeat;
	background-position: center;
	vertical-align: middle;
	flex: none;
}

.only-breadcrumb-wrapper .woocommerce-breadcrumb > span:first-child a:hover,
.only-breadcrumb-wrapper .woocommerce-breadcrumb > a:first-child:hover,
.ksq-product-breadcrumb .woocommerce-breadcrumb > span:first-child a:hover,
.ksq-product-breadcrumb .woocommerce-breadcrumb > a:first-child:hover {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M4 10L11 4L18 10V18C18 18.5523 17.5523 19 17 19H5C4.44772 19 4 18.5523 4 18V10Z' stroke='%23ff6a00' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9 19V13H13V19' stroke='%23ff6a00' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Current Page (Last Item) - Figma: 16px, #666666
   ========================================================================== */

.only-breadcrumb-wrapper .woocommerce-breadcrumb > span:last-of-type,
.ksq-product-breadcrumb .woocommerce-breadcrumb > span:last-of-type {
	color: #666666;
	font-family: "Roboto Flex", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 19px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
	.only-breadcrumb-wrapper .woocommerce-breadcrumb,
	.ksq-product-breadcrumb .woocommerce-breadcrumb {
		font-size: 14px;
		line-height: 17px;
		gap: 8px;
	}
	
	.only-breadcrumb-wrapper .woocommerce-breadcrumb a,
	.ksq-product-breadcrumb .woocommerce-breadcrumb a,
	.only-breadcrumb-wrapper .woocommerce-breadcrumb > span:last-of-type,
	.ksq-product-breadcrumb .woocommerce-breadcrumb > span:last-of-type {
		font-size: 14px;
		line-height: 17px;
	}
	
	.only-breadcrumb-wrapper .woocommerce-breadcrumb > span:first-child a,
	.only-breadcrumb-wrapper .woocommerce-breadcrumb > a:first-child,
	.ksq-product-breadcrumb .woocommerce-breadcrumb > span:first-child a,
	.ksq-product-breadcrumb .woocommerce-breadcrumb > a:first-child {
		width: 20px;
		height: 20px;
		background-size: 20px 20px;
	}
}

/* ==========================================================================
   Mobile - Single Line Breadcrumbs (480px and below)
   ========================================================================== */

@media (max-width: 480px) {
	.only-breadcrumb-wrapper {
		width: 100%;
		padding: 16px 20px;
		box-sizing: border-box;
		overflow: hidden;
	}

	.only-breadcrumb-wrapper .woocommerce-breadcrumb,
	.ksq-product-breadcrumb .woocommerce-breadcrumb {
		display: flex;
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		gap: 8px;
		font-size: 12px;
		line-height: 14px;
		width: 100%;
		overflow: hidden;
		white-space: nowrap;
	}
	
	.only-breadcrumb-wrapper .woocommerce-breadcrumb a,
	.ksq-product-breadcrumb .woocommerce-breadcrumb a {
		font-size: 12px;
		line-height: 14px;
		flex-shrink: 0;
	}

	/* Home icon - keep fixed size */
	.only-breadcrumb-wrapper .woocommerce-breadcrumb > span:first-child a,
	.only-breadcrumb-wrapper .woocommerce-breadcrumb > a:first-child,
	.ksq-product-breadcrumb .woocommerce-breadcrumb > span:first-child a,
	.ksq-product-breadcrumb .woocommerce-breadcrumb > a:first-child {
		width: 16px;
		height: 16px;
		min-width: 16px;
		background-size: 16px 16px;
		flex-shrink: 0;
	}

	/* Separator arrows - keep fixed size */
	.only-breadcrumb-wrapper .woocommerce-breadcrumb .breadcrumb-separator,
	.ksq-product-breadcrumb .woocommerce-breadcrumb .breadcrumb-separator {
		width: 5px;
		height: 8px;
		min-width: 5px;
		background-size: 5px 8px;
		flex-shrink: 0;
	}

	/* Middle breadcrumb items - allow shrink but no wrap */
	.only-breadcrumb-wrapper .woocommerce-breadcrumb > span,
	.ksq-product-breadcrumb .woocommerce-breadcrumb > span {
		flex-shrink: 0;
		white-space: nowrap;
	}

	/* Current page (last item) - truncate with ellipsis */
	.only-breadcrumb-wrapper .woocommerce-breadcrumb > span:last-of-type,
	.ksq-product-breadcrumb .woocommerce-breadcrumb > span:last-of-type {
		color: #666666;
		font-size: 12px;
		line-height: 14px;
		flex-shrink: 1;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

