.site-header {
    background-color: #F0F9F0;
    border-bottom: 1px solid #eaeaea;
}

.logo img {
    height: 40px;
}

.main-menu {
    display: flex;
    gap: 2rem;
}

.menu-item > a {
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.menu-item:hover > a {
    color: #ff6600;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 0.5rem 1rem;
    border: 1px solid #eee;
    display: none;
    flex-direction: column;
    min-width: 150px;
    z-index: 10;
}

.menu-item:hover .submenu {
    display: flex;
}

.submenu a {
    padding: 4px 0;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.submenu a:hover {
    color: #ff6600;
}

/* Fix badge on header icon */
.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: 8px; /* Equal spacing between icons */
}

.header-icon .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 12px;
    background-color: #dc3545;
    color: #fff;
    line-height: 1;
    display: inline-block;
}
.header-icons-wrapper {
    display: flex;
    align-items: center;
    gap: 1px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* 🔍 Search Icon */
.search-toggle {
    font-size: 20px;
    /*color: #000000;*/
    cursor: pointer;
    z-index: 2;
}

/* 🔎 Expanding Input Box */
.search-input-box {
    width: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    transform: translateX(10px);/* opens to left of icon */
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid #ff6600;
    border-radius: 2px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    height: 42px;
    z-index: 1;
}

/* Show when active */
.search-wrapper.active .search-input-box {
    width: 260px;
    opacity: 1;
    pointer-events: auto;
    /*transition: transform 0.3s ease, opacity 0.3s ease;*/
}

.search-input-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

/* Hide submit button */
.search-input-box button {
    display: none;
}

/*Cart page*/
/* Cart badge fix */
.cart-dropdown-wrapper > a {
    position: relative;
    display: inline-block;
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
}

/* Cart Preview Item */
.cart-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-preview-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
}

.cart-preview-info {
    flex: 1;
    font-size: 14px;
}

.cart-preview-info .title {
    font-weight: 600;
    line-height: 1.4;
}

.cart-preview-info .meta,
.cart-preview-info .qty {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* ❌ Remove icon fix */
.cart-preview-item .remove-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
}
.cart-dropdown-box {
    position: absolute;
    top: 110%;
    right: 0;
    width: 340px;
    background: white;
    z-index: 9999;
}

.cart-item {
    font-size: 14px;
}

.cart-dropdown-box hr {
    margin: 0.25rem 0;
}

/*popup css*/
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-box {
    background: #fff;
    padding: 24px 30px;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: fadeIn 0.2s ease;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.modal-btn {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

.modal-btn.confirm {
    background-color: #dc3545;
    color: white;
}

.modal-btn.cancel {
    background-color: #eee;
    color: #333;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
/*add to cart popup*/
.cart-success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.cart-success-modal.hidden {
    display: none;
}
.cart-success-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 0.3s ease;
}
.cart-success-header {
    display: flex;
    gap: 8px;
    font-size: 18px;
    align-items: center;
    margin-bottom: 1rem;
}
.cart-success-body {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 1rem;
}
.cart-success-body img {
    height: 60px;
    width: auto;
    border-radius: 6px;
}
.cart-success-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
