﻿/* Product Card Styling */

/* Product title (model) - force single line with responsive sizing */
.product-title {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    cursor: help;
    margin-bottom: 8px !important;
    position: relative;
}

/* Colorway text - force single line with responsive sizing */
.product-colorway {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    cursor: help;
    position: relative;
}

/* Responsive font sizing for product title */
@media (max-width: 1400px) {
    .product-title {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 0.8rem !important;
    }
}

/* Responsive font sizing for colorway */
@media (max-width: 1400px) {
    .product-colorway {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    .product-colorway {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 576px) {
    .product-colorway {
        font-size: 0.65rem !important;
    }
}

/* NUCLEAR TOOLTIP SOLUTION - Custom JavaScript-based tooltips */
.custom-tooltip {
    position: fixed !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    z-index: 99999 !important; /* Even higher z-index */
    pointer-events: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    max-width: 300px !important;
    word-break: break-word !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease-out !important;
}

    .custom-tooltip.show {
        opacity: 1 !important;
    }

/* Enhanced Size Badge Styling */
.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.size-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
}

    /* Default/Unisex size styling */
    .size-badge.unisex,
    .size-badge:not(.mens):not(.womens):not(.youth):not(.secondary) {
        background-color: #007bff;
        color: white;
    }

    /* Men's size styling */
    .size-badge.mens {
        background-color: #007bff;
        color: white;
        border: 1px solid #0056b3;
    }

    /* Women's size styling */
    .size-badge.womens {
        background-color: #e91e63;
        color: white;
        border: 1px solid #c2185b;
    }

    /* Youth size styling */
    .size-badge.youth {
        background-color: #17a2b8;
        color: white;
    }

    /* Secondary (EUR) size styling */
    .size-badge.secondary {
        background-color: #6c757d;
        color: white;
    }

        .size-badge.secondary.mens {
            background-color: #495057;
            color: white;
            border: 1px solid #343a40;
        }

        .size-badge.secondary.womens {
            background-color: #ad2b5e;
            color: white;
            border: 1px solid #8d1e4f;
        }

/* Gender indicator styling */
.size-gender {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.9;
    margin-left: 2px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .size-badge {
        font-size: 0.7rem;
        padding: 1px 4px;
    }

    .size-gender {
        font-size: 0.6rem;
    }
}

/* Hover effects for better UX */
.size-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Product card consistency improvements */
.product-card .card-body {
    min-height: 200px; /* Ensure consistent card heights */
}

/* Brand name consistency */
.product-brand {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* DISABLE ALL POSSIBLE BOOTSTRAP TOOLTIPS */
.product-title,
.product-colorway,
.product-title *,
.product-colorway * {
    data-bs-toggle: none !important;
    data-bs-placement: none !important;
    data-bs-original-title: none !important;
    data-toggle: none !important;
    data-placement: none !important;
}

/* Disable mobile tooltips */
@media (max-width: 768px) {
    .custom-tooltip {
        display: none !important;
    }
}
