@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}
@keyframes cartBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.allHeaderIndex12 {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 12px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease;
}

.allHeaderIndex12.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
}

.allHeaderIndex12 .block {
    margin: 0 auto;
}

.allHeaderIndex12 .h12-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 1.5rem;
}

.allHeaderIndex12 .h12-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
    min-width: 0;
}

.allHeaderIndex12 .h12-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.allHeaderIndex12 .h12-logo:hover img {
    transform: scale(1.04);
}

.allHeaderIndex12 .h12-search {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border-radius: 50px;
    overflow: hidden;
    flex: 1;
    max-width: 460px;
    border: 1.5px solid transparent;
    transition: all 0.3s ease;
}

.allHeaderIndex12 .h12-search:focus-within {
    background: #fff;
    border-color: var(--green-color);
    box-shadow: 0 0 0 3px rgba(0, 126, 70, 0.12);
}

.allHeaderIndex12 .h12-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 18px;
    font-size: 0.9rem;
    color: #333;
    min-width: 0;
}

.allHeaderIndex12 .h12-search input::placeholder {
    color: #999;
}

.allHeaderIndex12 .h12-search button {
    background: linear-gradient(135deg, var(--green-color), #005c34);
    border: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 3px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 126, 70, 0.25);
}

.allHeaderIndex12 .h12-search button:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0, 126, 70, 0.35);
}

.allHeaderIndex12 .h12-search button .icon {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.allHeaderIndex12 .h12-suggest {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #fff5f5, #fff);
    border: 1.5px solid #ffcdd2;
    border-radius: 50px;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e53935;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.allHeaderIndex12 .h12-suggest::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(229,57,53,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.allHeaderIndex12 .h12-suggest:hover {
    border-color: #e53935;
    color: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(229, 57, 53, 0.22);
}

.allHeaderIndex12 .h12-suggest:hover::before {
    opacity: 1;
}

.allHeaderIndex12 .h12-suggest .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    animation: pulseIcon 2.2s ease-in-out infinite;
}

.allHeaderIndex12 .h12-suggest .arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s;
}

.allHeaderIndex12 .h12-suggest:hover .arrow {
    transform: translateX(-3px);
}

.allHeaderIndex12 .h12-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.allHeaderIndex12 .h12-option {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f4f4f4;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.allHeaderIndex12 .h12-option:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

.allHeaderIndex12 .h12-option:hover .icon {
    fill: var(--green-color);
}

.allHeaderIndex12 .h12-option .icon {
    width: 22px;
    height: 22px;
    fill: #333;
    transition: fill 0.25s;
}

.allHeaderIndex12 .h12-option .showCartCount {
    position: absolute;
    top: -5px;
    left: -5px;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.4);
}

.allHeaderIndex12 .h12-option .showCartCount.active {
    animation: cartBounce 0.4s ease;
}

.allHeaderIndex12 .h12-user {
    position: relative;
}

.allHeaderIndex12 .h12-user-drop {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    z-index: 50;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.allHeaderIndex12 .h12-user:hover .h12-user-drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.allHeaderIndex12 .h12-user-drop ul {
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

.allHeaderIndex12 .h12-user-drop li a {
    display: block;
    padding: 11px 18px;
    font-size: 0.88rem;
    color: #333;
    transition: all 0.2s;
}

.allHeaderIndex12 .h12-user-drop li a:hover {
    background: #f0faf3;
    color: var(--green-color);
    padding-right: 22px;
}

.allHeaderIndex12 .h12-bot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
}

.allHeaderIndex12 .h12-bot-right {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.allHeaderIndex12 .h12-cats-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--green-color), #005c34);
    color: #fff;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    box-shadow: 0 3px 12px rgba(0, 126, 70, 0.25);
}

.allHeaderIndex12 .h12-cats-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 126, 70, 0.35);
}

.allHeaderIndex12 .h12-cats-btn .icon {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.allHeaderIndex12 .h12-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.allHeaderIndex12 .h12-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.25s;
}

.allHeaderIndex12 .h12-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--green-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.allHeaderIndex12 .h12-menu a:hover {
    color: var(--green-color);
}

.allHeaderIndex12 .h12-menu a:hover::after {
    width: 100%;
}

.allHeaderIndex12 .h12-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #00c853, #00a844);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    box-shadow: 0 3px 12px rgba(0, 200, 83, 0.3);
    white-space: nowrap;
}

.allHeaderIndex12 .h12-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 200, 83, 0.4);
    color: #fff !important;
}

.allHeaderIndex12 .h12-admin::before {
    content: "⚙";
    font-size: 14px;
    line-height: 1;
}

.allHeaderIndex12 .h12-support {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--green-color), #005c34);
    color: #fff;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    box-shadow: 0 3px 12px rgba(0, 126, 70, 0.22);
}

.allHeaderIndex12 .h12-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 126, 70, 0.32);
}

.allHeaderIndex12 .h12-support .icon {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.allHeaderIndex12 .h12-mega {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    z-index: 999;
    max-height: 70vh;
    overflow-y: auto;
}

.allHeaderIndex12 .h12-mega.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.allHeaderIndex12 .h12-mega-close {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--green-color), #005c34);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.allHeaderIndex12 .h12-mega-close .h12-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.allHeaderIndex12 .h12-mega-close .h12-close-btn:hover {
    background: rgba(255,255,255,0.35);
}

.allHeaderIndex12 .h12-mega-close .h12-close-btn .icon {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.allHeaderIndex12 .h12-mega-inner {
    margin: 0 auto;
    padding: 25px 0;
}

.allHeaderIndex12 .h12-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px 30px;
}

.allHeaderIndex12 .h12-mega-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    transition: color 0.25s;
}

.allHeaderIndex12 .h12-mega-title .icon {
    width: 14px;
    height: 14px;
    fill: #999;
    transition: transform 0.25s;
}

.allHeaderIndex12 .h12-mega-title:hover {
    color: var(--green-color);
}

.allHeaderIndex12 .h12-mega-title:hover .icon {
    transform: translateX(-3px);
    fill: var(--green-color);
}

.allHeaderIndex12 .h12-mega-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.allHeaderIndex12 .h12-mega-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.allHeaderIndex12 .h12-mega-parent {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    transition: color 0.2s;
}

.allHeaderIndex12 .h12-mega-parent:hover {
    color: var(--green-color);
}

.allHeaderIndex12 .h12-mega-child {
    font-size: 0.82rem;
    color: #666;
    padding-right: 12px;
    position: relative;
    transition: all 0.2s;
}

.allHeaderIndex12 .h12-mega-child::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ddd;
    transform: translateY(-50%);
    transition: background 0.2s;
}

.allHeaderIndex12 .h12-mega-child:hover {
    color: var(--green-color);
    padding-right: 16px;
}

.allHeaderIndex12 .h12-mega-child:hover::before {
    background: var(--green-color);
}

@media (max-width: 1200px) {
    .allHeaderIndex12 .h12-suggest span {
        display: none;
    }
    .allHeaderIndex12 .h12-menu {
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .allHeaderIndex12 .h12-menu {
        display: none;
    }
    .allHeaderIndex12 .h12-support span {
        display: none;
    }
    .allHeaderIndex12 .h12-support {
        padding: 9px 14px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .allHeaderIndex12 .h12-top {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 0;
    }
    .allHeaderIndex12 .h12-right {
        width: 100%;
        order: 1;
    }
    .allHeaderIndex12 .h12-logo img {
        height: 40px;
    }
    .allHeaderIndex12 .h12-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 4px;
    }
    .allHeaderIndex12 .h12-suggest {
        display: none;
    }
    .allHeaderIndex12 .h12-left {
        order: 2;
        margin-right: auto;
    }
    .allHeaderIndex12 .h12-bot {
        padding: 8px 0;
    }
    .allHeaderIndex12 .h12-cats-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .allHeaderIndex12 .h12-mega {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        max-height: 100%;
        border-radius: 0;
        transform: translateX(100%);
        opacity: 1;
        visibility: visible;
        transition: transform 0.35s ease;
    }
    .allHeaderIndex12 .h12-mega.active {
        transform: translateX(0);
    }
    .allHeaderIndex12 .h12-mega-close {
        display: flex;
    }
    .allHeaderIndex12 .h12-mega-inner {
        padding: 20px 15px;
        height: calc(100% - 60px);
        overflow-y: auto;
    }
    .allHeaderIndex12 .h12-mega-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}