/* Shopping Cart Item - Figma Design Exact Match */

.cart-item-figma {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 20px;
    
    margin: 0 auto;
    width: 100%;
    max-width: 830px;
    height: auto;
    min-height: 80px;
    
    /* Separador inferior */
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.cart-item-figma:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* === IMAGEN DEL PRODUCTO === */
.cart-item-figma__image {
    /* Tamaño fijo para la imagen como en Figma */
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #F8F8F8;
    flex-shrink: 0;
}

.cart-item-figma__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-figma__image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* === INFORMACIÓN DEL PRODUCTO === */
.cart-item-figma__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 8px;
    
    /* Empuja el contenido hacia la izquierda */
    min-width: 0;
}

.cart-item-figma__name {
    /* Exactamente como en Figma */
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: #333333;
    
    margin: 0;
    padding: 0;
    text-decoration: none;
    
    /* Permite que el texto se corte si es muy largo */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.cart-item-figma__name a {
    color: inherit;
    text-decoration: none;
}

.cart-item-figma__name a:hover {
    color: #666666;
    text-decoration: none;
}

.cart-item-figma__remove {
    /* Botón Eliminar como en Figma */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    color: #999999;
    
    cursor: pointer;
    text-decoration: none;
}

.cart-item-figma__remove:hover {
    color: #FF4444;
    text-decoration: none;
}

/* === CONTROLES (PRECIO Y CANTIDAD) === */
.cart-item-figma__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0px;
    gap: 12px;
    
    /* Ancho fijo como en Figma */
    width: auto;
    flex-shrink: 0;
}

/* PRECIO */
.cart-item-figma__price {
    /* Precio como en Figma */
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    text-align: right;
    color: #333333;
    
    margin: 0;
    padding: 0;
}

/* CONTROLES DE CANTIDAD */
.cart-item-figma__quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 0px;
    
    /* Fondo y borde como en Figma */
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    
    height: 36px;
    width: auto;
}

.cart-item-figma__quantity-btn {
    /* Botones - y + */
    width: 36px;
    height: 36px;
    background: #F8F8F8;
    border: none;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #666666;
    
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cart-item-figma__quantity-btn:first-child {
    border-radius: 6px 0 0 6px;
    border-right: 1px solid #E5E5E5;
}

.cart-item-figma__quantity-btn:last-child {
    border-radius: 0 6px 6px 0;
    border-left: 1px solid #E5E5E5;
}

.cart-item-figma__quantity-btn:hover {
    background: #EEEEEE;
}

.cart-item-figma__quantity-btn:active {
    background: #DDDDDD;
}

.cart-item-figma__quantity-input {
    /* Input de cantidad */
    width: 50px;
    height: 36px;
    background: #FFFFFF;
    border: none;
    outline: none;
    
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 19px;
    text-align: center;
    color: #333333;
    
    padding: 0;
    margin: 0;
}

.cart-item-figma__quantity-input:focus {
    background: #FAFAFA;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .cart-item-figma {
        flex-direction: column;
        gap: 16px;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    
    .cart-item-figma__image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-figma__controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .cart-item-figma__price {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .cart-item-figma {
        gap: 12px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .cart-item-figma__image {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-figma__name {
        font-size: 14px;
        line-height: 19px;
    }
    
    .cart-item-figma__price {
        font-size: 14px;
        line-height: 19px;
    }
    
    .cart-item-figma__quantity {
        height: 32px;
    }
    
    .cart-item-figma__quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .cart-item-figma__quantity-input {
        width: 40px;
        height: 32px;
        font-size: 13px;
    }
}

/* Hide class utility */
.hide {
    display: none !important;
}