/* ===================================
   HEADER & GLOBAL STYLES
   OstimPro Header CSS - Extracted from header.php
   =================================== */

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

body {
    font-family: 'Exo', sans-serif;
    background: #ffffff;
    min-height: 100vh;
}

/* ===================================
   HEADER STYLES
   =================================== */

/* Top Announcement Bar */
.top-bar {
    background: #c01a22;
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-promo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-shipping {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-shipping a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-bar-shipping a:hover {
    opacity: 0.8;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-bar-right a:hover {
    opacity: 0.8;
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.5);
}

/* Main Header */
.main-header {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #c01a22;
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: #000000;
}

.search-box {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Exo', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #c01a22;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #c01a22;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    color: #ffffff;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #a01519;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-phone-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-phone-number {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.whatsapp-btn {
    background: #25D366;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    white-space: nowrap;
}

.whatsapp-btn:hover {
    background: #1fb855;
}

/* Navigation */
.navigation {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navigation-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    position: relative;
}

.dropdown-wrapper {
    position: relative;
}

.dropdown-btn {
    background: #c01a22;
    color: #ffffff;
    padding: 15px 25px;
    border: none;
    font-family: 'Exo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.dropdown-btn:hover {
    background: #a01519;
}

.dropdown-btn .arrow-icon {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown-btn.active .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-btn .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 18px;
}

.dropdown-btn .hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-width: 750px;
    z-index: 1000;
    display: none;
    border-top: 3px solid #c01a22;
    padding: 20px;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.dropdown-menu.active {
    display: grid;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-menu a:hover {
    background: #f9fafb;
    color: #c01a22;
    padding-left: 25px;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    margin-left: 40px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -17.5px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: #d1d5db;
}

.nav-menu li a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #c01a22;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
}

.nav-right svg {
    width: 16px;
    height: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #c01a22;
    padding: 5px;
    z-index: 1002;
}

.mobile-menu-toggle .hamburger {
    width: 28px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-toggle .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #c01a22;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(3px);
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Menu Sidebar */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: #ffffff;
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu-sidebar.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #374151;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    line-height: 1;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header-contacts {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: space-between;
}

.mobile-whatsapp-btn {
    background: #25D366;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.mobile-phone-link {
    background: #c01a22;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.mobile-menu-search {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-search input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Exo', sans-serif;
    font-size: 14px;
}

.mobile-menu-search input:focus {
    outline: none;
    border-color: #c01a22;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-link {
    display: block;
    padding: 15px 20px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.3s;
}

.mobile-menu-link:active {
    background: #f9fafb;
}

.mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #374151;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    background: #ffffff;
    border: none;
    width: 100%;
    text-align: left;
}

.mobile-submenu-toggle .arrow {
    transition: transform 0.3s;
    font-size: 12px;
}

.mobile-submenu-toggle.active .arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: block;
    background: #f9fafb;
    padding: 5px 0;
}

.mobile-submenu.active {
    display: block;
}

.mobile-menu-footer-link {
    background: #c01a22;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.mobile-submenu a {
    display: block;
    padding: 12px 20px 12px 35px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.mobile-submenu a:active {
    background: #f3f4f6;
    color: #c01a22;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.mobile-menu-footer-phone {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.mobile-menu-footer-contact {
    background: #c01a22;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

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

    .search-box {
        max-width: 400px;
    }

    .nav-menu {
        gap: 25px;
        margin-left: 30px;
    }
}

@media (max-width: 992px) {
    .top-bar-left,
    .top-bar-right {
        font-size: 12px;
    }

    .search-box {
        max-width: 300px;
    }

    .contact-phone {
        display: none;
    }

    .nav-menu {
        gap: 20px;
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .main-header {
        position: relative;
    }

    .main-header-container {
        justify-content: space-between;
        padding: 15px 20px;
        align-items: center;
        min-height: 60px;
    }

    .logo {
        order: 1;
        font-size: 24px;
        display: flex;
        align-items: center;
        height: 30px;
    }

    .search-box {
        display: none;
    }

    .header-contact {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        order: 2;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        z-index: 1002;
        height: 30px;
    }

    .navigation {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }

    .whatsapp-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .top-bar-right {
        flex-direction: column;
        gap: 5px;
    }

    .top-bar-divider {
        display: none;
    }
}
