/**
 * Header Site 1 Styles
 * 
 * Styles for header-site1.php template part
 * Based on triple-seven design with abp5_ prefix classes
 * Adapted from original styles from styles_from_website
 */

/* ============================================
   Top Panel / Header Container
   ============================================ */

.abp5_top_panel {
    position: relative;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    background: transparent;
    overflow: visible;
    padding: 0 3%;
    margin: 0;
    box-sizing: border-box;
}

.abp5_top_panel_custom_19464 {
    background: transparent;
}

.abp5_top_panel_custom {
    position: relative;
}

.abp5_top_panel_custom_header_center_logo_panel {
    background: transparent;
}

.without_bg_image {
    background-image: none !important;
}

.abp5_elementor_wrap {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* ============================================
   Elementor Section
   ============================================ */

.abp5_elementor_section {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding: 0;
    margin: 0;
}

.abp5_elementor_top_section {
    position: relative;
}

.abp5_section_full_width {
    width: 100%;
}

.abp5_section_content_middle {
    display: flex;
    align-items: center;
}

.abp5_sc_layouts_row {
    position: relative;
    width: 100%;
}

.abp5_sc_layouts_row_type_compact {
    padding: 5px 0;
    min-height: 50px;
    background: transparent;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Specific element margins from original styles */
.abp5_elementor-element-a868c71 {
    padding: 5px 0;
}

.abp5_elementor-element-556d6d3 > .abp5_elementor_widget_container {
    margin: 0px 0px 0px -12px;
}

.abp5_elementor-element-7613e89 > .abp5_elementor_widget_container {
    margin: 0px 0px 0px 0px;
}

.abp5_elementor-element-c9c699f > .abp5_elementor_widget_container {
    margin: -5px 0px 0px 0px;
}

.abp5_elementor-element-1dea95d > .abp5_elementor_widget_container {
    margin: -2px 0px 0px 8px;
}

.abp5_elementor-element-a54b98e > .abp5_elementor_widget_container {
    margin: 1px 0px 0px 0px;
}

.abp5_elementor-element-a54b98e .abp5_elementor_icon_wrapper {
    text-align: center;
}

.abp5_elementor-element-a54b98e .abp5_elementor_icon {
    width: 21px;
    height: 21px;
    line-height: 0;
}

.abp5_elementor-element-a54b98e .abp5_elementor_icon svg {
    width: 21px;
    height: 21px;
}

/* Mobile section styles */
.abp5_elementor-element-395ff71 {
    padding: 15px 0px;
}

.abp5_elementor-element-407b351 > .abp5_elementor_widget_container {
    margin: 0px 0px 0px 0px;
}

.abp5_elementor-element-f59c0bc > .abp5_elementor_widget_container {
    margin: -4px -4px -4px -4px;
}

.abp5_elementor-element-deef12f > .abp5_elementor_widget_container {
    margin: 2px 0px 0px 7px;
}

.abp5_elementor-element-ed7b432 > .abp5_elementor_widget_container {
    margin: 0px 0px 0px 7px;
}

.abp5_elementor-element-ed7b432 .abp5_elementor_icon_wrapper {
    text-align: center;
}

.abp5_elementor-element-ed7b432 .abp5_elementor_icon {
    width: 21px;
    height: 21px;
    line-height: 0;
}

.abp5_elementor-element-ed7b432 .abp5_elementor_icon svg {
    width: 21px;
    height: 21px;
}

.abp5_sc_layouts_hide_on_tablet {
    display: block;
}

.abp5_sc_layouts_hide_on_mobile {
    display: block;
}

/* Hide classes - will be overridden in media queries */
.abp5_sc_layouts_hide_on_wide {
    display: block;
}

.abp5_sc_layouts_hide_on_desktop {
    display: block;
}

.abp5_sc_layouts_hide_on_notebook {
    display: none;
}

/* ============================================
   Elementor Container
   ============================================ */

.abp5_elementor_container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

.abp5_elementor_column_gap_no {
    gap: 0;
}

.abp5_elementor_column_gap_extended {
    gap: 30px;
}

/* ============================================
   Elementor Columns
   ============================================ */

.abp5_elementor_column {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
}

.abp5_elementor_col_33 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.abp5_elementor_col_50 {
    flex: 0 0 50%;
    max-width: 50%;
}

.abp5_sc_content_align_inherit {
    justify-content: flex-start;
}

.abp5_sc_content_align_center {
    justify-content: center;
}

.abp5_sc_content_align_right {
    justify-content: flex-end;
}

.abp5_sc_content_align_right .abp5_elementor_widget_wrap {
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    display: flex;
    height: 40px;
}

.abp5_sc_content_align_right .abp5_sc_layouts_item {
    display: inline-flex;
    align-items: center;
    height: 40px;
}

.abp5_sc_content_align_right .abp5_elementor_widget_container {
    margin: 0 !important;
}

.abp5_sc_content_align_right .abp5_sc_layouts_item:last-child {
    margin-right: 0;
    padding-right: 0;
}

.abp5_sc_content_align_right .abp5_sc_layouts_item:last-child .abp5_elementor_icon,
.abp5_sc_content_align_right .abp5_sc_layouts_item:last-child .abp5_sc_layouts_search,
.abp5_sc_content_align_right .abp5_sc_layouts_item:last-child .abp5_sc_layouts_cart {
    margin-right: 0;
    padding-right: 0;
}

.abp5_sc_content_align_right .abp5_elementor_widget:last-child > .abp5_elementor_widget_container {
    margin-right: 0;
    padding-right: 0;
}

.abp5_sc_content_align_right .abp5_elementor_widget:last-child {
    margin-right: 0;
    padding-right: 0;
}

.abp5_sc_layouts_column_align_center {
    text-align: center;
}

.abp5_sc_content_align_center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.abp5_sc_content_align_center .abp5_elementor_widget_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.abp5_sc_layouts_column_align_right {
    text-align: right;
}

/* ============================================
   Elementor Widget Wrap
   ============================================ */

.abp5_elementor_widget_wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.abp5_elementor_element_populated {
    width: 100%;
}

/* Override width for right column in mobile view */
/* Media queries removed - will be recreated */

/* ============================================
   Layouts Item
   ============================================ */

.abp5_sc_layouts_item {
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: visible;
    line-height: 0;
}

.abp5_elementor_widget {
    position: relative;
    overflow: visible;
}

.abp5_elementor_widget_container {
    margin: 0;
    overflow: visible;
}

.abp5_elementor_widget_wrap {
    overflow: visible;
}

/* Ensure menu column doesn't clip dropdown */
.abp5_sc_layouts_menu {
    overflow: visible;
}

.abp5_sc_layouts_menu_nav {
    overflow: visible;
}

.abp5_sc_layouts_menu_nav > li {
    overflow: visible;
}

/* ============================================
   Menu
   ============================================ */

.abp5_sc_layouts_menu {
    display: flex;
    align-items: center;
}

.abp5_sc_layouts_menu_default {
    position: relative;
}

.abp5_sc_layouts_menu_dir_horizontal {
    flex-direction: row;
}

.abp5_menu_hover_zoom_line {
    position: relative;
}

.abp5_sc_layouts_menu_nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

.abp5_menu_main_nav {
    flex-wrap: wrap;
}

.abp5_sc_layouts_menu_nav > li {
    position: relative;
    margin: 0;
}

.abp5_sc_layouts_menu_nav > li > a {
    display: block;
    padding: 10px 15px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
    transition: color 0.3s ease;
}

.abp5_sc_layouts_menu_nav > li:first-child > a {
    padding-left: 0;
}

.abp5_sc_layouts_menu_nav > li > a span {
    display: inline-block;
    position: relative;
}

.abp5_sc_layouts_menu_nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.abp5_sc_layouts_menu_nav > li:first-child > a::after {
    left: 0;
}

.abp5_sc_layouts_menu_nav > li:hover > a::after {
    transform: scaleX(1);
}

/* Always show underline for current page */
.abp5_sc_layouts_menu_nav > li.current-menu-item > a::after,
.abp5_sc_layouts_menu_nav > li.current_page_item > a::after {
    transform: scaleX(1) !important;
    opacity: 1 !important;
}

.abp5_sc_layouts_menu_nav > li.current-menu-ancestor > a::after,
.abp5_sc_layouts_menu_nav > li.current-menu-parent > a::after {
    transform: scaleX(1);
}

.abp5_sc_layouts_menu_nav > li > a:hover {
    color: #ffffff;
}

.abp5_sc_layouts_menu_nav .sub-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #2a2a2a;
    list-style: none;
    margin: 0;
    margin-top: 0;
    padding: 15px 0;
    padding-top: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99999 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Invisible bridge to prevent gap */
.abp5_sc_layouts_menu_nav > li.menu-item-has-children::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 999;
}

.abp5_sc_layouts_menu_nav > li:first-child .sub-menu {
    left: 0;
}

.abp5_sc_layouts_menu_nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.abp5_sc_layouts_menu_nav .sub-menu li {
    width: 100%;
    position: relative;
}

.abp5_sc_layouts_menu_nav .sub-menu a {
    padding: 12px 20px;
    white-space: nowrap;
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    transition: all 0.3s ease;
    position: relative;
}

.abp5_sc_layouts_menu_nav .sub-menu a span {
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease, padding-left 0.3s ease;
}

.abp5_sc_layouts_menu_nav .sub-menu a span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.abp5_sc_layouts_menu_nav .sub-menu a:hover {
    color: #ffffff;
    background-color: transparent;
}

.abp5_sc_layouts_menu_nav .sub-menu a:hover span {
    transform: translateX(5px);
    padding-left: 0;
}

.abp5_sc_layouts_menu_nav .sub-menu a:hover span::after {
    transform: scaleX(1);
}

.abp5_sc_layouts_menu_nav .sub-menu .current-menu-item > a,
.abp5_sc_layouts_menu_nav .sub-menu .current_page_item > a {
    font-weight: 700;
    color: #ffffff;
}

.abp5_sc_layouts_menu_nav .sub-menu .current-menu-item > a span::after,
.abp5_sc_layouts_menu_nav .sub-menu .current_page_item > a span::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Arrow for items with sub-menu */
.abp5_sc_layouts_menu_nav .sub-menu .menu-item-has-children > a::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #ffffff;
    opacity: 0.6;
}

/* Hide all nested sub-menus (second level and deeper) - only first level is allowed */
.abp5_sc_layouts_menu_nav .sub-menu .sub-menu {
    display: none !important;
    visibility: hidden !important;
}

/* Remove arrow from items without sub-menu */
.abp5_sc_layouts_menu_nav .sub-menu .menu-item:not(.menu-item-has-children) > a::before {
    display: none;
}

/* ============================================
   Logo
   ============================================ */

.abp5_sc_layouts_logo {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.abp5_sc_layouts_logo_default {
    display: inline-block;
}

.abp5_logo_image {
    max-width: 100%;
    height: auto;
    display: block;
    width: auto;
    height: 114px;
    aspect-ratio: 87 / 57;
    object-fit: contain;
}

.abp5_text_logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

/* ============================================
   Cart
   ============================================ */

.abp5_sc_layouts_cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin-right: 0;
    transition: all 0.3s ease;
    border-radius: 4px;
    height: 24px;
    box-sizing: border-box;
}

.abp5_sc_layouts_cart:hover {
    background-color: rgba(234, 1, 29, 0.1);
}

.abp5_sc_layouts_cart:hover .abp5_sc_layouts_item_icon {
    color: #ea011d;
}

.abp5_sc_layouts_cart_market_woocommerce {
    display: flex;
    align-items: center;
    position: relative;
    gap: 0;
}

.abp5_sc_layouts_item_icon {
    font-size: 1.8rem;
    color: #ffffff;
    line-height: 1;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.abp5_sc_layouts_item_icon:hover {
    color: #ea011d;
    transform: scale(1.1);
}

.abp5_sc_layouts_item_icon::before {
    display: inline-block;
}

.abp5_sc_layouts_cart_icon {
    position: relative;
}

.abp5_sc_icon_type_icons {
    font-family: 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    font-style: normal;
}

/* Icon Fonts - Using Font Awesome as fallback */
.trx_addons_icon-basket::before {
    content: '\f291';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: inline-block;
}

.trx_addons_icon-menu::before {
    content: '\f0c9';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: inline-block;
}

.abp5_sc_layouts_item_details {
    display: none;
}

.abp5_sc_layouts_cart_details {
    display: none;
}

.abp5_sc_layouts_item_details_line2 {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.abp5_sc_layouts_cart_totals {
    color: #ffffff;
}

.abp5_sc_layouts_cart_items {
    font-weight: 500;
    color: #ffffff;
}

.abp5_sc_layouts_cart_summa_delimiter {
    opacity: 0.6;
    color: #ffffff;
}

.abp5_sc_layouts_cart_summa {
    font-weight: 600;
    color: #ffffff;
}

.abp5_sc_layouts_cart_items_short {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background-color: #EA011D;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
    border: 2px solid #000000;
    z-index: 10;
}

.abp5_sc_layouts_cart_items_short:empty {
    display: none;
}

.abp5_sc_layouts_cart_items_short:not(:empty) {
    display: flex;
}

.abp5_sc_layouts_cart_widget {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background-color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    padding: 20px;
    margin-top: 10px;
}

.abp5_sc_layouts_cart_widget.active {
    display: block;
}

.abp5_sc_layouts_cart_widget_close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.abp5_sc_layouts_cart_widget_close:hover {
    color: #ea011d;
}

.abp5_trx_addons_button_close {
    position: relative;
}

.abp5_sc_layouts_cart_widget_close_icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.abp5_trx_addons_button_close_icon::before,
.abp5_trx_addons_button_close_icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 16px;
    background-color: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.abp5_trx_addons_button_close_icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ============================================
   Search
   ============================================ */

.abp5_sc_layouts_search {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-right: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent !important;
    height: 21px;
    box-sizing: border-box;
    border: none;
    outline: none;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 0;
}

.abp5_sc_layouts_search * {
    background: transparent !important;
}

.abp5_sc_layouts_search:hover .abp5_search_submit {
    color: #ea011d;
}

.abp5_search_modern {
    position: relative;
}

.abp5_search_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.abp5_search_submit:hover {
    color: #ea011d;
    transform: scale(1.1);
}

.abp5_search_submit::before {
    content: '';
    display: block;
    width: 21px;
    height: 21px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3E%3Cpath fill='%23ffffff' d='M20.71 19.29l-5.4-5.4a8.5 8.5 0 1 0-1.42 1.42l5.4 5.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM8.5 15a6.5 6.5 0 1 1 6.5-6.5A6.5 6.5 0 0 1 8.5 15z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.abp5_search_submit:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3E%3Cpath fill='%23ea011d' d='M20.71 19.29l-5.4-5.4a8.5 8.5 0 1 0-1.42 1.42l5.4 5.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM8.5 15a6.5 6.5 0 1 1 6.5-6.5A6.5 6.5 0 0 1 8.5 15z'/%3E%3C/svg%3E");
}

.abp5_search_wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 60vh;
    background-color: #000000 !important;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.abp5_search_wrap.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.abp5_search_header_wrap {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: none;
}

.abp5_search_close {
    display: inline-block;
    width: 60px;
    height: 60px;
    cursor: pointer;
    position: relative;
    color: #ffffff;
    font-size: 3rem;
    line-height: 1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.abp5_search_close:hover {
    color: #ea011d;
}

.abp5_search_close::before {
    content: '\00d7';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.abp5_search_form_wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.abp5_search_form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.abp5_search_field {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    padding: 15px 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.abp5_search_field:focus {
    border-bottom-color: #ea011d;
}

.abp5_search_field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.abp5_search_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: -1;
}

/* ============================================
   Icon / Panel Link
   ============================================ */

.abp5_elementor_icon_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.abp5_elementor_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 0;
}

.abp5_elementor_icon svg {
    width: 24px;
    height: 24px;
}

.abp5_elementor_icon:hover {
    color: #ea011d;
    background-color: rgba(234, 1, 29, 0.1);
    transform: scale(1.1);
}

.abp5_elementor_icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.abp5_trx_addons_panel_link svg {
    transform: translateY(1px);
}

.abp5_elementor_icon svg path {
    fill: currentColor;
}

.abp5_trx_addons_panel_link {
    display: inline-block;
}

.abp5_elementor_view_default {
    display: inline-block;
}

/* Panel icon - visible by default for screens < 1280px */
.abp5_panel_icon_desktop,
.abp5_sc_layouts_item.abp5_panel_icon_desktop,
.abp5_elementor_widget.abp5_panel_icon_desktop {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   Mobile Menu Button
   ============================================ */

.abp5_sc_layouts_iconed_text {
    display: flex;
    align-items: center;
}

.abp5_sc_layouts_menu_mobile_button {
    display: none;
}

.abp5_sc_layouts_menu_mobile_button_burger {
    display: flex;
    align-items: center;
}

/* Mobile menu toggle - visible by default for screens < 1280px */
.abp5_mobile_menu_toggle,
.abp5_sc_layouts_item.abp5_mobile_menu_toggle,
.abp5_elementor_widget.abp5_mobile_menu_toggle,
.abp5_mobile_menu_toggle.abp5_sc_layouts_hide_on_wide,
.abp5_mobile_menu_toggle.abp5_sc_layouts_hide_on_desktop {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.abp5_sc_layouts_item_link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px;
}

.abp5_sc_layouts_item_link:hover {
    color: #ea011d;
}

.abp5_sc_layouts_iconed_text_icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Menu icon already defined above */

/* ============================================
   Mobile Menu
   ============================================ */

.abp5_menu_mobile_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    display: none;
}

.abp5_menu_mobile_overlay.active {
    display: block;
}

.abp5_menu_mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background-color: #1a1a1a;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.abp5_menu_mobile.active {
    transform: translateX(0);
}

/* Fullscreen mobile menu overrides */
.abp5_menu_mobile.abp5_menu_mobile_fullscreen {
    max-width: 100%;
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.abp5_menu_mobile.abp5_menu_mobile_fullscreen.active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.abp5_menu_mobile_inner {
    padding: 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.with_widgets {
    display: flex;
    flex-direction: column;
}

.abp5_menu_mobile_header_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Old styles removed - using new styles below */

.abp5_menu_button_close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.abp5_menu_button_close_text {
    font-weight: 500;
}

.abp5_menu_button_close_icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.abp5_menu_button_close_icon::before,
.abp5_menu_button_close_icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 16px;
    background-color: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.abp5_menu_button_close_icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Rotate cross icon on hover */
.abp5_menu_mobile_close:hover .abp5_menu_button_close_icon {
    transform: rotate(180deg);
}

.abp5_menu_mobile_content_wrap {
    width: 100%;
    flex: 1;
}

.content_wrap {
    width: 100%;
}

.abp5_menu_mobile_content_wrap_inner {
    width: 100%;
}

.abp5_menu_mobile_nav_area {
    width: 100%;
}

.abp5_menu_mobile_items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.abp5_menu_mobile_items li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.abp5_menu_mobile_items a {
    display: block;
    padding: 15px 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.abp5_menu_mobile_items a:hover {
    color: #ea011d;
}

.abp5_menu_mobile_items .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    display: none;
}

/* Removed + and - symbols - using arrow icon instead */

.abp5_menu_mobile_items .menu-item-has-children.active > .sub-menu {
    display: block;
}


.abp5_socials_mobile {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.abp5_social_item {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.abp5_social_item:hover {
    color: #ea011d;
}

.abp5_social_icon {
    font-size: 1.2rem;
    line-height: 1;
}

.abp5_extra_item {
    margin-bottom: 20px;
}

.abp5_extra_item h6 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.abp5_extra_item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.abp5_extra_item a:hover {
    color: #ea011d;
}

/* ============================================
   Utility Classes
   ============================================ */

.scheme_dark {
    color: #ffffff;
}

.scheme_dark_alter {
    background-color: #1a1a1a;
    color: #ffffff;
}

.abp5_elementor_section_boxed {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
}

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



/* ============================================
   Side Panel
   ============================================ */

.abp5_panel_bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.abp5_panel_bar.active {
    transform: translateX(0);
    pointer-events: auto;
}

.abp5_panel_bar_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.abp5_panel_bar.active .abp5_panel_bar_overlay {
    opacity: 1;
    pointer-events: auto;
}

.abp5_panel_bar_inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #020202;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1;
}

.abp5_panel_bar_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
    position: relative;
}

.abp5_panel_bar_logo {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.abp5_panel_bar_logo .abp5_logo_image {
    max-width: 120px;
    height: auto;
    display: block;
}

.abp5_panel_bar_logo .abp5_text_logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.abp5_panel_bar_close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.abp5_panel_bar_close:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.abp5_panel_bar_close:hover .abp5_panel_bar_close_icon {
    transform: rotate(180deg);
}

.abp5_panel_bar_close_icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: block;
    transition: transform 0.3s ease;
}

.abp5_panel_bar_close_icon::before,
.abp5_panel_bar_close_icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 16px;
    background-color: #ffffff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.abp5_panel_bar_close_icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.abp5_panel_bar_content {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.abp5_panel_bar_socials {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
}

.abp5_panel_bar_social_item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 10px 0;
    gap: 15px;
}

.abp5_panel_bar_social_item i {
    display: inline-block;
    width: 28px;
    text-align: left;
    font-size: 1.5rem;
}

.abp5_panel_bar_social_item span {
    display: inline-block;
    font-size: 1.1rem;
}

.abp5_panel_bar_social_item:hover {
    color: #ea011d;
    transform: translateX(5px);
}

.abp5_panel_bar_contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.abp5_panel_bar_phone,
.abp5_panel_bar_email {
    display: block;
}

.abp5_panel_bar_phone a,
.abp5_panel_bar_email a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.abp5_panel_bar_phone a {
    font-weight: 700;
    font-size: 1.1rem;
}

.abp5_panel_bar_email a {
    font-size: 0.95rem;
}

.abp5_panel_bar_phone a:hover,
.abp5_panel_bar_email a:hover {
    color: #ea011d;
}

/* Prevent body scroll when panel is open */
body.abp5_panel_bar_open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .abp5_panel_bar {
        max-width: 100%;
    }

    .abp5_panel_bar_header {
        padding: 20px 20px 15px 20px;
    }

    .abp5_panel_bar_content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .abp5_sc_layouts_row_type_compact {
        padding: 10px 15px;
    }
    
    .abp5_elementor_section_boxed {
        padding: 0 15px;
    }
}

/* ============================================
   Header Desktop/Mobile Visibility
   ============================================ */

/* Desktop header - visible by default, hidden on mobile */
.abp5_header_desktop {
    display: block;
}

/* Mobile header - hidden by default, visible on mobile */
.abp5_header_mobile {
    display: none;
}


/* ============================================
   Hide/Show Utility Classes
   ============================================ */

.abp5_sc_layouts_hide_on_wide {
    display: block;
}

/* Media queries removed - will be recreated */

/* Removed unnecessary hide classes - only 3 breakpoints needed */

/* ============================================
   Media queries for header removed - will be recreated
   ============================================ */

/* All media queries for header have been removed */

/* ============================================
   Media Queries for Header
   ============================================ */

/* Desktop - > 1280px: Menu, Logo (centered), Icons */
@media (min-width: 1280px) {
    /* Hide hamburger icon on screens > 1280px */
    .abp5_header_desktop .abp5_mobile_menu_toggle {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Tablet/Mobile - < 1280px: Logo (left), Icons (right) */
@media (max-width: 1279px) {
    /* Hide desktop menu column */
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:first-child {
        display: none !important;
    }
    
    /* Logo column - move to left (where menu was) */
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:nth-child(2) {
        flex: 0 0 auto;
        max-width: none;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:nth-child(2) .abp5_elementor_widget_wrap,
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:nth-child(2) .abp5_elementor_widget,
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:nth-child(2) .abp5_elementor_widget_container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:nth-child(2) .abp5_sc_layouts_logo {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Right column with icons - aligned to right */
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:last-child {
        flex: 1 1 auto;
        max-width: none;
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        margin-right: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
        visibility: visible !important;
        overflow: visible !important;
        min-width: 0;
    }
    
    /* Ensure right column wrapper is visible */
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:last-child .abp5_elementor_widget_wrap {
        display: flex !important;
        visibility: visible !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow: visible !important;
        position: relative !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        flex-shrink: 1;
    }
    
    /* Ensure icons don't overflow */
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:last-child .abp5_elementor_widget,
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:last-child .abp5_sc_layouts_item {
        flex-shrink: 0;
        min-width: 0;
        box-sizing: border-box;
    }
    
    /* Remove all padding/margin from header containers */
    .abp5_header_desktop,
    .abp5_header_desktop .abp5_elementor_section,
    .abp5_header_desktop .abp5_sc_layouts_row_type_compact {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ensure container doesn't overflow */
    .abp5_header_desktop .abp5_elementor_container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible;
    }
    
    /* Prevent horizontal scroll */
    .abp5_header_desktop * {
        box-sizing: border-box;
    }
    
    /* Ensure columns don't exceed container width */
    .abp5_header_desktop .abp5_elementor_column {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure gap doesn't cause overflow - limit right column width */
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:last-child {
        max-width: calc(100% - 8px);
    }
    
    /* Show hamburger menu toggle */
    .abp5_header_desktop .abp5_mobile_menu_toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Show search and panel icons */
    .abp5_header_desktop .abp5_sc_layouts_search,
    .abp5_header_desktop .abp5_panel_icon_desktop {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide cart icon on screens < 1280px */
    .abp5_header_desktop .abp5_sc_layouts_cart,
    .abp5_header_desktop .abp5_sc_layouts_cart_market_woocommerce {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Override hide classes for icons */
    .abp5_header_desktop .abp5_sc_layouts_hide_on_wide,
    .abp5_header_desktop .abp5_sc_layouts_hide_on_desktop,
    .abp5_header_desktop .abp5_elementor_widget.abp5_sc_layouts_hide_on_wide,
    .abp5_header_desktop .abp5_elementor_widget.abp5_sc_layouts_hide_on_desktop,
    .abp5_header_desktop .abp5_sc_layouts_item.abp5_sc_layouts_hide_on_wide,
    .abp5_header_desktop .abp5_sc_layouts_item.abp5_sc_layouts_hide_on_desktop,
    .abp5_header_desktop .abp5_mobile_menu_toggle.abp5_sc_layouts_hide_on_wide,
    .abp5_header_desktop .abp5_mobile_menu_toggle.abp5_sc_layouts_hide_on_desktop {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Remove right margin/padding from last icon */
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:last-child .abp5_elementor_widget:last-child,
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:last-child .abp5_sc_layouts_item:last-child,
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:last-child .abp5_elementor_widget_container:last-child {
        margin-right: 0 !important;
        padding-right: 0 !important;
    }
}

/* Mobile - < 780px: Logo (left), 2 Icons (search, hamburger) */
@media (max-width: 779px) {
    /* Hide panel icon (9 dots) on screens < 780px */
    .abp5_header_desktop .abp5_panel_icon_desktop,
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:last-child .abp5_panel_icon_desktop,
    .abp5_header_desktop .abp5_elementor_column.abp5_elementor_col_33:last-child .abp5_elementor_widget_wrap .abp5_panel_icon_desktop {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ensure search and hamburger are still visible */
    .abp5_header_desktop .abp5_sc_layouts_search,
    .abp5_header_desktop .abp5_mobile_menu_toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 1279px) {
    .abp5_search_wrap {
        height: 100vh;
        padding: 20px;
    }

    .abp5_search_header_wrap {
        top: 15px;
        left: 15px;
        right: 15px;
        padding-bottom: 15px;
    }

    .abp5_search_form_wrap {
        max-width: 640px;
        padding: 0 10px;
    }

    .abp5_search_field {
        font-size: 1.6rem;
        padding: 12px 0;
    }
}

@media (max-width: 779px) {
    .abp5_search_wrap {
        height: 100vh;
        padding: 15px;
    }

    .abp5_search_header_wrap {
        top: 10px;
        left: 10px;
        right: 10px;
        padding-bottom: 10px;
    }

    .abp5_search_close {
        width: 40px;
        height: 40px;
        font-size: 2.2rem;
    }

    .abp5_search_form_wrap {
        max-width: 100%;
        padding: 0 5px;
    }

    .abp5_search_field {
        font-size: 1.4rem;
        padding: 10px 0;
    }
}

/* ============================================
   Mobile Menu Fullscreen Styles
   ============================================ */



.abp5_mobile_menu_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.abp5_mobile_menu_link svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
}

.abp5_mobile_menu_link:hover {
    color: #ea011d;
    transform: scale(1.1);
}

/* Fullscreen Mobile Menu - Override existing styles */
.abp5_menu_mobile.abp5_menu_mobile_fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    max-width: 100vw;
    min-width: 100vw;
    min-height: 100vh;
    background-color: #020202;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow: hidden;
    transform: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.abp5_menu_mobile.abp5_menu_mobile_fullscreen.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay appears first */
.abp5_menu_mobile_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease 0s, visibility 0.3s ease 0s;
}

.abp5_menu_mobile_overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu content appears after overlay - smooth animation */
.abp5_menu_mobile.abp5_menu_mobile_fullscreen.active .abp5_menu_mobile_inner {
    animation: slideInFromTop 0.6s ease 0.2s both;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for menu items - smooth fade in */
.abp5_menu_mobile.abp5_menu_mobile_fullscreen.active .abp5_menu_mobile_items > li {
    animation: fadeInUp 0.5s ease both;
}

.abp5_menu_mobile.abp5_menu_mobile_fullscreen.active .abp5_menu_mobile_items > li:nth-child(1) {
    animation-delay: 0.3s;
}

.abp5_menu_mobile.abp5_menu_mobile_fullscreen.active .abp5_menu_mobile_items > li:nth-child(2) {
    animation-delay: 0.35s;
}

.abp5_menu_mobile.abp5_menu_mobile_fullscreen.active .abp5_menu_mobile_items > li:nth-child(3) {
    animation-delay: 0.4s;
}

.abp5_menu_mobile.abp5_menu_mobile_fullscreen.active .abp5_menu_mobile_items > li:nth-child(4) {
    animation-delay: 0.45s;
}

.abp5_menu_mobile.abp5_menu_mobile_fullscreen.active .abp5_menu_mobile_items > li:nth-child(5) {
    animation-delay: 0.5s;
}

.abp5_menu_mobile.abp5_menu_mobile_fullscreen.active .abp5_menu_mobile_items > li:nth-child(6) {
    animation-delay: 0.55s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu inner */
.abp5_menu_mobile_inner {
    padding: 40px 30px;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #020202;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    margin: 0;
}

/* Mobile menu header - Logo (left) and Close (right) */
.abp5_menu_mobile_header_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    margin-bottom: 0;
    border-bottom: none;
    flex-shrink: 0;
}

.abp5_menu_mobile_header_wrap .abp5_sc_layouts_logo {
    display: flex;
    align-items: center;
    max-width: 60%;
    flex-shrink: 1;
}

.abp5_menu_mobile_header_wrap .abp5_sc_layouts_logo img {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Responsive logo sizes for mobile menu */
@media (max-width: 480px) {
    .abp5_menu_mobile_header_wrap .abp5_sc_layouts_logo img {
        max-height: 45px;
    }
}

@media (max-width: 360px) {
    .abp5_menu_mobile_header_wrap .abp5_sc_layouts_logo img {
        max-height: 35px;
    }
}

@media (max-height: 600px) {
    .abp5_menu_mobile_header_wrap .abp5_sc_layouts_logo img {
        max-height: 40px;
    }
}

/* Mobile menu close button - no container, only rotate cross on hover */
.abp5_menu_mobile_close {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    border: none;
    background: transparent;
    transition: none;
}

.abp5_menu_mobile_close:hover {
    color: #ffffff;
    background: transparent;
    border: none;
}

.abp5_menu_button_close_icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.abp5_menu_mobile_close:hover .abp5_menu_button_close_icon {
    transform: rotate(180deg);
}

/* Mobile menu content wrap - flexible container that fits remaining space */
.abp5_menu_mobile_content_wrap {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.abp5_menu_mobile_content_wrap::-webkit-scrollbar {
    display: none;
}

.abp5_menu_mobile_nav_area {
    width: 100%;
    max-width: 600px;
}

/* Mobile menu items - no visible containers, only text and arrows, left-aligned */
.abp5_menu_mobile_items {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.abp5_menu_mobile_items > li {
    border-bottom: none;
    margin-bottom: 0;
}

.abp5_menu_mobile_items > li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.abp5_menu_mobile_items > li > a span {
    display: inline-block;
}

.abp5_menu_mobile_items > li > a:hover {
    color: #ea011d;
    transform: translateX(5px);
}

/* Menu arrow icon - only show if has children, immediately after text */
.abp5_menu_arrow {
    font-size: 1rem;
    transition: transform 0.5s ease;
    margin-left: 8px;
    color: #ffffff;
    flex-shrink: 0; /* Prevent arrow from shrinking */
}

.abp5_menu_mobile_items .menu-item-has-children.active > a .abp5_menu_arrow {
    transform: rotate(90deg);
}

/* Hide arrows for nested sub-menu items (second level) - they are not clickable */
.abp5_menu_mobile_items .sub-menu .menu-item-has-children > a .abp5_menu_arrow {
    display: none !important;
}

/* Sub-menu styles - smooth expand with left margin */
.abp5_menu_mobile_items .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, padding 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    margin-left: 20px; /* Small left margin as requested */
    position: relative; /* Ensure it's in document flow */
    display: block !important; /* Ensure it's in document flow - force display */
    visibility: visible !important; /* Force visibility */
}

.abp5_menu_mobile_items .menu-item-has-children.active > .sub-menu {
    max-height: 1000px;
    padding: 10px 0 10px 0;
    opacity: 1;
}

.abp5_menu_mobile_items .sub-menu li {
    border-bottom: none;
    margin-bottom: 0;
    position: relative; /* Ensure proper flow */
    display: block; /* Ensure it's in the document flow */
}

.abp5_menu_mobile_items .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-align: left;
}

.abp5_menu_mobile_items .sub-menu a:hover {
    color: #ea011d;
    transform: translateX(5px);
}

/* Hide all nested sub-menus (second level and deeper) - only first level is allowed */
.abp5_menu_mobile_items .sub-menu .sub-menu {
    display: none !important;
    visibility: hidden !important;
}

/* Social media icons wrapper at bottom */
.abp5_menu_mobile_socials_wrap {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Social media icons at bottom - one line */
.abp5_socials_mobile {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.abp5_social_mobile_item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.abp5_social_mobile_item:hover {
    color: #ea011d;
    border-color: #ea011d;
    transform: scale(1.1);
}

/* Prevent body scroll when mobile menu is open */
body.abp5_mobile_menu_open {
    overflow: hidden;
}
