/* ==========================================
   PRODUCT CARD STYLES
   ========================================== */

/* Product Card */
.product-card {
    background: white;
    border: 1px solid #fafafa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    min-height: 265px;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Product Header */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-info {
    flex: 1;
}

.product-category {
    font-size: 14px;
    color: #425563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-family: Calibri;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    font-family: Calibri;
}

.product-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-card-favorite {
    padding: 0;
}

.product-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-logo .logo-image {
    object-fit: contain;
    height: 40px;
    max-width: 135px;
}

.product-logo .product-logo-custom {
    object-fit: contain;
    height: 40px;
    max-width: 135px;
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-shape {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.logo-shape.blue {
    background: #007bff;
    top: 0;
    left: 0;
    z-index: 2;
}

.logo-shape.orange {
    background: #ff8c00;
    bottom: 0;
    right: 0;
    z-index: 1;
    transform: translate(5px, -5px);
}

/* Product Properties */
.property {
    display: grid;
    grid-template-columns: 130px 120px minmax(0, 1fr);
    align-items: start;
    padding: 4px 0px;
    column-gap: 8px;
}

.property:last-child {
    border-bottom: none;
}

.property-label {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 700;
    line-height: 1.4;
    word-break: normal;
    white-space: normal;
    overflow-wrap: break-word;
    padding: 0;
    margin: 0;
}

.property-method {
    font-size: 12px;
    color: #1f1f1f;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    justify-self: center;
    align-self: start;
    padding: 0;
    margin: 0;
    width: 100%;
}

.property-value {
    font-size: 12px;
    color: #333;
    font-family: Calibri;
    text-align: right;
    white-space: nowrap;
    justify-self: end;
    align-self: start;
    min-width: 0;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.compare-checkbox {
    display: flex;
    min-width: 64px;
    padding: 0px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border: 1px solid #425563;
    background: #fff;
    color: #425563;
    font-family: Calibri;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.12px;
    min-height: 26px;
    margin-right: 13px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.3s ease;
}

.compare-checkbox:hover {
    border-color: #2C3A47;
}

.compare-checkbox:hover .checkmark {
    border-color: #2C3A47;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.compare-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    margin-right: 8px;
    width: 14px;
    height: 14px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.compare-checkbox input[type="checkbox"]:checked+.checkmark {
    background-color: white;
    border-color: #ddd;
    background-image: url('../images/check-dropdrown.svg');
    background-position: center;
    background-repeat: no-repeat;
    transition: none;
}

.compare-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: none;
}

.view-product-btn {
    background: #0057b8;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    font-family: Calibri;
    text-decoration: none;
}

.view-product-btn:hover {
    background: #0056b3;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

@media (max-width: 768px) {
    .product-card {
        padding: 1rem;
    }

    .product-actions {
        flex-direction: row;
        gap: 0.75rem;
    }

    .compare-checkbox {
        align-self: flex-start;
    }

    .view-product-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-logo {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
