/**
 * Header Secondary Styles
 * 
 * Secondary header bar, online shop button, category dropdown, search
 *
 * @package Genesis_Child
 * @since 1.0.0
 */

/* ========================================
 * SECONDARY HEADER BAR
 * ======================================== */

.header-secondary {
	background-color: #ffffff;
	padding: 12px 0 0;
	margin-bottom: 14px;
	width: 100%;
	display: block;
}

.header-secondary-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	align-items: center;
	gap: 20px;
}

/* ========================================
 * ONLINE SHOP BUTTON & DROPDOWN
 * ======================================== */

.header-online-shop-wrapper {
	/*position: relative;*/
	flex-shrink: 0;
}

.header-online-shop {
	flex-shrink: 0;
}

.online-shop-button {
	background-color: #F6218D;
	color: #ffffff;
	padding: 38px 34px 38px 59px;
	border-radius: 0;
	text-decoration: none;
	font-size: 24px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.1px;
	display: inline-flex;
	align-items: center;
	gap: 18px;
	transition: background-color 0.3s ease;
	white-space: nowrap;
	cursor: pointer;
}

.online-shop-button:hover {
	background-color: #000000;
	color: #ffffff;
}

.online-shop-button svg {
	width: 22px;
	height: 22px;
	transition: transform 0.3s ease;
}

.header-online-shop-wrapper:hover .online-shop-button svg,
.online-shop-button:hover svg {
	transform: rotate(180deg);
}

/* ========================================
 * CATEGORY DROPDOWN MENU
 * ======================================== */

.category-dropdown-menu {
	position: absolute;
	top: calc(100% + 0px);
	left: 0;
	background-color: #ffffff;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	width: 100%;
	opacity: 0 !important;
	visibility: hidden !important;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	z-index: 10000;
	overflow: hidden;
	display: none !important;
	pointer-events: none !important;
	overflow: hidden !important;
}

/* Ensure category dropdown is hidden when not hovering */
.header-online-shop-wrapper:not(:hover) .category-dropdown-menu {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.header-online-shop-wrapper:hover .category-dropdown-menu {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0);
	pointer-events: auto !important;
	display: flex !important;
	/*height: auto !important;
	width: auto !important;
	min-width: 800px !important;
	max-width: 1200px !important;*/
}

/*.category-dropdown-menu:hover {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0);
	pointer-events: auto !important;
	display: flex !important;
	height: auto !important;
	width: auto !important;
	min-width: 800px !important;
	max-width: 1200px !important;
}*/

/* Dropdown Arrow */
.category-dropdown-menu::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 20px;
	border: 8px solid transparent;
	border-bottom-color: #ffffff;
	margin-bottom: -1px;
	display: none;
}

.category-dropdown-content {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0 15px;
    max-height: 350px;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Custom Scrollbar */
.category-dropdown-content::-webkit-scrollbar {
	width: 8px;
}

.category-dropdown-content::-webkit-scrollbar-track {
	background: #f5f5f5;
	border-radius: 4px;
}

.category-dropdown-content::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.category-dropdown-content::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/* Category Column */
.category-column {
	min-width: 290px;
	max-width: 290px;
	padding: 0px;
	border-right: 1px solid #e0e0e0;
	background-color: #ffffff;
	overflow-y: auto;
	max-height: 350px;
}

.category-column:first-child {
	border-left: none;
}

.category-column:last-child {
	border-right: none;
}

.category-columns-container {
	display: flex;
	flex-direction: row;
	overflow: visible;
	flex: 1;
}
.category-columns-container .category-column{
	min-width: 50%;
    max-width: 50%;
    border: 0;
}

/* Category List */
.category-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.category-list .category-item{
	border-top: 1px dashed #DADADA;
}
.category-list .category-item:first-child{
	border-top:0;
}

.category-item {
	margin: 0;
	padding: 0;
}

.category-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #222222;
	text-decoration: none;
	padding: 17px 24px;
	border-radius: 4px;
	transition: background-color 0.2s ease, color 0.2s ease;
	position: relative;
}

.category-link:hover,
.category-item.active > .category-link {
	background-color: #f5f5f5;
	color: #ff4081;
}

.category-name {
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	flex: 1;
}

.category-arrow {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-left: 8px;
	color: #222222;
	transition: color 0.2s ease, transform 0.2s ease;
}

.category-item:hover .category-arrow,
.category-item.active > .category-link .category-arrow {
	color: #ff4081;
}

/* Dynamic Category Column (Level 1+) */
.category-column-level-1,
.category-column-level-2,
.category-column-level-3,
.category-column-level-4 {
	display: none;
	animation: slideInRight 0.3s ease;
}

.category-column-level-1.active,
.category-column-level-2.active,
.category-column-level-3.active,
.category-column-level-4.active {
	display: block;
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(-10px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Category Count */
.category-count {
	font-weight: 400;
	font-size: 12px;
	color: #999999;
	margin-left: 6px;
}

/* ========================================
 * SEARCH BAR
 * ======================================== */

.header-search {
	flex: 1;
	width: 100%;
}

.header-search form,
.woocommerce-product-search-form {
	display: flex;
	width: 100%;
}

.header-search .search-field,
.header-search input[type="search"],
.woocommerce-product-search-form .search-field {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid #ff4081;
	border-right: none;
	border-radius: 4px 0 0 4px;
	font-size: 14px;
	outline: none;
	background-color: #ffffff;
	color: #000000;
}

.header-search .search-field::placeholder,
.header-search input[type="search"]::placeholder,
.woocommerce-product-search-form .search-field::placeholder {
	color: #999999;
}

.header-search .search-field:focus,
.header-search input[type="search"]:focus,
.woocommerce-product-search-form .search-field:focus {
	border-color: #e91e63;
	outline: none;
}

.header-search .search-submit,
.woocommerce-product-search-form .search-submit {
	background-color: #e0e0e0;
	color: #000000;
	border: 2px solid #e0e0e0;
	border-left: none;
	border-radius: 0 4px 4px 0;
	padding: 12px 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background-color 0.3s ease, border-color 0.3s ease;
	font-size: 14px;
	font-weight: 500;
}

.header-search .search-submit:hover,
.woocommerce-product-search-form .search-submit:hover {
	background-color: #d0d0d0;
	border-color: #d0d0d0;
}

.header-search .search-submit svg,
.header-search .search-submit .search-icon,
.woocommerce-product-search-form .search-submit svg,
.woocommerce-product-search-form .search-submit .search-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.header-search .search-submit .search-text,
.woocommerce-product-search-form .search-submit .search-text {
	white-space: nowrap;
}
.header-search form.woocommerce-product-search button,
.header-search form.woocommerce-product-search .search-submit {
	cursor: pointer;
	 font-family: Poppins;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    background-color: #F6218D;
    border: 1px solid #F6218D;
    border-radius: 0 4px 4px 0;
    padding: 11px 16px;
    color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.header-search form.woocommerce-product-search button .search-icon,
.header-search form.woocommerce-product-search .search-submit .search-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.header-search form.woocommerce-product-search button .search-text,
.header-search form.woocommerce-product-search .search-submit .search-text {
	white-space: nowrap;
}

.header-search form.woocommerce-product-search button:hover,
.header-search form.woocommerce-product-search .search-submit:hover {
	background: #000;
	border-color: #000;
}

/* Hide search text on mobile, show only icon */
@media (max-width: 767px) {
	.header-search .search-submit .search-text,
	.woocommerce-product-search-form .search-submit .search-text,
	.header-search form.woocommerce-product-search button .search-text,
	.header-search form.woocommerce-product-search .search-submit .search-text {
		display: none;
	}
	
	.header-search .search-submit,
	.woocommerce-product-search-form .search-submit,
	.header-search form.woocommerce-product-search button,
	.header-search form.woocommerce-product-search .search-submit {
		padding: 11px 12px;
		min-width: 44px;
	}
}

@media (min-width: 768px) {
.header-online-shop-wrapper .category-dropdown-menu .mobile-menu-header,
.header-online-shop-wrapper .category-dropdown-menu .mobile-menu-search {
    display: none;
}
}