
:root { --primary-color: #c02126; --primary-dark: #ff5252; /*--secondary-color: #4ecdc4;*/ --text-dark: #2d3436; --text-light: #636e72; --bg-light: #f9f9f9; --white: #ffffff; --shadow: 0 2px 10px rgba(0,0,0,0.1); --shadow-hover: 0 5px 20px rgba(0,0,0,0.15); --transition: all 0.3s ease; --dark-red: #c02126; }
/* 
--primary-color: #ff6b6b;

*/
/* Header Base Styles */
#header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000;}
.pgTpBdr { height: 3px; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));}
.hdrBg { padding: 15px 0;}
.header-wrapper  { display: flex; align-items: center; justify-content: space-between; gap: 30px;}

/* Logo Section */
.logo-section { flex-shrink: 0; }
.logo-section h1 { margin: 0; line-height: 1; }
.bake-circle-logo { height: 50px; width: auto; transition: var(--transition); }
.bake-circle-logo:hover { transform: scale(1.05); }

/* Search Section - Improved */
.search-section { flex: 1; max-width: 500px; margin: 0 20px; }
.search-form { width: 100%; }
.search-wrapper { display: flex; align-items: center; background: var(--bg-light); border: 2px solid var(--gry-bdr-color)/*#e0e0e0*/; border-radius: 50px; overflow: hidden; transition: var(--transition); }
.search-wrapper:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1); }
.search-input { flex: 1; padding: 12px 20px; border: none; background: transparent; font-size: 14px; color: var(--text-dark); outline: none; }
.search-input::placeholder { color: var(--text-light); opacity: 0.7; }
.search-button { padding: 12px 25px; background: var(--primary-color); border: none; color: white; cursor: pointer; transition: var(--transition); font-size: 16px; }
.search-button:hover { background: var(--primary-dark); }
.search-button i { font-size: 16px; }

/* User Section Wrapper */
.user-section-wrapper { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

/* Cart Styles */
.cart-wrapper { position: relative; }
.cart-link { display: flex; align-items: center; padding: 10px 15px; background: var(--bg-light); border-radius: 50px; color: var(--text-dark); text-decoration: none; transition: var(--transition); position: relative; }
.cart-link:hover { background: #f0f0f0; transform: translateY(-2px); }
.cart-link i { font-size: 18px; color: var(--primary-color); margin-right: 8px; }
.cart-text { font-weight: 500; margin-right: 5px; }
.cart-badge { background: var(--primary-color); color: white; font-size: 12px; font-weight: bold; padding: 2px 6px; border-radius: 50px; min-width: 20px; text-align: center; margin-left: 5px; }

/* Cart Preview Dropdown */
.cart-preview { position: absolute; top: 100%; right: 0; width: 280px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow-hover); padding: 15px; margin-top: 10px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: var(--transition); z-index: 1001; }
.cart-wrapper:hover .cart-preview { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-preview-header { padding-bottom: 10px; border-bottom: 1px solid #e0e0e0; display: flex; justify-content: space-between; color: var(--text-light); font-size: 14px; }
.cart-preview-footer { margin-top: 15px; display: flex; gap: 10px; }
.cart-preview-footer a { flex: 1; padding: 8px 12px; text-align: center; color: #2d3436; border-radius: 5px; text-decoration: none; font-size: 13px; font-weight: 500; transition: var(--transition); }
.view-cart-btn { background: var(--bg-light); color: var(--text-dark); }
.view-cart-btn:hover { background: #e0e0e0; }
.checkout-btn { background: var(--primary-color); color: white !important;}
.checkout-btn a {color:var(--nav-hdr-txt);}
.checkout-btn:hover { background: var(--primary-dark); }

/* User Dropdown Styles */
.user-dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; padding: 10px 15px; background: var(--primary-color); border: none; border-radius: 50px; color: white; cursor: pointer; transition: var(--transition); font-size: 14px; }
.dropdown-toggle:hover { background: var(--primary-dark); }
.dropdown-toggle i:first-child { margin-right: 8px; font-size: 16px; }
.username { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 5px; }
.dropdown-arrow { font-size: 12px; transition: var(--transition); }
.user-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; right: 0; width: 200px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow-hover); padding: 8px 0; margin-top: 10px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: var(--transition); z-index: 1001; }
.user-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; padding: 10px 15px; color: var(--text-dark); text-decoration: none; transition: var(--transition); font-size: 14px; }
.dropdown-item i { width: 20px; margin-right: 10px; color: var(--text-light); }
.dropdown-item:hover { background: var(--bg-light); color: var(--primary-color); }
.dropdown-item:hover i { color: var(--primary-color); }
.logout-item { color: #ff4444; }
.logout-item i { color: #ff4444; }
.dropdown-divider { height: 1px; background: #e0e0e0; margin: 8px 0; }

/* Login Link */
.login-link { text-decoration: none; }
.login-button { display: flex; align-items: center; padding: 10px 20px; background: transparent; border: 2px solid var(--primary-color); border-radius: 50px; color: var(--primary-color); transition: var(--transition); font-weight: 500; }
.login-button:hover { background: var(--primary-color); color: white; transform: translateY(-2px); }
.login-button i { margin-right: 8px; font-size: 16px; }

/* Mobile Responsive */
@media (max-width: 992px) { .header-wrapper { flex-wrap: wrap; gap: 15px; }
.search-section { order: 3; max-width: 100%; margin: 0; flex: 0 0 100%; }
.logo-section { flex: 0 0 auto; }
.user-section-wrapper { flex: 0 0 auto; }
}

@media (max-width: 576px) { .hdrBg { padding: 10px 0; }
.header-wrapper { gap: 10px; }
.cart-text, .username { display: none; }
.cart-link i, .dropdown-toggle i:first-child, .login-button i { margin-right: 0; }
.cart-link, .dropdown-toggle, .login-button { padding: 10px; }
.cart-badge { position: absolute; top: -5px; right: -5px; margin: 0; }
.search-input { padding: 10px 15px; font-size: 13px; }
.search-button { padding: 10px 15px; }
.bake-circle-logo { height: 40px; }
}

/* Animation for cart badge */
@keyframes pulse { 0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.cart-badge { animation: pulse 2s infinite; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Focus styles for accessibility */
.search-input:focus-visible,
.search-button:focus-visible,
.cart-link:focus-visible,
.dropdown-toggle:focus-visible,
.login-button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
/* bottam nav */
:root { --nav-red-bg: #c02126; --nav-hdr-txt:#ffffff; --nav-bg: #ffffff; --nav-text: #2d3436; --nav-hover: #ff6b6b; --nav-dropdown-bg: #ffffff; --nav-dropdown-shadow: 0 10px 30px rgba(0,0,0,0.1); --nav-border: #e0e0e0; --mega-menu-width: 800px; }

/* Navigation Container */
.nav-container { background: var(--nav-red-bg); border-bottom: 1px solid var(--nav-border); position: relative; z-index: 999; }

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; margin: 15px; position: absolute; right: 15px; top: -48px; }
.mobile-menu-toggle .bar { width: 30px; height: 3px; background: var(--nav-text); border-radius: 3px; transition: all 0.3s ease; }
.mobile-menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Main Navigation */
.main-navigation { max-width: 1200px; margin: 0 auto; padding: 0 20px; background-color: var(--nav-red-bg); }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; justify-content: center; }

/* Nav Items */
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; padding: 18px 20px; color: var(--nav-hdr-txt); text-decoration: none; font-weight: 500; font-size: 15px; transition: all 0.3s ease; white-space: nowrap; }
.nav-link:hover { color: var(--nav-hover); background: rgba(255, 107, 107, 0.05); }
.dropdown-arrow { font-size: 12px; margin-left: 6px; transition: transform 0.3s ease; }
.nav-item:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown Menus */
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--nav-dropdown-bg); border-radius: 8px; box-shadow: var(--nav-dropdown-shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; list-style: none; padding: 8px 0; margin: 0; }
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link { display: flex; align-items: center; padding: 10px 20px; color: var(--nav-text); text-decoration: none; font-size: 14px; transition: all 0.2s ease; }
.dropdown-link i { width: 20px; margin-right: 10px; color: var(--nav-hover); font-size: 14px; }
.dropdown-link:hover { background: rgba(255, 107, 107, 0.1); color: var(--nav-hover); padding-left: 25px; }
.dropdown-divider { height: 1px; background: var(--nav-border); margin: 8px 0; }
.view-all { color: var(--nav-hover); font-weight: 600; }

/* Mega Menu */
.mega-dropdown { position: static; }
.mega-menu { position: absolute; top: 100%; left: 10%; width: 80%; background: var(--nav-dropdown-bg); box-shadow: var(--nav-dropdown-shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; border-radius: 0 0 8px 8px; }
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu-content { max-width: 1200px; margin: 0 auto; padding: 15px 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.mega-menu-column { min-width: 0; }
.mega-menu-title { color: var(--nav-hover); font-size: 16px; font-weight: 600; margin: 0 0 15px 0; padding-bottom: 8px; border-bottom: 2px solid var(--nav-hover); }
.mega-menu-column ul { list-style: none; padding: 0; margin: 0; }
.mega-link { display: block; padding: 6px 0; color: var(--nav-text); text-decoration: none; font-size: 14px; transition: all 0.2s ease; }
.mega-link:hover { color: var(--nav-hover); padding-left: 5px; }
.mega-link.featured { color: var(--nav-hover); font-weight: 500; }
.view-all-occasions { display: inline-block; margin-top: 15px; color: var(--nav-hover); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s ease; }
.view-all-occasions:hover { padding-left: 5px; }

/* Flavour Menu Icons */
.flavour-menu { min-width: 200px; }
.flavour-menu .dropdown-link i { font-size: 16px; }

/* Active Link State */
.nav-link.active { color: var(--nav-hover); position: relative; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 20px; right: 20px; height: 3px; background: var(--nav-hover); border-radius: 3px 3px 0 0; }

/* Responsive Design */
@media (max-width: 1024px) { .nav-link { padding: 15px 12px; font-size: 14px; }
.mega-menu-content { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 20px; }
}

@media (max-width: 768px) { .mobile-menu-toggle { display: flex; }
.main-navigation { position: relative; top: 100%; left: 0; width: 100%; background: var(--nav-bg); max-height: 0; overflow: hidden; transition: max-height 0.5s ease; box-shadow: 0 5px 10px rgba(0,0,0,0.1); padding: 0;  margin-top:44px;}
.main-navigation.active { max-height: 80vh; overflow-y: auto; margin-top:44px; }
.nav-menu { flex-direction: column; padding: 10px 0; }
.nav-item { width: 100%; }
.nav-link { padding: 15px 20px; justify-content: space-between; color: #2d3436;  }
.nav-link:hover {color:#ff4444;}
.dropdown-menu, .mega-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; background: #f8f8f8; padding-left: 20px; }
.nav-item.active .dropdown-menu, .nav-item.active .mega-menu { display: block; }
.mega-menu-content { grid-template-columns: 1fr; padding: 15px; }
.mega-menu-column { margin-bottom: 15px; }
.dropdown-arrow { margin-left: auto; }
.nav-item:hover .dropdown-arrow { transform: none; }
.nav-link.active::after { display: none; }
}

@media (max-width: 480px) {
    .mega-menu-content { grid-template-columns: 1fr; }
    .dropdown-link { padding: 12px 15px; }
}

/* Animation for dropdown */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-item:hover .dropdown-menu, .nav-item:hover .mega-menu { animation: slideDown 0.3s ease forwards; }

/* Scrollbar styling for mobile menu */
.main-navigation::-webkit-scrollbar { width: 5px; }
.main-navigation::-webkit-scrollbar-track { background: #f1f1f1; }
.main-navigation::-webkit-scrollbar-thumb { background: var(--nav-hover); border-radius: 5px; }
.main-navigation::-webkit-scrollbar-thumb:hover { background: #ff5252; }

/* Active state for mobile */
@media (max-width: 768px) { .nav-item.dropdown::after { display: none; }
}
