/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Medical Header Styles */
.medical-header-wrapper {
    width: 100%;
}

/* Promotion Banner */
.promotion-banner {
    background: #4a90e2;
    color: white;
    padding: 8px 0;
    position: relative;
    font-size: 14px;
}

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

.promotion-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Header Top */
.header-top {
    background: #4a90e2;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

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

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

.header-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.header-btn:hover {
    text-decoration: underline;
}

.separator {
    color: rgba(255, 255, 255, 0.7);
}

.hotline a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

/* Header Main */
.header-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
}

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

.header-logo img {
    height: 50px;
    width: auto;
}

.logo-placeholder {
    background: white;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
}

.menu-categories {
    position: relative;
}

.categories-btn {
    background: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.categories-btn:hover {
    background: #f8f9fa;
}

.header-search {
    flex: 1;
    max-width: 400px;
}

.search-form {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background: #ff6b6b;
    border: none;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
}

.search-btn:hover {
    background: #ff5252;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    color: white;
    font-size: 20px;
    text-decoration: none;
    position: relative;
}

.cart-icon {
    background: #2563eb;
    padding: 10px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
}

.cart-text {
    font-weight: 500;
}

.cart-count {
    background: #16a34a;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Header Navigation - Force display */
.header-navigation {
    background: #4472C4;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.main-navigation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block !important;
}

.nav-menu {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    visibility: visible !important;
}

.nav-item {
    position: relative;
    display: block !important;
}

.nav-link {
    display: block !important;
    padding: 15px 20px;
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.nav-link:hover,
.nav-item.current-menu-item .nav-link {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFE66D !important;
}

.nav-item.has-submenu .nav-link {
    padding-right: 35px;
}

.nav-item.has-submenu .fa-chevron-down {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}
/* Mobile First Responsive Design */
@media (max-width: 480px) {
    /* Hide promotion banner on very small screens */
    .promotion-banner {
        display: none;
    }

    /* Header top - compact layout */
    .header-top {
        padding: 5px 0;
    }

    .header-top-content {
        flex-wrap: wrap;
        gap: 5px;
        padding: 0 10px;
    }

    .header-info {
        display: none; /* Hide promotional text on mobile */
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        font-size: 12px;
    }

    /* Header main - optimized 2-row layout */
    .header-main {
        padding: 12px 0;
    }

    .header-main-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 0 15px;
        align-items: center;
    }

    /* First row: Logo - Categories - Cart */
    .header-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .header-logo img {
        height: 40px;
    }

    .logo-placeholder {
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 600;
    }

    .menu-categories {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .categories-btn {
        padding: 10px 16px;
        font-size: 13px;
        font-weight: 500;
        min-width: 120px;
        justify-content: center;
    }

    .header-icons {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .cart-icon {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 100px;
        justify-content: center;
    }

    .cart-text {
        font-size: 13px;
        font-weight: 500;
    }

    /* Second row: Search spans full width */
    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
    }

    .search-input {
        padding: 14px 18px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 25px;
    }

    .search-btn {
        padding: 14px 18px;
        min-width: 50px;
        border-radius: 25px;
    }

    /* Touch-friendly button sizes */
    .categories-btn,
    .cart-icon,
    .mobile-menu-toggle {
        min-height: 44px; /* Apple's recommended touch target size */
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Improve touch targets for navigation */
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 16px;
    }

    /* Better spacing for touch */
    .header-actions .header-btn {
        padding: 8px 12px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }

    /* Navigation - hamburger menu */
    .header-navigation {
        position: relative;
    }

    .main-navigation {
        padding: 0 10px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #4472C4;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
        padding: 10px;
        transition: transform 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.1);
    }

    /* Search form enhancements */
    .search-form.focused {
        box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.3);
    }

    /* Smooth transitions */
    .header-main-content > * {
        transition: all 0.3s ease;
    }

    /* Cart icon improvements on mobile */
    .cart-count {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    /* Tablet styles - maintain grid but adjust spacing */
    .header-top-content {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 20px;
    }

    .header-info {
        font-size: 13px;
    }

    .header-main {
        padding: 15px 0;
    }

    .header-main-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 15px;
        padding: 0 20px;
    }

    .header-logo img {
        height: 45px;
    }

    .categories-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 140px;
    }

    .cart-icon {
        padding: 12px 20px;
        font-size: 15px;
        min-width: 120px;
    }

    .search-input {
        padding: 12px 20px;
        font-size: 15px;
    }

    .search-btn {
        padding: 12px 20px;
    }

    /* Navigation adjustments */
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 14px 18px;
        font-size: 15px;
        min-height: 48px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

    /* Ensure desktop layout is preserved */
    .header-main-content {
        flex-wrap: nowrap;
    }

    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: transparent;
        box-shadow: none;
    }
}




.action-btn {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 24px; /* Larger icons */
    transition: color 0.3s ease;
}

.action-btn:hover {
    color: #c7d2fe;
}

.action-btn .count {
    background: #16a34a; /* Green for count */
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -8px;
    border: 1px solid #4f46e5;
}

.cart-btn {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cart-btn:hover {
    background: #1d4ed8;
    color: white;
}

.cart-btn .count {
    position: static;
    background: transparent;
    border: none;
    font-size: 15px;
}

/* Navigation */
.medical-header__nav {
    background: white;
    border-radius: 25px;
    padding: 5px;
    display: inline-block;
}

.medical-header__nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: center; /* Center the nav */
}

.main-navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 10px 20px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.main-navigation li.current-menu-item a,
.main-navigation a:hover {
    color: #4f46e5;
    background: #eef2ff;
}

.main-navigation .menu-item-has-children > a {
    padding-right: 30px;
}

.main-navigation .menu-item-has-children > a::after {
    content: '\25BC'; /* Down arrow */
    font-size: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* About Medical Equipment Styles */
.about-medical-equipment {
    padding: 80px 0;
    background: #fff;
}

.about-medical-equipment .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    padding-left: 20px;
}

.about-heading {
    font-size: 32px;
    font-weight: 600;
    color: #87CEEB;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-description {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
    text-align: justify;
}

.about-sub-description {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
    text-align: justify;
}

.features-heading {
    font-size: 24px;
    font-weight: 600;
    color: #87CEEB;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #87CEEB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 20px;
    color: #fff;
}

.feature-content {
    flex: 1;
    padding-top: 0;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature-desc {
    font-size: 17px;
    line-height: 1.5;
    color: #666;
    margin: 0;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-medical-equipment {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        padding-left: 0;
    }

    .about-heading {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        gap: 12px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    .feature-icon i {
        font-size: 18px;
    }
}