/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Announcement Bar
   ============================================================ */
.announcement-bar {
    background-color: var(--color-navy);
    color: var(--color-white);
    text-align: center;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    overflow: hidden;
    position: relative;
}

.announcement-bar-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 5s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.announcement-bar:hover .announcement-bar-content {
    animation-play-state: paused;
}

.announcement-bar .highlight {
    font-weight: 500;
}

/* ============================================================
   Header
   ============================================================ */
.main-header {
    position: absolute;
    top: var(--announcement-height);
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-navy);
}

.main-header.scrolled {
    position: fixed;
    top: 0;
    background-color: rgba(20, 53, 82, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.header-icon-btn svg {
    width: 18px;
    height: 18px;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--color-burgundy);
    color: var(--color-white);
    font-size: 9px;
    font-weight: 500;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.cart-count.visible {
    opacity: 1;
    transform: scale(1);
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    flex: 2;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-list a {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    padding: 8px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-white);
    transition: width var(--transition-base);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover {
    opacity: 1;
}

/* Brand Logo */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.brand-logo .brand-ar {
    font-family: var(--font-arabic);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-white);
    direction: rtl;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 26px;
    height: 26px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-white);
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-navy);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 24px 0;
}

.mobile-nav a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-white);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 480px;
    padding: 0 24px;
    position: relative;
}

.search-form {
    display: flex;
    border-bottom: 1px solid var(--color-black);
}

.search-form input {
    flex: 1;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 300;
    padding: 14px 0;
    border: none;
    outline: none;
    background: transparent;
}

.search-form input::placeholder {
    color: var(--color-gray);
}

.search-form button {
    padding: 14px;
    color: var(--color-black);
}

.search-close {
    position: absolute;
    top: -70px;
    right: 0;
    color: var(--color-black);
}