/* =====================================================
   YES FASHION HUB — FINAL & LOCKED PREMIUM HEADER CSS
   ===================================================== */

:root { 
    --primary: #00285e; 
    --accent: #0c5a34; 
    --white: #ffffff; 
    --red: #ff3b30;
}

/* Global Reset for Header Area */
#header-container * {
    box-sizing: border-box;
}

#header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100; /* Isko 1000 se 1100 kar dein */
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 70px; 
    padding: 0 14px; 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative;
}

/* -------- LOGO & TAGLINE -------- */
.logo-area {
    text-align: center;
    flex: 1;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Prevents overflow */
}

.logo-area h1 { 
    font-family: 'Cinzel', serif; 
    font-size: 22px; 
    letter-spacing: 1.5px; 
    color: var(--primary); 
    margin: 0; 
    text-transform: uppercase;
    line-height: 1.2;
}

.logo-area .tagline { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 13px; 
    color: var(--accent); 
    font-style: italic; 
    font-weight: 500;
    margin: 0 !important;
    line-height: 1 !important;
}

/* -------- BUTTONS & ICONS -------- */
#menuBtn, .home-icon {
    border: none;
    background: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 20px;
}

.right-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Individual Icon Container */
.cart-btn {
    position: relative; /* Badge positioning base */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cart-btn i {
    font-size: 19px;
    color: var(--primary);
}

.cart-btn:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

/* -------- BADGES (Wishlist & Cart) -------- */
.cart-count { 
    position: absolute; 
    top: 4px; 
    right: 4px; 
    background: var(--red); 
    color: #fff; 
    font-size: 10px; 
    min-width: 16px; 
    height: 16px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: bold;
    padding: 2px;
    border: 1px solid #fff;
    z-index: 2;
}

/* -------- MENU DROPDOWN -------- */
.menu-dropdown {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    max-width: 260px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 10000;
    border-radius: 0 0 8px 0;
}

.menu-dropdown.open { 
    display: block; 
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-dropdown a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
    transition: background 0.2s;
}

.menu-dropdown a:hover { 
    background: #f8f9fa; 
    color: var(--primary);
    padding-left: 25px;
}

/* -------- MODALS (Wishlist & Cart) -------- */
#wishlistModal, #modalRoot .modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(2px);
}

#wishlistModal.active { display: flex; }

.wishlist-content, #modalRoot .modal-box {
    background: #fff;
    position: relative;
    border-radius: 16px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.wishlist-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: var(--primary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    background: #f2f2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.wishlist-close:hover { background: #e0e0e0; transform: rotate(90deg); }

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #eee;
}

.wishlist-item img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
}

.wishlist-item .wish-info { flex: 1; }

.wishlist-item button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
/* -------- CART MODAL STYLING -------- */
#cartModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none; /* Default hidden */
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.modal-box {
  background: #fff;
  position: relative;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cart-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #00285e;
}

.cart-footer {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
  text-align: center;
}

.checkout-btn {
  background: #00285e;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}

/* -------- RESPONSIVE FIXES -------- */
@media (max-width: 600px) {
    .header-inner { height: 65px; }
    .logo-area h1 { font-size: 18px; letter-spacing: 1px; }
    .logo-area .tagline { font-size: 11px; }
    .menu-dropdown { width: 80%; top: 65px; }
    #menuBtn, .home-icon, .cart-btn { width: 35px; }
}

@media (max-width: 380px) {
    .logo-area h1 { font-size: 16px; }
    .right-icons { gap: 2px; }
}
