/* Product Card V2 - Mockup Design */

.product-card-v2 {
    background: white;
    border: 1px solid var(--ub-border, #D6DCE8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ub-shadow-card);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}

.product-card-v2__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Image Wrapper */
.product-card-v2__image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f9fafb;
}

.product-card-v2__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-card-v2__image.fade {
    opacity: 0;
}

/* Slideshow Arrows */
.product-card-v2__slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--ub-navy, #00293D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    outline: none;
}

.product-card-v2__slideshow-arrow:hover {
    background-color: var(--ub-navy, #00293D);
    color: white;
}

.product-card-v2__slideshow-arrow--prev {
    left: 10px;
}

.product-card-v2__slideshow-arrow--next {
    right: 10px;
}

/* Original Color Count and Color Name (from v1 card) */
.product-card-v2__color-count,
.product-card-v2__color-name {
    position: absolute;
    top: 10px;
    background-color: rgba(0, 123, 255, 0.85);
    color: white;
    border-radius: 15px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
    line-height: 1.2;
    min-height: 28px;
}

.product-card-v2__color-count {
    left: 10px;
}

.product-card-v2__color-name {
    right: 10px;
    white-space: normal;
    max-height: 40px;
    overflow: hidden;
    text-align: center;
    max-width: 160px;
    display: block;
    justify-content: center;
}

/* Product Badges (Mockup design - Sustainable/Premium/Basic) */
.product-card-v2__badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.product-card-v2__badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-colors {
    background: rgba(0, 41, 61, 0.9);
    color: white;
}

.badge-sustainable {
    background: rgba(34, 197, 94, 0.95);
    color: white;
}

.badge-premium {
    background: rgba(139, 92, 246, 0.95);
    color: white;
}

.badge-comfy {
    background: rgba(245, 158, 11, 0.95);
    color: white;
}

.badge-basic {
    background: rgba(107, 114, 128, 0.95);
    color: white;
}

/* Product Attributes — overlaid top-right of image */
.product-card-v2__attributes {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    z-index: 3;
}

.product-card-v2 .product-attribute-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.product-card-v2 .product-attribute-badge i {
    font-size: 12px;
}

/* Product Info */
.product-card-v2__info {
    padding: 16px;
    background: var(--ub-surface-alt, #F0F4F8);
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product Meta */
.product-card-v2__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.product-card-v2__code {
    font-size: 10px;
    color: #374151;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #f3f4f6;
}

/* Product Name */
.product-card-v2__name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Product Brand */
.product-card-v2__brand {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* Product Tags */
.product-card-v2__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-card-v2__meta .product-card-v2__tags {
    margin-bottom: 0;
}

.product-card-v2__tag {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
}

/* Product Price Section */
.product-card-v2__price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card-v2__price-container {
    display: flex;
    flex-direction: column;
}

.product-card-v2__price {
    font-size: 18px;
    font-weight: 800;
    color: var(--ub-navy, #00293D);
    line-height: 1;
    margin-bottom: 2px;
}

.product-card-v2__price-note {
    font-size: 11px;
    color: #6b7280;
}

/* Quick View Button */
.product-card-v2__button {
    background: var(--ub-navy, #00293D);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.product-card-v2__button:hover {
    background: #2d3e54;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 79, 111, 0.3);
}

/* Hide arrows on touch devices */
@media (hover: none) {
    .product-card-v2__slideshow-arrow {
        display: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .product-card-v2__info {
        padding: 12px;
    }

    .product-card-v2__name {
        font-size: 14px;
    }

    .product-card-v2__brand {
        font-size: 12px;
    }

    .product-card-v2__price {
        font-size: 16px;
    }

    .product-card-v2__button {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 40px;
    }

    .product-card-v2__tags {
        gap: 4px;
    }

    .product-card-v2__tag {
        font-size: 9px;
        padding: 2px 6px;
    }
}
