/* --- Admin Floating Edit Icon (Professional) --- */
.admin-edit-float {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 20;
    color: #444;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none !important;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.admin-edit-float:hover {
    background: #007bff;
    /* Primary Blue */
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    /* Subtle lift */
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
    border-color: transparent;
}

.admin-edit-float svg {
    width: 18px !important;
    height: 18px !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* Tooltip text on hover (optional enhancement) */
.admin-edit-float::after {
    content: attr(title);
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    visibility: hidden;
}

.admin-edit-float:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
}

/* Ensure relative positioning for containers */
.product-card-image-wrap,
.cat-header-wrap,
.product-detail-container,
.main-content-area-full {
    position: relative !important;
}