/**
 * Header Responsive Styles
 * 
 * All responsive styles and mobile-specific adjustments
 *
 * @package Genesis_Child
 * @since 1.0.0
 */

/* ========================================
 * DESKTOP - MAX 1200px
 * ======================================== */
 @media (max-width: 1366px) {
 	.online-shop-button{
 		font-size: 20px;
 		padding: 25px 24px 25px 25px
 	}
 	.cart-count {
 		width: 17px;
 		height: 17px;
 	}
 }

 @media (max-width: 1200px) {
 	.header-main-container {
 		flex-wrap: wrap;
 		gap: 20px;
 	}

	/*.header-navigation {
		order: 3;
		width: 100%;
		justify-content: flex-start;
	}*/
	.header-profile-wrapper svg {
		width: 38px;
		height: 38px;
	}
	.header-profile-dropdown::before {
		right: 10px;
	}
	.online-shop-button {
		font-size: 16px;
		padding: 15px 20px;
	}
	.header-logo{
		max-width: 200px;
	}
	.header-logo img{
		max-width: 100%;
	}
	.header-icons{
		gap: 15px;
	}
	.header-main-container{
		padding-left: 0;
		gap: 10px;
	}
	.header-project-tenders-button {
		padding: 10px 15px;
	}
}

@media (max-width: 1024px) {
	/*.site-header .header-online-shop-wrapper .category-dropdown-menu{
		position: fixed;
		top: 0;
		left: 100%;
		width: 100% !important;
		height: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		transform: inherit !important;
		max-height: none;
		transition: all 0.3s ease !important;
		z-index: 9999;
	}
	.site-header .header-online-shop-wrapper .category-dropdown-menu.active{
		left: 0;
	}*/
/*	.category-dropdown-content{
		width: 100%;
		max-height: inherit;
	}
	.category-column{
		min-width: 100%;
		max-width: 100%;
		padding: 0px;
		border-right: 0;
		max-height: 100%;
		height: 100%;
	}*/
	.header-profile-wrapper svg {
		width: 30px;
		height: 30px;
	}
	.header-profile-dropdown::before {
		right: 7px;
	}
	.header-search form.woocommerce-product-search button {
		font-size: 14px;
		line-height: 18px;
	}
	.header-project-tenders-button {
		padding: 10px 14px;
		font-size: 14px;
		line-height: 18px;
	}
}


/* ========================================
 * TABLET - MAX 768px
 * ======================================== */

 @media (max-width: 767px) {
 	/* Containers */
 	.header-top-container,
 	.header-main-container,
 	.header-secondary-container {
 		padding: 0 15px;
 	}

 	/* Main Header */
 	.header-main {
 		padding: 12px 0;
 	}

	/*.header-main-container {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}*/
	.header-main-container{
		gap: 10px;
		flex-wrap: nowrap !important;
	}
	.header-navigation{
		display: none;
	}

	/* Logo */
	/*.header-logo {
		width: 100%;
	}*/
	.header-logo{
		max-width: 170px;
	}
	.header-logo img{
		max-width: 100%;
	}
	.header-icons{
		gap: 15px;
	}


	/* Navigation */
	/*.header-navigation {
		order: 2;
		width: 100%;
	}

	.header-menu {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 10px;
	}*/

	/* Icons */
	/*.header-icons {
		order: 1;
		width: 100%;
		justify-content: flex-end;
	}*/

	/* Secondary Header */
	.header-secondary-container {
		flex-direction: column;
		align-items: stretch;
	}

	.header-online-shop-wrapper {
		width: 100%;
	}

	.header-online-shop {
		width: 100%;
	}

	.online-shop-button {
		width: 100%;
		justify-content: center;
	}

	/* Category Dropdown Responsive */
	body .header-online-shop-wrapper .category-dropdown-menu {
		min-width: 100%;
		max-width: 100%;
		left: -100vw;
		right: 0;
		position: fixed;
		top: 48px;
		display: block !important;
		opacity: 1 !important;
		pointer-events: unset !important;
		visibility: visible !important;
	}
	body .header-online-shop-wrapper .category-dropdown-menu.active {
		left: 0;
	}

	.category-dropdown-content {
		flex-direction: column;
		max-height: 500px;
	}

	.category-column {
		max-width: 100%;
		border-right: none;
		border-bottom: 1px solid #f0f0f0;
		padding: 15px 10px;
	}

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

	/* Search */
	.header-search {
		width: 100%;
		max-width: 100%;
	}
	.header-secondary {
		padding: 12px 0;
		margin-bottom: 0;
	}
	.header-secondary-container{
		gap: 10px;
		padding: 0 15px;
	}
	.online-shop-button {
		font-size: 16px;
		padding: 20px;
	}



	[id^="product-slider-"] .product-slider__view-all-button{
		font-size: 16px !important;
		line-height: 20px !important;
		padding: 14px 20px !important;
	}
	.header-online-shop-wrapper {
		display: none;
	}
	/* Project Tenders Button - Hide on mobile */
	.header-wishlist-icon,
	.header-project-tenders-button {
		display: none;
	}
	.header-icon svg {
		width: 24px;
		height: 24px;
	}
	.mobile-toggle-btn {
		display: block;
	}
}

/* ========================================
 * MOBILE - MAX 575px
 * ======================================== */

 @media (max-width: 575px) {
 	/* Containers */
 	.header-top-container,
 	.header-main-container{
 		padding: 0 15px;
 	}

 	

 	/* Icons */
 	.header-icons {
 		gap: 10px;
 	}

	/*.header-icon {
		width: 36px;
		height: 36px;
	}

	.header-icon svg {
		width: 20px;
		height: 20px;
	}*/

	/* Profile Dropdown on Mobile */
	.header-profile-dropdown {
		min-width: 180px;
		right: -10px;
	}

	.header-profile-dropdown::before {
		right: 30px;
	}

	/* Minicart Dropdown on Mobile */
	.header-minicart-dropdown {
		min-width: 280px;
		max-width: calc(100vw - 2rem);
		right: -10px;
	}

	.header-minicart-dropdown::before {
		right: 30px;
	}

	/* Category Dropdown on Mobile */
	/*.category-dropdown-menu {
		min-width: calc(100vw - 2rem);
		max-width: calc(100vw - 2rem);
		left: 0;
		right: 0;
	}*/

	.category-dropdown-content {
		padding: 15px 10px;
	}

	.category-column {
		padding: 12px 8px;
	}
}

/* ========================================
 * EXTRA MOBILE FIXES
 * ======================================== */

 @media (max-width: 480px) {
 	/* Further reduce icon sizes */
 	.header-icon {
 		width: 32px;
 		height: 32px;
 	}

 	.header-icon svg {
 		width: 18px;
 		height: 18px;
 	}

 	/* Reduce padding */
 	.header-main {
 		padding: 10px 0;
 	}

 	.header-top-bar {
 		padding: 6px 0;
 	}


 	/* Stack menu items with less gap */
 	.header-menu {
 		gap: 8px;
 	}

 	/* Smaller dropdowns */
 	.header-profile-dropdown {
 		min-width: 160px;
 		padding: 12px;
 	}

 	.header-minicart-dropdown {
 		min-width: 260px;
 	}

 	/* Smaller search */
 	.header-search .search-field,
 	.header-search input[type="search"],
 	.woocommerce-product-search-form .search-field {
 		padding: 10px 14px;
 		font-size: 13px;
 	}

 	.header-search .search-submit,
 	.woocommerce-product-search-form .search-submit {
 		padding: 10px 16px;
 	}
 }

/* ========================================
 * LANDSCAPE MOBILE
 * ======================================== */

 @media (max-width: 768px) and (orientation: landscape) {
 	/* Reduce heights for landscape mode */
 	.header-main {
 		padding: 8px 0;
 	}

 	.header-logo .custom-logo {
 		max-height: 40px;
 	}

 	/*.header-icon {
 		width: 32px;
 		height: 32px;
 	}

 	.header-icon svg {
 		width: 18px;
 		height: 18px;
 	}*/

 	/* Compact dropdowns in landscape */
 	.category-dropdown-menu {
 		max-height: 400px;
 	}

 	.header-minicart-dropdown {
 		max-height: 400px;
 	}

 	.header-minicart-dropdown .woocommerce-mini-cart {
 		max-height: 200px;
 	}
 }

/* ========================================
 * PRINT STYLES
 * ======================================== */

 @media print {
 	/* Hide interactive elements when printing */
 	.header-icons,
 	.header-profile-dropdown,
 	.header-minicart-dropdown,
 	.category-dropdown-menu,
 	.header-search,
 	.online-shop-button {
 		display: none !important;
 	}

 	/* Simplify header for print */
 	.header-main {
 		background-color: #ffffff !important;
 		color: #000000 !important;
 		border-bottom: 1px solid #000000;
 	}

 	.header-logo .custom-logo-link,
 	.header-logo .site-title {
 		color: #000000 !important;
 	}

 	.header-menu a {
 		color: #000000 !important;
 	}
 }

/* ========================================
 * HIGH CONTRAST MODE
 * ======================================== */

 @media (prefers-contrast: high) {
 	.header-main {
 		border-bottom: 2px solid #ffffff;
 	}

 	.header-menu a {
 		font-weight: 600;
 	}

 	.category-link {
 		font-weight: 600;
 	}

 	.header-profile-dropdown,
 	.header-minicart-dropdown,
 	.category-dropdown-menu {
 		border: 2px solid #000000;
 	}
 }

/* ========================================
 * REDUCED MOTION
 * ======================================== */

 @media (prefers-reduced-motion: reduce) {
 	/* Disable animations for accessibility */
 	*,
 	*::before,
 	*::after {
 		animation-duration: 0.01ms !important;
 		animation-iteration-count: 1 !important;
 		transition-duration: 0.01ms !important;
 	}

 	.header-profile-dropdown,
 	.header-minicart-dropdown,
 	.category-dropdown-menu {
 		transition: none !important;
 	}

 	.header-icon,
 	.online-shop-button svg,
 	.category-arrow {
 		transition: none !important;
 	}
 }

/* ========================================
 * DARK MODE SUPPORT
 * ======================================== */

 @media (prefers-color-scheme: dark) {
 	/* Optional: Add dark mode support if needed */
 	.header-top-bar {
 		background-color: #1a1a1a;
 		border-bottom-color: #333;
 	}

 	.header-top-left .header-homepage-text {
 		color: #ccc;
 	}

 	.header-secondary {
 		background-color: #1a1a1a;
 		border-bottom-color: #333;
 	}

 	.header-search .search-field,
 	.header-search input[type="search"],
 	.woocommerce-product-search-form .search-field {
 		background-color: #2a2a2a;
 		color: #ffffff;
 		border-color: #ff4081;
 	}

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

