/* Header Styles */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent double-tap zoom on all interactive elements */
button,
a,
input,
select,
textarea,
.carousel-control,
.bestsellers-control,
.testimonials-control,
[role="button"],
[onclick] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.announcement-bar {
    background-color: #080046;
    color: white;
    overflow: hidden;
    position: relative;
    height: 40px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

.announcement-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.announcement-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.3s ease;
    background-color: #080046;
    box-sizing: border-box;
}

.announcement-slide:hover {
    background-color: #333333;
}

.announcement-slide:nth-child(1) {
    animation: slideIn 15s infinite;
}

.announcement-slide:nth-child(2) {
    animation: slideIn 15s infinite 5s;
}

.announcement-slide:nth-child(3) {
    animation: slideIn 15s infinite 10s;
}

.announcement-bar__message {
    margin: 0;
    padding: 8px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #f0f0f0;
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

@keyframes slideIn {
    0%, 100% {
        opacity: 0;
        transform: translateY(100%);
    }
    3%, 30% {
        opacity: 1;
        transform: translateY(0);
    }
    33%, 97% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

.header {
    background-color: white;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    top: 0;
    left: 0;
    margin: 0;
    box-sizing: border-box;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.logo {
    max-height: 60px;
    width: auto;
    box-sizing: border-box;
}

.nav-container {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nav-item {
    margin: 0;
    box-sizing: border-box;
}

.nav-item a {
    color: #080046;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    box-sizing: border-box;
}

.nav-item a:hover,
.nav-item a.active {
    color: #005bd3;
}

.nav-item a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #080046;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
    color: #080046;
    box-sizing: border-box;
}

.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #080046;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    display: none;
    box-sizing: border-box;
}

.cart-notification.show {
    display: block;
}

.cart-notification__content {
    padding: 20px;
    box-sizing: border-box;
}

.cart-notification__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.cart-notification__icon {
    width: 24px;
    height: 24px;
    box-sizing: border-box;
}

.cart-notification__title {
    margin: 0;
    font-size: 18px;
    color: #f0f0f0;
    line-height: 1;
    box-sizing: border-box;
}

.cart-notification__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #f0f0f0;
    box-sizing: border-box;
}

.cart-notification__product {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.cart-notification__product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    box-sizing: border-box;
}

.cart-notification__product-info {
    flex: 1;
    box-sizing: border-box;
}

.cart-notification__product-title {
    margin: 0;
    font-weight: 500;
    color: #f0f0f0;
    line-height: 1;
    box-sizing: border-box;
}

.cart-notification__product-price {
    margin: 5px 0 0;
    color: #333333;
    line-height: 1;
    box-sizing: border-box;
}

.cart-notification__buttons {
    display: flex;
    gap: 10px;
    box-sizing: border-box;
}

.cart-notification__buttons .button {
    flex: 1;
    padding: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    background: #080046;
    color: #f0f0f0;
    transition: all 0.2s;
    line-height: 1;
    box-sizing: border-box;
}

.cart-notification__buttons .button:hover {
    background: #333333;
    color: #f0f0f0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #080046;
    box-sizing: border-box;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu__header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}

.mobile-menu__close {
    background: none;
    border: none;
    color: #080046;
    font-size: 24px;
    cursor: pointer;
    box-sizing: border-box;
}

.mobile-menu__nav {
    padding: 20px;
    box-sizing: border-box;
}

.mobile-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.mobile-menu__item {
    margin-bottom: 15px;
    box-sizing: border-box;
}

.mobile-menu__item a {
    color: #080046;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px 0;
    transition: color 0.3s;
    box-sizing: border-box;
}

.mobile-menu__item a:hover {
    color: #005bd3;
}

.mobile-menu__item .cart-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.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;
    box-sizing: border-box;
}

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

@media (max-width: 768px) {
    .announcement-bar__message {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-container {
        position: relative;
        padding: 15px;
        box-sizing: border-box;
    }

    .logo {
        max-height: 40px;
        box-sizing: border-box;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        box-sizing: border-box;
    }

    .nav-container {
        display: none;
    }

    .logo-container {
        margin: 0 auto;
        box-sizing: border-box;
    }

    .nav-list {
        gap: 20px;
        box-sizing: border-box;
    }

    .nav-item a {
        font-size: 14px;
        line-height: 1;
        box-sizing: border-box;
    }
}
