/* Frontend Photo Tagging Styles */

/* Tag Container */
.mb-wrap-tag {
    position: absolute;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.mb-wrap-tag:hover {
    transform: scale(1.1);
}

/* Tag Icon */
.mb-tag-icon {
    width: 24px;
    height: 24px;
    background: #0073aa;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    transition: all 0.3s ease;
}

.mb-tag-icon:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.mb-wrap-tag:hover .mb-tag-icon {
    background: #005a87;
    transform: scale(1.2);
}

/* Tag Content */
.mb-tag-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 15px;
    min-width: 280px;
    max-width: 320px;
    z-index: 1000;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mb-tag-content:before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: white;
}

.mb-tag-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Product Tag Box */
.mb-tag-product-tag-box,
.hero__image-product-tag-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.mb-tag-tag__image-container,
.hero__product-tag__image-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.mb-tag-tag__image-container img,
.hero__product-tag__image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mb-tag__product-info,
.hero__product-tag__product-info {
    flex: 1;
    min-width: 0;
}

.mb-tag__product-info h5,
.hero__product-tag__product-info h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.mb-tag__product-details,
.hero__product-tag__product-details {
    margin-bottom: 15px;
}

.mb-tag__product-details p,
.hero__product-tag__product-details p {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.mb-tag__product-details .bullet,
.hero__product-tag__product-details .bullet {
    color: #0073aa;
    font-weight: bold;
    margin-right: 5px;
}

.mb-tag-tax-label {
    font-weight: 600;
    color: #333;
}

/* Shop Button */
.mb-wrap-tag .button {
    display: inline-block;
    background: #0073aa;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.mb-wrap-tag .button:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Message Styles */
.mb-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
}

.mb-message-success {
    background: #28a745;
}

.mb-message-error {
    background: #dc3545;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mb-tag-content {
        min-width: 250px;
        max-width: 280px;
        padding: 12px;
    }
    
    .mb-tag-product-tag-box,
    .hero__image-product-tag-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .mb-tag-tag__image-container,
    .hero__product-tag__image-container {
        width: 60px;
        height: 60px;
        align-self: center;
    }
    
    .mb-tag__product-info h5,
    .hero__product-tag__product-info h5 {
        font-size: 14px;
        text-align: center;
    }
    
    .mb-tag__product-details,
    .hero__product-tag__product-details {
        text-align: center;
    }
    
    .mb-wrap-tag .button {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mb-tag-icon {
        border-width: 3px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.8);
    }
    
    .mb-tag-content {
        border: 2px solid #000;
    }
    
    .mb-wrap-tag .button {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mb-wrap-tag,
    .mb-tag-icon,
    .mb-tag-content,
    .mb-wrap-tag .button {
        transition: none;
    }
    
    .mb-wrap-tag:hover {
        transform: none;
    }
    
    .mb-wrap-tag:hover .mb-tag-icon {
        transform: none;
    }
}
