/**
 * 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-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: 15px 0;
 	}

 	.header-main-container{
 		gap: 10px;
 	}
 	.header-navigation{
 		display: none;
 	}

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

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

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

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

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

 	/* Category Dropdown Responsive */
 	body .header-secondary-container .header-online-shop-wrapper .category-dropdown-menu {
 		min-width: 100%;
 		max-width: 100%;
 		width: 100%;
 		height: 100%;
 		left: -100vw;
 		right: 0;
 		position: fixed;
 		top: 0;
 		display: block !important;
 		opacity: 1 !important;
 		pointer-events: unset !important;
 		visibility: visible !important;
 		transition: 1s all ease;
 		border-radius: 0;
 		box-shadow: none;
 	}
 	body .header-secondary-container .header-online-shop-wrapper .category-dropdown-menu.active {
 		left: 0;
 	}
 	.header-search .search-field, .header-search input[type="search"], .woocommerce-product-search-form .search-field {
 		border: 0;
 		width: 100%;
 	}
 	.header-search form.woocommerce-product-search button:hover {
 		background: #000;
 		border-color: #fff;
 	}
 	.category-dropdown-content {
 		flex-direction: column;
 		max-height: 100%;
 		padding: 0;
 		position: relative;
 		height: 100%;
 	}

 	.category-column {
 		min-width: 100%;
 		max-width: 100%;
 		max-height: 100%;
 		border: 0;
 		padding: 0px 15px;
 		transform: translateX(-100vw);
 		opacity: 0;
 		position: absolute;
 		top: 0;
 		height: 80%;
 		width: 100%;
 	}
 	.category-column.active {
 		transform: translateX(0);
 		opacity: 1;
 		transition: 0.5s all ease;
 	}
 	.category-columns-container .category-column {
 		min-width: 100%;
 		max-width: 100%;
 		border: 0;
 	}
 	/* Search */
 	.header-search {
 		width: 100%;
 		max-width: 100%;
 	}
 	.header-secondary {
 		padding: 0px 0 15px;
 		margin-bottom: 0;
 		background-color: #000000 !important;
 	}
 	.mobile-menu-header {
 		display: flex;
 		justify-content: space-between;
 		padding: 20px 15px;
 		background: #F6218D;
 		align-items: center;
 		gap: 10px;
 	}
 	.mobile-menu-header .mobile-menu-title {
 		font-weight: 600;
 		font-size: 16px;
 		line-height: 20px;
 		letter-spacing: 0.1px;
 		text-transform: uppercase;
 		flex: 1;
 		color: #fff;
 	}
 	.mobile-menu-header .mobile-menu-back.active,
 	.mobile-menu-header .mobile-menu-back,
 	.mobile-menu-header-icons .mobile-menu-close {
 		border: 0;
 		background: transparent;
 		display: flex;
 		align-items: center;
 		justify-content: center;
 		color: #fff;
 		cursor: pointer;
 	}
 	.category-link {
 		padding: 13px 0;
 		border-radius: 0;
 		background: transparent !important;
 	}
 	.category-name {
 		font-size: 14px;
 		line-height: 24px;
 	}
 	[id^="product-slider-"] .product-slider__view-all-button{
 		font-size: 16px !important;
 		line-height: 20px !important;
 		padding: 14px 20px !important;
 	}
 	.mobile-menu-user-icon,
 	.mobile-menu-header-icons .mobile-menu-cart-icon,
 	.mobile-menu-search,
 	.header-online-shop-wrapper .online-shop-button,
 	.header-wishlist-icon,
 	.header-project-tenders-button {
 		display: none;
 	}
 	.header-icon svg {
 		width: 24px;
 		height: 24px;
 	}
 	.mobile-toggle-btn {
 		background: transparent;
 		border: 0;
 		padding: 0;
 		color: #fff;
 		display: flex;
 		align-items: center;
 		justify-content: center;
 		cursor: pointer;
 	}
 	.header-search form.woocommerce-product-search button .search-text {
 		display: none;
 	}
 }

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

 @media (max-width: 575px) {
 	

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


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

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

 	.header-minicart-dropdown {
 		min-width: 280px;
 		max-width: calc(100vw - 2rem);
 		right: -10px;
 	}

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


 }

/* ========================================
 * 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;
 	}


 	/* 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,
 	.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;
 	}
 }

