/**
 * @fileoverview Modern Product Card Component Styles
 * 
 * BEM methodology-based styles for the product card component.
 * Provides a clean, modern card layout that matches the design requirements.
 * 
 * Used by: ProductCard component
 * 
 * Key Features:
 * - Modern BEM class naming convention
 * - Responsive design
 * - Clean visual hierarchy
 * - Consistent spacing and typography
 * - Hover effects and transitions
 */

/* Product Card Container */
.product-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.product-card:hover {
    box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.12);
    transform: translateY(-0.125rem);
}

/* Product Card Image */
.product-card__image {
    position: relative;
    width: 26%;
    min-width: 16rem;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem;
    box-sizing: border-box;
    border-radius: 1rem;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 0.75rem;
}

.product-card:hover .product-card__img {
    transform: scale(1.05);
}

/* Product Card Badge */
.product-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
    z-index: 2;
}

.product-card__badge--coming-soon {
    background: #ffc107;
    color: #000;
}

.product-card__badge--sold-out {
    background: #dc3545;
    color: #fff;
}

/* Product Card Content */
.product-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Product Card Header */
.product-card__header {
    margin-bottom: 0;
}

.product-card__category {
    color: var(--themecolor);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    opacity: 0.8;
}

.product-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-card__icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card__icon {
    font-size: 1rem;
    color: var(--themecolor);
    transition: color 0.3s ease;
}

.product-card__icon--premium {
    color: var(--themecolor);
}

.product-card__icon--check {
    color: var(--green-1);
}

/* Product Card Pricing */
.product-card__pricing {
    margin-bottom: 1rem;
}

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.product-card__price-label {
    font-size: 2.2rem;
    color: var(--dark-fade-3);
    font-weight: 500;
}

.product-card__price-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
}

.product-card__price-bolivares {
    font-size: 1.075rem;
    color: var(--dark-fade-3);
    margin-left: 0.5rem;
    font-weight: 500;
}

.product-card__price-notes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-card__price-note {
    background: var(--secthemecolor);
    color: #fff;
    padding: 0.05rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
}

/* Product Card Description */
.product-card__description {
    margin: 1rem 0;
    flex: 1;
}

.product-card__description p {
    color: var(--dark-fade-3);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Product Card Actions */
.product-card__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.product-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 0.125rem solid transparent;
    flex: 1;
    justify-content: center;
    min-width: 8.75rem;
}

.product-card__btn--primary {
    background: var(--themecolor);
    color: #fff;
    border-color: var(--themecolor);
}

.product-card__btn--primary:hover {
    background: var(--dark-blue-2);
    border-color: var(--dark-blue-2);
    color: #fff;
    text-decoration: none;
    transform: translateY(-0.0625rem);
}

.product-card__btn--secondary {
    background: #fff;
    color: var(--themecolor);
    border-color: var(--themecolor);
}

.product-card__btn--secondary:hover {
    background: var(--themecolor);
    color: #fff;
    text-decoration: none;
    transform: translateY(-0.0625rem);
}

.product-card__btn-icon {
    font-size: 1rem;
}

/* Products Info Section */
.products-info {
    padding-bottom: 4rem;
    position: relative;
    background: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    border-radius: 0.75rem;
}

.products-info::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 0.125rem;
    background: repeating-linear-gradient(to bottom,
            #ccc 0,
            #ccc 0.5rem,
            transparent 0.5rem,
            transparent 1rem);
}

.products-info__content {
    max-width: 37.5rem;
    padding-left: 2rem;
    position: relative;
}

.products-info__content::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: #fff;
    border-radius: 50%;
    border: 0.125rem solid #ccc;
}

.products-info__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.5rem;
    text-align: left;
}

.products-info__description {
    font-size: 1rem;
    color: var(--dark-fade-3);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Products Empty State */
.products-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--dark-fade-3);
}

.products-empty p {
    font-size: 1.125rem;
    margin: 0;
}

/* Legacy Support - Hide old classes when new ones are present */
.product-card + .scaem-docsingle-header {
    display: none;
}

/* Premium Product Styling */
.product-card--premium {
    border: 0.125rem solid var(--themecolor);
}

.product-card--premium .product-card__title {
    color: var(--themecolor);
}

/* Loading State */
.product-card--loading {
    opacity: 0.7;
    pointer-events: none;
}

.product-card--loading .product-card__img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.product-card__title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Grid Layout for Product Cards */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
    max-width: 960px;
    margin: 0 auto;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 30rem) {
    .product-card__image {
        aspect-ratio: 1 / 1;
        margin: 0;
        border-radius: 0.5rem;
    }

    .product-card__content {
        padding: 1rem;
    }

    .product-card__title {
        font-size: 1.125rem;
    }

    .product-card__price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .product-card__price-bolivares {
        margin-left: 0;
    }

    .product-card__price-note {
        margin-left: 0;
    }

    .product-card__description p {
        font-size: 0.875rem;
    }
}

/* Responsive Design */
@media (max-width: 48rem) {
    .product-card {
        flex-direction: column;
    }

    .product-card__image {
        width: 100%;
        min-width: auto;
        aspect-ratio: 1 / 1;
        margin: 0;
        border-radius: 0.75rem;
    }

    .product-card__content {
        padding: 1.25rem;
    }

    .product-card__title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .product-card__actions {
        flex-direction: row;
    }

    .product-card__btn {
        flex: none;
        width: 100%;
    }

    .products-info::before {
        left: 1rem;
    }

    .products-info__content {
        padding: 0 1rem 0 3rem;
    }

    .products-info__content::before {
        left: -2rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        gap: 1.5rem;
        padding: 4.5rem 0;
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        max-width: 83rem;
    }
}