/* Themify Ultra Header Styles - Matching Parent Site */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Typography matching parent site */
body {
    font-family: 'Poppins', 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Themify utility classes from parent site */
.tf_box {
    box-sizing: border-box;
}

.tf_clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.tf_clear {
    clear: both;
}

.tf_hide {
    display: none !important;
}

.tf_inline_b {
    display: inline-block;
}

.tf_vmiddle {
    vertical-align: middle;
}

.tf_overflow {
    overflow: hidden;
}

.tf_text_dec {
    text-decoration: none;
}

.tf_float {
    float: left;
}

.tf_rel {
    position: relative;
}

.tf_textc {
    text-align: center;
}

.tf_scrollbar {
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-to-content {
    position: absolute;
    top: -9999px;
    left: 6px;
    z-index: 999999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 7px;
}

/* Page width container matching parent site */
.pagewidth {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Page wrap */
#pagewrap {
    position: relative;
}

/* Header Wrapper - matching parent site exactly */
#headerwrap {
    position: relative;
    background-color: #fff;
    z-index: 1000;
}

#headerwrap.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Main Header */
#header {
    position: relative;
    z-index: 1001;
}

/* Header Bar (Logo Container) - exact match */
.header-bar {
    padding: 22px 0;
    text-align: left;
    position: relative;
    background: #fff;
}

/* Logo styling matching parent */
#site-logo {
    display: inline-block;
    max-width: 600px;
    position: relative;
    margin: 0;
}

#site-logo a {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.site-logo-image {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
    width: 500px;
}

/* Desktop Navigation Menu */
.desktop-navigation {
    display: none;
    position: absolute;
    top: 25px;
    right: 50px;
    z-index: 1002;
}

@media (min-width: 981px) {
    .desktop-navigation {
        display: block;
    }
}

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

.desktop-menu .menu-item {
    margin: 0;
    padding: 0;
}

.desktop-menu .menu-item a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font: 16px / 1.65em 'Public Sans', Arial, sans-serif !important;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.desktop-menu .menu-item a:hover,
.desktop-menu .menu-item.current-menu-item a {
    color: #333;
    background: none;
}

.desktop-menu .menu-item a:focus {
    outline: none;
    background: none;
}

/* Header Icons for mobile */
.header-icons {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1002;
    display: none;
}

@media (max-width: 980px) {
    .header-icons {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

/* Mobile Menu Icon */
#menu-icon {
    padding: 10px;
    margin-right: 10px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
}

.menu-icon-inner {
    width: 24px;
    height: 18px;
    position: relative;
    display: block;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.menu-icon-inner::before,
.menu-icon-inner::after {
    content: "";
    position: absolute;
    left: 0;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
}

.menu-icon-inner::before {
    top: 0;
    box-shadow: 0 8px 0 #333;
}

.menu-icon-inner::after {
    top: 15px;
}

/* Cart Icon */
.cart-icon {
    display: inline-block;
    position: relative;
}

.cart-icon-link {
    display: inline-block;
    padding: 10px;
    color: #333;
    position: relative;
    text-decoration: none;
}

.icon-shopping-cart {
    font-style: normal;
    display: inline-block;
}

/* SVG Icons */
.tf_fa {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.tf-fas-shopping-cart {
    width: 1.123em;
}

/* Cart count badge */
.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
}

/* Search Overlay */
.tf_search_form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.tf_search_form.tf_search_overlay_open {
    display: flex;
}

#searchform {
    background: white;
    border-radius: 5px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.tf_icon_wrap {
    margin-right: 10px;
    color: #666;
    font-size: 1.2em;
}

#searchform input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px;
    background: transparent;
}

/* Sidemenu (Mobile Menu & Cart) */
.sidemenu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #fff;
    z-index: 999999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.sidemenu.sidemenu-on {
    right: 0;
}

.sidemenu.sidemenu-off {
    right: -350px;
}

@media (max-width: 400px) {
    .sidemenu {
        width: 100%;
        right: -100%;
    }
    .sidemenu.sidemenu-on {
        right: 0;
    }
    .sidemenu.sidemenu-off {
        right: -100%;
    }
}

/* Mobile Menu Content */
.navbar-wrapper {
    padding: 20px;
}

.search-button {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    margin-bottom: 20px;
    text-decoration: none;
}

/* Main Navigation */
#main-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

#main-nav li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
}

#main-nav a {
    display: block;
    padding: 15px 0;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

#main-nav a:hover,
#main-nav .current-menu-item a {
    color: #ff6b35;
}

/* Pull Down Widget */
.pull-down {
    display: block;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
    color: #666;
    text-decoration: none;
}

.pull-down-inner {
    width: 20px;
    height: 20px;
    background: #666;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

/* Header Widget Area */
.header-widget {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 20px;
}

.header-widget-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col3-1 {
    flex: 1;
    min-width: 0;
}

.widget_media_image {
    text-align: center;
}

.wp-block-image {
    margin: 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Close Button */
.tf_close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1;
    color: #333;
}

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

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

/* Header Extra Badge - matching parent positioning */
.header-extra {
    position: absolute;
    top: 15px;
    left: 400px;
    z-index: 1000;
}

.header-extra img {
    height: 110px;
    width: auto;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Hide badge on mobile */
@media (max-width: 980px) {
    .header-extra {
        display: none;
    }
}

/* Slide Cart specific */
#slide-cart {
    padding: 60px 20px 20px;
}

#shopdock-ultra {
    padding: 20px 0;
}

#shopdock-ultra p {
    margin-bottom: 15px;
    font-weight: 500;
}

#shopdock-ultra a {
    color: #ff6b35;
    text-decoration: none;
}

#shopdock-ultra a:hover {
    text-decoration: underline;
}

/* Desktop specific styles */
@media (min-width: 981px) {
    .header-bar {
        padding: 22px 0;
    }
    
    #site-logo {
        max-width: 400px;
    }
    
    .site-logo-image {
        width: 400px;
    }
}

/* Responsive adjustments matching parent */
@media (max-width: 1200px) {
    .header-extra {
        left: 335px;
    }
}

@media (max-width: 980px) {
    .pagewidth {
        padding: 0 15px;
    }
    
    .header-bar {
        padding: 15px 0;
    }
    
    #site-logo {
        max-width: 350px;
    }
}

@media (max-width: 600px) {
    #site-logo {
        max-width: 250px;
    }
    
    .header-bar {
        padding: 8px 0;
    }
}

/* Button styles for cart */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e55a2b;
    color: white;
}

.btn-primary {
    background: #ff6b35;
}

.btn-primary:hover {
    background: #e55a2b;
}

.btn-secondary {
    background: #6c757d;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Accessibility improvements */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header-icons,
    .sidemenu,
    .tf_search_form {
        display: none !important;
    }
}
