.as_info_detail .header-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; position: relative; }
.header-top-actions .header-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; margin: 0; background: transparent; border: 0; color: #fff; cursor: pointer; flex-shrink: 0; border-radius: 8px; }
.header-top-actions .header-icon:hover { color: #ffab32; background: #ffffff14; }
.header-top-actions .header-icon:focus-visible { outline: 2px solid #ffab32; outline-offset: 3px; }
.header-top-actions .header-icon img { width: 23px; height: 23px; }
.header-top-actions .as_cart_wrapper > span { margin: 0; }
.header-top-actions .as_cart_box { z-index: 30; max-width: calc(100vw - 32px); }
.header-top-actions .header-search { position: relative; }
#header-search-box { position: absolute; top: calc(100% + 12px); right: 0; width: 300px; max-width: calc(100vw - 32px); padding: 12px; background: #171717; border: 1px solid #444; border-radius: 12px; z-index: 31; box-shadow: 0 12px 30px #0003; }
#header-search-box[hidden] { display: none; }
#header-search-input { width: 100%; height: 42px; color: #fff; background: transparent; border: 1px solid #aaa; border-radius: 24px; padding: 8px 16px; }
#header-search-input::placeholder { color: #ddd; }
.header-search-results {
    margin-top: 10px;
    max-height: 360px;
    overflow-y: auto;
    display: grid;
    gap: 6px;
}
.header-search-results[hidden] {
    display: none;
}
.header-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    color: #fff;
    border-radius: 9px;
    text-decoration: none;
}
.header-search-item:hover,
.header-search-item:focus {
    color: #171717;
    background: #ffab32;
    text-decoration: none;
}
.header-search-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    background: #2a2a2a;
    flex: none;
}
.header-search-item span {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.header-search-item strong,
.header-search-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-search-item strong {
    font-size: 14px;
    line-height: 1.2;
}
.header-search-item small {
    color: #cfcfcf;
    font-size: 12px;
}
.header-search-item:hover small,
.header-search-item:focus small {
    color: #3a2a14;
}
.header-search-message {
    padding: 12px 8px 4px;
    color: #ddd;
    font-size: 13px;
}
@media (max-width: 991px) { .as_info_detail .header-top-actions { justify-content: center; margin-top: 12px; } .header-top-actions .header-search { position: static; } #header-search-box { right: 50%; transform: translateX(50%); } }
.as_info_detail .as_cart_list ul { padding: 0 0 20px; text-align: left; }
.as_info_detail .as_cart_list li { display: flex; align-items: center; padding: 0; }

/* Keep links and native buttons visually identical. */
.header-top-actions .header-icon { appearance: none; -webkit-appearance: none; box-shadow: none; line-height: 1; text-decoration: none; position: relative; }
.header-top-actions .header-icon svg { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
.header-top-actions .as_cart_wrapper > .header-cart-count { position: absolute; top: -2px; right: -5px; display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 4px; margin: 0; border-radius: 10px; background: #ffa726; color: #171717; font-size: 10px; font-weight: 700; line-height: 1; border: 2px solid #111; }
.header-user-menu { position: relative; }
.header-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 7px 10px;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.header-user-trigger svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}
.header-user-trigger:hover,
.header-user-menu:focus-within .header-user-trigger {
    color: #ffab32;
    background: #ffffff14;
}
.header-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 34;
    min-width: 190px;
    padding: 8px;
    background: #171717;
    border: 1px solid #444;
    border-radius: 10px;
    box-shadow: 0 14px 32px #0004;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .18s ease;
}
.header-user-menu:hover .header-user-dropdown,
.header-user-menu:focus-within .header-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-user-dropdown:before {
    content: "";
    position: absolute;
    top: -10px;
    right: 18px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid #171717;
}
.header-user-dropdown a,
.header-user-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 7px;
    text-align: left;
    text-decoration: none;
    font-weight: 600;
}
.header-user-dropdown a:hover,
.header-user-dropdown button:hover {
    color: #171717;
    background: #ffab32;
}
.header-user-dropdown i,
.header-user-dropdown svg {
    width: 18px;
    height: 18px;
    text-align: center;
    flex: none;
}
.header-user-dropdown svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.header-user-dropdown form {
    margin: 0;
}
.as_menu > ul > li:focus-within > .as_submenu { opacity: 1; visibility: visible; transform: none; }
.as_menu > ul > li { margin-left: 16px; margin-right: 16px; }

.as_product_box:focus-within .as_product_img ul { bottom: 0; opacity: 1; visibility: visible; }
.as_product_img .as_product_actions {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 16px;
}
.as_product_img .as_product_actions li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0 13px;
    line-height: 1;
}
.as_product_img .as_product_actions .as_product_cart_action {
    flex: 1 1 auto;
    justify-content: flex-start;
    min-width: 142px;
}
.as_product_img .as_product_actions a,
.as_product_img .as_product_actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 34px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}
.as_product_img .as_product_actions a span {
    margin-left: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}
.as_product_img .as_product_actions svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex: 0 0 20px;
}
.as_product_img .as_product_actions img {
    flex: 0 0 auto;
}
.as_product_img .as_product_actions a:hover,
.as_product_img .as_product_actions button:hover,
.as_product_img .as_product_actions a:focus-visible,
.as_product_img .as_product_actions button:focus-visible {
    opacity: .82;
    outline: none;
}

@media (max-width: 575px) {
    .header-user-trigger span { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .header-user-dropdown { right: 50%; transform: translate(50%, 8px); }
    .header-user-menu:hover .header-user-dropdown,
    .header-user-menu:focus-within .header-user-dropdown { transform: translate(50%, 0); }
    .as_product_img .as_product_actions { padding: 0 10px; }
    .as_product_img .as_product_actions li { min-width: 42px; padding: 0 8px; }
    .as_product_img .as_product_actions .as_product_cart_action { min-width: 128px; }
    .as_product_img .as_product_actions a span { font-size: 14px; }
}
